Home
last modified time | relevance | path

Searched refs:mCallback (Results 1 – 25 of 70) sorted by relevance

123

/hardware/libhardware/modules/sensors/dynamic_sensor/
DBaseSensorObject.cpp26 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/broadcastradio/1.0/default/
DTuner.cpp39 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/nfc/1.0/default/
DNfc.cpp15 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()
DNfc.h34 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/
DFrontend.cpp35 mCallback = nullptr; in Frontend()
43 mCallback = nullptr; in close()
55 mCallback = callback; in setCallback()
61 if (mCallback == nullptr) { in tune()
69 mCallback->onEvent(FrontendEventType::LOCKED); in tune()
/hardware/interfaces/sensors/common/vts/utils/
DSensorsHidlEnvironmentBase.cpp56 if (mCallback != nullptr) { in addEvent()
57 mCallback->onEvent(ev); in addEvent()
63 mCallback = callback; in registerCallback()
68 mCallback = nullptr; in unregisterCallback()
/hardware/interfaces/tv/cec/1.0/default/
DHdmiCecMock.cpp85 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()
DHdmiCec.h67 if (mCallback != nullptr && event != nullptr) { in eventCallback()
79 mCallback->onCecMessage(cecMessage); in eventCallback()
85 mCallback->onHotplugEvent(hotplugEvent); in eventCallback()
96 static sp<IHdmiCecCallback> mCallback;
DHdmiCec.cpp265 sp<IHdmiCecCallback> HdmiCec::mCallback = nullptr; member in android::hardware::tv::cec::V1_0::implementation::HdmiCec
321 if (mCallback != nullptr) { in setCallback()
322 mCallback->unlinkToDeath(this); in setCallback()
323 mCallback = nullptr; in setCallback()
327 mCallback = callback; in setCallback()
328 mCallback->linkToDeath(this, 0 /*cookie*/); in setCallback()
/hardware/libhardware/tests/input/evdev/
DInputHub_test.cpp77 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/soundtrigger/2.1/vts/functional/
DVtsHalSoundtriggerV2_1TargetTest.cpp103 mCallback = new SoundTriggerHwCallback(*this); in SetUp()
104 ASSERT_NE(nullptr, mCallback.get()); in SetUp()
171 sp<SoundTriggerHwCallback> mCallback; member in SoundTriggerHidlTest
219 mSoundTriggerHal->loadPhraseSoundModel(model, mCallback, 0, [&](int32_t retval, auto res) { in TEST_P()
247 hidlReturn = mSoundTriggerHal->loadPhraseSoundModel_2_1(model, mCallback, 0, in TEST_P()
272 mSoundTriggerHal->loadSoundModel(model, mCallback, 0, [&](int32_t retval, auto res) { in TEST_P()
300 mSoundTriggerHal->loadSoundModel(model, mCallback, 0, [&](int32_t retval, auto res) { in TEST_P()
324 mSoundTriggerHal->loadSoundModel_2_1(model, mCallback, 0, [&](int32_t retval, auto res) { in TEST_P()
363 mSoundTriggerHal->loadSoundModel_2_1(model, mCallback, 0, [&](int32_t retval, auto res) { in TEST_P()
415 hidlReturn = mSoundTriggerHal->startRecognition(handle, config, mCallback, 0); in TEST_P()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraThermalAdapter.cpp56 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/
DUsb.cpp102 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/broadcastradio/1.1/vts/functional/
DVtsHalBroadcastradioV1_1TargetTest.cpp113 sp<TunerCallbackMock> mCallback = new TunerCallbackMock(); member in android::hardware::broadcastradio::V1_1::vts::BroadcastRadioHalTest
168 clearAndWait(mCallback, 1s); in TearDown()
175 EXPECT_TIMEOUT_CALL(*mCallback, configChange, Result::OK, _); in openTuner()
185 auto hidlResult = mRadioModule->openTuner(getBand(0), true, mCallback, openCb); in openTuner()
191 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, configChange, kConfigTimeout); in openTuner()
231 EXPECT_TIMEOUT_CALL(*mCallback, configChange, Result::OK, _) in nextBand()
235 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, configChange, kConfigTimeout); in nextBand()
254 EXPECT_TIMEOUT_CALL(*mCallback, backgroundScanComplete, ProgramListResult::OK) in getProgramList()
266 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, backgroundScanComplete, kFullScanTimeout); in getProgramList()
330 EXPECT_CALL(*mCallback, tuneComplete(_, _)).Times(0); in TEST_P()
[all …]
/hardware/google/av/media/sfplugin/
DCCodec.cpp492 if (!codec || !codec->mCallback) { in onDeath()
495 codec->mCallback->onError(DEAD_OBJECT, ACTION_CODE_FATAL); in onDeath()
524 mCodec->mCallback->onError(err, actionCode); in onError()
528 mCodec->mCallback->onOutputFramesRendered( in onOutputFramesRendered()
537 mCodec->mCallback->onOutputBuffersChanged(); in onOutputBuffersChanged()
561 mCallback->onError(err, ACTION_CODE_FATAL); in tryAndReportOnError()
590 mCallback->onError(UNKNOWN_ERROR, ACTION_CODE_FATAL); in allocate()
617 mCallback->onError(UNKNOWN_ERROR, ACTION_CODE_FATAL); in allocate()
647 mCallback->onComponentAllocated(componentName.c_str()); in allocate()
921 mCallback->onComponentConfigured(config->mInputFormat, config->mOutputFormat); in configure()
[all …]
/hardware/interfaces/soundtrigger/2.0/vts/functional/
DVtsHalSoundtriggerV2_0TargetTest.cpp95 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/
DVtsHalBroadcastradioV2_0TargetTest.cpp115 sp<TunerCallbackMock> mCallback = new TunerCallbackMock(); member in android::hardware::broadcastradio::V2_0::vts::BroadcastRadioHalTest
204 clearAndWait(mCallback, 1s); in TearDown()
216 auto hidlResult = mModule->openSession(mCallback, openCb); in openSession()
242 EXPECT_TIMEOUT_CALL(*mCallback, onProgramListReady).Times(AnyNumber()); in getProgramList()
252 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, onProgramListReady, timeout::programListScan); in getProgramList()
257 return mCallback->mProgramList; in getProgramList()
432 EXPECT_TIMEOUT_CALL(*mCallback, onCurrentProgramInfoChanged_, in TEST_P()
447 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, onCurrentProgramInfoChanged_, timeout::tune); in TEST_P()
517 EXPECT_TIMEOUT_CALL(*mCallback, onCurrentProgramInfoChanged_, _).Times(AnyNumber()); in TEST_P()
520 EXPECT_TIMEOUT_CALL_WAIT(*mCallback, onCurrentProgramInfoChanged_, timeout::tune); in TEST_P()
[all …]
/hardware/interfaces/biometrics/face/1.0/vts/functional/
DVtsHalBiometricsFaceV1_0TargetTest.cpp134 mCallback = new FaceCallback(); in SetUp()
135 mCallback->SetWaitTimeoutDefault(kTimeout); in SetUp()
136 Return<void> ret1 = mService->setCallback(mCallback, [](const OptionalUint64& res) { in SetUp()
150 sp<FaceCallback> mCallback; member in __anon902c04b90111::FaceHidlTest
181 auto res = mCallback->WaitForCallback(kCallbackNameOnError); in TEST_P()
202 auto res = mCallback->WaitForCallback(kCallbackNameOnError); in TEST_P()
270 auto res = mCallback->WaitForCallback(kCallbackNameOnEnumerate); in TEST_P()
328 auto res = mCallback->WaitForCallback(kCallbackNameOnError); in TEST_P()
341 auto res = mCallback->WaitForCallback(kCallbackNameOnLockoutChanged); in TEST_P()
/hardware/interfaces/sensors/2.0/multihal/tests/fake_subhal/
DSensorsSubHal.cpp54 SensorsSubHal::SensorsSubHal() : mCallback(nullptr), mNextHandle(1) {} in SensorsSubHal()
160 mCallback = halProxyCallback; in initialize()
166 ScopedWakelock wakelock = mCallback->createScopedWakelock(wakeup); in postEvents()
167 mCallback->postEvents(events, std::move(wakelock)); in postEvents()
227 mCallback->onDynamicSensorsConnected(sensorsAdded); in addDynamicSensors()
232 mCallback->onDynamicSensorsDisconnected(sensorHandlesRemoved); in removeDynamicSensors()
/hardware/interfaces/tv/cec/2.0/default/
DHdmiCec.h74 if (mCallback != nullptr && event != nullptr) { in eventCallback()
86 mCallback->onCecMessage(cecMessage); in eventCallback()
91 mCallback->onHotplugEvent(hotplugEvent); in eventCallback()
102 static sp<IHdmiCecCallback> mCallback;
DHdmiCec.cpp268 sp<IHdmiCecCallback> HdmiCec::mCallback = nullptr; member in android::hardware::tv::cec::V2_0::implementation::HdmiCec
336 if (mCallback != nullptr) { in setCallback()
337 mCallback->unlinkToDeath(this); in setCallback()
338 mCallback = nullptr; in setCallback()
342 mCallback = callback; in setCallback()
343 mCallback->linkToDeath(this, 0 /*cookie*/); in setCallback()
/hardware/interfaces/tv/input/1.0/default/
DTvInput.cpp60 sp<ITvInputCallback> TvInput::mCallback = nullptr; member in android::hardware::tv::input::V1_0::implementation::TvInput
74 mCallback = callback; in setCallback()
75 if (mCallback != nullptr) { in setCallback()
146 if (mCallback != nullptr && event != nullptr) { in notify()
176 mCallback->notify(tvInputEvent); in notify()
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsHidlEnvironmentBase.h53 : mCollectionEnabled(false), mCallback(nullptr) { in SensorsHidlEnvironmentBase()
70 IEventCallback* mCallback; variable
/hardware/google/pixel/usb/
DMonitorFfs.cpp37 mCallback(NULL), in MonitorFfs()
136 monitorFfs->mCallback(monitorFfs->mCurrentUsbFunctionsApplied, monitorFfs->mPayload); in startMonitorFd()
190 monitorFfs->mCallback(monitorFfs->mCurrentUsbFunctionsApplied, in startMonitorFd()
235 mCallback = NULL; in reset()
288 mCallback = callback; in registerFunctionsAppliedCallback()
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.h133 : SoundModelClient(id, cookie), mCallback(callback) {} in SoundModelClient_2_0()
139 sp<V2_0::ISoundTriggerHwCallback> mCallback;
175 : SoundModelClient(id, cookie), mCallback(callback) {} in SoundModelClient_2_1()
181 sp<V2_1::ISoundTriggerHwCallback> mCallback;

123