/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | servstat_listener.c | 34 struct ServstatListenerStub *stub = (struct ServstatListenerStub *)remote; in ServstatListenerStubRemoteDispatch() local 40 if (!HdfRemoteServiceCheckInterfaceToken(stub->remote, data)) { in ServstatListenerStubRemoteDispatch() 49 if (stub->listener.callback != NULL) { in ServstatListenerStubRemoteDispatch() 50 stub->listener.callback(&stub->listener, &status); in ServstatListenerStubRemoteDispatch() 71 struct ServstatListenerStub *stub = OsalMemCalloc(sizeof(struct ServstatListenerStub)); in HdiServiceStatusListenerNewInstance() local 72 if (stub == NULL) { in HdiServiceStatusListenerNewInstance() 79 stub->remote = HdfRemoteServiceObtain((struct HdfObject *)stub, &remoteDispatch); in HdiServiceStatusListenerNewInstance() 80 if (stub in HdiServiceStatusListenerNewInstance() 99 struct ServstatListenerStub *stub = CONTAINER_OF(listener, struct ServstatListenerStub, listener); HdiServiceStatusListenerFree() local [all...] |
H A D | stub_collector.cpp | 34 HDF_LOGE("repeat registration stub constructor for if %{public}s", ifDesc); in StubConstructorRegister() 58 auto stub = g_stubMap.find(servPtr); in StubCollectorGetOrNewObject() local 59 if (stub != g_stubMap.end()) { in StubCollectorGetOrNewObject() 60 return stub->second; in StubCollectorGetOrNewObject() 71 HDF_LOGE("no stub constructor for %{public}s", ifDesc); in StubCollectorGetOrNewObject() 76 HDF_LOGE("no stub constructor method for %{public}s", ifDesc); in StubCollectorGetOrNewObject() 82 HDF_LOGE("failed to construct stub obj %{public}s", ifDesc); in StubCollectorGetOrNewObject() 96 auto stub = g_stubMap.find(servPtr); in StubCollectorRemoveObject() local 97 if (stub == g_stubMap.end()) { in StubCollectorRemoveObject() 103 HDF_LOGE("no stub constructo in StubCollectorRemoveObject() [all...] |
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | devsvc_manager_stub.c | 97 static bool CheckServiceObjectValidNoLock(const struct DevSvcManagerStub *stub, const struct HdfDeviceObject *service) in CheckServiceObjectValidNoLock() argument 105 HdfSListIteratorInit(&it, &stub->devObjHolderList); in CheckServiceObjectValidNoLock() 122 static bool CheckRemoteObjectValidNoLock(const struct DevSvcManagerStub *stub, const struct HdfRemoteService *service) in CheckRemoteObjectValidNoLock() argument 130 HdfSListIteratorInit(&it, &stub->devObjHolderList); in CheckRemoteObjectValidNoLock() 146 static void ReleaseServiceObjectHolder(struct DevSvcManagerStub *stub, struct HdfDeviceObjectHolder *devObjHolder) in ReleaseServiceObjectHolder() argument 151 HdfRemoteServiceRemoveDeathRecipient(serviceRemote, &stub->recipient); in ReleaseServiceObjectHolder() 163 struct DevSvcManagerStub *stub, const char *name, struct HdfRemoteService *service) in ObtainServiceObject() 187 OsalMutexLock(&stub->devSvcStubMutex); in ObtainServiceObject() 188 HdfSListAdd(&stub->devObjHolderList, &serviceObjectHolder->entry); in ObtainServiceObject() 189 OsalMutexUnlock(&stub in ObtainServiceObject() 162 ObtainServiceObject( struct DevSvcManagerStub *stub, const char *name, struct HdfRemoteService *service) ObtainServiceObject() argument 196 ReleaseServiceObject(struct DevSvcManagerStub *stub, struct HdfDeviceObject *serviceObject) ReleaseServiceObject() argument 257 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubAddService() local 288 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubUpdateService() local 325 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubGetService() local 374 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubListAllService() local 392 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubListServiceByInterfaceDesc() local 413 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubRemoveService() local 461 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubRegisterServListener() local 494 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubUnregisterServListener() local 519 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)service; DevSvcManagerStubDispatch() local 562 struct DevSvcManagerStub *stub = DevSvcManagerOnServiceDied() local 673 DevObjHolderListReleaseNoLock(struct DevSvcManagerStub *stub) DevObjHolderListReleaseNoLock() argument [all...] |
/drivers/peripheral/codec/hal/src/ |
H A D | codec_callback_type_stub.c | 253 struct CodecCallbackTypeStub *stub in CodecCallbackTypeStubGetInstance() local 255 if (stub == NULL) { in CodecCallbackTypeStubGetInstance() 260 stub->dispatcher.Dispatch = CodecCallbackTypeServiceOnRemoteRequest; in CodecCallbackTypeStubGetInstance() 261 stub->service.remote = HdfRemoteServiceObtain((struct HdfObject*)stub, &(stub->dispatcher)); in CodecCallbackTypeStubGetInstance() 262 if (stub->service.remote == NULL) { in CodecCallbackTypeStubGetInstance() 263 CODEC_LOGE("stub->service.remote is null"); in CodecCallbackTypeStubGetInstance() 264 OsalMemFree(stub); in CodecCallbackTypeStubGetInstance() 268 if (!HdfRemoteServiceSetInterfaceDesc(stub in CodecCallbackTypeStubGetInstance() 299 struct CodecCallbackTypeStub *stub = CONTAINER_OF(instance, struct CodecCallbackTypeStub, service); CodecCallbackTypeStubRelease() local [all...] |
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/ |
H A D | audio_driver.cpp | 33 OHOS::sptr<OHOS::IRemoteObject> stub; member 58 if (hdfAudioManagerHost == NULL || hdfAudioManagerHost->stub == NULL) { in AudioManagerDriverDispatch() 62 return hdfAudioManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in AudioManagerDriverDispatch() 99 hdfAudioManagerHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfAudioManagerDriverBind() 101 if (hdfAudioManagerHost->stub == nullptr) { in HdfAudioManagerDriverBind() 102 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfAudioManagerDriverBind() 121 hdfAudioManagerHost->stub = nullptr; in HdfAudioManagerDriverRelease()
|
/drivers/peripheral/distributed_audio/hdi_service/audio_ext/v1_0/src/ |
H A D | daudio_manager_driver.cpp | 31 OHOS::sptr<OHOS::IRemoteObject> stub; member 56 if (hdfDAudioManagerHost == NULL || hdfDAudioManagerHost->stub == NULL) { in DAudioManagerDriverDispatch() 60 return hdfDAudioManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in DAudioManagerDriverDispatch() 95 hdfDAudioManagerHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfDAudioManagerDriverBind() 97 if (hdfDAudioManagerHost->stub == nullptr) { in HdfDAudioManagerDriverBind() 98 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfDAudioManagerDriverBind() 118 hdfDAudioManagerHost->stub = nullptr; in HdfDAudioManagerDriverRelease()
|
/drivers/peripheral/distributed_camera/hdi_service/src/config/ |
H A D | dcamera_provider_config.cpp | 33 OHOS::sptr<OHOS::IRemoteObject> stub; member 58 if (hdfDCameraProviderHost == NULL || hdfDCameraProviderHost->stub == NULL) { in DCameraProviderDriverDispatch() 62 return hdfDCameraProviderHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in DCameraProviderDriverDispatch() 101 hdfDCameraProviderHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfDCameraProviderDriverBind() 103 if (hdfDCameraProviderHost->stub == nullptr) { in HdfDCameraProviderDriverBind() 104 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfDCameraProviderDriverBind() 124 hdfDCameraProviderHost->stub = nullptr; in HdfDCameraProviderDriverRelease()
|
H A D | dcamera_host_config.cpp | 33 OHOS::sptr<OHOS::IRemoteObject> stub; member 58 if (hdfCameraHostHost == NULL || hdfCameraHostHost->stub == NULL) { in CameraHostDriverDispatch() 62 return hdfCameraHostHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in CameraHostDriverDispatch() 101 hdfCameraHostHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfCameraHostDriverBind() 103 if (hdfCameraHostHost->stub == nullptr) { in HdfCameraHostDriverBind() 104 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfCameraHostDriverBind() 124 hdfCameraHostHost->stub = nullptr; in HdfCameraHostDriverRelease()
|
/drivers/peripheral/intelligent_voice/hdi_service/trigger/ |
H A D | intell_voice_trigger_driver.cpp | 33 OHOS::sptr<OHOS::IRemoteObject> stub; member 60 if ((hdfIntellVoiceTriggerManagerHost == nullptr) || (hdfIntellVoiceTriggerManagerHost->stub == nullptr)) { in IntellVoiceTriggerManagerDriverDispatch() 65 return hdfIntellVoiceTriggerManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in IntellVoiceTriggerManagerDriverDispatch() 99 hdfIntellVoiceTriggerManagerHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfIntellVoiceTriggerManagerDriverBind() 101 if (hdfIntellVoiceTriggerManagerHost->stub == nullptr) { in HdfIntellVoiceTriggerManagerDriverBind() 102 INTELLIGENT_VOICE_LOGE("failed to get stub object"); in HdfIntellVoiceTriggerManagerDriverBind() 123 hdfIntellVoiceTriggerManagerHost->stub = nullptr; in HdfIntellVoiceTriggerManagerDriverRelease()
|
/drivers/peripheral/intelligent_voice/hdi_service/engine/ |
H A D | intell_voice_engine_driver.cpp | 31 OHOS::sptr<OHOS::IRemoteObject> stub; member 58 if ((hdfIntellVoiceEngineManagerHost == nullptr) || (hdfIntellVoiceEngineManagerHost->stub == nullptr)) { in IntellVoiceEngineManagerDriverDispatch() 63 return hdfIntellVoiceEngineManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in IntellVoiceEngineManagerDriverDispatch() 97 hdfIntellVoiceEngineManagerHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfIntellVoiceEngineManagerDriverBind() 99 if (hdfIntellVoiceEngineManagerHost->stub == nullptr) { in HdfIntellVoiceEngineManagerDriverBind() 100 INTELLIGENT_VOICE_LOGE("failed to get stub object"); in HdfIntellVoiceEngineManagerDriverBind() 121 hdfIntellVoiceEngineManagerHost->stub = nullptr; in HdfIntellVoiceEngineManagerDriverRelease()
|
/drivers/peripheral/usb/hdi_service/src/ |
H A D | usb_interface_driver.cpp | 33 OHOS::sptr<OHOS::IRemoteObject> stub;
member 57 if (hdfUsbInterfaceHost == nullptr || hdfUsbInterfaceHost->stub == nullptr) {
in UsbInterfaceDriverDispatch() 58 HDF_LOGE("%{public}s:host or stub are nullptr", __func__);
in UsbInterfaceDriverDispatch() 61 return hdfUsbInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option);
in UsbInterfaceDriverDispatch() 97 hdfUsbInterfaceHost->stub =
in HdfUsbInterfaceDriverBind() 100 if (hdfUsbInterfaceHost->stub == nullptr) {
in HdfUsbInterfaceDriverBind() 101 HDF_LOGE("%{public}s: failed to get stub object", __func__);
in HdfUsbInterfaceDriverBind() 112 hdfUsbInterfaceHost->stub = nullptr;
in HdfUsbInterfaceDriverBind()
|
/drivers/peripheral/battery/interfaces/hdi_service/src/ |
H A D | battery_interface_driver.cpp | 27 OHOS::sptr<OHOS::IRemoteObject> stub; member 49 return hdfBatteryInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in BatteryInterfaceDriverDispatch() 76 hdfBatteryInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfBatteryInterfaceDriverBind() 78 if (hdfBatteryInterfaceHost->stub == nullptr) { in HdfBatteryInterfaceDriverBind() 79 BATTERY_HILOGE(COMP_HDI, "%{public}s: failed to get stub object", __func__); in HdfBatteryInterfaceDriverBind()
|
/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | codec_component_manager_driver.cpp | 28 OHOS::sptr<OHOS::IRemoteObject> stub; member 51 return hdfCodecComponentManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in CodecComponentManagerDriverDispatch() 84 hdfCodecComponentManagerHost->stub = in HdfCodecComponentManagerDriverBind() 86 if (hdfCodecComponentManagerHost->stub == nullptr) { in HdfCodecComponentManagerDriverBind() 87 CODEC_LOGE("failed to get stub object"); in HdfCodecComponentManagerDriverBind()
|
/drivers/peripheral/input/hdi_service/ |
H A D | input_interfaces_driver.cpp | 26 OHOS::sptr<OHOS::IRemoteObject> stub; member 47 return hdfInputInterfacesHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in InputInterfacesDriverDispatch() 77 hdfInputInterfacesHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfInputInterfacesDriverBind() 79 if (hdfInputInterfacesHost->stub == nullptr) { in HdfInputInterfacesDriverBind() 80 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfInputInterfacesDriverBind()
|
/drivers/peripheral/light/hdi_service/ |
H A D | light_if_driver.cpp | 29 OHOS::sptr<OHOS::IRemoteObject> stub; member 50 return hdfLightInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in LightInterfaceDriverDispatch() 80 hdfLightInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfLightInterfaceDriverBind() 82 if (hdfLightInterfaceHost->stub == nullptr) { in HdfLightInterfaceDriverBind() 83 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfLightInterfaceDriverBind()
|
/drivers/peripheral/partitionslot/hdi_service/src/ |
H A D | partition_slot_driver.cpp | 26 OHOS::sptr<OHOS::IRemoteObject> stub; member 47 return hdfPartitionSlotHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in PartitionSlotDriverDispatch() 77 hdfPartitionSlotHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfPartitionSlotDriverBind() 79 if (hdfPartitionSlotHost->stub == nullptr) { in HdfPartitionSlotDriverBind() 80 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfPartitionSlotDriverBind()
|
/drivers/peripheral/power/interfaces/hdi_service/src/ |
H A D | power_interface_driver.cpp | 29 OHOS::sptr<OHOS::IRemoteObject> stub; member 51 return hdfPowerInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in PowerInterfaceDriverDispatch() 81 hdfPowerInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfPowerInterfaceDriverBind() 83 if (hdfPowerInterfaceHost->stub == nullptr) { in HdfPowerInterfaceDriverBind() 84 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfPowerInterfaceDriverBind()
|
/drivers/peripheral/memorytracker/hdi_service/src/ |
H A D | memorytracker_interface_driver.cpp | 27 OHOS::sptr<OHOS::IRemoteObject> stub; member 49 return hdfMemoryTrackerInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in MemoryTrackerInterfaceDriverDispatch() 79 hdfMemoryTrackerInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfMemoryTrackerInterfaceDriverBind() 81 if (hdfMemoryTrackerInterfaceHost->stub == nullptr) { in HdfMemoryTrackerInterfaceDriverBind() 82 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfMemoryTrackerInterfaceDriverBind()
|
/drivers/peripheral/sensor/hdi_service/ |
H A D | sensor_if_driver.cpp | 30 OHOS::sptr<OHOS::IRemoteObject> stub; member 51 return hdfSensorInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in SensorInterfaceDriverDispatch() 80 hdfSensorInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfSensorInterfaceDriverBind() 82 if (hdfSensorInterfaceHost->stub == nullptr) { in HdfSensorInterfaceDriverBind() 83 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfSensorInterfaceDriverBind()
|
/drivers/peripheral/codec/hal/include/ |
H A D | codec_component_type_stub.h | 34 bool CodecComponentTypeStubConstruct(struct CodecComponentTypeStub *stub); 36 void CodecComponentTypeStubRelease(struct CodecComponentTypeStub *stub);
|
/drivers/peripheral/face_auth/hdi_service/src/ |
H A D | face_auth_interface_driver.cpp | 32 OHOS::sptr<OHOS::IRemoteObject> stub; member 46 if (hdfFaceAuthInterfaceHost == nullptr || hdfFaceAuthInterfaceHost->stub == nullptr) { in FaceAuthInterfaceDriverDispatch() 64 return hdfFaceAuthInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in FaceAuthInterfaceDriverDispatch() 105 hdfFaceAuthInterfaceHost->stub = in HdfFaceAuthInterfaceDriverBind() 107 if (hdfFaceAuthInterfaceHost->stub == nullptr) { in HdfFaceAuthInterfaceDriverBind() 108 IAM_LOGE("failed to get stub object"); in HdfFaceAuthInterfaceDriverBind()
|
/drivers/peripheral/fingerprint_auth/hdi_service/src/ |
H A D | fingerprint_auth_interface_driver.cpp | 32 OHOS::sptr<OHOS::IRemoteObject> stub; member 47 if (hdfFingerprintAuthInterfaceHost == nullptr || hdfFingerprintAuthInterfaceHost->stub == nullptr) { in FingerprintAuthInterfaceDriverDispatch() 65 return hdfFingerprintAuthInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in FingerprintAuthInterfaceDriverDispatch() 106 hdfFingerprintAuthInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject( in HdfFingerprintAuthInterfaceDriverBind() 108 if (hdfFingerprintAuthInterfaceHost->stub == nullptr) { in HdfFingerprintAuthInterfaceDriverBind() 109 IAM_LOGE("failed to get stub object"); in HdfFingerprintAuthInterfaceDriverBind()
|
/drivers/peripheral/pin_auth/hdi_service/service/src/ |
H A D | pin_auth_interface_driver.cpp | 33 OHOS::sptr<OHOS::IRemoteObject> stub;
member 47 if (hdfPinAuthInterfaceHost == nullptr || hdfPinAuthInterfaceHost->stub == nullptr) {
in PinAuthInterfaceDriverDispatch() 65 return hdfPinAuthInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option);
in PinAuthInterfaceDriverDispatch() 113 hdfPinAuthInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(
in HdfPinAuthInterfaceDriverBind() 115 if (hdfPinAuthInterfaceHost->stub == nullptr) {
in HdfPinAuthInterfaceDriverBind() 116 IAM_LOGE("failed to get stub object");
in HdfPinAuthInterfaceDriverBind()
|
/drivers/peripheral/motion/hdi_service/ |
H A D | motion_if_driver.cpp | 26 OHOS::sptr<OHOS::IRemoteObject> stub; member 51 if (hdfMotionInterfaceHost->stub == nullptr) { in MotionInterfaceDriverDispatch() 52 HDF_LOGE("%{public}s:hdfMotionInterfaceHost->stub is nullptr", __func__); in MotionInterfaceDriverDispatch() 56 return hdfMotionInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in MotionInterfaceDriverDispatch() 87 hdfMotionInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfMotionInterfaceDriverBind() 89 if (hdfMotionInterfaceHost->stub == nullptr) { in HdfMotionInterfaceDriverBind() 90 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfMotionInterfaceDriverBind()
|
/drivers/peripheral/user_auth/hdi_service/service/ |
H A D | user_auth_interface_driver.cpp | 33 OHOS::sptr<OHOS::IRemoteObject> stub; member 49 if (hdfUserAuthInterfaceHost == nullptr || hdfUserAuthInterfaceHost->stub == nullptr) { in UserAuthInterfaceDriverDispatch() 66 return hdfUserAuthInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in UserAuthInterfaceDriverDispatch() 99 hdfUserAuthInterfaceHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject( in HdfUserAuthInterfaceDriverBind() 101 if (hdfUserAuthInterfaceHost->stub == nullptr) { in HdfUserAuthInterfaceDriverBind() 102 IAM_LOGE("failed to get stub object"); in HdfUserAuthInterfaceDriverBind()
|