/drivers/peripheral/bluetooth/hci/hdi_service/ |
D | hci_interface_impl.cpp | 49 int32_t HciInterfaceImpl::Init(const sptr<IHciCallback>& callbackObj) in Init() argument 52 if (callbackObj == nullptr) { in Init() 59 [callbackObj]( in Init() 60 …const std::vector<uint8_t> &packet) { callbackObj->OnReceivedHciPacket(BtType::ACL_DATA, packet); … in Init() 62 [callbackObj]( in Init() 63 …const std::vector<uint8_t> &packet) { callbackObj->OnReceivedHciPacket(BtType::SCO_DATA, packet); … in Init() 65 [callbackObj]( in Init() 66 …const std::vector<uint8_t> &packet) { callbackObj->OnReceivedHciPacket(BtType::HCI_EVENT, packet);… in Init() 70 …[callbackObj](bool status) { callbackObj->OnInited(status ? BtStatus::SUCCESS : BtStatus::INITIAL_… in Init() 73 callbacks_ = callbackObj; in Init() [all …]
|
D | hci_interface_impl.h | 33 int32_t Init(const sptr<IHciCallback>& callbackObj) override; 42 int32_t AddHciDeathRecipient(const sptr<IHciCallback>& callbackObj); 43 int32_t RemoveHciDeathRecipient(const sptr<IHciCallback>& callbackObj);
|
/drivers/peripheral/fingerprint_auth/test/fuzztest/fingerprint_auth/fingerprintauthhdi_fuzzer/ |
D | fingerprint_auth_hdi_fuzzer.cpp | 101 void FillFuzzIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillFuzzIExecutorCallback() argument 105 callbackObj = nullptr; in FillFuzzIExecutorCallback() 107 … callbackObj = new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32()); in FillFuzzIExecutorCallback() 108 if (callbackObj == nullptr) { in FillFuzzIExecutorCallback() 115 void FillFuzzISaCommandCallback(Parcel &parcel, sptr<ISaCommandCallback> &callbackObj) in FillFuzzISaCommandCallback() argument 119 callbackObj = nullptr; in FillFuzzISaCommandCallback() 121 callbackObj = new (std::nothrow) DummyISaCommandCallback(parcel.ReadInt32()); in FillFuzzISaCommandCallback() 122 if (callbackObj == nullptr) { in FillFuzzISaCommandCallback() 189 sptr<IExecutorCallback> callbackObj; in FuzzEnroll() local 190 FillFuzzIExecutorCallback(parcel, callbackObj); in FuzzEnroll() [all …]
|
/drivers/peripheral/fingerprint_auth/hdi_service/src/ |
D | executor_impl.cpp | 76 …64_t scheduleId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) in Enroll() argument 81 if (callbackObj == nullptr) { in Enroll() 86 int32_t ret = callbackObj->OnResult(ResultCode::OPERATION_NOT_SUPPORT, {}); in Enroll() 95 const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) in Authenticate() argument 98 return AuthenticateV1_1(scheduleId, templateIdList, true, extraInfo, callbackObj); in Authenticate() 102 …dAfterFirstFail, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) in AuthenticateV1_1() argument 109 if (callbackObj == nullptr) { in AuthenticateV1_1() 114 int32_t ret = callbackObj->OnResult(ResultCode::NOT_ENROLLED, {}); in AuthenticateV1_1() 123 …64_t scheduleId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) in Identify() argument 128 if (callbackObj == nullptr) { in Identify() [all …]
|
/drivers/peripheral/face_auth/hdi_service/src/ |
D | executor_impl.cpp | 77 …64_t scheduleId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) in Enroll() argument 82 if (callbackObj == nullptr) { in Enroll() 87 int32_t ret = callbackObj->OnResult(ResultCode::OPERATION_NOT_SUPPORT, {}); in Enroll() 96 const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) in Authenticate() argument 102 if (callbackObj == nullptr) { in Authenticate() 107 int32_t ret = callbackObj->OnResult(ResultCode::NOT_ENROLLED, {}); in Authenticate() 116 …64_t scheduleId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) in Identify() argument 121 if (callbackObj == nullptr) { in Identify() 126 int32_t ret = callbackObj->OnResult(ResultCode::OPERATION_NOT_SUPPORT, {}); in Identify() 151 …t32_t commandId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) in SendCommand() argument [all …]
|
/drivers/peripheral/face_auth/test/fuzztest/face_auth/faceauthhdi_fuzzer/ |
D | face_auth_hdi_fuzzer.cpp | 101 void FillFuzzIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillFuzzIExecutorCallback() argument 105 callbackObj = nullptr; in FillFuzzIExecutorCallback() 107 … callbackObj = new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32()); in FillFuzzIExecutorCallback() 108 if (callbackObj == nullptr) { in FillFuzzIExecutorCallback() 115 void FillFuzzISaCommandCallback(Parcel &parcel, sptr<ISaCommandCallback> &callbackObj) in FillFuzzISaCommandCallback() argument 119 callbackObj = nullptr; in FillFuzzISaCommandCallback() 121 callbackObj = new (std::nothrow) DummyISaCommandCallback(parcel.ReadInt32()); in FillFuzzISaCommandCallback() 122 if (callbackObj == nullptr) { in FillFuzzISaCommandCallback() 189 sptr<IExecutorCallback> callbackObj; in FuzzEnroll() local 190 FillFuzzIExecutorCallback(parcel, callbackObj); in FuzzEnroll() [all …]
|
/drivers/peripheral/pin_auth/hdi_service/service/src/ |
D | executor_impl.cpp | 121 void ExecutorImpl::CallError(const sptr<IExecutorCallback> &callbackObj, uint32_t errorCode) in CallError() argument 125 if (callbackObj->OnResult(errorCode, ret) != SUCCESS) { in CallError() 131 const sptr<IExecutorCallback> &callbackObj) in Enroll() argument 134 if (callbackObj == nullptr) { in Enroll() 142 CallError(callbackObj, GENERAL_ERROR); in Enroll() 145 int32_t result = scheduleMap_.AddScheduleInfo(scheduleId, ENROLL_PIN, callbackObj, 0, salt); in Enroll() 148 CallError(callbackObj, GENERAL_ERROR); in Enroll() 151 result = callbackObj->OnGetData(scheduleId, salt, 0); in Enroll() 165 const sptr<IExecutorCallbackV1_1> &callbackObj) in EnrollV1_1() argument 170 static_cast<void>(callbackObj); in EnrollV1_1() [all …]
|
/drivers/peripheral/sensor/hdi_impl/ |
D | sensor_impl.h | 42 int32_t Register(int32_t groupId, const sptr<ISensorCallbackVdi>& callbackObj) override; 43 int32_t Unregister(int32_t groupId, const sptr<ISensorCallbackVdi>& callbackObj) override; 47 int32_t AddSensorDeathRecipient(const sptr<ISensorCallbackVdi> &callbackObj); 48 int32_t RemoveSensorDeathRecipient(const sptr<ISensorCallbackVdi> &callbackObj); 49 int32_t UnregisterImpl(int32_t groupId, IRemoteObject *callbackObj);
|
D | sensor_impl.cpp | 277 int32_t SensorImpl::Register(int32_t groupId, const sptr<ISensorCallbackVdi> &callbackObj) in Register() argument 295 [&callbackObj](const sptr<ISensorCallbackVdi> &callbackRegistered) { in Register() 296 const sptr<IRemoteObject> &lhs = callbackObj->HandleCallbackDeath(); in Register() 301 int32_t addResult = AddSensorDeathRecipient(callbackObj); in Register() 305 g_groupIdCallBackMap[groupId].push_back(callbackObj); in Register() 310 int32_t addResult = AddSensorDeathRecipient(callbackObj); in Register() 323 int32_t removeResult = RemoveSensorDeathRecipient(callbackObj); in Register() 330 remoteVec.push_back(callbackObj); in Register() 335 int32_t SensorImpl::Unregister(int32_t groupId, const sptr<ISensorCallbackVdi> &callbackObj) in Unregister() argument 339 const sptr<IRemoteObject> &remote = callbackObj->HandleCallbackDeath(); in Unregister() [all …]
|
/drivers/peripheral/pin_auth/test/fuzztest/pin_auth/pinauthhdi_fuzzer/ |
D | pin_auth_hdi_fuzzer.cpp | 87 void FillFuzzIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillFuzzIExecutorCallback() argument 91 callbackObj = nullptr; in FillFuzzIExecutorCallback() 93 … callbackObj = new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32()); in FillFuzzIExecutorCallback() 94 if (callbackObj == nullptr) { in FillFuzzIExecutorCallback() 170 sptr<IExecutorCallback> callbackObj; in FuzzEnroll() local 171 FillFuzzIExecutorCallback(parcel, callbackObj); in FuzzEnroll() 172 g_executorImpl.Enroll(scheduleId, extraInfo, callbackObj); in FuzzEnroll() 183 sptr<IExecutorCallback> callbackObj; in FuzzAuthenticate() local 184 FillFuzzIExecutorCallback(parcel, callbackObj); in FuzzAuthenticate() 185 g_executorImpl.Authenticate(scheduleId, templateId, extraInfo, callbackObj); in FuzzAuthenticate() [all …]
|
/drivers/peripheral/fingerprint_auth/hdi_service/include/ |
D | executor_impl.h | 40 const sptr<IExecutorCallback> &callbackObj) override; 43 const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) override; 46 const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) override; 49 const sptr<IExecutorCallback> &callbackObj) override; 56 const sptr<IExecutorCallback> &callbackObj) override; 63 int32_t RegisterSaCommandCallback(const sptr<ISaCommandCallback> &callbackObj) override;
|
/drivers/peripheral/face_auth/hdi_service/include/ |
D | executor_impl.h | 41 const sptr<IExecutorCallback> &callbackObj) override; 44 const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) override; 47 const sptr<IExecutorCallback> &callbackObj) override; 54 …andId, const std::vector<uint8_t> &extraInfo, const sptr<IExecutorCallback> &callbackObj) override; 63 int32_t RegisterSaCommandCallback(const sptr<ISaCommandCallback> &callbackObj) override;
|
/drivers/peripheral/pin_auth/hdi_service/service/inc/ |
D | executor_impl.h | 43 const sptr<IExecutorCallback> &callbackObj) override; 45 const sptr<IExecutorCallbackV1_1> &callbackObj) override; 47 const sptr<IExecutorCallback> &callbackObj) override; 49 const sptr<IExecutorCallbackV1_1> &callbackObj) override; 53 const sptr<IExecutorCallback> &callbackObj) override; 80 void CallError(const sptr<IExecutorCallback> &callbackObj, uint32_t errorCode);
|
/drivers/peripheral/location/agnss/hdi_service/ |
D | agnss_interface_impl.cpp | 110 int32_t AGnssInterfaceImpl::SetAgnssCallback(const sptr<IAGnssCallback>& callbackObj) in SetAgnssCallback() argument 113 if (callbackObj == nullptr) { in SetAgnssCallback() 118 const sptr<IRemoteObject>& remote = OHOS::HDI::hdi_objcast<IAGnssCallback>(callbackObj); in SetAgnssCallback() 125 const sptr<IRemoteObject>& lhs = OHOS::HDI::hdi_objcast<IAGnssCallback>(callbackObj); in SetAgnssCallback() 146 AddAgnssDeathRecipient(callbackObj); in SetAgnssCallback() 147 g_agnssCallBackMap[remote.GetRefPtr()] = callbackObj; in SetAgnssCallback() 234 int32_t AGnssInterfaceImpl::AddAgnssDeathRecipient(const sptr<IAGnssCallback>& callbackObj) in AddAgnssDeathRecipient() argument 237 const sptr<IRemoteObject>& remote = OHOS::HDI::hdi_objcast<IAGnssCallback>(callbackObj); in AddAgnssDeathRecipient() 247 int32_t AGnssInterfaceImpl::RemoveAgnssDeathRecipient(const sptr<IAGnssCallback>& callbackObj) in RemoveAgnssDeathRecipient() argument 249 const sptr<IRemoteObject>& remote = OHOS::HDI::hdi_objcast<IAGnssCallback>(callbackObj); in RemoveAgnssDeathRecipient()
|
D | agnss_interface_impl.h | 33 int32_t SetAgnssCallback(const sptr<IAGnssCallback>& callbackObj) override; 43 int32_t AddAgnssDeathRecipient(const sptr<IAGnssCallback>& callbackObj); 45 int32_t RemoveAgnssDeathRecipient(const sptr<IAGnssCallback>& callbackObj);
|
/drivers/peripheral/location/gnss/hdi_service/ |
D | gnss_interface_impl.cpp | 184 int32_t GnssInterfaceImpl::EnableGnss(const sptr<IGnssCallback>& callbackObj) in EnableGnss() argument 187 if (callbackObj == nullptr) { in EnableGnss() 192 const sptr<IRemoteObject>& remote = OHOS::HDI::hdi_objcast<IGnssCallback>(callbackObj); in EnableGnss() 199 const sptr<IRemoteObject>& lhs = OHOS::HDI::hdi_objcast<IGnssCallback>(callbackObj); in EnableGnss() 210 AddGnssDeathRecipient(callbackObj); in EnableGnss() 212 g_locationCallBackMap[remote.GetRefPtr()] = callbackObj; in EnableGnss() 286 int32_t GnssInterfaceImpl::AddGnssDeathRecipient(const sptr<IGnssCallback>& callbackObj) in AddGnssDeathRecipient() argument 289 const sptr<IRemoteObject>& remote = OHOS::HDI::hdi_objcast<IGnssCallback>(callbackObj); in AddGnssDeathRecipient() 299 int32_t GnssInterfaceImpl::RemoveGnssDeathRecipient(const sptr<IGnssCallback>& callbackObj) in RemoveGnssDeathRecipient() argument 301 const sptr<IRemoteObject>& remote = OHOS::HDI::hdi_objcast<IGnssCallback>(callbackObj); in RemoveGnssDeathRecipient()
|
D | gnss_interface_impl.h | 35 int32_t EnableGnss(const sptr<IGnssCallback>& callbackObj) override; 55 int32_t AddGnssDeathRecipient(const sptr<IGnssCallback>& callbackObj); 57 int32_t RemoveGnssDeathRecipient(const sptr<IGnssCallback>& callbackObj);
|
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcamerahostsetcallback_fuzzer/ |
D | dcamerahostsetcallback_fuzzer.cpp | 51 sptr<ICameraHostCallback> callbackObj(new DemoCameraHostCallback()); in DcameraHostSetCallbackFuzzTest() local 52 DCameraHost::GetInstance()->SetCallback(callbackObj); in DcameraHostSetCallbackFuzzTest()
|
/drivers/peripheral/motion/hdi_service/ |
D | motion_if_service.h | 35 int32_t Register(const sptr<IMotionCallback> &callbackObj) override; 36 int32_t Unregister(const sptr<IMotionCallback> &callbackObj) override;
|
D | motion_if_service.cpp | 125 int32_t MotionIfService::Register(const sptr<IMotionCallback> &callbackObj) in Register() argument 134 sptr<MotionCallbackVdi> motionCb = new MotionCallbackVdi(callbackObj); in Register() 144 int32_t MotionIfService::Unregister(const sptr<IMotionCallback> &callbackObj) in Unregister() argument 153 sptr<MotionCallbackVdi> motionCb = new MotionCallbackVdi(callbackObj); in Unregister()
|
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcameraopencamera_fuzzer/ |
D | dcameraopencamera_fuzzer.cpp | 47 sptr<ICameraDeviceCallback> callbackObj(new DemoCameraDeviceCallback()); in DcameraOpenCameraFuzzTest() local 49 DCameraHost::GetInstance()->OpenCamera(cameraId, callbackObj, demoCameraDevice); in DcameraOpenCameraFuzzTest()
|
/drivers/peripheral/thermal/interfaces/hdi_service/include/ |
D | thermal_interface_impl.h | 41 int32_t Register(const sptr<IThermalCallback>& callbackObj) override; 45 int32_t RegisterFanCallback(const sptr<IFanCallback>& callbackObj) override;
|
/drivers/peripheral/camera/vdi_base/interfaces/v1_0/ |
D | icamera_host_vdi.h | 44 virtual int32_t SetCallback(const sptr<ICameraHostVdiCallback> &callbackObj) = 0; 50 … int32_t OpenCamera(const std::string &cameraId, const sptr<ICameraDeviceVdiCallback> &callbackObj,
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_interface_impl.cpp | 170 int32_t ThermalInterfaceImpl::Register(const sptr<IThermalCallback>& callbackObj) in Register() argument 176 thermalZoneMgr_->SetThermalEventCb(callbackObj); in Register() 192 int32_t ThermalInterfaceImpl::RegisterFanCallback(const sptr<IFanCallback>& callbackObj) in RegisterFanCallback() argument 198 thermalZoneMgr_->SetFanEventCb(callbackObj); in RegisterFanCallback()
|
/drivers/interface/fingerprint_auth/v1_0/ |
D | IExecutor.idl | 89 * @param callbackObj Indicates enroll callback object, see {@link IExecutorCallback}. 94 …[in] unsigned long scheduleId, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj); 101 * @param callbackObj Indicates authenticate callback object, see {@link IExecutorCallback}. 108 …nsigned long[] templateIdList, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj); 114 * @param callbackObj Indicates identify callback object, see {@link IExecutorCallback}. 119 …[in] unsigned long scheduleId, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj); 143 * @param callbackObj Indicates command callback object, see {@link IExecutorCallback}. 148 …endCommand([in] int commandId, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj);
|