Home
last modified time | relevance | path

Searched refs:mMapper (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp61 mMapper = std::make_unique<const Gralloc5Mapper>(); in GraphicBufferMapper()
62 if (mMapper->isLoaded()) { in GraphicBufferMapper()
66 mMapper = std::make_unique<const Gralloc4Mapper>(); in GraphicBufferMapper()
67 if (mMapper->isLoaded()) { in GraphicBufferMapper()
71 mMapper = std::make_unique<const Gralloc3Mapper>(); in GraphicBufferMapper()
72 if (mMapper->isLoaded()) { in GraphicBufferMapper()
76 mMapper = std::make_unique<const Gralloc2Mapper>(); in GraphicBufferMapper()
77 if (mMapper->isLoaded()) { in GraphicBufferMapper()
87 result.append(mMapper->dumpBuffer(bufferHandle, less)); in dumpBuffer()
103 status_t error = mMapper->importBuffer(rawHandle, &bufferHandle); in importBuffer()
[all …]
DGralloc5.cpp180 Gralloc5Allocator::Gralloc5Allocator(const Gralloc5Mapper &mapper) : mMapper(mapper) { in Gralloc5Allocator()
222 return mMapper.dumpBuffers(less); in dumpDebugInfo()
283 auto error = mMapper.importBuffer(handle, &ret.handle); in allocate()
314 mMapper = getInstance().mapper; in Gralloc5Mapper()
318 return mMapper != nullptr && mMapper->version >= AIMAPPER_VERSION_5; in isLoaded()
451 AIMapper_Error error = mMapper->v5.dumpBuffer(bufferHandle, dumpBuffer, &bufferInfo); in dumpBuffer()
502 AIMapper_Error error = mMapper->v5.dumpAllBuffers(beginCallback, dumpBuffer, &context); in dumpBuffers()
524 return mMapper->v5.importBuffer(rawHandle, outBufferHandle); in importBuffer()
528 mMapper->v5.freeBuffer(bufferHandle); in freeBuffer()
536 auto value = getStandardMetadata<StandardMetadataType::WIDTH>(mMapper, bufferHandle); in validateBufferSize()
[all …]
DGralloc3.cpp81 mMapper = IMapper::getService(); in Gralloc3Mapper()
82 if (mMapper == nullptr) { in Gralloc3Mapper()
86 if (mMapper->isRemote()) { in Gralloc3Mapper()
92 return mMapper != nullptr; in isLoaded()
136 hardware::Return<void> ret = mMapper->createDescriptor(*descriptorInfo, hidl_cb); in createDescriptor()
144 auto ret = mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer()
157 auto ret = mMapper->freeBuffer(buffer); in freeBuffer()
171 auto ret = mMapper->validateBufferSize(buffer, descriptorInfo, stride); in validateBufferSize()
183 auto ret = mMapper->getTransportSize(buffer, in getTransportSize()
216 auto ret = mMapper->lock(buffer, usage, accessRegion, acquireFenceHandle, in lock()
[all …]
DGralloc2.cpp84 mMapper = hardware::graphics::mapper::V2_0::IMapper::getService(); in Gralloc2Mapper()
85 if (mMapper == nullptr) { in Gralloc2Mapper()
89 if (mMapper->isRemote()) { in Gralloc2Mapper()
94 mMapperV2_1 = IMapper::castFrom(mMapper); in Gralloc2Mapper()
98 return mMapper != nullptr; in isLoaded()
158 ret = mMapper->createDescriptor(info, hidl_cb); in createDescriptor()
167 auto ret = mMapper->importBuffer(rawHandle, in importBuffer()
183 auto ret = mMapper->freeBuffer(buffer); in freeBuffer()
261 auto ret = mMapper->lock(buffer, usage, accessRegion, acquireFenceHandle, in lock()
301 auto ret = mMapper->lockYCbCr(buffer, usage, accessRegion, in lock()
[all …]
DGraphicBufferAllocator.cpp51 GraphicBufferAllocator::GraphicBufferAllocator() : mMapper(GraphicBufferMapper::getInstance()) { in GraphicBufferAllocator()
52 switch (mMapper.getMapperVersion()) { in GraphicBufferAllocator()
55 reinterpret_cast<const Gralloc5Mapper&>(mMapper.getGrallocMapper())); in GraphicBufferAllocator()
59 reinterpret_cast<const Gralloc4Mapper&>(mMapper.getGrallocMapper())); in GraphicBufferAllocator()
63 reinterpret_cast<const Gralloc3Mapper&>(mMapper.getGrallocMapper())); in GraphicBufferAllocator()
67 reinterpret_cast<const Gralloc2Mapper&>(mMapper.getGrallocMapper())); in GraphicBufferAllocator()
72 mMapper.getMapperVersion()); in GraphicBufferAllocator()
142 (int)mMapper.getMapperVersion()); in allocate()
285 mMapper.freeBuffer(handle); in free()
DGralloc4.cpp162 mMapper = IMapper::getService(); in Gralloc4Mapper()
163 if (mMapper == nullptr) { in Gralloc4Mapper()
167 if (mMapper->isRemote()) { in Gralloc4Mapper()
173 return mMapper != nullptr; in isLoaded()
196 hardware::Return<void> ret = mMapper->createDescriptor(*descriptorInfo, hidl_cb); in createDescriptor()
204 auto ret = mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer()
217 auto ret = mMapper->freeBuffer(buffer); in freeBuffer()
234 auto ret = mMapper->validateBufferSize(buffer, descriptorInfo, stride); in validateBufferSize()
246 auto ret = mMapper->getTransportSize(buffer, in getTransportSize()
282 auto ret = mMapper->lock(buffer, usage, accessRegion, acquireFenceHandle, in lock()
[all …]
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp908 mMapper = std::make_unique<Hal2AidlMapper>("test", mModule); in SetUp()
909 ASSERT_EQ(OK, mMapper->initialize()); in SetUp()
914 ASSERT_EQ(OK, mMapper->setDevicePortConnectedState(mConnectedPort, true /*connected*/)); in SetUp()
917 auto mapperAccessor = std::make_unique<LockedAccessor<Hal2AidlMapper>>(*mMapper, mutex); in SetUp()
926 mMapper->prepareToOpenStream( in SetUp()
934 mMapper->addStream(mStream, mMixPortConfig.id, mPatch.id); in SetUp()
936 ASSERT_EQ(OK, mMapper->findPortConfig(mConnectedPort.ext.get<AudioPortExt::device>().device, in SetUp()
946 mMapper.reset(); in TearDown()
958 ASSERT_EQ(OK, mMapper->setDevicePortConnectedState(mConnectedPort, true /*connected*/)); in ConnectAnotherDevice()
963 auto mapperAccessor = std::make_unique<LockedAccessor<Hal2AidlMapper>>(*mMapper, mutex); in CreateFwkPatch()
[all …]
/frameworks/native/services/inputflinger/tests/
DCursorInputMapper_test.cpp161 mMapper = createInputMapper<CursorInputMapper>(*mDeviceContext, mReaderConfiguration); in createMapper()
169 mMapper->reconfigure(ARBITRARY_TIME, mReaderConfiguration, in setPointerCapture()
205 ASSERT_EQ(AINPUT_SOURCE_MOUSE, mMapper->getSources()); in TEST_F()
212 ASSERT_EQ(AINPUT_SOURCE_TRACKBALL, mMapper->getSources()); in TEST_F()
341 mMapper->populateDeviceInfo(info); in TEST_F()
540 mMapper = createInputMapper<CursorInputMapper>(deviceContext, mReaderConfiguration); in TEST_F()
558 mMapper = createInputMapper<CursorInputMapper>(deviceContext, mReaderConfiguration); in TEST_F()
571 mMapper->reconfigure(ARBITRARY_TIME, mReaderConfiguration, in TEST_F()
583 args = mMapper->reconfigure(ARBITRARY_TIME, mReaderConfiguration, in TEST_F()
595 args = mMapper->reconfigure(ARBITRARY_TIME, mReaderConfiguration, in TEST_F()
[all …]
DTouchpadInputMapper_test.cpp116 mMapper = createInputMapper<TouchpadInputMapper>(*mDeviceContext, mReaderConfiguration); in SetUp()
133 args += mMapper->reconfigure(systemTime(SYSTEM_TIME_MONOTONIC), mReaderConfiguration, in TEST_F()
DMultiTouchInputMapper_test.cpp116 mMapper = createInputMapper<MultiTouchInputMapper>(*mDeviceContext, in SetUp()
225 args = mMapper->reset(systemTime(SYSTEM_TIME_MONOTONIC)); in TEST_F()
DKeyboardInputMapper_test.cpp69 mMapper = createInputMapper<KeyboardInputMapper>(*mDeviceContext, mReaderConfiguration, in SetUp()
DInputMapperTest.cpp103 event.deviceId = mMapper->getDeviceContext().getEventHubId(); in process()
107 return mMapper->process(event); in process()
DInputMapperTest.h73 std::unique_ptr<InputMapper> mMapper; variable
/frameworks/av/media/libaudiohal/impl/
DDeviceHalAidl.cpp113 mMapper(instance, module), mMapperAccessor(mMapper, mLock) { in DeviceHalAidl()
118 return mMapper.getAudioPorts(ports, ndk2cpp_AudioPort); in getAudioPorts()
123 return mMapper.getAudioRoutes(routes, ndk2cpp_AudioRoute); in getAudioRoutes()
153 return mMapper.initialize(); in initCheck()
297 RETURN_STATUS_IF_ERROR(mMapper.prepareToOpenStream( in getInputBufferSize()
452 RETURN_STATUS_IF_ERROR(mMapper.prepareToOpenStream(aidlHandle, aidlDevice, aidlFlags, in openOutputStream()
493 mMapper.addStream(*outStream, mixPortConfig.id, aidlPatch.id); in openOutputStream()
535 RETURN_STATUS_IF_ERROR(mMapper.prepareToOpenStream( in openInputStream()
565 mMapper.addStream(*inStream, mixPortConfig.id, aidlPatch.id); in openInputStream()
629 if (int32_t aidlHalPatchId = mMapper.findFwkPatch(aidlPatchId); aidlHalPatchId != 0) { in createAudioPatch()
[all …]
DDeviceHalAidl.h248 Hal2AidlMapper mMapper GUARDED_BY(mLock);
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionProtoParser.h45 : mMapper(std::move(provider)) {} in TransactionProtoParser()
57 std::unique_ptr<FlingerDataMapper> mMapper; variable
/frameworks/native/libs/ui/include/ui/
DGralloc3.h71 sp<hardware::graphics::mapper::V3_0::IMapper> mMapper; variable
89 const Gralloc3Mapper& mMapper;
DGralloc2.h69 sp<hardware::graphics::mapper::V2_0::IMapper> mMapper; variable
88 const Gralloc2Mapper& mMapper;
DGralloc5.h162 AIMapper *mMapper = nullptr; variable
184 const Gralloc5Mapper &mMapper;
DGraphicBufferMapper.h174 return reinterpret_cast<const GrallocMapper&>(*mMapper); in getGrallocMapper()
184 std::unique_ptr<const GrallocMapper> mMapper; variable
DGralloc4.h163 sp<hardware::graphics::mapper::V4_0::IMapper> mMapper; variable
181 const Gralloc4Mapper& mMapper;
DGraphicBufferAllocator.h135 GraphicBufferMapper& mMapper; variable
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBufferMapper.h174 return reinterpret_cast<const GrallocMapper&>(*mMapper); in getGrallocMapper()
184 std::unique_ptr<const GrallocMapper> mMapper; variable
DGraphicBufferAllocator.h135 GraphicBufferMapper& mMapper; variable
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.cpp107 C2_CHECK(!mMapper); in withMapper()
109 mMapper = mapper; in withMapper()
115 C2_CHECK(!mMapper); in withMappers()
117 mMapper = mapper; in withMappers()
125 C2_CHECK(!mMapper); in withC2Mappers()
127 mMapper = [](C2Value v) -> C2Value { in withC2Mappers()
163 if (value.type() != C2Value::NO_INIT && mMapper) { in mapFromMessage()
164 value = mMapper(value); in mapFromMessage()
182 Mapper mapper() const { return mMapper; } in mapper()
190 Mapper mMapper; ///< optional SDK => Codec 2.0 value mapper member

12