Home
last modified time | relevance | path

Searched refs:callbackObj (Results 1 – 25 of 90) sorted by relevance

1234

/drivers/peripheral/bluetooth/hci/hdi_service/
Dhci_interface_impl.cpp49 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 …]
Dhci_interface_impl.h33 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/
Dfingerprint_auth_hdi_fuzzer.cpp101 void FillFuzzIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillFuzzIExecutorCallback() argument
105 callbackObj = nullptr; in FillFuzzIExecutorCallback()
107callbackObj = 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/
Dexecutor_impl.cpp76 …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/
Dexecutor_impl.cpp77 …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/
Dface_auth_hdi_fuzzer.cpp101 void FillFuzzIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillFuzzIExecutorCallback() argument
105 callbackObj = nullptr; in FillFuzzIExecutorCallback()
107callbackObj = 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/
Dexecutor_impl.cpp121 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/
Dsensor_impl.h42 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);
Dsensor_impl.cpp277 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/
Dpin_auth_hdi_fuzzer.cpp87 void FillFuzzIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillFuzzIExecutorCallback() argument
91 callbackObj = nullptr; in FillFuzzIExecutorCallback()
93callbackObj = 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/
Dexecutor_impl.h40 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/
Dexecutor_impl.h41 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/
Dexecutor_impl.h43 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/
Dagnss_interface_impl.cpp110 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()
Dagnss_interface_impl.h33 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/
Dgnss_interface_impl.cpp184 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()
Dgnss_interface_impl.h35 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/
Ddcamerahostsetcallback_fuzzer.cpp51 sptr<ICameraHostCallback> callbackObj(new DemoCameraHostCallback()); in DcameraHostSetCallbackFuzzTest() local
52 DCameraHost::GetInstance()->SetCallback(callbackObj); in DcameraHostSetCallbackFuzzTest()
/drivers/peripheral/motion/hdi_service/
Dmotion_if_service.h35 int32_t Register(const sptr<IMotionCallback> &callbackObj) override;
36 int32_t Unregister(const sptr<IMotionCallback> &callbackObj) override;
Dmotion_if_service.cpp125 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/
Ddcameraopencamera_fuzzer.cpp47 sptr<ICameraDeviceCallback> callbackObj(new DemoCameraDeviceCallback()); in DcameraOpenCameraFuzzTest() local
49 DCameraHost::GetInstance()->OpenCamera(cameraId, callbackObj, demoCameraDevice); in DcameraOpenCameraFuzzTest()
/drivers/peripheral/thermal/interfaces/hdi_service/include/
Dthermal_interface_impl.h41 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/
Dicamera_host_vdi.h44 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/
Dthermal_interface_impl.cpp170 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/
DIExecutor.idl89 * @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);

1234