/drivers/external_device_manager/services/native/driver_extension_manager/src/driver_controller/ |
D | driver_extension_controller.cpp | 115 std::shared_ptr<IDriverExtensionConnectCallback> callback, in ConnectDriverExtension() argument 122 if (callback == nullptr) { in ConnectDriverExtension() 126 if (callback->info_ != nullptr) { in ConnectDriverExtension() 131 callback->info_ = make_shared<DrvExtConnectionInfo>(); in ConnectDriverExtension() 132 callback->info_->bundleName_ = bundleName; in ConnectDriverExtension() 133 callback->info_->abilityName_ = abilityName; in ConnectDriverExtension() 134 callback->info_->deviceId_ = deviceId; in ConnectDriverExtension() 135 callback->info_->connectInner_ = new DriverExtensionAbilityConnection(); in ConnectDriverExtension() 136 callback->info_->connectInner_->callback_ = callback; in ConnectDriverExtension() 145 auto ret = abmc->ConnectAbility(want, callback->info_->connectInner_, -1); in ConnectDriverExtension() [all …]
|
/drivers/peripheral/display/hdi_service/device/src/proxy/display_device_callback/ |
D | ihdi_display_register_callback_framework.cpp | 28 void DisplayRegisterCallbackFramework::SetHotplugInData(HotPlugCallback callback, void* data) in SetHotplugInData() argument 31 hotCallback_ = callback; in SetHotplugInData() 45 void DisplayRegisterCallbackFramework::SetVBlankData(VBlankCallback callback, void* data) in SetVBlankData() argument 48 vBlankCallback_ = callback; in SetVBlankData() 62 void DisplayRegisterCallbackFramework::SetRefreshData(RefreshCallback callback, void* data) in SetRefreshData() argument 65 refreshCallback_ = callback; in SetRefreshData()
|
/drivers/external_device_manager/test/unittest/device_manager_test/ |
D | device_manager_test.cpp | 63 std::shared_ptr<DevChangeCallback> callback = std::make_shared<DevChangeCallback>(); variable 67 int32_t ret = callback->OnDeviceAdd(device); 71 ret = callback->OnDeviceRemove(device); 79 std::shared_ptr<DevChangeCallback> callback = std::make_shared<DevChangeCallback>(); variable 83 int32_t ret = callback->OnDeviceAdd(device); 85 ret = callback->OnDeviceAdd(device); 89 ret = callback->OnDeviceRemove(device); 92 ret = callback->OnDeviceRemove(device); 98 std::shared_ptr<DevChangeCallback> callback = std::make_shared<DevChangeCallback>(); variable 102 int32_t ret = callback->OnDeviceAdd(device0); [all …]
|
/drivers/peripheral/codec/test/unittest/hdi_omx/ |
D | codec_hdi_manager_test.cpp | 64 struct CodecCallbackType *callback = CodecCallbackTypeGet(nullptr); variable 65 ASSERT_TRUE(callback != nullptr); 69 …nt32_t ret = manager_->CreateComponent(&component, &componentId, nullptr, (int64_t)this, callback); 72 CodecCallbackTypeRelease(callback); 73 callback = nullptr; 91 struct CodecCallbackType *callback = CodecCallbackTypeGet(nullptr); variable 94 ASSERT_TRUE(callback != nullptr); 95 …et = manager_->CreateComponent(&component, &componentId, compName.data(), (int64_t)this, callback); 100 CodecCallbackTypeRelease(callback); 101 callback = nullptr;
|
/drivers/peripheral/codec/hdi_service/codec_proxy/ |
D | codec_callback_proxy.c | 195 static void CodecCallbackProxyConstruct(struct ICodecCallbackProxy *callback) in CodecCallbackProxyConstruct() argument 197 callback->OnEvent = CodecCallbackProxyOnEvent; in CodecCallbackProxyConstruct() 198 callback->InputBufferAvailable = CodecCallbackProxyInputBufferAvailable; in CodecCallbackProxyConstruct() 199 callback->OutputBufferAvailable = CodecCallbackProxyOutputBufferAvailable; in CodecCallbackProxyConstruct() 214 struct ICodecCallbackProxy *callback = in CodecCallbackProxyObtain() local 216 if (callback == NULL) { in CodecCallbackProxyObtain() 220 callback->remote = remote; in CodecCallbackProxyObtain() 221 CodecCallbackProxyConstruct(callback); in CodecCallbackProxyObtain() 222 return callback; in CodecCallbackProxyObtain() 225 void CodecProxyCallbackRelease(struct ICodecCallbackProxy *callback) in CodecProxyCallbackRelease() argument [all …]
|
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_provider/ |
D | dcamera_provider.cpp | 211 sptr<IDCameraProviderCallback> callback = GetCallbackBydhBase(dhBase); in OpenSession() local 212 if (callback == nullptr) { in OpenSession() 217 return callback->OpenSession(dhBase); in OpenSession() 225 sptr<IDCameraProviderCallback> callback = GetCallbackBydhBase(dhBase); in CloseSession() local 226 if (callback == nullptr) { in CloseSession() 231 return callback->CloseSession(dhBase); in CloseSession() 239 sptr<IDCameraProviderCallback> callback = GetCallbackBydhBase(dhBase); in ConfigureStreams() local 240 if (callback == nullptr) { in ConfigureStreams() 249 return callback->ConfigureStreams(dhBase, streamInfos); in ConfigureStreams() 257 sptr<IDCameraProviderCallback> callback = GetCallbackBydhBase(dhBase); in ReleaseStreams() local [all …]
|
/drivers/peripheral/camera/hal_c/include/ |
D | camera_host_c_if.h | 35 int (*SetCallback)(CameraHostCallbackCIF callback); 38 …int (*OpenCamera)(const char* cameraId, CameraDeviceCallbackCIF callback, CameraDeviceCIF* device); 42 typedef int (*HOST_C_FUNC_SETCALLBACK)(CameraHostCallbackCIF callback); 45 typedef int (*HOST_C_FUNC_OPENCAMERA)(const char* cameraId, CameraDeviceCallbackCIF callback, Camer…
|
/drivers/peripheral/bluetooth/hci/hdi_service/implement/ |
D | hci_watcher.cpp | 36 bool HciWatcher::AddFdToWatcher(int fd, HciDataCallback callback) in AddFdToWatcher() argument 39 fds_[fd] = callback; in AddFdToWatcher() 52 bool HciWatcher::SetTimeout(std::chrono::milliseconds timeout, TimeoutCallback callback) in SetTimeout() argument 58 timeoutCallback_ = callback; in SetTimeout() 137 TimeoutCallback callback; in WatcherThread() local 140 callback = timeoutCallback_; in WatcherThread() 142 if (callback) { in WatcherThread() 143 callback(); in WatcherThread()
|
/drivers/peripheral/camera/test/demo/ |
D | stream_customer.cpp | 23 void StreamCustomer::CamFrame(const std::function<void(void*, uint32_t)> callback) in CamFrame() argument 30 if (callback != nullptr) { in CamFrame() 34 callback(addr, size); in CamFrame() 50 if (callback != nullptr) { in CamFrame() 60 callback(addr, gotSize); in CamFrame() 101 RetCode StreamCustomer::ReceiveFrameOn(const std::function<void(void*, uint32_t)> callback) in ReceiveFrameOn() argument 107 … previewThreadId_ = new (std::nothrow) std::thread(&StreamCustomer::CamFrame, this, callback); in ReceiveFrameOn()
|
/drivers/interface/camera/v1_0/ |
D | IStreamOperatorCallback.idl | 29 [callback] interface IStreamOperatorCallback { 33 * @param captureId Indicates the ID of the capture request corresponding to the callback. 34 * @param streamIds Indicates the IDs of the streams corresponding to the callback. 44 * @param captureId Indicates the ID of the capture request corresponding to the callback. 55 * @param captureId Indicates the ID of the capture request corresponding to the callback. 66 …* This callback is enabled by using <b>enableShutterCallback_</b> in the {@link CaptureInfo} param… 68 * this callback is triggered each time a frame is captured. 70 * @param captureId Indicates the ID of the capture request corresponding to the callback. 71 * @param streamIds Indicates the IDs of the streams corresponding to the callback. 72 * @param timestamp Indicates the timestamp when the callback is invoked.
|
/drivers/peripheral/location/gnss/hdi_service/ |
D | gnss_interface_impl.cpp | 66 auto& callback = iter.second; in LocationUpdate() local 67 if (callback != nullptr) { in LocationUpdate() 68 callback->ReportLocation(locationNew); in LocationUpdate() 81 auto& callback = iter.second; in StatusCallback() local 82 if (callback != nullptr) { in StatusCallback() 83 callback->ReportGnssWorkingStatus(gnssStatus); in StatusCallback() 110 auto& callback = iter.second; in SvStatusCallback() local 111 if (callback != nullptr) { in SvStatusCallback() 112 callback->ReportSatelliteStatusInfo(svStatus); in SvStatusCallback() 124 auto& callback = iter.second; in NmeaCallback() local [all …]
|
/drivers/interface/location/lpfence/geofence/v1_0/ |
D | IGeofenceCallback.idl | 53 * @brief Defines the callback of the geofence module. 55 …* Before enabling the geofencing feature, you need to register the callback to report the geofence… 60 [callback] interface IGeofenceCallback { 68 * @return Returns <b>0</b> if the callback is invoked successfully. 69 * @return Returns a negative value if the callback fails to be invoked. 82 * @return Returns <b>0</b> if the callback is invoked successfully. 83 * @return Returns a negative value if the callback fails to be invoked. 92 …* This callback will be invoked to report the geofence status when the relationship between a devi… 99 * @return Returns <b>0</b> if the callback is invoked successfully. 100 * @return Returns a negative value if the callback fails to be invoked. [all …]
|
/drivers/interface/location/agnss/v1_0/ |
D | IAGnssInterface.idl | 22 …* The upper layer can use the interfaces provided by this module to set the AGNSS callback, AGNSS … 31 …* @brief Defines the agnss interfaces to set the AGNSS callback, AGNSS server address, AGNSS refer… 44 …* @brief Defines the agnss interfaces to set the AGNSS callback, AGNSS server address, AGNSS refer… 51 * @brief Set the agnss callback function. 53 …* @param callback Indicates the agnss callback to request the upper layer to establish or release … 56 * @return Returns <b>0</b> if setup callback successed; returns a negative value otherwise. 68 * @return Returns <b>0</b> if setup callback successed; returns a negative value otherwise. 80 * @return Returns <b>0</b> if setup callback successed; returns a negative value otherwise. 92 * @return Returns <b>0</b> if setup callback successed; returns a negative value otherwise.
|
/drivers/peripheral/camera/test/ut/v4l2/ |
D | stream_customer.cpp | 22 void StreamCustomer::CamFrame(const std::function<void(const unsigned char *, uint32_t)> callback) in CamFrame() argument 36 if (callback != nullptr) { in CamFrame() 37 callback(static_cast<const unsigned char*>(addr), size); in CamFrame() 67 const std::function<void(const unsigned char *, uint32_t)> callback) in ReceiveFrameOn() argument 73 … previewThreadId_ = new (std::nothrow) std::thread(&StreamCustomer::CamFrame, this, callback); in ReceiveFrameOn()
|
/drivers/hdf_core/framework/core/host/src/ |
D | hdf_service_subscriber.c | 13 struct HdfServiceSubscriber *HdfServiceSubscriberObtain(struct SubscriberCallback callback, devid_t… in HdfServiceSubscriberObtain() argument 20 serviceSubscriber->callback = callback; in HdfServiceSubscriberObtain()
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/ |
D | device.cpp | 145 for (auto &callback : callbacks_) { in OnConnect() local 146 …callback->OnConnect(GetDeviceInfo()->GetDeviceId(), drvExtRemote_, {static_cast<UsbErrCode>(result… in OnConnect() 160 for (auto &callback : callbacks_) { in OnDisconnect() local 161 … callback->OnUnBind(GetDeviceInfo()->GetDeviceId(), {static_cast<UsbErrCode>(resultCode), ""}); in OnDisconnect() 172 int32_t Device::RegisterDrvExtMgrCallback(const sptr<IDriverExtMgrCallback> &callback) in RegisterDrvExtMgrCallback() argument 175 if (callback == nullptr) { in RegisterDrvExtMgrCallback() 181 auto ret = callbacks_.insert(callback); in RegisterDrvExtMgrCallback() 186 if (!RegisteDeathRecipient(callback)) { in RegisterDrvExtMgrCallback() 194 void Device::UnregisterDrvExtMgrCallback(const sptr<IDriverExtMgrCallback> &callback) in UnregisterDrvExtMgrCallback() argument 198 …std::find_if(callbacks_.begin(), callbacks_.end(), [&callback](const sptr<IDriverExtMgrCallback> &… in UnregisterDrvExtMgrCallback() [all …]
|
/drivers/peripheral/codec/hdi_service/codec_service_stub/ |
D | codec_callback_service.c | 40 service->callback.OnEvent = CodecCallbackOnEvent; in CodecCallbackServiceConstruct() 41 service->callback.InputBufferAvailable = CodecCallbackInputBufferAvailable; in CodecCallbackServiceConstruct() 42 service->callback.OutputBufferAvailable = CodecCallbackOutputBufferAvailable; in CodecCallbackServiceConstruct()
|
/drivers/peripheral/distributed_camera/hdi_service/test/sample/ |
D | stream_customer.cpp | 26 const std::function<void(void*, uint32_t)> callback) in CreateProducer() argument 34 listener = new TestBuffersConsumerListener(consumer_, callback); in CreateProducer() 36 listener = new TestBuffersConsumerListener(consumer_, callback); in CreateProducer()
|
/drivers/hdf_core/adapter/khdf/liteos/model/bus/usb/ |
D | hdf_usb.c | 100 const char *name, add_res_callback_t callback, struct UsbInfo *info) in ProcControllorParam() argument 131 callback(name, cfg->type, cfg->unit, cfg->start, cfg->end, cfg->count); in ProcControllorParam() 138 static void HdfUsbInitParam(device_t dev, add_res_callback_t callback) in HdfUsbInitParam() argument 168 ret = ProcControllorParam(devResInstance, hdfUsbNode, ctrlName, callback, &info); in HdfUsbInitParam() 175 void UsbResourceInit(device_t dev, add_res_callback_t callback) in UsbResourceInit() argument 177 if (callback == NULL) { in UsbResourceInit() 182 HdfUsbInitParam(dev, callback); in UsbResourceInit()
|
/drivers/peripheral/display/hdi_service/device/include/interfaces/ |
D | ihdi_display_register_callback_framework.h | 27 void SetHotplugInData(HotPlugCallback callback, void* data); 29 void SetVBlankData(VBlankCallback callback, void* data); 31 void SetRefreshData(RefreshCallback callback, void* data);
|
/drivers/peripheral/location/agnss/hdi_service/ |
D | agnss_interface_impl.cpp | 61 auto& callback = iter.second; in OnStatusChangedCb() local 62 if (callback != nullptr) { in OnStatusChangedCb() 63 callback->RequestSetUpAgnssDataLink(agnssStatus); in OnStatusChangedCb() 72 auto& callback = iter.second; in GetSetidCb() local 73 if (callback != nullptr) { in GetSetidCb() 74 callback->RequestSubscriberSetId(static_cast<SubscriberSetIdType>(type)); in GetSetidCb() 82 auto& callback = iter.second; in GetRefLocationidCb() local 83 if (callback != nullptr) { in GetRefLocationidCb() 84 callback->RequestAgnssRefInfo(); in GetRefLocationidCb() 269 const auto& callback = iter.second; in ResetAgnssDeathRecipient() local [all …]
|
/drivers/interface/location/lpfence/cellfence/v1_0/ |
D | ICellfenceCallback.idl | 53 * @brief Defines the callback of the cell fence module. 55 …* Before enabling the cell fencing feature, you need to register the callback to report the cell f… 60 [callback] interface ICellfenceCallback { 64 …* This callback will be invoked to report the cell fence status when the relationship between a de… 68 * @return Returns <b>0</b> if the callback is invoked successfully. 69 * @return Returns a negative value if the callback fails to be invoked. 81 * @return Returns <b>0</b> if the callback is invoked successfully. 82 * @return Returns a negative value if the callback fails to be invoked. 92 * @return Returns <b>0</b> if the callback is invoked successfully. 93 * @return Returns a negative value if the callback fails to be invoked.
|
/drivers/interface/location/lpfence/cellbatching/v1_0/ |
D | ICellbatchingCallback.idl | 34 * The callback instance must be registered when a user subscribes to the cell batching feature. 55 * @brief Defines a callback of the cell batching module. 57 …* Before enabling the cell batching feature, you need to register the callback to report the base … 62 [callback] interface ICellbatchingCallback { 69 * @return Returns <b>0</b> if the callback is invoked successfully. 70 * @return Returns a negative value if the callback fails to be invoked. 80 * @return Returns <b>0</b> if the callback is invoked successfully. 81 * @return Returns a negative value if the callback fails to invoked.
|
/drivers/peripheral/codec/test/fuzztest/adapter_fuzzer/codeccreatecomponentadapter_fuzzer/ |
D | codeccreatecomponent_fuzzer.cpp | 27 CodecCallbackType *callback = CodecCallbackTypeGet(nullptr); in CodecCreateComponent() local 37 *(reinterpret_cast<int64_t *>(const_cast<uint8_t *>(data))), callback); in CodecCreateComponent() 48 CodecCallbackTypeRelease(callback); in CodecCreateComponent()
|
/drivers/interface/thermal/v1_1/ |
D | IThermalCallback.idl | 33 * @brief Provides the callback of device temperature changes. 35 …* The thermal module provides the callback for the thermal service to obtain device temperature ch… 46 * @brief Represents the callback of thermal status changes. 48 …* After creating a callback object, the thermal service can call {@link IThermalInterface} to regi… 53 [callback] interface IThermalCallback {
|