Home
last modified time | relevance | path

Searched refs:mHal (Results 1 – 25 of 35) sorted by relevance

12

/hardware/interfaces/automotive/remoteaccess/vts/src/
DVtsHalAutomotiveRemoteAccess_TargetTest.cpp68 mHal = IRemoteAccess::fromBinder(SpAIBinder(AServiceManager_waitForService(name.c_str()))); in SetUp()
69 ASSERT_NE(mHal, nullptr) << "Failed to connect to remote access HAL: " << name; in SetUp()
73 if (mHal != nullptr) { in TearDown()
74 mHal->clearRemoteTaskCallback(); in TearDown()
75 mHal->unscheduleAllTasks(TEST_CLIENT_ID); in TearDown()
80 std::shared_ptr<IRemoteAccess> mHal; member in VtsHalAutomotiveRemoteAccessTargetTest
130 ScopedAStatus status = mHal->getVehicleId(&vehicleId); in TEST_P()
139 ScopedAStatus status = mHal->getWakeupServiceName(&wakeupServiceName); in TEST_P()
148 ScopedAStatus status = mHal->getProcessorId(&processorId); in TEST_P()
157 ScopedAStatus status = mHal->setRemoteTaskCallback(testCallback); in TEST_P()
[all …]
/hardware/google/graphics/common/hwc3/
DComposerClient.cpp44 mHal->unregisterEventCallback(); in ~ComposerClient()
58 auto err = mHal->createLayer(display, layer); in createLayer()
73 auto err = mHal->createVirtualDisplay(width, height, formatHint, display); in createVirtualDisplay()
83 auto err = mHal->getDisplayConfigurations(display, maxFrameIntervalNs, configs); in getDisplayConfigurations()
91 auto err = mHal->notifyExpectedPresent(display, expectedPresentTime, frameIntervalNs); in notifyExpectedPresent()
97 auto err = mHal->destroyLayer(display, layer); in destroyLayer()
106 auto err = mHal->destroyVirtualDisplay(display); in destroyVirtualDisplay()
117 ComposerCommandEngine engine(mHal, mResources.get()); in executeCommands()
135 auto err = mHal->getActiveConfig(display, config); in getActiveConfig()
142 auto err = mHal->getColorModes(display, colorModes); in getColorModes()
[all …]
DComposerCommandEngine.cpp89 auto err = mHal->flushDisplayBrightnessChange(display); in execute()
104 auto err = mHal->batchedCreateDestroyLayer(display, layerCmd.layer, cmdType); in dispatchBatchCreateDestroyLayerCommand()
184 mHal->validateDisplay(display, &changedLayers, &compositionTypes, &displayRequestMask, in executeValidateDisplayInternal()
202 auto err = mHal->setColorTransform(display, matrix); in executeSetColorTransform()
219 err = mHal->setClientTarget(display, clientTarget, command.buffer.fence, in executeSetClientTarget()
241 err = mHal->setOutputBuffer(display, outputBuffer, buffer.fence); in executeSetOutputBuffer()
255 mHal->setExpectedPresentTime(display, expectedPresentTime, frameIntervalNs); in executeSetExpectedPresentTimeInternal()
267 auto err = mHal->setDisplayBrightness(display, command.brightness); in executeSetDisplayBrightness()
292 (mHal->getHasClientComposition(display, hasClientComp) == HWC2_ERROR_NONE && in executePresentOrValidateDisplay()
308 auto err = mHal->acceptDisplayChanges(display); in executeAcceptDisplayChanges()
[all …]
DComposer.cpp36 mHal = IComposerHal::create(composerInterfaceVersion); in Composer()
37 CHECK(mHal != nullptr); in Composer()
49 auto client = ndk::SharedRefBase::make<ComposerClient>(mHal.get()); in createClient()
66 mHal->dumpDebugInfo(&output); in dump()
73 mHal->getCapabilities(caps); in getCapabilities()
DComposerCommandEngine.h32 : mHal(hal), mResources(resources) {} in ComposerCommandEngine()
104 IComposerHal* mHal; variable
115 auto err = (mHal->*func)(display, layer, *input); in dispatchLayerCommand()
/hardware/interfaces/radio/aidl/compat/libradiocompat/sap/
DSap.cpp33 Sap::Sap(sp<V1_0::ISap> hidlHal) : mHal(hidlHal), mSapCallback(sp<SapCallback>::make()) {} in Sap()
38 mHal->apduReq(serial, toHidl(type), toHidl(command)); in apduReq()
44 mHal->connectReq(serial, maxMsgSize); in connectReq()
50 mHal->disconnectReq(serial); in disconnectReq()
56 mHal->powerReq(serial, state); in powerReq()
62 mHal->resetSimReq(serial); in resetSimReq()
73 mHal->setCallback(mSapCallback).assertOk(); in setCallback()
79 mHal->setTransferProtocolReq(serial, toHidl(transferProtocol)); in setTransferProtocolReq()
85 mHal->transferAtrReq(serial); in transferAtrReq()
90 mHal->transferCardReaderStatusReq(serial); in transferCardReaderStatusReq()
/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
DComposerClient.h51 ComposerClientImpl(Hal* hal) : mHal(hal) {} in ComposerClientImpl()
61 mHal->unregisterEventCallback(); in ~ComposerClientImpl()
92 : mHal(hal), mCallback(callback), mResources(resources) {} in HalEventCallback()
101 cleanDisplayResources(display, mResources, mHal); in onHotplug()
125 Hal* const mHal;
132 mHalEventCallback = std::make_unique<HalEventCallback>(mHal, callback, mResources.get()); in registerCallback()
133 mHal->registerEventCallback(mHalEventCallback.get()); in registerCallback()
138 return mHal->getMaxVirtualDisplayCount(); in getMaxVirtualDisplayCount()
145 Error err = mHal->createVirtualDisplay(width, height, &formatHint, &display); in createVirtualDisplay()
155 Error err = mHal->destroyVirtualDisplay(display); in destroyVirtualDisplay()
[all …]
DComposerCommandEngine.h43 : mHal(hal), mResources(resources) { in ComposerCommandEngine()
156 auto err = mHal->validateDisplay(mCurrentDisplay, &changedLayers, &compositionTypes, in executeValidateDisplayInternal()
200 auto err = mHal->setColorTransform(mCurrentDisplay, matrix, transform); in executeSetColorTransform()
227 err = mHal->setClientTarget(mCurrentDisplay, clientTarget, fence, dataspace, damage); in executeSetClientTarget()
258 err = mHal->setOutputBuffer(mCurrentDisplay, outputBuffer, fence); in executeSetOutputBuffer()
287 if (mHal->hasCapability(HWC2_CAPABILITY_SKIP_VALIDATE)) { in executePresentOrValidateDisplay()
293 : mHal->presentDisplay(mCurrentDisplay, &presentFence, &layers, &fences); in executePresentOrValidateDisplay()
316 auto err = mHal->acceptDisplayChanges(mCurrentDisplay); in executeAcceptDisplayChanges()
332 auto err = mHal->presentDisplay(mCurrentDisplay, &presentFence, &layers, &fences); in executePresentDisplay()
348 auto err = mHal->setLayerCursorPosition(mCurrentDisplay, mCurrentLayer, readSigned(), in executeSetLayerCursorPosition()
[all …]
DComposer.h52 ComposerImpl(std::unique_ptr<Hal> hal) : mHal(std::move(hal)) {} in ComposerImpl()
65 if (mHal->hasCapability(static_cast<hwc2_capability_t>(cap))) { in getCapabilities()
74 if (mHal->hasCapability(HWC2_CAPABILITY_SKIP_VALIDATE)) { in getCapabilities()
85 hidl_cb(mHal->dumpDebugInfo()); in dumpDebugInfo()
136 auto client = ComposerClient::create(mHal.get()); in createClient()
147 const std::unique_ptr<Hal> mHal; variable
/hardware/interfaces/graphics/composer/2.4/utils/hal/include/composer-hal/2.4/
DComposerClient.h44 ~ComposerClientImpl() override { mHal->unregisterEventCallback_2_4(); } in ~ComposerClientImpl()
50 : mHal(hal), mCallback(callback), mResources(resources) {} in HalEventCallback()
60 display, mResources, mHal); in onHotplug()
103 Hal* const mHal;
111 std::make_unique<HalEventCallback>(mHal, callback, mResources.get()); in registerCallback_2_4()
112 mHal->registerEventCallback_2_4(mHalEventCallback_2_4.get()); in registerCallback_2_4()
119 Error error = mHal->getDisplayCapabilities_2_4(display, &capabilities); in getDisplayCapabilities_2_4()
127 Error error = mHal->getDisplayConnectionType(display, &type); in getDisplayConnectionType()
136 Error error = mHal->getDisplayAttribute_2_4(display, config, attribute, &value); in getDisplayAttribute_2_4()
144 Error error = mHal->getDisplayVsyncPeriod(display, &vsyncPeriods); in getDisplayVsyncPeriod()
[all …]
DComposerCommandEngine.h39 : BaseType2_3(hal, resources), mHal(hal) {} in ComposerCommandEngine()
61 auto err = mHal->validateDisplay_2_4(mCurrentDisplay, &changedLayers, &compositionTypes, in executeValidateDisplayInternal()
109 auto error = mHal->setLayerGenericMetadata(mCurrentDisplay, mCurrentLayer, key, mandatory, in executeSetLayerGenericMetadata()
120 ComposerHal* mHal; variable
DComposer.h55 sp<ComposerClient> client = ComposerClient::create(mHal.get()).release(); in createClient_2_4()
75 using BaseType2_1::mHal;
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/tests/
DDefaultVhalImpl_test.cpp103 mHal.reset(); in ~DefaultVhalImplTest()
113 mHal.reset(new DefaultVehicleHal(mPropStore.get(), mConnector.get())); in SetUp()
118 mHal->init(&mValueObjectPool, in initHal()
125 std::unique_ptr<DefaultVehicleHal> mHal; member in __anon1afbad060111::DefaultVhalImplTest
158 std::vector<VehiclePropConfig> configs = mHal->listProperties(); in TEST_F()
168 auto gotValue = mHal->get(value, &status); in TEST_F()
180 auto gotValue = mHal->get(value, &status); in TEST_F()
192 auto gotValue = mHal->get(value, &status); in TEST_F()
204 auto gotValue = mHal->get(value, &status); in TEST_F()
215 auto gotValue = mHal->get(value, &status); in TEST_F()
[all …]
/hardware/interfaces/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/
DComposerClient.h44 Error error = mHal->getPerFrameMetadataKeys_2_3(display, &keys); in getPerFrameMetadataKeys_2_3()
50 return mHal->setColorMode_2_3(display, mode, intent); in setColorMode_2_3()
56 Error err = mHal->getRenderIntents_2_3(display, mode, &intents); in getRenderIntents_2_3()
64 Error err = mHal->getColorModes_2_3(display, &modes); in getColorModes_2_3()
73 Error error = mHal->getReadbackBufferAttributes_2_3(display, &format, &dataspace); in getReadbackBufferAttributes_2_3()
85 mHal->getHdrCapabilities_2_3(display, &types, &max_lumi, &max_avg_lumi, &min_lumi); in getHdrCapabilities_2_3()
92 Error err = mHal->getClientTargetSupport_2_3(display, width, height, format, dataspace); in getClientTargetSupport_2_3()
99 Error error = mHal->getDisplayCapabilities(display, &capabilities); in getDisplayCapabilities()
117 Error error = mHal->getDisplayIdentificationData(display, &port, &data); in getDisplayIdentificationData()
129 mHal->getDisplayedContentSamplingAttributes(display, format, dataspace, componentMask); in getDisplayedContentSamplingAttributes()
[all …]
DComposerCommandEngine.h39 : BaseType2_2(hal, resources), mHal(hal) {} in ComposerCommandEngine()
67 auto err = mHal->setLayerColorTransform(mCurrentDisplay, mCurrentLayer, matrix); in executeSetLayerColorTransform()
101 auto err = mHal->setLayerPerFrameMetadataBlobs(mCurrentDisplay, mCurrentLayer, metadata); in executeSetLayerPerFrameMetadataBlobs()
120 ComposerHal* mHal; variable
DComposer.h55 sp<ComposerClient> client = ComposerClient::create(mHal.get()).release(); in createClient_2_3()
75 using BaseType2_1::mHal;
/hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/
DComposerClient.h54 Error error = mHal->getPerFrameMetadataKeys(display, &keys); in getPerFrameMetadataKeys()
63 Error error = mHal->getReadbackBufferAttributes(display, &format, &dataspace); in getReadbackBufferAttributes()
71 Error error = mHal->getReadbackBufferFence(display, &fenceFd); in getReadbackBufferFence()
99 return mHal->setReadbackBuffer(display, readbackBuffer, std::move(fenceFd)); in setReadbackBuffer()
106 Error err = mHal->createVirtualDisplay_2_2(width, height, &formatHint, &display); in createVirtualDisplay_2_2()
117 Error err = mHal->getClientTargetSupport_2_2(display, width, height, format, dataspace); in getClientTargetSupport_2_2()
122 return mHal->setPowerMode_2_2(display, mode); in setPowerMode_2_2()
128 Error err = mHal->getColorModes_2_2(display, &modes); in getColorModes_2_2()
136 Error err = mHal->getRenderIntents(display, mode, &intents); in getRenderIntents()
142 return mHal->setColorMode_2_2(display, mode, intent); in setColorMode_2_2()
[all …]
DComposerCommandEngine.h38 : BaseType2_1(hal, resources), mHal(hal) {} in ComposerCommandEngine()
71 auto err = mHal->setLayerPerFrameMetadata(mCurrentDisplay, mCurrentLayer, metadata); in executeSetLayerPerFrameMetadata()
84 auto err = mHal->setLayerFloatColor(mCurrentDisplay, mCurrentLayer, readFloatColor()); in executeSetLayerFloatColor()
100 ComposerHal* mHal; variable
DComposer.h48 auto client = ComposerClient::create(mHal.get()); in createClient()
61 using BaseType2_1::mHal;
/hardware/interfaces/graphics/allocator/2.0/utils/hal/include/allocator-hal/2.0/
DAllocator.h47 mHal = std::move(hal); in init()
53 hidl_cb(mHal->dumpDebugInfo()); in dumpDebugInfo()
61 Error error = mHal->allocateBuffers(descriptor, count, &stride, &buffers); in allocate()
71 mHal->freeBuffers(buffers); in allocate()
77 std::unique_ptr<Hal> mHal;
/hardware/interfaces/graphics/mapper/2.0/utils/hal/include/mapper-hal/2.0/
DMapper.h43 mHal = std::move(hal); in init()
52 Error error = mHal->createDescriptor(descriptorInfo, &descriptor); in createDescriptor()
65 Error error = mHal->importBuffer(rawHandle.getNativeHandle(), &bufferHandle); in importBuffer()
73 mHal->freeBuffer(bufferHandle); in importBuffer()
107 error = mHal->lock(bufferHandle, cpuUsage, accessRegion, std::move(fenceFd), &data); in lock()
129 error = mHal->lockYCbCr(bufferHandle, cpuUsage, accessRegion, std::move(fenceFd), &layout); in lockYCbCr()
142 Error error = mHal->unlock(bufferHandle, &fenceFd); in unlock()
160 return mHal->freeBuffer(bufferHandle); in freeImportedBuffer()
202 std::unique_ptr<Hal> mHal; variable
/hardware/interfaces/automotive/vehicle/2.0/default/tests/fuzzer/
DVehicleManager_fuzzer.h87 mHal.reset(new MockedVehicleHal); in VehicleHalManagerFuzzer()
88 mManager.reset(new VehicleHalManager(mHal.get())); in VehicleHalManagerFuzzer()
89 mObjectPool = mHal->getValuePool(); in VehicleHalManagerFuzzer()
93 mHal.reset(nullptr); in ~VehicleHalManagerFuzzer()
114 std::unique_ptr<MockedVehicleHal> mHal; variable
/hardware/interfaces/graphics/mapper/2.1/utils/hal/include/mapper-hal/2.1/
DMapper.h49 return this->mHal->validateBufferSize(bufferHandle, descriptorInfo, stride); in validateBufferSize()
61 Error error = this->mHal->getTransportSize(bufferHandle, &numFds, &numInts); in getTransportSize()
69 Error error = this->mHal->createDescriptor_2_1(descriptorInfo, &descriptor); in createDescriptor_2_1()
/hardware/interfaces/biometrics/fingerprint/aidl/default/tests/
DVirtualHalTest.cpp37 mHal = ndk::SharedRefBase::make<Fingerprint>(); in SetUp()
38 mVhal = ndk::SharedRefBase::make<VirtualHal>(mHal.get()); in SetUp()
40 mHal->resetConfigToDefault(); in SetUp()
43 void TearDown() override { mHal->resetConfigToDefault(); } in TearDown()
52 std::shared_ptr<Fingerprint> mHal; member in aidl::android::hardware::biometrics::fingerprint::VirtualHalTest
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleHalManager.cpp126 auto value = mHal->get(requestedPropValue, &status); in get()
147 auto status = mHal->set(value); in set()
190 mHal->subscribe(opt.propId, opt.sampleRate); in subscribe()
213 bool shouldContinue = mHal->dump(fd, options); in debug()
384 auto value = mHal->get(input, &status); in cmdDumpOneProperty()
403 auto status = mHal->set(prop); in cmdSetOneProperty()
424 mHal->init(&mValueObjectPool, in init()
430 auto supportedPropConfigs = mHal->listProperties(); in init()
565 mHal->unsubscribe(propertyId); in onAllClientsUnsubscribed()

12