Home
last modified time | relevance | path

Searched refs:reqId (Results 1 - 25 of 172) sorted by relevance

1234567

/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_client_profile.h51 void ExchangeMtu(int reqId, uint16_t connectHandle, uint16_t mtu) const;
53 int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const;
55 int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const;
56 void DiscoverPrimaryServicesByServiceUuid(int reqId, uint16_t connectHandle, const Uuid &uuid) const;
58 int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const;
60 int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const;
62 int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle, const Uuid &uuid) const;
64 int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const;
65 void ReadCharacteristicValue(int reqId, uint16_t connectHandle, uint16_t handle) const;
66 void ReadUsingCharacteristicByUuid(int reqId, uint16_
[all...]
H A Dgatt_client_profile_callback.h46 virtual void OnExchangeMtuEvent(int reqId, uint16_t connectHandle, uint16_t rxMtu, bool status) {}; in OnExchangeMtuEvent() argument
48 int reqId, int result, uint16_t connectHandle, const std::map<uint16_t, GattCache::Service> &services) {}; in OnDiscoverAllPrimaryServicesEvent()
50 int reqId, int result, uint16_t connectHandle, const std::map<uint16_t, GattCache::Service> &services) {}; in OnDiscoverPrimaryServicesByServiceUUIDEvent()
51 virtual void OnFindIncludedServicesEvent(int reqId, int result, uint16_t connectHandle, uint16_t serviceHandle, in OnFindIncludedServicesEvent() argument
53 virtual void OnDiscoverAllCharacteristicOfServiceEvent(int reqId, int result, uint16_t connectHandle, in OnDiscoverAllCharacteristicOfServiceEvent() argument
55 virtual void OnDiscoverCharacteristicByUUIDEvent(int reqId, int result, uint16_t connectHandle, in OnDiscoverCharacteristicByUUIDEvent() argument
57 virtual void OnDiscoverAllCharacteristicDescriptorsEvent(int reqId, int result, uint16_t serviceHandle, in OnDiscoverAllCharacteristicDescriptorsEvent() argument
60 int reqId, uint16_t handle, GattValue &value, size_t len, int result) {}; in OnReadCharacteristicValueEvent()
61 virtual void OnWriteCharacteristicValueEvent(int reqId, uint16_t connectHandle, uint16_t handle, int result) {}; in OnWriteCharacteristicValueEvent() argument
63 int reqId, uint16_ in OnWriteLongCharacteristicValueEvent()
47 OnDiscoverAllPrimaryServicesEvent( int reqId, int result, uint16_t connectHandle, const std::map<uint16_t, GattCache::Service> &services) OnDiscoverAllPrimaryServicesEvent() argument
49 OnDiscoverPrimaryServicesByServiceUUIDEvent( int reqId, int result, uint16_t connectHandle, const std::map<uint16_t, GattCache::Service> &services) OnDiscoverPrimaryServicesByServiceUUIDEvent() argument
59 OnReadCharacteristicValueEvent( int reqId, uint16_t handle, GattValue &value, size_t len, int result) OnReadCharacteristicValueEvent() argument
62 OnWriteLongCharacteristicValueEvent( int reqId, uint16_t connectHandle, uint16_t handle, int result) OnWriteLongCharacteristicValueEvent() argument
64 OnWriteLongValueOverageDataEvent( int reqId, uint16_t connectHandle, uint16_t handle, GattValue &value, size_t len) OnWriteLongValueOverageDataEvent() argument
66 OnReadDescriptorValueEvent(int reqId, uint16_t handle, GattValue &value, size_t len, int result) OnReadDescriptorValueEvent() argument
67 OnWriteDescriptorValueEvent(int reqId, uint16_t connectHandle, uint16_t handle, int result) OnWriteDescriptorValueEvent() argument
70 OnReliableWriteCharacteristicValueEvent( int reqId, uint16_t handle, GattValue &value, size_t len, int result) OnReliableWriteCharacteristicValueEvent() argument
72 OnExecuteWriteValueEvent(int reqId, uint16_t connectHandle, int result) OnExecuteWriteValueEvent() argument
[all...]
H A Dgatt_profile_defines.h117 GattRequestInfo(ResponesType reqType, uint16_t starthandle, uint16_t endHandle, const Uuid &uuid, int reqId) in GattRequestInfo()
118 : startHandle_(starthandle), endHandle_(endHandle), reqType_(reqType), uuid_(uuid), reqId_(reqId) in GattRequestInfo()
121 ResponesType reqType, uint16_t starthandle, uint16_t endHandle, uint16_t valHandle, const Uuid &uuid, int reqId) in GattRequestInfo()
127 reqId_(reqId) in GattRequestInfo()
129 GattRequestInfo(ResponesType reqType, uint16_t starthandle, uint16_t endHandle, int reqId) in GattRequestInfo()
130 : startHandle_(starthandle), endHandle_(endHandle), reqType_(reqType), reqId_(reqId) in GattRequestInfo()
132 GattRequestInfo(ResponesType reqType, uint16_t starthandle, uint16_t endHandle, uint16_t valHandle, int reqId) in GattRequestInfo()
133 : startHandle_(starthandle), endHandle_(endHandle), valHandle_(valHandle), reqType_(reqType), reqId_(reqId) in GattRequestInfo()
135 GattRequestInfo(ResponesType reqType, int reqId) : reqType_(reqType), reqId_(reqId) in GattRequestInfo()
[all...]
H A Dgatt_client_profile.cpp53 void IndicateRequestRetToService(int reqId, uint16_t connectHandle, ResponesType reqType, uint8_t errorCode);
65 void DiscoverAllPrimaryServiceParsing(int reqId, uint16_t connectHandle, AttEventData *data);
100 void GattRequestTimeoutParsing(int reqId, uint16_t connectHandle, ResponesType respType);
114 int reqId, uint16_t connectHandle, ResponesType respType, uint16_t handle, int result);
116 int reqId, uint16_t connectHandle, ResponesType respType, uint16_t handle, int result);
128 ResponesType reqType, int reqId);
208 * @param reqId Indicates request id.
213 void bluetooth::GattClientProfile::ExchangeMtu(int reqId, uint16_t connectHandle, uint16_t mtu) const in ExchangeMtu() argument
217 pimpl->pClientCallBack_->OnExchangeMtuEvent(reqId, connectHandle, DEFAULT_CLASSIC_CONNECTION_MTU, false); in ExchangeMtu()
219 pimpl->requestList_.emplace_back(connectHandle, GattRequestInfo(EXCHANGE_MTU, mtu, reqId)); in ExchangeMtu()
236 DiscoverAllPrimaryServices( int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const DiscoverAllPrimaryServices() argument
255 DiscoverAllPrimaryServicesInter( int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const DiscoverAllPrimaryServicesInter() argument
281 DiscoverPrimaryServicesByServiceUuid(int reqId, uint16_t connectHandle, const Uuid &uuid) const DiscoverPrimaryServicesByServiceUuid() argument
324 FindIncludedServices( int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const FindIncludedServices() argument
349 DiscoverAllCharacteristicOfService( int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const DiscoverAllCharacteristicOfService() argument
381 DiscoverCharacteristicByUuid( int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle, const Uuid &uuid) const DiscoverCharacteristicByUuid() argument
435 DiscoverAllCharacteristicDescriptors( int reqId, uint16_t connectHandle, uint16_t startHandle, uint16_t endHandle) const DiscoverAllCharacteristicDescriptors() argument
464 ReadCharacteristicValue(int reqId, uint16_t connectHandle, uint16_t handle) const ReadCharacteristicValue() argument
479 ReadUsingCharacteristicByUuid(int reqId, uint16_t connectHandle, const Uuid &uuid) const ReadUsingCharacteristicByUuid() argument
519 ReadLongCharacteristicValue(int reqId, uint16_t connectHandle, uint16_t handle) const ReadLongCharacteristicValue() argument
535 ReadMultipleCharacteristicValue( int reqId, uint16_t connectHandle, const GattValue &value, size_t len) const ReadMultipleCharacteristicValue() argument
556 ReadDescriptorValue(int reqId, uint16_t connectHandle, uint16_t handle) const ReadDescriptorValue() argument
573 ReadLongCharacteristicDescriptor(int reqId, uint16_t connectHandle, uint16_t handle) const ReadLongCharacteristicDescriptor() argument
593 WriteWithoutResponse( int reqId, uint16_t connectHandle, uint16_t handle, const GattValue &value, size_t len) const WriteWithoutResponse() argument
614 SignedWriteWithoutResponse( int reqId, uint16_t connectHandle, uint16_t handle, const GattValue &value, size_t len) const SignedWriteWithoutResponse() argument
641 WriteCharacteristicValue( int reqId, uint16_t connectHandle, uint16_t handle, const GattValue &value, size_t len) const WriteCharacteristicValue() argument
672 WriteLongCharacteristicValue( int reqId, uint16_t connectHandle, uint16_t handle, const GattValue &value, size_t len) const WriteLongCharacteristicValue() argument
698 WriteDescriptorValue( int reqId, uint16_t connectHandle, uint16_t handle, const GattValue &value, size_t len) const WriteDescriptorValue() argument
729 WriteLongCharacteristicDescriptor( int reqId, uint16_t connectHandle, uint16_t handle, const GattValue &value, size_t len) const WriteLongCharacteristicDescriptor() argument
748 ReliableWriteCharacteristicValue( int reqId, uint16_t connectHandle, uint16_t handle, const GattValue &value, size_t len) const ReliableWriteCharacteristicValue() argument
772 ExecuteWriteRequest(int reqId, uint16_t connectHandle, uint8_t flag) const ExecuteWriteRequest() argument
998 IndicateRequestRetToService( int reqId, uint16_t connectHandle, ResponesType reqType, uint8_t errorCode) IndicateRequestRetToService() argument
1128 int reqId = iter->second.reqId_; ErrorResponseParsing() local
1194 int reqId = iter->second.reqId_; ErrorResponseParsing() local
1215 int reqId = iter->second.reqId_; ExchangeMtuParsing() local
1235 DiscoverAllPrimaryServiceParsing(int reqId, uint16_t connectHandle, AttEventData *data) DiscoverAllPrimaryServiceParsing() argument
1286 int reqId = iter->second.reqId_; DiscoverPrimaryServiceByUuidParsing() local
1333 int reqId = iter->second.reqId_; FindIncludeServicesParsing() local
1479 int reqId = iter->second.reqId_; SendDiscoverAllCharacteristicRequest() local
1532 int reqId = iter->second.reqId_; DiscoverAllCharacteristicDescriptorsParsing() local
1579 int reqId = iter->second.reqId_; ReadCharacteristicValueParsing() local
1605 int reqId = iter->second.reqId_; ReadLongCharacteristicValueParsing() local
1638 int reqId = iter->second.reqId_; ReadUsingCharacteristicByUuidParsing() local
1659 int reqId = iter->second.reqId_; ReadMultipleCharacteristicParsing() local
1677 int reqId = iter->second.reqId_; ReadCharacteristicDescriptorsParsing() local
1703 int reqId = iter->second.reqId_; ReadLongCharacteristicDescriptorsParsing() local
1925 SplitReadReqErrorParsing( int reqId, uint16_t connectHandle, ResponesType respType, uint16_t handle, int result) SplitReadReqErrorParsing() argument
1945 SplitWriteReqErrorParsing( int reqId, uint16_t connectHandle, ResponesType respType, uint16_t handle, int result) SplitWriteReqErrorParsing() argument
2061 GattRequestTimeoutParsing(int reqId, uint16_t connectHandle, ResponesType respType) GattRequestTimeoutParsing() argument
2238 FindIteratorByRespones( ResponesType reqType, int reqId) FindIteratorByRespones() argument
[all...]
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/unittest/screensourcetest/src/callback/
H A Ddscreen_source_callback_test.cpp47 const std::string reqId = "reqIdReg"; in HWTEST_F() local
51 dScreenSourceCallback_->PushRegRegisterCallback(reqId, callback); in HWTEST_F()
52 int32_t ret = dScreenSourceCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F()
53 dScreenSourceCallback_->PopRegRegisterCallback(reqId); in HWTEST_F()
67 const std::string reqId = "reqId"; in HWTEST_F() local
70 int32_t ret = dScreenSourceCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F()
84 const std::string reqId = "reqIdReg"; in HWTEST_F() local
88 dScreenSourceCallback_->PushRegRegisterCallback(reqId, callback); in HWTEST_F()
89 int32_t ret = dScreenSourceCallback_->OnNotifyRegResult(devId, dhId, reqId, statu in HWTEST_F()
104 const std::string reqId = "reqIdUnreg"; HWTEST_F() local
124 const std::string reqId = "reqId"; HWTEST_F() local
141 const std::string reqId = "reqIdUnreg"; HWTEST_F() local
159 const std::string reqId = "reqIdReg"; HWTEST_F() local
176 const std::string reqId = "reqId"; HWTEST_F() local
194 const std::string reqId = "reqIdUnreg"; HWTEST_F() local
211 const std::string reqId = "reqId"; HWTEST_F() local
[all...]
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/unittest/audiosourcetest/src/
H A Ddaudio_ipc_callback_test.cpp50 const std::string reqId = "reqIdReg"; in HWTEST_F() local
54 dAudioIpcCallback_->PushRegisterCallback(reqId, callback); in HWTEST_F()
55 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F()
56 dAudioIpcCallback_->PopRegisterCallback(reqId); in HWTEST_F()
71 const std::string reqId = "reqId"; in HWTEST_F() local
74 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F()
92 std::string reqId = "reqId"; in HWTEST_F() local
95 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, statu in HWTEST_F()
118 const std::string reqId = "reqIdUnreg"; HWTEST_F() local
139 const std::string reqId = "reqId"; HWTEST_F() local
160 std::string reqId = "reqId"; HWTEST_F() local
184 const std::string reqId = "reqIdReg"; HWTEST_F() local
202 const std::string reqId = "reqId"; HWTEST_F() local
220 const std::string reqId = "reqIdUnreg"; HWTEST_F() local
238 const std::string reqId = "reqId"; HWTEST_F() local
[all...]
H A Ddaudio_source_proxy_test.cpp59 const std::string reqId = "reqId"; in HWTEST_F() local
64 int32_t ret = dAudioProxy->RegisterDistributedHardware(devId, dhId, param, reqId); in HWTEST_F()
66 ret = dAudioProxy->UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F()
85 const std::string reqId = "reqId"; in HWTEST_F() local
90 int32_t ret = dAudioProxy->RegisterDistributedHardware(devId, dhId, param, reqId); in HWTEST_F()
92 ret = dAudioProxy->UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F()
111 std::string reqId = "reqId"; in HWTEST_F() local
[all...]
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_source/src/
H A Ddaudio_ipc_callback.cpp29 const std::string &reqId, int32_t status, const std::string &resultData) in OnNotifyRegResult()
32 "resultData: %{public}s, reqId: %{public}s", GetAnonyString(devId).c_str(), dhId.c_str(), in OnNotifyRegResult()
33 status, resultData.c_str(), reqId.c_str()); in OnNotifyRegResult()
36 reqId.length() > DAUDIO_MAX_DEVICE_ID_LEN) { in OnNotifyRegResult()
40 auto iter = registerCallbackMap_.find(reqId); in OnNotifyRegResult()
46 registerCallbackMap_.erase(reqId); in OnNotifyRegResult()
54 const std::string &reqId, int32_t status, const std::string &resultData) in OnNotifyUnregResult()
57 "resultData: %{public}s, reqId: %{public}s", GetAnonyString(devId).c_str(), dhId.c_str(), in OnNotifyUnregResult()
58 status, resultData.c_str(), reqId.c_str()); in OnNotifyUnregResult()
61 reqId in OnNotifyUnregResult()
28 OnNotifyRegResult(const std::string &devId, const std::string &dhId, const std::string &reqId, int32_t status, const std::string &resultData) OnNotifyRegResult() argument
53 OnNotifyUnregResult(const std::string &devId, const std::string &dhId, const std::string &reqId, int32_t status, const std::string &resultData) OnNotifyUnregResult() argument
111 PushRegisterCallback(const std::string &reqId, const std::shared_ptr<RegisterCallback> &callback) PushRegisterCallback() argument
119 PopRegisterCallback(const std::string &reqId) PopRegisterCallback() argument
126 PushUnregisterCallback(const std::string &reqId, const std::shared_ptr<UnregisterCallback> &callback) PushUnregisterCallback() argument
134 PopUnregisterCallback(const std::string &reqId) PopUnregisterCallback() argument
[all...]
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source/src/callback/
H A Ddscreen_source_callback.cpp25 const std::string &reqId, int32_t status, const std::string &data) in OnNotifyRegResult()
30 const auto iter = registerCallbackMap_.find(reqId); in OnNotifyRegResult()
37 registerCallbackMap_.erase(reqId); in OnNotifyRegResult()
45 const std::string &reqId, int32_t status, const std::string &data) in OnNotifyUnregResult()
50 const auto iter = unregisterCallbackMap_.find(reqId); in OnNotifyUnregResult()
57 unregisterCallbackMap_.erase(reqId); in OnNotifyUnregResult()
64 void DScreenSourceCallback::PushRegRegisterCallback(const std::string &reqId, in PushRegRegisterCallback() argument
69 registerCallbackMap_.emplace(reqId, callback); in PushRegRegisterCallback()
72 void DScreenSourceCallback::PopRegRegisterCallback(const std::string &reqId) in PopRegRegisterCallback() argument
76 registerCallbackMap_.erase(reqId); in PopRegRegisterCallback()
24 OnNotifyRegResult(const std::string &devId, const std::string &dhId, const std::string &reqId, int32_t status, const std::string &data) OnNotifyRegResult() argument
44 OnNotifyUnregResult(const std::string &devId, const std::string &dhId, const std::string &reqId, int32_t status, const std::string &data) OnNotifyUnregResult() argument
79 PushUnregisterCallback(const std::string &reqId, const std::shared_ptr<UnregisterCallback> &callback) PushUnregisterCallback() argument
87 PopUnregisterCallback(const std::string &reqId) PopUnregisterCallback() argument
[all...]
H A Ddscreen_source_callback_stub.cpp61 std::string reqId = data.ReadString(); in OnNotifyRegResultInner() local
64 if (!CheckParams(devId, dhId, reqId, resultDataStr)) { in OnNotifyRegResultInner()
68 int32_t ret = OnNotifyRegResult(devId, dhId, reqId, status, resultDataStr); in OnNotifyRegResultInner()
79 std::string reqId = data.ReadString(); in OnNotifyUnregResultInner() local
82 if (!CheckParams(devId, dhId, reqId, resultData)) { in OnNotifyUnregResultInner()
86 int32_t ret = OnNotifyUnregResult(devId, dhId, reqId, status, resultData); in OnNotifyUnregResultInner()
91 const std::string &reqId, const std::string &resultData) const in CheckParams()
97 if (reqId.empty() || reqId.size() > DID_MAX_SIZE || resultData.empty() || resultData.size() > PARAM_MAX_SIZE) { in CheckParams()
98 DHLOGE("DScreenSourceCallbackStub CheckParams reqId o in CheckParams()
90 CheckParams(const std::string &devId, const std::string &dhId, const std::string &reqId, const std::string &resultData) const CheckParams() argument
[all...]
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/test/unittest/common/distributedcamera/
H A Ddistributed_camera_source_stub_test.cpp131 std::string reqId = "reqId000"; in HWTEST_F() local
137 int32_t ret = sourceProxy.RegisterDistributedHardware(devId, dhId, reqId, param); in HWTEST_F()
154 std::string reqId = "reqId000"; in HWTEST_F() local
155 int32_t ret = sourceProxy.UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F()
217 std::string reqId = "reqId000"; in HWTEST_F() local
218 int32_t ret = sourceProxy.UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F()
222 reqId = ""; in HWTEST_F()
223 ret = sourceProxy.UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F()
227 ret = sourceProxy.UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F()
244 std::string reqId in HWTEST_F() local
[all...]
H A Dmock_distributed_camera_source_stub.h41 const std::string& reqId, const EnableParam& param) in RegisterDistributedHardware()
45 (void)reqId; in RegisterDistributedHardware()
51 const std::string& reqId) in UnregisterDistributedHardware()
55 (void)reqId; in UnregisterDistributedHardware()
40 RegisterDistributedHardware(const std::string& devId, const std::string& dhId, const std::string& reqId, const EnableParam& param) RegisterDistributedHardware() argument
50 UnregisterDistributedHardware(const std::string& devId, const std::string& dhId, const std::string& reqId) UnregisterDistributedHardware() argument
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/unittest/common/camera_source/callback/
H A Ddcamera_source_callback_test.cpp123 std::string reqId = "reqIdReg"; in HWTEST_F() local
127 sourceCallback_->PushRegCallback(reqId, callback); in HWTEST_F()
128 int32_t ret = sourceCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F()
129 sourceCallback_->PopRegCallback(reqId); in HWTEST_F()
143 std::string reqId = "reqId"; in HWTEST_F() local
147 int32_t ret = sourceCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F()
161 std::string reqId = "reqId"; in HWTEST_F() local
165 sourceCallback_->PushUnregCallback(reqId, callbac in HWTEST_F()
181 std::string reqId = "reqId"; HWTEST_F() local
199 std::string reqId = "reqId"; HWTEST_F() local
245 std::string reqId = "reqId"; HWTEST_F() local
271 std::string reqId = "reqId"; HWTEST_F() local
297 std::string reqId = "reqId"; HWTEST_F() local
[all...]
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source/include/callback/
H A Ddscreen_source_callback.h36 const std::string &reqId, int32_t status, const std::string &data) override;
38 const std::string &reqId, int32_t status, const std::string &data) override;
40 void PushRegRegisterCallback(const std::string &reqId, const std::shared_ptr<RegisterCallback> &callback);
41 void PopRegRegisterCallback(const std::string &reqId);
42 void PushUnregisterCallback(const std::string &reqId, const std::shared_ptr<UnregisterCallback> &callback);
43 void PopUnregisterCallback(const std::string &reqId);
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenservice/src/callback/
H A Ddscreen_source_callback_proxy.cpp28 const std::string &reqId, int32_t status, const std::string &resultData) in OnNotifyRegResult()
30 if (!CheckParams(devId, dhId, reqId, resultData)) { in OnNotifyRegResult()
48 !data.WriteString(reqId) || !data.WriteInt32(status) || in OnNotifyRegResult()
59 const std::string &reqId, int32_t status, const std::string &resultData) in OnNotifyUnregResult()
61 if (!CheckParams(devId, dhId, reqId, resultData)) { in OnNotifyUnregResult()
79 !data.WriteString(reqId) || !data.WriteInt32(status) || in OnNotifyUnregResult()
90 const std::string &reqId, const std::string &resultData) const in CheckParams()
96 if (reqId.empty() || reqId.size() > DID_MAX_SIZE || resultData.empty() || resultData.size() > PARAM_MAX_SIZE) { in CheckParams()
97 DHLOGE("DScreenSourceCallbackProxy CheckParams reqId o in CheckParams()
27 OnNotifyRegResult(const std::string &devId, const std::string &dhId, const std::string &reqId, int32_t status, const std::string &resultData) OnNotifyRegResult() argument
58 OnNotifyUnregResult(const std::string &devId, const std::string &dhId, const std::string &reqId, int32_t status, const std::string &resultData) OnNotifyUnregResult() argument
89 CheckParams(const std::string &devId, const std::string &dhId, const std::string &reqId, const std::string &resultData) const CheckParams() argument
[all...]
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/src/
H A Ddistributed_camera_source_proxy.cpp85 const std::string& reqId, const EnableParam& param) in RegisterDistributedHardware()
88 if (!CheckRegParams(devId, dhId, reqId, param)) { in RegisterDistributedHardware()
105 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(reqId) || in RegisterDistributedHardware()
117 const std::string& reqId, const EnableParam& param) in CheckRegParams()
124 if (reqId.empty() || reqId.size() > DID_MAX_SIZE) { in CheckRegParams()
125 DHLOGE("reqId is invalid"); in CheckRegParams()
138 const std::string& reqId) in UnregisterDistributedHardware()
141 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardware()
158 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(reqId)) { in UnregisterDistributedHardware()
84 RegisterDistributedHardware(const std::string& devId, const std::string& dhId, const std::string& reqId, const EnableParam& param) RegisterDistributedHardware() argument
116 CheckRegParams(const std::string& devId, const std::string& dhId, const std::string& reqId, const EnableParam& param) CheckRegParams() argument
137 UnregisterDistributedHardware(const std::string& devId, const std::string& dhId, const std::string& reqId) UnregisterDistributedHardware() argument
168 CheckUnregParams(const std::string& devId, const std::string& dhId, const std::string& reqId) CheckUnregParams() argument
[all...]
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/src/callback/
H A Ddcamera_source_callback.cpp31 const std::string& reqId, int32_t status, std::string& data) in OnNotifyRegResult()
36 auto iter = regCallbacks_.find(reqId); in OnNotifyRegResult()
52 const std::string& reqId, int32_t status, std::string& data) in OnNotifyUnregResult()
57 auto iter = unregCallbacks_.find(reqId); in OnNotifyUnregResult()
111 void DCameraSourceCallback::PushRegCallback(std::string& reqId, std::shared_ptr<RegisterCallback>& callback) in PushRegCallback() argument
114 regCallbacks_.emplace(reqId, callback); in PushRegCallback()
117 void DCameraSourceCallback::PopRegCallback(std::string& reqId) in PopRegCallback() argument
120 regCallbacks_.erase(reqId); in PopRegCallback()
123 void DCameraSourceCallback::PushUnregCallback(std::string& reqId, std::shared_ptr<UnregisterCallback>& callback) in PushUnregCallback() argument
126 unregCallbacks_.emplace(reqId, callbac in PushUnregCallback()
30 OnNotifyRegResult(const std::string& devId, const std::string& dhId, const std::string& reqId, int32_t status, std::string& data) OnNotifyRegResult() argument
51 OnNotifyUnregResult(const std::string& devId, const std::string& dhId, const std::string& reqId, int32_t status, std::string& data) OnNotifyUnregResult() argument
129 PopUnregCallback(std::string& reqId) PopUnregCallback() argument
[all...]
H A Ddcamera_source_callback_stub.cpp71 std::string reqId = data.ReadString(); in NotifyRegResultInner() local
74 if (!CheckParams(devId, dhId, reqId, result)) { in NotifyRegResultInner()
79 ret = OnNotifyRegResult(devId, dhId, reqId, status, result); in NotifyRegResultInner()
92 std::string reqId = data.ReadString(); in NotifyUnregResultInner() local
95 if (!CheckParams(devId, dhId, reqId, result)) { in NotifyUnregResultInner()
100 ret = OnNotifyUnregResult(devId, dhId, reqId, status, result); in NotifyUnregResultInner()
126 bool DCameraSourceCallbackStub::CheckParams(const std::string& devId, const std::string& dhId, const std::string& reqId, in CheckParams() argument
134 if (reqId.empty() || reqId.size() > DID_MAX_SIZE || result.size() > PARAM_MAX_SIZE) { in CheckParams()
135 DHLOGE("reqId o in CheckParams()
[all...]
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcamera/
H A Ddistributed_camera_source_stub.cpp147 std::string reqId = data.ReadString(); in RegisterDistributedHardwareInner() local
151 if (!CheckRegParams(devId, dhId, reqId, params)) { in RegisterDistributedHardwareInner()
156 ret = RegisterDistributedHardware(devId, dhId, reqId, params); in RegisterDistributedHardwareInner()
164 const std::string& reqId, const EnableParam& param) in CheckRegParams()
171 if (reqId.empty() || reqId.size() > DID_MAX_SIZE) { in CheckRegParams()
172 DHLOGE("reqId is invalid"); in CheckRegParams()
196 std::string reqId = data.ReadString(); in UnregisterDistributedHardwareInner() local
197 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardwareInner()
202 ret = UnregisterDistributedHardware(devId, dhId, reqId); in UnregisterDistributedHardwareInner()
163 CheckRegParams(const std::string& devId, const std::string& dhId, const std::string& reqId, const EnableParam& param) CheckRegParams() argument
208 CheckUnregParams(const std::string& devId, const std::string& dhId, const std::string& reqId) CheckUnregParams() argument
[all...]
H A Ddcamera_source_callback_proxy.cpp27 const std::string& reqId, int32_t status, std::string& data) in OnNotifyRegResult()
29 if (!CheckParams(devId, dhId, reqId, data)) { in OnNotifyRegResult()
46 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteString(reqId) || in OnNotifyRegResult()
57 const std::string& reqId, int32_t status, std::string& data) in OnNotifyUnregResult()
59 if (!CheckParams(devId, dhId, reqId, data)) { in OnNotifyUnregResult()
76 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteString(reqId) || in OnNotifyUnregResult()
153 const std::string& reqId, std::string& data) in CheckParams()
160 if (reqId.empty() || reqId.size() > DID_MAX_SIZE || data.size() > PARAM_MAX_SIZE) { in CheckParams()
161 DHLOGE("reqId o in CheckParams()
26 OnNotifyRegResult(const std::string& devId, const std::string& dhId, const std::string& reqId, int32_t status, std::string& data) OnNotifyRegResult() argument
56 OnNotifyUnregResult(const std::string& devId, const std::string& dhId, const std::string& reqId, int32_t status, std::string& data) OnNotifyUnregResult() argument
152 CheckParams(const std::string& devId, const std::string& dhId, const std::string& reqId, std::string& data) CheckParams() argument
[all...]
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/include/callback/
H A Ddcamera_source_callback.h32 int32_t OnNotifyRegResult(const std::string& devId, const std::string& dhId, const std::string& reqId,
34 int32_t OnNotifyUnregResult(const std::string& devId, const std::string& dhId, const std::string& reqId,
39 void PushRegCallback(std::string& reqId, std::shared_ptr<RegisterCallback>& callback);
40 void PopRegCallback(std::string& reqId);
41 void PushUnregCallback(std::string& reqId, std::shared_ptr<UnregisterCallback>& callback);
42 void PopUnregCallback(std::string& reqId);
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_source/include/
H A Ddaudio_ipc_callback.h32 int32_t OnNotifyRegResult(const std::string &devId, const std::string &dhId, const std::string &reqId,
34 int32_t OnNotifyUnregResult(const std::string &devId, const std::string &dhId, const std::string &reqId,
39 void PushRegisterCallback(const std::string &reqId, const std::shared_ptr<RegisterCallback> &callback);
40 void PopRegisterCallback(const std::string &reqId);
41 void PushUnregisterCallback(const std::string &reqId, const std::shared_ptr<UnregisterCallback> &callback);
42 void PopUnregisterCallback(const std::string &reqId);
/foundation/distributedhardware/distributed_screen/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourcecallbackproxy_fuzzer/
H A Ddscreensourcecallbackproxy_fuzzer.cpp38 const EnableParam &param, const std::string &reqId) override
45 const std::string &reqId) override
65 std::string reqId(reinterpret_cast<const char*>(data), size); in DscreenSourceCallbackProxyFuzzTest()
70 sourceCbkProxy->OnNotifyRegResult(devId, dhId, reqId, status, resultData); in DscreenSourceCallbackProxyFuzzTest()
71 sourceCbkProxy->OnNotifyUnregResult(devId, dhId, reqId, status, resultData); in DscreenSourceCallbackProxyFuzzTest()
72 sourceCbkProxy->CheckParams(devId, dhId, reqId, resultData); in DscreenSourceCallbackProxyFuzzTest()
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer/
H A Dsinkstubdaudiosinkstub_fuzzer.cpp46 std::string reqId = "3"; in SinkStubDaudioSinkStubFuzzTest() local
51 pdata.WriteString(reqId); in SinkStubDaudioSinkStubFuzzTest()
88 std::string reqId = "3"; in SinkStubSubscribeLocalHardwareInnerFuzzTest() local
93 pdata.WriteString(reqId); in SinkStubSubscribeLocalHardwareInnerFuzzTest()
113 std::string reqId = "3"; in SinkStubUnsubscribeLocalHardwareInnerFuzzTest() local
118 pdata.WriteString(reqId); in SinkStubUnsubscribeLocalHardwareInnerFuzzTest()
138 std::string reqId = "3"; in SinkStubDAudioNotifyInnerFuzzTest() local
143 pdata.WriteString(reqId); in SinkStubDAudioNotifyInnerFuzzTest()
163 std::string reqId = "3"; in SinkStubPauseDistributedHardwareInnerFuzzTest() local
168 pdata.WriteString(reqId); in SinkStubPauseDistributedHardwareInnerFuzzTest()
188 std::string reqId = "3"; SinkStubResumeDistributedHardwareInnerFuzzTest() local
213 std::string reqId = "3"; SinkStubStopDistributedHardwareInnerFuzzTest() local
[all...]
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/2.0/src/
H A Ddscreen_manager.cpp175 const std::string &reqId, const int32_t status, const std::string &data) in OnRegResult()
181 DHLOGI("DScreenCallback::OnRegResult, devId: %{public}s, dhId: %{public}s, reqId: %{public}s", in OnRegResult()
183 GetAnonyString(reqId).c_str()); in OnRegResult()
184 DScreenManager::GetInstance().OnRegResult(dScreen, reqId, status, data); in OnRegResult()
188 const std::string &reqId, const int32_t status, const std::string &data) in OnUnregResult()
194 DHLOGI("DScreenCallback::OnUnregResult, devId: %{public}s, dhId: %{public}s, reqId: %{public}s", in OnUnregResult()
196 GetAnonyString(reqId).c_str()); in OnUnregResult()
197 DScreenManager::GetInstance().OnUnregResult(dScreen, reqId, status, data); in OnUnregResult()
201 const std::string &reqId, int32_t status, const std::string &data) in OnRegResult()
203 DHLOGI("DScreenManager::OnRegResult, devId: %{public}s, dhId: %{public}s, reqId in OnRegResult()
174 OnRegResult(const std::shared_ptr<DScreen> &dScreen, const std::string &reqId, const int32_t status, const std::string &data) OnRegResult() argument
187 OnUnregResult(const std::shared_ptr<DScreen> &dScreen, const std::string &reqId, const int32_t status, const std::string &data) OnUnregResult() argument
200 OnRegResult(const std::shared_ptr<DScreen> &dScreen, const std::string &reqId, int32_t status, const std::string &data) OnRegResult() argument
213 OnUnregResult(const std::shared_ptr<DScreen> &dScreen, const std::string &reqId, int32_t status, const std::string &data) OnUnregResult() argument
226 EnableDistributedScreen(const std::string &devId, const std::string &dhId, const EnableParam &param, const std::string &reqId) EnableDistributedScreen() argument
268 DisableDistributedScreen(const std::string &devId, const std::string &dhId, const std::string &reqId) DisableDistributedScreen() argument
[all...]

Completed in 12 milliseconds

1234567