Home
last modified time | relevance | path

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

123

/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp146 static void assertAxisResolution(MultiTouchInputMapper& mapper, int axis, float resolution) { in assertAxisResolution() argument
148 mapper.populateDeviceInfo(&info); in assertAxisResolution()
155 static void assertAxisNotPresent(MultiTouchInputMapper& mapper, int axis) { in assertAxisNotPresent() argument
157 mapper.populateDeviceInfo(&info); in assertAxisNotPresent()
1638 FakeInputMapper& mapper = device->addMapper<FakeInputMapper>(eventHubId, sources); in addDeviceWithFakeInputMapper() local
1641 return mapper; in addDeviceWithFakeInputMapper()
1748 FakeInputMapper& mapper = in TEST_F() local
1751 mapper.setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
1780 FakeInputMapper& mapper = addDeviceWithFakeInputMapper(deviceId, eventHubId, "keyboard", in TEST_F() local
1783 mapper.addKeyCodeMapping(AKEYCODE_Y, AKEYCODE_Z); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/reader/
DAndroid.bp29 "mapper",
30 "mapper/accumulator",
40 "mapper/accumulator/CursorButtonAccumulator.cpp",
41 "mapper/accumulator/CursorScrollAccumulator.cpp",
42 "mapper/accumulator/SingleTouchMotionAccumulator.cpp",
43 "mapper/accumulator/TouchButtonAccumulator.cpp",
44 "mapper/CursorInputMapper.cpp",
45 "mapper/ExternalStylusInputMapper.cpp",
46 "mapper/InputMapper.cpp",
47 "mapper/JoystickInputMapper.cpp",
[all …]
DInputDevice.cpp139 for_each_mapper([&dump](InputMapper& mapper) { mapper.dump(dump); }); in dump() argument
360 for_each_mapper([this, when, config, changes](InputMapper& mapper) { in configure() argument
361 mapper.configure(when, config, changes); in configure()
362 mSources |= mapper.getSources(); in configure()
374 for_each_mapper([when](InputMapper& mapper) { mapper.reset(when); }); in reset() argument
410 for_each_mapper_in_subdevice(rawEvent->deviceId, [rawEvent](InputMapper& mapper) { in process() argument
411 mapper.process(rawEvent); in process()
419 for_each_mapper([when](InputMapper& mapper) { mapper.timeoutExpired(when); }); in timeoutExpired() argument
423 for_each_mapper([state](InputMapper& mapper) { mapper.updateExternalStylusState(state); }); in updateExternalStylusState() argument
431 [&outDeviceInfo](InputMapper& mapper) { mapper.populateDeviceInfo(&outDeviceInfo); }); in getDeviceInfo() argument
[all …]
/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/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()
185 mapper.scaleCoordinates(coords.data(), coords.size()/2, 1.0f, false /*clamp*/, width, height); in subScaleCoordinatesTest()
202 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, false /*clamp*/, width, height); in subScaleCoordinatesTest()
219 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, true /*clamp*/, width, height); in subScaleCoordinatesTest()
236 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, true /*clamp*/, width, height); in subScaleCoordinatesTest()
253 mapper.scaleCoordinates(coords.data(), coords.size()/2, 1.0f/3, false /*clamp*/, width, height); in subScaleCoordinatesTest()
266 ZoomRatioMapper mapper; in subCropOverMaxDigitalZoomTest() local
268 res = setupTestMapper(&mapper, 4.0/*maxDigitalZoom*/, in subCropOverMaxDigitalZoomTest()
279 res = mapper.updateCaptureRequest(&metadata); in subCropOverMaxDigitalZoomTest()
[all …]
DRotateAndCropMapperTest.cpp84 RotateAndCropMapper mapper(&deviceInfo); in TEST() local
99 res = mapper.updateCaptureRequest(&request); in TEST()
118 res = mapper.updateCaptureResult(&result); in TEST()
137 RotateAndCropMapper mapper(&deviceInfo); in TEST() local
152 res = mapper.updateCaptureRequest(&request); in TEST()
193 res = mapper.updateCaptureResult(&result); in TEST()
229 RotateAndCropMapper mapper(&deviceInfo); in TEST() local
244 res = mapper.updateCaptureRequest(&request); in TEST()
285 res = mapper.updateCaptureResult(&result); in TEST()
320 RotateAndCropMapper mapper(&deviceInfo); in TEST() local
[all …]
/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/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);
DGralloc3.h69 hardware::graphics::mapper::V3_0::IMapper::BufferDescriptorInfo* descriptorInfo) const;
71 sp<hardware::graphics::mapper::V3_0::IMapper> mMapper;
78 Gralloc3Allocator(const Gralloc3Mapper& mapper);
DGralloc4.h160 std::vector<android::hardware::graphics::mapper::V4_0::IMapper::MetadataTypeDescription>
174 const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType& metadataType,
180 const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType& metadataType,
187 const android::hardware::graphics::mapper::V4_0::IMapper::MetadataType& metadataType,
192 const android::hardware::graphics::mapper::V4_0::IMapper::BufferDump& bufferDump,
196 const android::hardware::graphics::mapper::V4_0::IMapper::BufferDump& bufferDump,
199 sp<hardware::graphics::mapper::V4_0::IMapper> mMapper;
206 Gralloc4Allocator(const Gralloc4Mapper& mapper);
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DAndroid.bp27 "android.hardware.graphics.mapper@2.0",
28 "android.hardware.graphics.mapper@3.0",
29 "android.hardware.graphics.mapper@4.0",
/frameworks/native/libs/ui/
DGralloc2.cpp33 using android::hardware::graphics::mapper::V2_0::BufferDescriptor;
34 using android::hardware::graphics::mapper::V2_0::Error;
35 using android::hardware::graphics::mapper::V2_0::YCbCrLayout;
36 using android::hardware::graphics::mapper::V2_1::IMapper;
80 android::hardware::preloadPassthroughService<hardware::graphics::mapper::V2_0::IMapper>(); in preload()
84 mMapper = hardware::graphics::mapper::V2_0::IMapper::getService(); in Gralloc2Mapper()
151 const hardware::graphics::mapper::V2_0::IMapper::BufferDescriptorInfo info = { in createDescriptor()
363 Gralloc2Allocator::Gralloc2Allocator(const Gralloc2Mapper& mapper) : mMapper(mapper) { in Gralloc2Allocator() argument
DAndroid.bp172 "android.hardware.graphics.mapper@2.0",
173 "android.hardware.graphics.mapper@2.1",
174 "android.hardware.graphics.mapper@3.0",
175 "android.hardware.graphics.mapper@4.0",
189 "android.hardware.graphics.mapper@4.0",
DGralloc3.cpp32 using android::hardware::graphics::mapper::V3_0::BufferDescriptor;
33 using android::hardware::graphics::mapper::V3_0::Error;
34 using android::hardware::graphics::mapper::V3_0::IMapper;
35 using android::hardware::graphics::mapper::V3_0::YCbCrLayout;
352 Gralloc3Allocator::Gralloc3Allocator(const Gralloc3Mapper& mapper) : mMapper(mapper) { in Gralloc3Allocator() argument
/frameworks/native/services/surfaceflinger/fuzzer/
DAndroid.bp52 "android.hardware.graphics.mapper@2.0",
53 "android.hardware.graphics.mapper@3.0",
54 "android.hardware.graphics.mapper@4.0",
/frameworks/base/services/core/java/com/android/server/signedconfig/
DSignedConfig.java170 Map<String, String> mapper = keyValueMappers.get(key); in parsePerSdkConfig() local
171 if (!mapper.containsKey(value)) { in parsePerSdkConfig()
175 value = mapper.get(value); in parsePerSdkConfig()
/frameworks/native/services/vr/hardware_composer/
DAndroid.bp31 "android.hardware.graphics.mapper@2.0",
32 "android.hardware.graphics.mapper@3.0",
33 "android.hardware.graphics.mapper@4.0",
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp1012 using Error4 = ::android::hardware::graphics::mapper::V4_0::Error;
1013 using IMapper4 = ::android::hardware::graphics::mapper::V4_0::IMapper;
1025 sp<IMapper4> mapper = GetMapper4(); in Gralloc4Buffer() local
1026 if (!mapper) { in Gralloc4Buffer()
1036 mapper->importBuffer( in Gralloc4Buffer()
1051 sp<IMapper4> mapper = GetMapper4(); in ~Gralloc4Buffer() local
1052 if (mapper && mBuffer) { in ~Gralloc4Buffer()
1055 mapper->freeBuffer(mBuffer); in ~Gralloc4Buffer()
1072 sp<IMapper4> mapper = GetMapper4(); in GetHdrMetadataFromGralloc4Handle() local
1074 if (!mapper || !buffer) { in GetHdrMetadataFromGralloc4Handle()
[all …]
DCodec2InfoBuilder.cpp99 std::shared_ptr<C2Mapper::ProfileLevelMapper> mapper = in addSupportedProfileLevels() local
192 if (mapper && mapper->mapProfile(pl.profile, &sdkProfile) in addSupportedProfileLevels()
193 && mapper->mapLevel(pl.level, &sdkLevel)) { in addSupportedProfileLevels()
215 } else if (!mapper) { in addSupportedProfileLevels()
234 && mapper in addSupportedProfileLevels()
235 && mapper->mapProfile(pl.profile, &sdkProfile) in addSupportedProfileLevels()
236 && mapper->mapLevel(nextLevel, &sdkLevel)) { in addSupportedProfileLevels()
DCCodecConfig.cpp104 ConfigMapper &withMapper(Mapper mapper) { in withMapper()
107 mMapper = mapper; in withMapper()
112 ConfigMapper &withMappers(Mapper mapper, Mapper reverse) { in withMappers()
115 mMapper = mapper; in withMappers()
180 Mapper mapper() const { return mMapper; } in mapper() function
729 std::shared_ptr<C2Mapper::ProfileLevelMapper> mapper = in initializeStandardParams() local
734 .withMappers([mapper](C2Value v) -> C2Value { in initializeStandardParams()
737 if (mapper && v.get(&sdk) && mapper->mapProfile(sdk, &c2)) { in initializeStandardParams()
741 }, [mapper](C2Value v) -> C2Value { in initializeStandardParams()
745 if (mapper && v.get((C2ValueType*)&c2) && mapper->mapProfile(c2, &sdk)) { in initializeStandardParams()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsFeatureBinderRepository.java417 UpdateMapper mapper = mFeatures.stream() in getUpdateMapper() local
420 if (mapper == null) { in getUpdateMapper()
421 mapper = new UpdateMapper(phoneId, type); in getUpdateMapper()
422 mFeatures.add(mapper); in getUpdateMapper()
424 return mapper; in getUpdateMapper()
/frameworks/native/libs/gralloc/types/
DAndroid.bp55 "android.hardware.graphics.mapper@4.0",
62 "android.hardware.graphics.mapper@4.0",
/frameworks/base/services/core/java/com/android/server/am/
DSettingsToPropertiesMapper.java170 SettingsToPropertiesMapper mapper = new SettingsToPropertiesMapper( in start() local
172 mapper.updatePropertiesFromSettings(); in start()
173 return mapper; in start()
/frameworks/native/libs/gralloc/types/fuzzer/
Dgralloctypes.h24 using GrallocTypesVendorHelperDecode = std::function<void(const android::hardware::graphics::mapper

123