Home
last modified time | relevance | path

Searched refs:devId (Results 1 – 25 of 39) sorted by relevance

12

/base/security/device_security_level/test/dslm_unit_test/
Ddslm_msg_interface_mock.cpp29 extern int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len);
30 extern int32_t OnSendResultNotifier(const DeviceIdentify *devId, uint64_t transNo, uint32_t result);
55 … auto loopback = [this](const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, in MakeMsgLoopback()
57 this->MakeMsgReceivedFrom(devId, msg, msgLen); in MakeMsgLoopback()
66 …auto loopback = [this, self](const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType)… in MakeSelfDeviceId() argument
67 *devId = *self; in MakeSelfDeviceId()
74 void DslmMsgInterfaceMock::MakeDeviceOnline(const DeviceIdentify *devId) const in MakeDeviceOnline() argument
76 OnPeerStatusReceiver(devId, 1, 0); in MakeDeviceOnline()
79 void DslmMsgInterfaceMock::MakeDeviceOffline(const DeviceIdentify *devId) const in MakeDeviceOffline()
81 OnPeerStatusReceiver(devId, 0, 0); in MakeDeviceOffline()
[all …]
Ddslm_msg_interface_mock.h36 …rtual uint64_t SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId,
39 …virtual bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32…
41 …virtual bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *de…
51 …HOD5(SendMsgTo, uint64_t(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId,
54 bool(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType));
55 …MOCK_METHOD3(GetSelfDeviceIdentify, bool(const Messenger *messenger, DeviceIdentify *devId, uint32…
58 void MakeSelfDeviceId(const DeviceIdentify *devId) const;
59 void MakeDeviceOnline(const DeviceIdentify *devId) const;
60 void MakeDeviceOffline(const DeviceIdentify *devId) const;
61 … void MakeMsgReceivedFrom(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen) const;
/base/telephony/call_manager/services/distributed_call/src/
Ddistributed_call_manager.cpp103 bool DistributedCallManager::CreateDAudioDevice(const std::string& devId, AudioDevice& device) in CreateDAudioDevice() argument
105 if (!devId.length()) { in CreateDAudioDevice()
114 int32_t ret = dcallProxy_->GetDCallDeviceInfo(devId, devInfo); in CreateDAudioDevice()
133 addressJson["devId"] = devId; in CreateDAudioDevice()
146 std::string devId = ""; in GetDevIdFromAudioDevice() local
149 return devId; in GetDevIdFromAudioDevice()
154 return devId; in GetDevIdFromAudioDevice()
159 return devId; in GetDevIdFromAudioDevice()
163 return devId; in GetDevIdFromAudioDevice()
167 return devId; in GetDevIdFromAudioDevice()
[all …]
Ddistributed_call_proxy.cpp109 int32_t DistributedCallProxy::SwitchDevice(const std::string& devId, int32_t flag) in SwitchDevice() argument
116 return dcallClient_->SwitchDevice(devId, flag); in SwitchDevice()
150 int32_t DistributedCallProxy::GetDCallDeviceInfo(const std::string &devId, in GetDCallDeviceInfo() argument
158 return dcallClient_->GetDCallDeviceInfo(devId, devInfo); in GetDCallDeviceInfo()
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_status_manager.cpp38 …using StateReceiver = std::function<int32_t(const DeviceIdentify *devId, uint32_t status, uint32_t…
124 …static void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, uint32_t dev… in ProcessDeviceStatusReceiver() argument
126 if (devId == nullptr || devId->length == 0) { in ProcessDeviceStatusReceiver()
142 data->srcIdentity = *devId; in ProcessDeviceStatusReceiver()
146 uint32_t maskId = MaskDeviceIdentity((const char *)&devId->identity[0], DEVICE_ID_MAX_LEN); in ProcessDeviceStatusReceiver()
177 static bool MessengerConvertNodeToIdentity(const std::string &networkId, DeviceIdentify &devId) in MessengerConvertNodeToIdentity() argument
189 static_cast<void>(memset_s(&devId, sizeof(DeviceIdentify), 0, sizeof(DeviceIdentify))); in MessengerConvertNodeToIdentity()
190 if (memcpy_s(devId.identity, DEVICE_ID_MAX_LEN, udid.c_str(), size) != EOK) { in MessengerConvertNodeToIdentity()
194 if (devId.identity[0] == 0) { in MessengerConvertNodeToIdentity()
198 devId.length = DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity()
[all …]
Dmessenger_device_socket_manager.c116 static void OnSocketMessageReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLe… in OnSocketMessageReceived() argument
118 if (devId == NULL || msg == NULL) { in OnSocketMessageReceived()
139 …uint32_t ret = (uint32_t)memcpy_s(&queueData->srcIdentity, sizeof(DeviceIdentify), devId, sizeof(D… in OnSocketMessageReceived()
308 static void ProcessBindDevice(int socket, const DeviceIdentify *devId, bool isServer) in ProcessBindDevice() argument
310 if (devId == NULL) { in ProcessBindDevice()
316 SocketNodeInfo *socketInfo = CreateSocketNodeInfo(socket, devId); in ProcessBindDevice()
331 if (!IsSameDevice(&msgData->destIdentity, devId)) { in ProcessBindDevice()
359 static void ClientOnBind(int socket, const DeviceIdentify *devId) in ClientOnBind() argument
361 ProcessBindDevice(socket, devId, false); in ClientOnBind()
536 static bool GetSocketBySocketList(const DeviceIdentify *devId, bool isServer, int32_t *socket) in GetSocketBySocketList() argument
[all …]
Dmessenger_impl.c93 void SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const… in SendMsgToImpl() argument
100 MessengerSendMsgTo(transNo, devId, msg, msgLen); in SendMsgToImpl()
103 bool GetDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *d… in GetDeviceOnlineStatusImpl() argument
110 return MessengerGetDeviceOnlineStatus(devId, devType); in GetDeviceOnlineStatusImpl()
113 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentifyImpl() argument
120 return MessengerGetSelfDeviceIdentify(devId, devType); in GetSelfDeviceIdentifyImpl()
133 bool GetDeviceStatisticInfoImpl(const Messenger *messenger, const DeviceIdentify *devId, StatisticI… in GetDeviceStatisticInfoImpl() argument
139 (void)devId; in GetDeviceStatisticInfoImpl()
/base/security/device_security_level/baselib/msglib/src/lite/
Dmessenger_device_status_manager.c31 static int32_t InitDeviceOnlineProcessor(const DeviceIdentify *devId, uint32_t devType, void *para);
83 static void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, uint32_t devT… in ProcessDeviceStatusReceiver() argument
105 …uint32_t ret = (uint32_t)memcpy_s(&data->srcIdentity, sizeof(DeviceIdentify), devId, sizeof(Device… in ProcessDeviceStatusReceiver()
164 static int32_t InitDeviceOnlineProcessor(const DeviceIdentify *devId, uint32_t devType, void *para) in InitDeviceOnlineProcessor() argument
167 ProcessDeviceStatusReceiver(devId, EVENT_NODE_STATE_ONLINE, devType); in InitDeviceOnlineProcessor()
218 static bool MessengerConvertNodeToIdentity(const NodeBasicInfo *node, DeviceIdentify *devId) in MessengerConvertNodeToIdentity() argument
220 if ((node == NULL) || (devId == NULL)) { in MessengerConvertNodeToIdentity()
231 if (memcpy_s(devId->identity, DEVICE_ID_MAX_LEN, udid, DEVICE_ID_MAX_LEN) != EOK) { in MessengerConvertNodeToIdentity()
235 devId->length = DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity()
239 bool MessengerGetDeviceNodeBasicInfo(const DeviceIdentify *devId, NodeBasicInfo *info) in MessengerGetDeviceNodeBasicInfo() argument
[all …]
Dmessenger_impl.c96 void SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const… in SendMsgToImpl() argument
103 MessengerSendMsgTo(transNo, devId, msg, msgLen); in SendMsgToImpl()
106 bool GetDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *d… in GetDeviceOnlineStatusImpl() argument
113 return MessengerGetDeviceOnlineStatus(devId, devType); in GetDeviceOnlineStatusImpl()
116 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentifyImpl() argument
123 return MessengerGetSelfDeviceIdentify(devId, devType); in GetSelfDeviceIdentifyImpl()
136 bool GetDeviceStatisticInfoImpl(const Messenger *messenger, const DeviceIdentify *devId, StatisticI… in GetDeviceStatisticInfoImpl() argument
142 (void)devId; in GetDeviceStatisticInfoImpl()
Dmessenger_device_session_manager.c111 static void OnSessionMessageReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgL… in OnSessionMessageReceived() argument
130 …uint32_t ret = (uint32_t)memcpy_s(&queueData->srcIdentity, sizeof(DeviceIdentify), devId, sizeof(D… in OnSessionMessageReceived()
401 static bool GetOpenedSessionId(const DeviceIdentify *devId, int32_t *sessionId) in GetOpenedSessionId() argument
403 if (devId == NULL || sessionId == NULL) { in GetOpenedSessionId()
411 uint32_t mask = MaskDeviceIdentity((const char *)&devId->identity[0], devId->length); in GetOpenedSessionId()
415 if (IsSameDevice(&sessionInfo->identity, devId)) { in GetOpenedSessionId()
426 static void PushMsgDataToPendingList(uint32_t transNo, const DeviceIdentify *devId, const uint8_t *… in PushMsgDataToPendingList() argument
435 (void)memcpy_s(&data->destIdentity, sizeof(DeviceIdentify), devId, sizeof(DeviceIdentify)); in PushMsgDataToPendingList()
443 static void CreateNewDeviceSession(const DeviceIdentify *devId) in CreateNewDeviceSession() argument
445 uint32_t mask = MaskDeviceIdentity((const char *)&devId->identity[0], devId->length); in CreateNewDeviceSession()
[all …]
/base/security/device_security_level/baselib/msglib/src/common/
Dmessenger.c34 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin… in SendMsgTo() argument
37 SendMsgToImpl(messenger, transNo, devId, msg, msgLen); in SendMsgTo()
40 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devTy… in GetDeviceOnlineStatus() argument
42 return GetDeviceOnlineStatusImpl(messenger, devId, devType); in GetDeviceOnlineStatus()
45 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentify() argument
47 return GetSelfDeviceIdentifyImpl(messenger, devId, devType); in GetSelfDeviceIdentify()
55 bool GetDeviceStatisticInfo(const Messenger *messenger, const DeviceIdentify *devId, StatisticInfor… in GetDeviceStatisticInfo() argument
57 return GetDeviceStatisticInfoImpl(messenger, devId, info); in GetDeviceStatisticInfo()
Dmessenger_device_status_manager.h38 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType);
40 bool MessengerGetSelfDeviceIdentify(DeviceIdentify *devId, uint32_t *devType);
44 bool MessengerGetNetworkIdByDeviceIdentify(const DeviceIdentify *devId, char *networkId, uint32_t l…
46 bool MessengerGetDeviceIdentifyByNetworkId(const char *networkId, DeviceIdentify *devId);
Dmessenger_impl.h29 void SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const…
34 bool GetDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *d…
36 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType…
40 bool GetDeviceStatisticInfoImpl(const Messenger *messenger, const DeviceIdentify *devId, StatisticI…
/base/security/device_security_level/services/include/
Ddslm_messenger_wrapper.h31 typedef int32_t (*MessageReceiver)(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len);
33 typedef int32_t (*StatusReceiver)(const DeviceIdentify *devId, uint32_t status, uint32_t devType);
35 typedef int32_t (*SendResultNotifier)(const DeviceIdentify *devId, uint64_t transNo, uint32_t resul…
37 typedef int32_t (*DeviceProcessor)(const DeviceIdentify *devId, uint32_t devType, void *para);
39 void SendMsgToDevice(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t ms…
48 bool GetPeerDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType);
/base/security/device_security_level/baselib/msglib/include/
Dmessenger.h34 typedef int32_t (*DeviceMessageReceiver)(const DeviceIdentify *devId, const uint8_t *msg, uint32_t …
36 typedef int32_t (*DeviceStatusReceiver)(const DeviceIdentify *devId, uint32_t status, uint32_t devT…
38 typedef int32_t (*MessageSendResultNotifier)(const DeviceIdentify *devId, uint64_t transNo, uint32_…
40 typedef int32_t (*DeviceProcessor)(const DeviceIdentify *devId, uint32_t devType, void *para);
86 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin…
89 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devTy…
91 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType);
95 bool GetDeviceStatisticInfo(const Messenger *messenger, const DeviceIdentify *devId, StatisticInfor…
/base/powermgr/battery_manager/charger/src/
Dbattery_backlight.cpp45 uint32_t devId = 0; in TurnOnScreen() local
46 composer_->SetDisplayPowerStatus(devId, POWER_STATUS_ON); in TurnOnScreen()
47 composer_->SetDisplayBacklight(devId, BACKLIGHT_ON); in TurnOnScreen()
56 uint32_t devId = 0; in TurnOffScreen() local
57 composer_->SetDisplayPowerStatus(devId, POWER_STATUS_OFF); in TurnOffScreen()
/base/telephony/call_manager/services/distributed_call/include/
Ddistributed_call_manager.h39 void AddDCallDevice(const std::string& devId);
40 void RemoveDCallDevice(const std::string& devId);
51 void OnDeviceOnline(const std::string &devId);
52 void OnDeviceOffline(const std::string &devId);
62 int32_t OnDeviceOnline(const std::string &devId) override;
63 int32_t OnDeviceOffline(const std::string &devId) override;
66 bool CreateDAudioDevice(const std::string& devId, AudioDevice& device);
Ddistributed_call_proxy.h34 int32_t SwitchDevice(const std::string& devId, int32_t flag);
39 …int32_t GetDCallDeviceInfo(const std::string &devId, OHOS::DistributedHardware::DCallDeviceInfo& d…
/base/security/device_security_level/services/sa/common/
Ddslm_rpc_process.c37 int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len) in OnPeerMsgReceived() argument
39 if (devId == NULL || msg == NULL || len == 0) { in OnPeerMsgReceived()
59 ret = OnPeerMsgRequestInfoReceived(devId, packet->payload, packet->length); in OnPeerMsgReceived()
62 ret = OnPeerMsgResponseInfoReceived(devId, packet->payload, packet->length); in OnPeerMsgReceived()
75 int32_t OnSendResultNotifier(const DeviceIdentify *devId, uint64_t transNo, uint32_t result) in OnSendResultNotifier() argument
77 return OnMsgSendResultNotifier(devId, transNo, result); in OnSendResultNotifier()
/base/security/dataclassification/frameworks/datatransmitmgr/
Ddev_slinfo_adpt.c155 struct DeviceIdentify devId; in GetDeviceSecLevelByUdid() local
156 (void)memset_s(&devId, sizeof(devId), 0, sizeof(devId)); in GetDeviceSecLevelByUdid()
158 ret = memcpy_s(devId.identity, MAX_UDID_LENGTH, udid, udidLen); in GetDeviceSecLevelByUdid()
163 devId.length = udidLen; in GetDeviceSecLevelByUdid()
165 ret = g_deviceSecEnv.requestDeviceSecurityInfo(&devId, NULL, &info); in GetDeviceSecLevelByUdid()
244 DeviceIdentify devId; in GetDeviceSecLevelByUdidAsync() local
245 (void)memset_s(&devId, sizeof(devId), 0, sizeof(devId)); in GetDeviceSecLevelByUdidAsync()
247 ret = memcpy_s(devId.identity, MAX_UDID_LENGTH, udid, udidLen); in GetDeviceSecLevelByUdidAsync()
252 devId.length = udidLen; in GetDeviceSecLevelByUdidAsync()
253 ret = g_deviceSecEnv.requestDeviceSecurityInfoAsync(&devId, NULL, OnApiDeviceSecInfoCallback); in GetDeviceSecLevelByUdidAsync()
/base/security/device_security_level/services/msg/
Ddslm_messenger_wrapper.c80 void SendMsgToDevice(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t ms… in SendMsgToDevice() argument
87 SendMsgTo(g_messenger, transNo, devId, msg, msgLen); in SendMsgToDevice()
92 bool GetPeerDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType) in GetPeerDeviceOnlineStatus() argument
99 if (devId == NULL || devType == NULL) { in GetPeerDeviceOnlineStatus()
103 bool ret = GetDeviceOnlineStatus(g_messenger, devId, devType); in GetPeerDeviceOnlineStatus()
/base/msdp/device_status/intention/adapters/dinput_adapter/include/
Ddinput_adapter.h80 void OnResultDhids(const std::string &devId, const int32_t &status) override;
93 void OnResultDhids(const std::string &devId, const int32_t &status) override;
106 void OnResultDhids(const std::string &devId, const int32_t &status) override;
119 void OnResult(const std::string &devId, const int32_t &status) override;
132 void OnResult(const std::string &devId, const int32_t &status) override;
145 void OnResult(const std::string &devId, const int32_t &status) override;
158 void OnResult(const std::string &devId, const int32_t &status) override;
171 void OnResult(const std::string &devId, const uint32_t status) override;
/base/telephony/call_manager/services/distributed_call/include/dcall/
Didcall_device_callback.h28 virtual int32_t OnDeviceOnline(const std::string &devId) = 0;
29 virtual int32_t OnDeviceOffline(const std::string &devId) = 0;
Didcall_client.h35 virtual int32_t SwitchDevice(const std::string& devId, int32_t flag) = 0;
40 virtual int32_t GetDCallDeviceInfo(const std::string &devId, DCallDeviceInfo& devInfo) = 0;
/base/msdp/device_status/intention/adapters/dinput_adapter/src/
Ddinput_adapter.cpp193 void DInputAdapter::StopDInputCallbackDHIds::OnResultDhids(const std::string &devId, const int32_t … in OnResultDhids() argument
204 void DInputAdapter::StartDInputCallbackSink::OnResultDhids(const std::string &devId, const int32_t … in OnResultDhids() argument
215 void DInputAdapter::StopDInputCallbackSink::OnResultDhids(const std::string &devId, const int32_t &… in OnResultDhids() argument
226 void DInputAdapter::PrepareDInputCallback::OnResult(const std::string &devId, const int32_t &status) in OnResult() argument
237 void DInputAdapter::UnprepareDInputCallback::OnResult(const std::string &devId, const int32_t &stat… in OnResult() argument
248 void DInputAdapter::PrepareStartDInputCallbackSink::OnResult(const std::string &devId, const int32_… in OnResult() argument
259 void DInputAdapter::UnPrepareStopDInputCallbackSink::OnResult(const std::string &devId, const int32… in OnResult() argument
269 void DInputAdapter::SessionStateCallback::OnResult(const std::string &devId, const uint32_t status) in OnResult() argument

12