/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | BaseSensorObject.cpp | 26 BaseSensorObject::BaseSensorObject() : mCallback(nullptr) { in BaseSensorObject() 30 if (mCallback != nullptr) { in setEventCallback() 33 mCallback = callback; in setEventCallback() 52 if (mCallback) { in generateEvent() 53 mCallback->submitEvent(SP_THIS, e); in generateEvent()
|
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/ |
D | IHalProxyCallbackWrapper.h | 56 HalProxyCallbackWrapperBase(sp<T> callback) : mCallback(callback){}; in HalProxyCallbackWrapperBase() 59 return mCallback->onDynamicSensorsDisconnected(sensorHandles); in onDynamicSensorsDisconnected() 63 return mCallback->createScopedWakelock(lock); in createScopedWakelock() 67 sp<T> mCallback; 77 return mCallback->onDynamicSensorsConnected( in onDynamicSensorsConnected() 82 return mCallback->postEvents(V2_1::implementation::convertToOldEvents(events), in postEvents() 94 return mCallback->onDynamicSensorsConnected_2_1(sensorInfos); in onDynamicSensorsConnected() 98 return mCallback->postEvents(events, std::move(wakelock)); in postEvents()
|
/hardware/interfaces/broadcastradio/1.0/default/ |
D | Tuner.cpp | 39 if (mCallback != 0) { in onCallback() 43 mCallback->configChange(Utils::convertHalResult(halEvent->status), config); in onCallback() 46 mCallback->antennaStateChange(halEvent->on); in onCallback() 50 mCallback->tuneComplete(Utils::convertHalResult(halEvent->status), info); in onCallback() 57 mCallback->newMetadata(channel, sub_channel, metadata); in onCallback() 61 mCallback->trafficAnnouncement(halEvent->on); in onCallback() 65 mCallback->afSwitch(info); in onCallback() 68 mCallback->emergencyAnnouncement(halEvent->on); in onCallback() 72 mCallback->hardwareFailure(); in onCallback() 88 : mHalTuner(NULL), mCallback(callback), mParentDevice(parentDevice) in Tuner()
|
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/ |
D | SensorsHidlEnvironmentBase.h | 69 mCallback = callback; in registerCallback() 74 mCallback = nullptr; in unregisterCallback() 79 : mCollectionEnabled(false), mCallback(nullptr) { in SensorsHidlEnvironmentBase() 90 if (mCallback != nullptr) { in addEvent() 91 mCallback->onEvent(ev); in addEvent() 105 IEventCallback<Event>* mCallback; variable
|
/hardware/interfaces/biometrics/fingerprint/2.2/vts/functional/ |
D | VtsHalBiometricsFingerprintV2_2TargetTest.cpp | 92 mCallback = new FingerprintCallback(); in SetUp() 93 mCallback->SetWaitTimeoutDefault(kTimeout); in SetUp() 94 Return<uint64_t> ret1 = mService->setNotify(mCallback); in SetUp() 122 sp<FingerprintCallback> mCallback; member in __anon641779d10111::FingerprintHidlTest 130 mCallback->SetWaitTimeoutDefault(kTimeout); in TEST_P() 131 mCallback->onAcquired_2_2(0 /* deviceId */, hidl_interface_2_2::FingerprintAcquiredInfo::START, in TEST_P() 133 auto res = mCallback->WaitForCallback(kCallbackNameOnAcquired); in TEST_P()
|
/hardware/interfaces/automotive/audiocontrol/2.0/default/ |
D | CloseHandle.cpp | 21 CloseHandle::CloseHandle(Callback callback) : mCallback(callback) {} in CloseHandle() 31 if (mCallback) mCallback(); in close()
|
/hardware/interfaces/automotive/can/1.0/default/ |
D | CloseHandle.cpp | 21 CloseHandle::CloseHandle(Callback callback) : mCallback(callback) {} in CloseHandle() 31 if (mCallback != nullptr) mCallback(); in close()
|
/hardware/interfaces/nfc/1.0/default/ |
D | Nfc.cpp | 15 sp<INfcClientCallback> Nfc::mCallback = nullptr; member in android::hardware::nfc::V1_0::implementation::Nfc 21 mCallback = clientCallback; in open() 23 if (mDevice == nullptr || mCallback == nullptr) { in open() 26 mCallback->linkToDeath(this, 0 /*cookie*/); in open() 56 if (mDevice == nullptr || mCallback == nullptr) { in close() 59 mCallback->unlinkToDeath(this); in close()
|
D | Nfc.h | 34 if (mCallback != nullptr) { in eventCallback() 35 auto ret = mCallback->sendEvent((::android::hardware::nfc::V1_0::NfcEvent)event, in eventCallback() 45 if (mCallback != nullptr) { in dataCallback() 46 auto ret = mCallback->sendData(data); in dataCallback() 59 static sp<INfcClientCallback> mCallback;
|
/hardware/interfaces/tv/tuner/1.0/default/ |
D | Frontend.cpp | 35 mCallback = nullptr; in Frontend() 43 mCallback = nullptr; in close() 56 mCallback = callback; in setCallback() 62 if (mCallback == nullptr) { in tune() 68 mCallback->onEvent(FrontendEventType::LOCKED); in tune() 88 mCallback->onScanMessage(FrontendScanMessageType::LOCKED, msg); in scan() 100 mCallback->onScanMessage(FrontendScanMessageType::END, msg); in scan() 109 mCallback->onScanMessage(FrontendScanMessageType::FREQUENCY, msg); in scan() 111 mCallback->onScanMessage(FrontendScanMessageType::LOCKED, msg); in scan()
|
/hardware/interfaces/automotive/occupant_awareness/aidl/mock/ |
D | OccupantAwareness.cpp | 44 if (mCallback) { in startDetection() 45 mCallback->onSystemStatusChanged(kAllCapabilities, mStatus); in startDetection() 60 if (mCallback) { in stopDetection() 61 mCallback->onSystemStatusChanged(kAllCapabilities, mStatus); in stopDetection() 119 mCallback = callback; in setCallback() 162 if (mCallback != nullptr) { in workerThreadFunction() 163 mCallback->onDetectionEvent(mLatestDetections); in workerThreadFunction()
|
/hardware/interfaces/sensors/2.1/default/ |
D | SensorsV2_1.h | 37 ISensorsCallbackWrapper(const sp<V2_1::ISensorsCallback>& callback) : mCallback(callback) {} in ISensorsCallbackWrapper() 40 return mCallback->onDynamicSensorsConnected_2_1(convertToNewSensorInfos(sensorInfos)); in onDynamicSensorsConnected() 44 return mCallback->onDynamicSensorsDisconnected(sensorHandles); in onDynamicSensorsDisconnected() 48 sp<V2_1::ISensorsCallback> mCallback;
|
/hardware/interfaces/automotive/occupant_awareness/aidl/default/ |
D | OccupantAwareness.cpp | 36 if (mCallback) { in startDetection() 37 mCallback->onSystemStatusChanged(kAllCapabilities, in startDetection() 49 if (mCallback) { in stopDetection() 50 mCallback->onSystemStatusChanged(kAllCapabilities, in stopDetection() 91 mCallback = callback; in setCallback()
|
/hardware/interfaces/tv/cec/1.0/default/ |
D | HdmiCecMock.cpp | 85 if (mCallback != nullptr) { in setCallback() 86 mCallback = nullptr; in setCallback() 90 mCallback = callback; in setCallback() 91 mCallback->linkToDeath(this, 0 /*cookie*/); in setCallback() 230 if (mCallback != nullptr) { in handleHotplugMessage() 231 mCallback->onHotplugEvent(hotplugEvent); in handleHotplugMessage() 253 if (mCallback != nullptr) { in handleCecMessage() 254 mCallback->onCecMessage(message); in handleCecMessage() 302 mCallback = nullptr; in HdmiCecMock()
|
/hardware/interfaces/sensors/common/default/2.X/multihal/include/ |
D | HalProxyCallback.h | 86 : mCallback(callback), mRefCounter(refCounter), mSubHalIndex(subHalIndex) {} in HalProxyCallbackBase() 94 ISubHalCallback* mCallback; 113 return mCallback->onDynamicSensorsConnected( in onDynamicSensorsConnected() 119 return mCallback->onDynamicSensorsDisconnected(dynamicSensorHandlesRemoved, mSubHalIndex); in onDynamicSensorsDisconnected() 143 return mCallback->onDynamicSensorsConnected(dynamicSensorsAdded, mSubHalIndex); in onDynamicSensorsConnected_2_1() 154 return mCallback->onDynamicSensorsDisconnected(dynamicSensorHandlesRemoved, mSubHalIndex); in onDynamicSensorsDisconnected()
|
/hardware/libhardware/tests/input/evdev/ |
D | InputHub_test.cpp | 77 mCallback = std::make_shared<TestInputCallback>(); in SetUp() 78 mInputHub = std::make_shared<InputHub>(mCallback); in SetUp() 81 std::shared_ptr<TestInputCallback> mCallback; member in android::tests::InputHubTest 100 mCallback->setDeviceAddedCallback( in TEST_F() 135 mCallback->setDeviceAddedCallback( in TEST_F() 139 mCallback->setDeviceRemovedCallback( in TEST_F() 181 mCallback->setInputCallback( in TEST_F() 211 mCallback->setInputCallback( in TEST_F() 219 mCallback->setDeviceRemovedCallback( in TEST_F()
|
/hardware/interfaces/graphics/composer/2.4/utils/hal/include/composer-hal/2.4/ |
D | ComposerClient.h | 50 : mCallback(callback), mResources(resources) {} in HalEventCallback() 59 auto ret = mCallback->onHotplug(display, connected); in onHotplug() 65 auto ret = mCallback->onRefresh(display); in onRefresh() 70 auto ret = mCallback->onVsync(display, timestamp); in onVsync() 76 auto ret = mCallback->onVsync_2_4(display, timestamp, vsyncPeriodNanos); in onVsync_2_4() 82 auto ret = mCallback->onVsyncPeriodTimingChanged(display, updatedTimeline); in onVsyncPeriodTimingChanged() 88 auto ret = mCallback->onSeamlessPossible(display); in onSeamlessPossible() 94 const sp<IComposerCallback> mCallback;
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCameraThermalAdapter.cpp | 56 mCallback(NULL), in QCameraThermalAdapter() 96 mCallback = thermalCb; in init() 148 mCallback = NULL; in deinit() 160 QCameraThermalCallback *mcb = getInstance().mCallback; in thermalCallback()
|
/hardware/interfaces/usb/1.0/default/ |
D | Usb.cpp | 102 mCallback->notifyRoleSwitchStatus(portName, newRole, in switchRole() 111 Return<void> ret = mCallback->notifyRoleSwitchStatus(portName, newRole, Status::ERROR); in switchRole() 307 Return<void> ret = mCallback->notifyPortStatusChange(currentPortStatus, in queryPortStatus() 337 if (payload->usb->mCallback != NULL) { in uevent_event() 341 payload->usb->mCallback->notifyPortStatusChange(currentPortStatus, status); in uevent_event() 427 if ((mCallback == NULL && callback == NULL) || in setCallback() 428 (mCallback != NULL && callback != NULL)) { in setCallback() 429 mCallback = callback; in setCallback() 434 mCallback = callback; in setCallback() 437 if (mCallback == NULL) { in setCallback() [all …]
|
/hardware/interfaces/soundtrigger/2.1/vts/functional/ |
D | VtsHalSoundtriggerV2_1TargetTest.cpp | 103 mCallback = new SoundTriggerHwCallback(*this); in SetUp() 104 ASSERT_NE(nullptr, mCallback.get()); in SetUp() 171 sp<SoundTriggerHwCallback> mCallback; member in SoundTriggerHidlTest 192 hidlReturn = mSoundTriggerHal->loadPhraseSoundModel_2_1(model, mCallback, 0, in TEST_P() 217 mSoundTriggerHal->loadSoundModel(model, mCallback, 0, [&](int32_t retval, auto res) { in TEST_P() 241 mSoundTriggerHal->loadSoundModel_2_1(model, mCallback, 0, [&](int32_t retval, auto res) { in TEST_P() 280 mSoundTriggerHal->loadSoundModel_2_1(model, mCallback, 0, [&](int32_t retval, auto res) { in TEST_P() 314 hidlReturn = mSoundTriggerHal->startRecognition_2_1(handle, config, mCallback, 0); in TEST_P()
|
/hardware/interfaces/sensors/common/default/2.X/multihal/ |
D | HalProxyCallback.cpp | 43 if (events.empty() || !mCallback->areThreadsRunning()) return; in postEvents() 57 mCallback->postEventsToMessageQueue(processedEvents, numWakeupEvents, std::move(wakelock)); in postEvents() 72 const V2_1::SensorInfo& sensor = mCallback->getSensorInfo(event.sensorHandle); in processEvents()
|
/hardware/interfaces/broadcastradio/1.1/vts/functional/ |
D | VtsHalBroadcastradioV1_1TargetTest.cpp | 113 sp<TunerCallbackMock> mCallback = new TunerCallbackMock(); member in android::hardware::broadcastradio::V1_1::vts::BroadcastRadioHalTest 167 clearAndWait(mCallback, 1s); in TearDown() 174 EXPECT_TIMEOUT_CALL(*mCallback, configChange, Result::OK, _); in openTuner() 184 auto hidlResult = mRadioModule->openTuner(getBand(0), true, mCallback, openCb); in openTuner() 190 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, configChange, kConfigTimeout); in openTuner() 230 EXPECT_TIMEOUT_CALL(*mCallback, configChange, Result::OK, _) in nextBand() 234 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, configChange, kConfigTimeout); in nextBand() 253 EXPECT_TIMEOUT_CALL(*mCallback, backgroundScanComplete, ProgramListResult::OK) in getProgramList() 265 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, backgroundScanComplete, kFullScanTimeout); in getProgramList() 329 EXPECT_CALL(*mCallback, tuneComplete(_, _)).Times(0); in TEST_P() [all …]
|
/hardware/interfaces/soundtrigger/2.0/vts/functional/ |
D | VtsHalSoundtriggerV2_0TargetTest.cpp | 95 mCallback = new SoundTriggerHwCallback(*this); in SetUp() 96 ASSERT_NE(nullptr, mCallback.get()); in SetUp() 142 sp<SoundTriggerHwCallback> mCallback; member in SoundTriggerHidlTest 191 mCallback, 0, [&](int32_t retval, auto res) { in TEST_P() 220 mCallback, 0, [&](int32_t retval, auto res) { in TEST_P() 272 hidlReturn = mSoundTriggerHal->startRecognition(handle, config, mCallback, 0); in TEST_P()
|
/hardware/interfaces/broadcastradio/2.0/vts/functional/ |
D | VtsHalBroadcastradioV2_0TargetTest.cpp | 115 sp<TunerCallbackMock> mCallback = new TunerCallbackMock(); member in android::hardware::broadcastradio::V2_0::vts::BroadcastRadioHalTest 201 clearAndWait(mCallback, 1s); in TearDown() 213 auto hidlResult = mModule->openSession(mCallback, openCb); in openSession() 239 EXPECT_TIMEOUT_CALL(*mCallback, onProgramListReady).Times(AnyNumber()); in getProgramList() 249 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, onProgramListReady, timeout::programListScan); in getProgramList() 254 return mCallback->mProgramList; in getProgramList() 429 EXPECT_TIMEOUT_CALL(*mCallback, onCurrentProgramInfoChanged_, in TEST_P() 443 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, onCurrentProgramInfoChanged_, timeout::tune); in TEST_P() 513 EXPECT_TIMEOUT_CALL(*mCallback, onCurrentProgramInfoChanged_, _).Times(AnyNumber()); in TEST_P() 516 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, onCurrentProgramInfoChanged_, timeout::tune); in TEST_P() [all …]
|
/hardware/interfaces/contexthub/1.1/default/ |
D | Contexthub.cpp | 61 mCallback = cb; in registerCallback() 93 if (hubId == kMockHubId && mCallback != nullptr) { in queryApps() 95 mCallback->handleAppsInfo(nanoapps); in queryApps()
|