/hardware/interfaces/automotive/vehicle/aidl/impl/vhal/src/ |
D | ConnectedClient.cpp | 50 ScopedAStatus callCallback(std::shared_ptr<IVehicleCallback> callback, const T& results); 53 ScopedAStatus callCallback<GetValueResults>(std::shared_ptr<IVehicleCallback> callback, in callCallback() argument 55 return callback->onGetValues(results); in callCallback() 59 ScopedAStatus callCallback<SetValueResults>(std::shared_ptr<IVehicleCallback> callback, in callCallback() argument 61 return callback->onSetValues(results); in callCallback() 66 void sendGetOrSetValueResult(std::shared_ptr<IVehicleCallback> callback, const ResultType& result) { in sendGetOrSetValueResult() argument 70 if (ScopedAStatus callbackStatus = callCallback(callback, parcelableResults); in sendGetOrSetValueResult() 74 callback->asBinder().get(), callbackStatus.getMessage(), in sendGetOrSetValueResult() 81 void sendGetOrSetValueResultsSeparately(std::shared_ptr<IVehicleCallback> callback, in sendGetOrSetValueResultsSeparately() argument 84 sendGetOrSetValueResult<ResultType, ResultsType>(callback, result); in sendGetOrSetValueResultsSeparately() [all …]
|
/hardware/qcom/sm7250/gps/android/2.1/location_api/ |
D | MeasurementAPIClient.h | 58 const sp<T>& callback, GnssPowerMode powerMode = GNSS_POWER_MODE_INVALID) { 60 setCallbackLocked(callback); 75 inline void setCallbackLocked(const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 76 mGnssMeasurementCbIface = callback; in setCallbackLocked() 78 inline void setCallbackLocked(const sp<V1_1::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 79 mGnssMeasurementCbIface_1_1 = callback; in setCallbackLocked() 81 inline void setCallbackLocked(const sp<V2_0::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 82 mGnssMeasurementCbIface_2_0 = callback; in setCallbackLocked() 84 inline void setCallbackLocked(const sp<V2_1::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 85 mGnssMeasurementCbIface_2_1 = callback; in setCallbackLocked()
|
/hardware/qcom/sm8150/gps/android/2.1/ |
D | GnssMeasurement.cpp | 56 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 65 if (callback == nullptr) { in setCallback() 76 mGnssMeasurementCbIface = callback; in setCallback() 79 return mApi->measurementSetCallback(callback); in setCallback() 115 const sp<V1_1::IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 124 if (callback == nullptr) { in setCallback_1_1() 135 mGnssMeasurementCbIface_1_1 = callback; in setCallback_1_1() 141 return mApi->measurementSetCallback_1_1(callback, powerMode); in setCallback_1_1() 145 const sp<V2_0::IGnssMeasurementCallback>& callback, in setCallback_2_0() argument 155 if (callback == nullptr) { in setCallback_2_0() [all …]
|
/hardware/qcom/sm7250/gps/android/2.1/ |
D | GnssMeasurement.cpp | 60 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 61 return setCallback(callback, mGnssMeasurementCbIface, GNSS_POWER_MODE_INVALID); in setCallback() 66 const sp<T>& callback, sp<T>& myCallback, GnssPowerMode powerMode) { in setCallback() argument 74 if (myCallback != callback) { in setCallback() 75 if (nullptr == callback) { in setCallback() 77 mApi->measurementSetCallback(callback); in setCallback() 83 myCallback = callback; in setCallback() 85 ret = mApi->measurementSetCallback(callback, powerMode); in setCallback() 131 const sp<V1_1::IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 132 return setCallback(callback, mGnssMeasurementCbIface_1_1, in setCallback_1_1() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/src/ |
D | RecurrentTimer.cpp | 60 int RecurrentTimer::getCallbackIdLocked(std::shared_ptr<RecurrentTimer::Callback> callback) { in getCallbackIdLocked() argument 61 const auto& it = mIdByCallback.find(callback); in getCallbackIdLocked() 69 std::shared_ptr<RecurrentTimer::Callback> callback) { in registerTimerCallback() argument 73 int callbackId = getCallbackIdLocked(callback); in registerTimerCallback() 77 mIdByCallback.insert({callback, callbackId}); in registerTimerCallback() 89 info->callback = callback; in registerTimerCallback() 98 void RecurrentTimer::unregisterTimerCallback(std::shared_ptr<RecurrentTimer::Callback> callback) { in unregisterTimerCallback() argument 102 int callbackId = getCallbackIdLocked(callback); in unregisterTimerCallback() 111 mIdByCallback.erase(callback); in unregisterTimerCallback() 116 std::shared_ptr<RecurrentTimer::Callback> callback; in handleMessage() local [all …]
|
/hardware/interfaces/wifi/aidl/default/ |
D | wifi_nan_iface.cpp | 83 for (const auto& callback : shared_ptr_this->getEventCallbacks()) { in registerCallbackHandlers() local 84 if (!callback->notifyEnableResponse(id, nanStatus).isOk()) { in registerCallbackHandlers() 91 for (const auto& callback : shared_ptr_this->getEventCallbacks()) { in registerCallbackHandlers() local 92 if (!callback->notifyDisableResponse(id, nanStatus).isOk()) { in registerCallbackHandlers() 99 for (const auto& callback : shared_ptr_this->getEventCallbacks()) { in registerCallbackHandlers() local 100 if (!callback->notifyStartPublishResponse(id, nanStatus, in registerCallbackHandlers() 109 for (const auto& callback : shared_ptr_this->getEventCallbacks()) { in registerCallbackHandlers() local 110 if (!callback->notifyStopPublishResponse(id, nanStatus).isOk()) { in registerCallbackHandlers() 117 for (const auto& callback : shared_ptr_this->getEventCallbacks()) { in registerCallbackHandlers() local 118 if (!callback->notifyTransmitFollowupResponse(id, nanStatus).isOk()) { in registerCallbackHandlers() [all …]
|
/hardware/qcom/sm7250/gps/android/2.0/ |
D | GnssMeasurement.cpp | 60 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 61 return setCallback(callback, mGnssMeasurementCbIface, GNSS_POWER_MODE_INVALID); in setCallback() 66 const sp<T>& callback, sp<T>& myCallback, GnssPowerMode powerMode) { in setCallback() argument 73 if (myCallback != callback) { in setCallback() 74 if (nullptr == callback) { in setCallback() 76 mApi->measurementSetCallback(callback); in setCallback() 82 myCallback = callback; in setCallback() 84 ret = mApi->measurementSetCallback(callback, powerMode); in setCallback() 125 const sp<V1_1::IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 126 return setCallback(callback, mGnssMeasurementCbIface_1_1, in setCallback_1_1() [all …]
|
/hardware/qcom/sm7250/gps/android/1.1/ |
D | GnssMeasurement.cpp | 60 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 61 return setCallback(callback, mGnssMeasurementCbIface, GNSS_POWER_MODE_INVALID); in setCallback() 66 const sp<T>& callback, sp<T>& myCallback, GnssPowerMode powerMode) { in setCallback() argument 73 if (myCallback != callback) { in setCallback() 74 if (nullptr == callback) { in setCallback() 76 mApi->measurementSetCallback(callback); in setCallback() 82 myCallback = callback; in setCallback() 84 ret = mApi->measurementSetCallback(callback, powerMode); in setCallback() 111 const sp<IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 112 return setCallback(callback, mGnssMeasurementCbIface_1_1, in setCallback_1_1()
|
/hardware/qcom/sm7150/gps/android/2.0/ |
D | GnssMeasurement.cpp | 56 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 65 if (callback == nullptr) { in setCallback() 74 mGnssMeasurementCbIface = callback; in setCallback() 77 return mApi->measurementSetCallback(callback); in setCallback() 105 const sp<V1_1::IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 114 if (callback == nullptr) { in setCallback_1_1() 123 mGnssMeasurementCbIface_1_1 = callback; in setCallback_1_1() 129 return mApi->measurementSetCallback_1_1(callback, powerMode); in setCallback_1_1() 133 const sp<V2_0::IGnssMeasurementCallback>& callback, in setCallback_2_0() argument 143 if (callback == nullptr) { in setCallback_2_0() [all …]
|
/hardware/qcom/sm8150/gps/android/2.0/ |
D | GnssMeasurement.cpp | 56 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 65 if (callback == nullptr) { in setCallback() 76 mGnssMeasurementCbIface = callback; in setCallback() 79 return mApi->measurementSetCallback(callback); in setCallback() 111 const sp<V1_1::IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 120 if (callback == nullptr) { in setCallback_1_1() 131 mGnssMeasurementCbIface_1_1 = callback; in setCallback_1_1() 137 return mApi->measurementSetCallback_1_1(callback, powerMode); in setCallback_1_1() 141 const sp<V2_0::IGnssMeasurementCallback>& callback, in setCallback_2_0() argument 151 if (callback == nullptr) { in setCallback_2_0() [all …]
|
/hardware/qcom/sm8150p/gps/android/2.0/ |
D | GnssMeasurement.cpp | 56 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 65 if (callback == nullptr) { in setCallback() 74 mGnssMeasurementCbIface = callback; in setCallback() 77 return mApi->measurementSetCallback(callback); in setCallback() 105 const sp<V1_1::IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 114 if (callback == nullptr) { in setCallback_1_1() 123 mGnssMeasurementCbIface_1_1 = callback; in setCallback_1_1() 129 return mApi->measurementSetCallback_1_1(callback, powerMode); in setCallback_1_1() 133 const sp<V2_0::IGnssMeasurementCallback>& callback, in setCallback_2_0() argument 143 if (callback == nullptr) { in setCallback_2_0() [all …]
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/ |
D | Device.cpp | 72 void notify(V1_0::IPreparedModelCallback* callback, nn::ErrorStatus status, in notify() argument 74 if (callback != nullptr) { in notify() 76 const auto ret = callback->notify(hidlStatus, hidlPreparedModel); in notify() 83 void notify(V1_2::IPreparedModelCallback* callback, nn::ErrorStatus status, in notify() argument 85 if (callback != nullptr) { in notify() 87 const auto ret = callback->notify_1_2(hidlStatus, hidlPreparedModel); in notify() 95 void notify(V1_3::IPreparedModelCallback* callback, nn::ErrorStatus status, in notify() argument 97 if (callback != nullptr) { in notify() 99 const auto ret = callback->notify_1_3(hidlStatus, hidlPreparedModel); in notify() 108 void notify(CallbackType* callback, PrepareModelResult result) { in notify() argument [all …]
|
D | PreparedModel.cpp | 60 explicit FencedExecutionCallback(const nn::ExecuteFencedInfoCallback& callback) in FencedExecutionCallback() argument 61 : kCallback(callback) { in FencedExecutionCallback() 62 CHECK(callback != nullptr); in FencedExecutionCallback() 88 void notify(V1_0::IExecutionCallback* callback, nn::ErrorStatus status, in notify() argument 90 if (callback != nullptr) { in notify() 92 const auto ret = callback->notify(hidlStatus); in notify() 99 void notify(V1_2::IExecutionCallback* callback, nn::ErrorStatus status, in notify() argument 101 if (callback != nullptr) { in notify() 105 const auto ret = callback->notify_1_2(hidlStatus, hidlOutputShapes, hidlTiming); in notify() 112 void notify(V1_3::IExecutionCallback* callback, nn::ErrorStatus status, in notify() argument [all …]
|
/hardware/google/pixel/thermal/ |
D | Thermal.h | 33 CallbackSetting(std::shared_ptr<IThermalChangedCallback> callback, bool is_filter_type, in CallbackSetting() 35 : callback(std::move(callback)), is_filter_type(is_filter_type), type(type) {} in CallbackSetting() 36 std::shared_ptr<IThermalChangedCallback> callback; member 42 CoolingDeviceCallbackSetting(std::shared_ptr<ICoolingDeviceChangedCallback> callback, in CoolingDeviceCallbackSetting() 44 : callback(std::move(callback)), is_filter_type(is_filter_type), type(type) {} in CoolingDeviceCallbackSetting() 45 std::shared_ptr<ICoolingDeviceChangedCallback> callback; member 65 const std::shared_ptr<IThermalChangedCallback> &callback) override; 67 const std::shared_ptr<IThermalChangedCallback> &callback, 70 const std::shared_ptr<IThermalChangedCallback> &callback) override; 77 const std::shared_ptr<ICoolingDeviceChangedCallback> &callback, [all …]
|
/hardware/qcom/sm7250/gps/android/2.0/location_api/ |
D | MeasurementAPIClient.h | 57 const sp<T>& callback, GnssPowerMode powerMode = GNSS_POWER_MODE_INVALID) { 59 setCallbackLocked(callback); 73 inline void setCallbackLocked(const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 74 mGnssMeasurementCbIface = callback; in setCallbackLocked() 76 inline void setCallbackLocked(const sp<V1_1::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 77 mGnssMeasurementCbIface_1_1 = callback; in setCallbackLocked() 79 inline void setCallbackLocked(const sp<V2_0::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 80 mGnssMeasurementCbIface_2_0 = callback; in setCallbackLocked()
|
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/test/ |
D | PendingRequestPoolTest.cpp | 74 auto callback = std::make_shared<PendingRequestPool::TimeoutCallbackFunc>( in TEST_F() local 82 ASSERT_RESULT_OK(getPool()->addRequests(getTestClientId(), requestIds, callback)); in TEST_F() 107 auto callback = std::make_shared<PendingRequestPool::TimeoutCallbackFunc>( in TEST_F() local 115 ASSERT_RESULT_OK(getPool()->addRequests(getTestClientId(), requestIds, callback)); in TEST_F() 147 auto callback = std::make_shared<PendingRequestPool::TimeoutCallbackFunc>( in TEST_F() local 155 ASSERT_RESULT_OK(getPool()->addRequests(getTestClientId(), {0}, callback)); in TEST_F() 167 auto callback = std::make_shared<PendingRequestPool::TimeoutCallbackFunc>( in TEST_F() local 175 ASSERT_RESULT_OK(getPool()->addRequests(getTestClientId(), {0, 1, 2}, callback)); in TEST_F() 190 auto callback = std::make_shared<PendingRequestPool::TimeoutCallbackFunc>( in TEST_F() local 198 ASSERT_RESULT_OK(getPool()->addRequests(getTestClientId(), {0}, callback)); in TEST_F() [all …]
|
/hardware/qcom/sm7250/gps/android/1.0/ |
D | GnssMeasurement.cpp | 60 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 61 return setCallback(callback, mGnssMeasurementCbIface, GNSS_POWER_MODE_INVALID); in setCallback() 66 const sp<T>& callback, sp<T>& myCallback, GnssPowerMode powerMode) { in setCallback() argument 73 if (myCallback != callback) { in setCallback() 74 if (nullptr == callback) { in setCallback() 76 mApi->measurementSetCallback(callback); in setCallback() 82 myCallback = callback; in setCallback() 84 ret = mApi->measurementSetCallback(callback, powerMode); in setCallback()
|
/hardware/interfaces/usb/gadget/aidl/default/ |
D | UsbGadget.cpp | 93 ScopedAStatus UsbGadget::getCurrentUsbFunctions(const shared_ptr<IUsbGadgetCallback>& callback, in getCurrentUsbFunctions() argument 95 if (callback == nullptr) { in getCurrentUsbFunctions() 98 ScopedAStatus ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() 108 ScopedAStatus UsbGadget::getUsbSpeed(const shared_ptr<IUsbGadgetCallback> &callback, in getUsbSpeed() argument 133 if (callback) { in getUsbSpeed() 134 ScopedAStatus ret = callback->getUsbSpeedCb(mUsbSpeed, in_transactionId); in getUsbSpeed() 147 ScopedAStatus UsbGadget::reset(const shared_ptr<IUsbGadgetCallback> &callback, in reset() argument 149 if (callback) in reset() 150 callback->resetCb(Status::SUCCESS, in_transactionId); in reset() 155 const shared_ptr<IUsbGadgetCallback> &callback, uint64_t timeout, in setupFunctions() argument [all …]
|
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/ |
D | Sensor.h | 48 Sensor(int32_t sensorHandle, ISensorsEventCallback* callback); 84 OnChangeSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 98 ContinuousSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 103 AccelSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 111 GyroSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 119 PressureSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 124 MagnetometerSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 129 AmbientTempSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 134 LightSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 139 ProximitySensor(int32_t sensorHandle, ISensorsEventCallback* callback); [all …]
|
/hardware/interfaces/soundtrigger/2.1/default/ |
D | SoundTriggerHw.h | 44 const sp<V2_1::ISoundTriggerHwCallback>& callback, 49 const sp<V2_1::ISoundTriggerHwCallback>& callback, int32_t cookie, 63 const sp<V2_0::ISoundTriggerHwCallback>& callback, in loadSoundModel() 65 return mImpl->loadSoundModel(soundModel, callback, cookie, _hidl_cb); in loadSoundModel() 68 const sp<V2_0::ISoundTriggerHwCallback>& callback, in loadPhraseSoundModel() 71 return mImpl->loadPhraseSoundModel(soundModel, callback, cookie, _hidl_cb); in loadPhraseSoundModel() 89 const sp<V2_1::ISoundTriggerHwCallback>& callback, in loadSoundModel_2_1() 91 return mImpl->loadSoundModel_2_1(soundModel, callback, cookie, _hidl_cb); in loadSoundModel_2_1() 95 const sp<V2_1::ISoundTriggerHwCallback>& callback, int32_t cookie, in loadPhraseSoundModel_2_1() 97 return mImpl->loadPhraseSoundModel_2_1(soundModel, callback, cookie, _hidl_cb); in loadPhraseSoundModel_2_1() [all …]
|
/hardware/qcom/sm7150/gps/android/1.1/ |
D | GnssMeasurement.cpp | 57 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 66 if (callback == nullptr) { in setCallback() 75 mGnssMeasurementCbIface = callback; in setCallback() 78 return mApi->measurementSetCallback(callback); in setCallback() 103 const sp<IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 112 if (callback == nullptr) { in setCallback_1_1() 121 mGnssMeasurementCbIface_1_1 = callback; in setCallback_1_1() 127 return mApi->measurementSetCallback_1_1(callback, powerMode); in setCallback_1_1()
|
/hardware/qcom/sm8150/gps/android/1.1/ |
D | GnssMeasurement.cpp | 57 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 66 if (callback == nullptr) { in setCallback() 75 mGnssMeasurementCbIface = callback; in setCallback() 78 return mApi->measurementSetCallback(callback); in setCallback() 103 const sp<IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 112 if (callback == nullptr) { in setCallback_1_1() 121 mGnssMeasurementCbIface_1_1 = callback; in setCallback_1_1() 127 return mApi->measurementSetCallback_1_1(callback, powerMode); in setCallback_1_1()
|
/hardware/qcom/sm8150p/gps/android/1.1/ |
D | GnssMeasurement.cpp | 57 const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallback() argument 66 if (callback == nullptr) { in setCallback() 75 mGnssMeasurementCbIface = callback; in setCallback() 78 return mApi->measurementSetCallback(callback); in setCallback() 103 const sp<IGnssMeasurementCallback>& callback, bool enableFullTracking) { in setCallback_1_1() argument 112 if (callback == nullptr) { in setCallback_1_1() 121 mGnssMeasurementCbIface_1_1 = callback; in setCallback_1_1() 127 return mApi->measurementSetCallback_1_1(callback, powerMode); in setCallback_1_1()
|
/hardware/qcom/sm7250/gps/android/1.1/location_api/ |
D | MeasurementAPIClient.h | 58 const sp<T>& callback, GnssPowerMode powerMode = GNSS_POWER_MODE_INVALID) { 60 setCallbackLocked(callback); 74 inline void setCallbackLocked(const sp<V1_0::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 75 mGnssMeasurementCbIface = callback; in setCallbackLocked() 77 inline void setCallbackLocked(const sp<V1_1::IGnssMeasurementCallback>& callback) { in setCallbackLocked() argument 78 mGnssMeasurementCbIface_1_1 = callback; in setCallbackLocked()
|
/hardware/interfaces/sensors/aidl/default/include/sensors-impl/ |
D | Sensor.h | 44 Sensor(ISensorsEventCallback* callback); 81 OnChangeSensor(ISensorsEventCallback* callback); 95 AccelSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 103 GyroSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 111 AmbientTempSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 119 PressureSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 127 MagnetometerSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 135 LightSensor(int32_t sensorHandle, ISensorsEventCallback* callback); 143 ProximitySensor(int32_t sensorHandle, ISensorsEventCallback* callback); 151 RelativeHumiditySensor(int32_t sensorHandle, ISensorsEventCallback* callback); [all …]
|