Home
last modified time | relevance | path

Searched refs:mapper (Results 1 – 25 of 95) sorted by relevance

1234

/frameworks/native/services/inputflinger/reader/
DAndroid.bp31 "mapper",
32 "mapper/accumulator",
33 "mapper/gestures",
46 "mapper/CapturedTouchpadEventConverter.cpp",
47 "mapper/CursorInputMapper.cpp",
48 "mapper/ExternalStylusInputMapper.cpp",
49 "mapper/InputMapper.cpp",
50 "mapper/JoystickInputMapper.cpp",
51 "mapper/KeyboardInputMapper.cpp",
52 "mapper/MultiTouchInputMapper.cpp",
[all …]
DInputDevice.cpp166 for_each_mapper([&dump](InputMapper& mapper) { mapper.dump(dump); }); in dump() argument
357 for_each_mapper([this, when, &readerConfig, changes, &out](InputMapper& mapper) { in configureInternal() argument
358 out += mapper.reconfigure(when, readerConfig, changes); in configureInternal()
359 mSources |= mapper.getSources(); in configureInternal()
374 for_each_mapper([&](InputMapper& mapper) { out += mapper.reset(when); }); in reset() argument
411 for_each_mapper_in_subdevice(rawEvent->deviceId, [&](InputMapper& mapper) { in process() argument
412 out += mapper.process(*rawEvent); in process()
438 for_each_mapper([&](InputMapper& mapper) { out += mapper.timeoutExpired(when); }); in timeoutExpired() argument
444 for_each_mapper([&](InputMapper& mapper) { out += mapper.updateExternalStylusState(state); }); in updateExternalStylusState() argument
457 [&outDeviceInfo](InputMapper& mapper) { mapper.populateDeviceInfo(outDeviceInfo); }); in getDeviceInfo() argument
[all …]
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp128 static void assertAxisResolution(MultiTouchInputMapper& mapper, int axis, float resolution) { in assertAxisResolution() argument
130 mapper.populateDeviceInfo(info); in assertAxisResolution()
137 static void assertAxisNotPresent(MultiTouchInputMapper& mapper, int axis) { in assertAxisNotPresent() argument
139 mapper.populateDeviceInfo(info); in assertAxisNotPresent()
650 FakeInputMapper& mapper = in addDeviceWithFakeInputMapper() local
655 return mapper; in addDeviceWithFakeInputMapper()
791 FakeInputMapper& mapper = in TEST_F() local
794 mapper.setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
823 FakeInputMapper& mapper = addDeviceWithFakeInputMapper(deviceId, eventHubId, "keyboard", in TEST_F() local
826 mapper.addKeyCodeMapping(AKEYCODE_Y, AKEYCODE_Z); in TEST_F()
[all …]
DInputMapperTest.h107 T& mapper = in addMapperAndConfigure() local
111 resetArgList += mapper.reset(ARBITRARY_TIME); in addMapperAndConfigure()
117 return mapper; in addMapperAndConfigure()
136 std::list<NotifyArgs> process(InputMapper& mapper, nsecs_t when, nsecs_t readTime, int32_t type,
138 void resetMapper(InputMapper& mapper, nsecs_t when);
140 std::list<NotifyArgs> handleTimeout(InputMapper& mapper, nsecs_t when);
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayReferenceMapperTests.kt43 private lateinit var mapper: OverlayReferenceMapper in <lambda>() variable in com.android.server.om.OverlayReferenceMapperTests
51 mapper = mapper() in <lambda>()
58 val existing = mapper.addInOrder(overlay) { in <lambda>()
62 mapper.addInOrder(target, existing = existing) { in <lambda>()
66 mapper.remove(target) { in <lambda>()
77 mapper = mapper( in <lambda>()
87 val existing = mapper.addInOrder(overlay0, overlay1) { in <lambda>()
91 mapper.addInOrder(target, existing = existing) { in <lambda>()
95 mapper.remove(overlay0) { in <lambda>()
99 mapper.remove(target) { in <lambda>()
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DKeyboardInputFuzzer.cpp53 KeyboardInputMapper& mapper = in LLVMFuzzerTestOneInput() local
64 mapper.dump(dump); in LLVMFuzzerTestOneInput()
68 mapper.populateDeviceInfo(info); in LLVMFuzzerTestOneInput()
70 [&]() -> void { mapper.getSources(); }, in LLVMFuzzerTestOneInput()
73 mapper.reconfigure(fdp->ConsumeIntegral<nsecs_t>(), /*readerConfig=*/{}, in LLVMFuzzerTestOneInput()
78 std::list<NotifyArgs> unused = mapper.reset(fdp->ConsumeIntegral<nsecs_t>()); in LLVMFuzzerTestOneInput()
82 std::list<NotifyArgs> unused = mapper.process(rawEvent); in LLVMFuzzerTestOneInput()
85 mapper.getKeyCodeState(fdp->ConsumeIntegral<uint32_t>(), in LLVMFuzzerTestOneInput()
89 mapper.getScanCodeState(fdp->ConsumeIntegral<uint32_t>(), in LLVMFuzzerTestOneInput()
98 mapper.markSupportedKeyCodes(fdp->ConsumeIntegral<uint32_t>(), keyCodes, in LLVMFuzzerTestOneInput()
[all …]
DCursorInputFuzzer.cpp48 CursorInputMapper& mapper = in LLVMFuzzerTestOneInput() local
61 mapper.dump(dump); in LLVMFuzzerTestOneInput()
63 [&]() -> void { mapper.getSources(); }, in LLVMFuzzerTestOneInput()
66 mapper.reconfigure(fdp->ConsumeIntegral<nsecs_t>(), policyConfig, in LLVMFuzzerTestOneInput()
73 mapper.reconfigure(fdp->ConsumeIntegral<nsecs_t>(), policyConfig, in LLVMFuzzerTestOneInput()
76 mapper.populateDeviceInfo(info); in LLVMFuzzerTestOneInput()
81 mapper.reconfigure(fdp->ConsumeIntegral<nsecs_t>(), policyConfig, in LLVMFuzzerTestOneInput()
84 unused += mapper.process(rawEvent); in LLVMFuzzerTestOneInput()
87 std::list<NotifyArgs> unused = mapper.reset(fdp->ConsumeIntegral<nsecs_t>()); in LLVMFuzzerTestOneInput()
90 mapper.getScanCodeState(fdp->ConsumeIntegral<uint32_t>(), in LLVMFuzzerTestOneInput()
[all …]
DMultiTouchInputFuzzer.cpp71 MultiTouchInputMapper& mapper = in LLVMFuzzerTestOneInput() local
85 mapper.dump(dump); in LLVMFuzzerTestOneInput()
89 mapper.populateDeviceInfo(info); in LLVMFuzzerTestOneInput()
91 [&]() -> void { mapper.getSources(); }, in LLVMFuzzerTestOneInput()
94 mapper.reconfigure(fdp->ConsumeIntegral<nsecs_t>(), policyConfig, in LLVMFuzzerTestOneInput()
99 std::list<NotifyArgs> unused = mapper.reset(fdp->ConsumeIntegral<nsecs_t>()); in LLVMFuzzerTestOneInput()
103 std::list<NotifyArgs> unused = mapper.process(rawEvent); in LLVMFuzzerTestOneInput()
106 mapper.getKeyCodeState(fdp->ConsumeIntegral<uint32_t>(), in LLVMFuzzerTestOneInput()
110 mapper.getScanCodeState(fdp->ConsumeIntegral<uint32_t>(), in LLVMFuzzerTestOneInput()
119 mapper.markSupportedKeyCodes(fdp->ConsumeIntegral<uint32_t>(), keyCodes, in LLVMFuzzerTestOneInput()
[all …]
DSwitchInputFuzzer.cpp33 SwitchInputMapper& mapper = in LLVMFuzzerTestOneInput() local
42 mapper.dump(dump); in LLVMFuzzerTestOneInput()
44 [&]() -> void { mapper.getSources(); }, in LLVMFuzzerTestOneInput()
47 std::list<NotifyArgs> unused = mapper.process(rawEvent); in LLVMFuzzerTestOneInput()
50 mapper.getSwitchState(fdp->ConsumeIntegral<uint32_t>(), in LLVMFuzzerTestOneInput()
DTouchpadInputFuzzer.cpp151 TouchpadInputMapper& mapper = in LLVMFuzzerTestOneInput() local
160 mapper.dump(dump); in LLVMFuzzerTestOneInput()
164 mapper.populateDeviceInfo(info); in LLVMFuzzerTestOneInput()
166 [&]() -> void { mapper.getSources(); }, in LLVMFuzzerTestOneInput()
170 mapper.reconfigure(fdp->ConsumeIntegral<nsecs_t>(), policyConfig, in LLVMFuzzerTestOneInput()
175 std::list<NotifyArgs> unused = mapper.reset(fdp->ConsumeIntegral<nsecs_t>()); in LLVMFuzzerTestOneInput()
179 std::list<NotifyArgs> unused = mapper.process(event); in LLVMFuzzerTestOneInput()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/battery/ui/
DBatterySaverTileMapperTest.kt40 private lateinit var mapper: BatterySaverTileMapper variable in com.android.systemui.qs.tiles.impl.battery.ui.BatterySaverTileMapperTest
44 mapper = in setup()
60 val outputState = mapper.map(batterySaverTileConfig, inputModel) in map_standard_notPluggedInNotPowerSaving()
76 val outputState = mapper.map(batterySaverTileConfig, inputModel) in map_standard_notPluggedInPowerSaving()
92 val outputState = mapper.map(batterySaverTileConfig, inputModel) in map_standard_pluggedInPowerSaving()
108 val outputState = mapper.map(batterySaverTileConfig, inputModel) in map_standard_pluggedInNotPowerSaving()
124 val outputState = mapper.map(batterySaverTileConfig, inputModel) in map_extremeSaverDisabledNotPluggedInNotPowerSaving()
140 val outputState = mapper.map(batterySaverTileConfig, inputModel) in map_extremeSaverDisabledNotPluggedInPowerSaving()
156 val outputState = mapper.map(batterySaverTileConfig, inputModel) in map_extremeSaverDisabledPluggedInPowerSaving()
172 val outputState = mapper.map(batterySaverTileConfig, inputModel) in map_extremeSaverDisabledPluggedInNotPowerSaving()
[all …]
/frameworks/native/libs/gralloc/types/include/gralloctypes/
DGralloc4.h49 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_BufferId…
53 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_Name = {
57 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_Width = {
61 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_Height =…
65 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_LayerCou…
69 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_PixelFor…
73 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_PixelFor…
77 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_PixelFor…
81 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_Usage = {
85 static const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType MetadataType_Allocati…
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DZoomRatioTest.cpp155 ZoomRatioMapper mapper; in subScaleCoordinatesTest() local
158 ASSERT_EQ(OK, setupTestMapper(&mapper, maxDigitalZoom, in subScaleCoordinatesTest()
183 mapper.scaleCoordinates(coords.data(), coords.size()/2, 1.0f, false /*clamp*/, width, height); in subScaleCoordinatesTest()
200 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, false /*clamp*/, width, height); in subScaleCoordinatesTest()
217 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, true /*clamp*/, width, height); in subScaleCoordinatesTest()
234 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, true /*clamp*/, width, height); in subScaleCoordinatesTest()
251 mapper.scaleCoordinates(coords.data(), coords.size()/2, 1.0f/3, false /*clamp*/, width, height); in subScaleCoordinatesTest()
263 mapper.scaleRegion(coordinates, scaleRatio, width, height); in subScaleCoordinatesTest()
277 ZoomRatioMapper mapper; in subCropOverMaxDigitalZoomTest() local
279 res = setupTestMapper(&mapper, 4.0/*maxDigitalZoom*/, in subCropOverMaxDigitalZoomTest()
[all …]
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraStream.cc44 sp<GraphicBuffer> createGraphicBuffer(GraphicBufferMapper& mapper, in createGraphicBuffer() argument
51 if (mapper.getWidth(bufferHandle, &width) != NO_ERROR || in createGraphicBuffer()
52 mapper.getHeight(bufferHandle, &height) != NO_ERROR || in createGraphicBuffer()
53 mapper.getUsage(bufferHandle, &usage) != NO_ERROR || in createGraphicBuffer()
54 mapper.getLayerCount(bufferHandle, &layerCount) != NO_ERROR || in createGraphicBuffer()
55 mapper.getPixelFormatRequested(bufferHandle, &pixelFormat) != NO_ERROR) { in createGraphicBuffer()
74 GraphicBufferMapper& mapper = GraphicBufferMapper::get(); in importBufferInternal() local
79 int ret = mapper.importBufferNoValidate(nativeHandle.get(), &bufferHandle); in importBufferInternal()
85 sp<GraphicBuffer> buf = createGraphicBuffer(mapper, bufferHandle); in importBufferInternal()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/night/ui/
DNightDisplayTileMapperTest.kt50 private lateinit var mapper: NightDisplayTileMapper variable in com.android.systemui.qs.tiles.impl.night.ui.NightDisplayTileMapperTest
54 mapper = in setup()
71 val outputState = mapper.map(config, inputModel) in disabledModel_whenAutoModeOff()
86 val outputState = mapper.map(config, inputModel) in disabledModel_whenAutoModeOff_whenForceEnable()
100 val outputState = mapper.map(config, inputModel) in enabledModel_whenAutoModeOff()
114 val outputState = mapper.map(config, inputModel) in enabledModel_forceAutoMode_whenAutoModeOff()
128 val outputState = mapper.map(config, inputModel) in enabledModel_autoModeTwilight_locationOff()
138 val outputState = mapper.map(config, inputModel) in enabledModel_autoModeTwilight_locationOn()
152 val outputState = mapper.map(config, inputModel) in disabledModel_autoModeTwilight_locationOn()
166 val outputState = mapper.map(config, inputModel) in disabledModel_autoModeTwilight_locationOff()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/sensorprivacy/ui/
DSensorPrivacyToggleTileMapperTest.kt48 val mapper = createMapper(CameraPrivacyTileResources) in mapCamera_notBlocked() constant
51 val outputState = mapper.map(cameraConfig, inputModel) in mapCamera_notBlocked()
66 val mapper = createMapper(CameraPrivacyTileResources) in mapCamera_blocked() constant
69 val outputState = mapper.map(cameraConfig, inputModel) in mapCamera_blocked()
84 val mapper = createMapper(MicrophonePrivacyTileResources) in mapMic_notBlocked() constant
87 val outputState = mapper.map(micConfig, inputModel) in mapMic_notBlocked()
102 val mapper = createMapper(MicrophonePrivacyTileResources) in mapMic_blocked() constant
105 val outputState = mapper.map(micConfig, inputModel) in mapMic_blocked()
121 val mapper = in createMapper() constant
134 return mapper in createMapper()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/flashlight/domain/
DFlashlightMapperTest.kt39 private val mapper by lazy { in <lambda>() constant in com.android.systemui.qs.tiles.impl.flashlight.domain.FlashlightMapperTest
54 mapper.map(qsTileConfig, FlashlightTileModel.FlashlightAvailable(false)) in mapsDisabledDataToInactiveState()
64 mapper.map(qsTileConfig, FlashlightTileModel.FlashlightAvailable(true)) in mapsEnabledDataToActiveState()
73 mapper.map(qsTileConfig, FlashlightTileModel.FlashlightAvailable(true)) in mapsEnabledDataToOnIconState()
84 mapper.map(qsTileConfig, FlashlightTileModel.FlashlightAvailable(false)) in mapsDisabledDataToOffIconState()
95 mapper.map(qsTileConfig, FlashlightTileModel.FlashlightTemporarilyUnavailable) in mapsUnavailableDataToOffIconState()
107 mapper.map(qsTileConfig, FlashlightTileModel.FlashlightAvailable(dontCare)) in supportClickActionWhenAvailable()
116 mapper.map(qsTileConfig, FlashlightTileModel.FlashlightTemporarilyUnavailable) in doesNotSupportClickActionWhenUnavailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/
DViewPipeline.kt25 fun <S, T> DataListener<T>.contraMap(mapper: (S) -> T): DataListener<S> = object : DataListener<S> { in onDataChanged()
26 override fun onDataChanged(data: S) = onDataChanged(mapper(data)) in onDataChanged()
41 fun <S, T> DataSource<S>.map(mapper: (S) -> T): DataSource<T> = object : DataSource<T> { in map()
43 registerListener(listener.contraMap(mapper)) in map()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/rotation/ui/mapper/
DRotationLockTileMapperTest.kt17 package com.android.systemui.qs.tiles.impl.rotation.ui.mapper
46 private lateinit var mapper: RotationLockTileMapper variable in com.android.systemui.qs.tiles.impl.rotation.ui.mapper.RotationLockTileMapperTest
53 mapper = in setup()
75 val outputState = mapper.map(rotationLockTileConfig, inputModel) in rotationNotLocked_cameraRotationDisabled()
90 val outputState = mapper.map(rotationLockTileConfig, inputModel) in rotationNotLocked_cameraRotationEnabled()
105 val outputState = mapper.map(rotationLockTileConfig, inputModel) in rotationLocked_cameraRotationNotEnabled()
121 val outputState = mapper.map(rotationLockTileConfig, inputModel) in deviceFoldableAndClosed_secondaryLabelIsFoldableSpecific()
143 val outputState = mapper.map(rotationLockTileConfig, inputModel) in deviceFoldableAndNotClosed_secondaryLabelIsFoldableSpecific()
159 mapper.apply { in setDeviceFoldable()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/location/domain/
DLocationTileMapperTest.kt40 private val mapper by lazy { in <lambda>() constant
54 val tileState: QSTileState = mapper.map(qsTileConfig, LocationTileModel(false)) in mapsDisabledDataToInactiveState()
62 val tileState: QSTileState = mapper.map(qsTileConfig, LocationTileModel(true)) in mapsEnabledDataToActiveState()
70 val tileState: QSTileState = mapper.map(qsTileConfig, LocationTileModel(true)) in mapsEnabledDataToOnIconState()
79 val tileState: QSTileState = mapper.map(qsTileConfig, LocationTileModel(false)) in mapsDisabledDataToOffIconState()
90 val tileState: QSTileState = mapper.map(qsTileConfig, LocationTileModel(dontCare)) in supportsClickAndLongClickActions()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapperTest.kt44 private val mapper by lazy { in <lambda>() constant in com.android.systemui.qs.tiles.impl.uimodenight.domain.UiModeNightTileMapperTest
90 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in mapsEnabledDataToUnavailableStateWhenOnPowerSave()
110 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in mapsDisabledDataToUnavailableStateWhenOnPowerSave()
130 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in mapsDisabledDataToInactiveState()
148 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in mapsEnabledDataToActiveState()
167 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in mapsEnabledDataToOnIconState()
186 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in mapsDisabledDataToOffIconState()
205 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in supportsClickAndLongClickActionsWhenNotInPowerSaveInNightMode()
226 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in supportsOnlyLongClickActionWhenUnavailableInPowerSaveInNightMode()
249 val actualState: QSTileState = mapper.map(qsTileConfig, inputModel) in supportsClickAndLongClickActionsWhenNotInPowerSaveNotInNightMode()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DAuthResultCoordinator.java61 private void updateState(@Authenticators.Types int strength, IntFunction<Integer> mapper) { in updateState() argument
65 mapper.apply(mAuthenticatorState.get(Authenticators.BIOMETRIC_STRONG))); in updateState()
69 mapper.apply(mAuthenticatorState.get(Authenticators.BIOMETRIC_WEAK))); in updateState()
73 mapper.apply( in updateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPolicyModule.kt150 mapper: FlashlightMapper, in bindDndTile()
158 mapper, in bindDndTile()
186 mapper: LocationTileMapper, in bindDndTile()
194 mapper, in bindDndTile()
218 mapper: AlarmTileMapper, in bindDndTile()
226 mapper, in bindDndTile()
250 mapper: UiModeNightTileMapper, in bindDndTile()
258 mapper, in bindDndTile()
282 mapper: WorkModeTileMapper, in bindDndTile()
290 mapper, in bindDndTile()
[all …]
/frameworks/native/libs/ui/include/ui/
DGralloc2.h67 hardware::graphics::mapper::V2_1::IMapper::BufferDescriptorInfo* descriptorInfo) const;
69 sp<hardware::graphics::mapper::V2_0::IMapper> mMapper;
70 sp<hardware::graphics::mapper::V2_1::IMapper> mMapperV2_1;
77 Gralloc2Allocator(const Gralloc2Mapper& mapper);
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/qs/
DQSAccessibilityModule.kt189 mapper: ColorCorrectionTileMapper, in bindColorInversionTile()
197 mapper, in bindColorInversionTile()
220 mapper: ColorInversionTileMapper, in bindColorInversionTile()
228 mapper, in bindColorInversionTile()
251 mapper: FontScalingTileMapper, in bindColorInversionTile()
259 mapper, in bindColorInversionTile()
285 mapper: ReduceBrightColorsTileMapper, in bindColorInversionTile()
294 mapper, in bindColorInversionTile()
318 mapper: OneHandedModeTileMapper, in bindColorInversionTile()
327 mapper, in bindColorInversionTile()
[all …]

1234