Home
last modified time | relevance | path

Searched refs:devId (Results 1 – 25 of 31) 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;
Ddslm_rpc_process_test.cpp26 extern "C" int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len);
27 extern "C" int32_t OnSendResultNotifier(const DeviceIdentify *devId, uint64_t transNo, uint32_t res…
/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.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_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…
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()
361 static bool GetOpenedSessionId(const DeviceIdentify *devId, int32_t *sessionId) in GetOpenedSessionId() argument
363 if (devId == NULL || sessionId == NULL) { in GetOpenedSessionId()
371 uint32_t mask = MaskDeviceIdentity((const char *)&devId->identity[0], devId->length); in GetOpenedSessionId()
375 if (IsSameDevice(&sessionInfo->identity, devId)) { in GetOpenedSessionId()
386 static void PushMsgDataToPendingList(uint32_t transNo, const DeviceIdentify *devId, const uint8_t *… in PushMsgDataToPendingList() argument
395 (void)memcpy_s(&data->destIdentity, sizeof(DeviceIdentify), devId, sizeof(DeviceIdentify)); in PushMsgDataToPendingList()
403 static void CreateNewDeviceSession(const DeviceIdentify *devId) in CreateNewDeviceSession() argument
405 uint32_t mask = MaskDeviceIdentity((const char *)&devId->identity[0], devId->length); in CreateNewDeviceSession()
[all …]
Dmessenger_device_session_manager.h34 void MessengerSendMsgTo(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t…
/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 …]
/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…
117 …static void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, uint32_t dev… in ProcessDeviceStatusReceiver() argument
119 if (devId == nullptr || devId->length == 0) { in ProcessDeviceStatusReceiver()
139 data->srcIdentity = *devId; in ProcessDeviceStatusReceiver()
143 uint32_t maskId = MaskDeviceIdentity((const char *)&devId->identity[0], DEVICE_ID_MAX_LEN); in ProcessDeviceStatusReceiver()
174 static bool MessengerConvertNodeToIdentity(const std::string &networkId, DeviceIdentify &devId) in MessengerConvertNodeToIdentity() argument
186 static_cast<void>(memset_s(&devId, sizeof(DeviceIdentify), 0, sizeof(DeviceIdentify))); in MessengerConvertNodeToIdentity()
187 if (memcpy_s(devId.identity, DEVICE_ID_MAX_LEN, udid.c_str(), size) != EOK) { in MessengerConvertNodeToIdentity()
191 if (devId.identity[0] == 0) { in MessengerConvertNodeToIdentity()
195 devId.length = DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity()
[all …]
/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/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/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);
81 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin…
84 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devTy…
86 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType);
90 bool GetDeviceStatisticInfo(const Messenger *messenger, const DeviceIdentify *devId, StatisticInfor…
/base/security/device_security_level/services/sa/common/
Ddslm_rpc_process.c33 int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len) in OnPeerMsgReceived() argument
35 if (devId == NULL || msg == NULL || len == 0) { in OnPeerMsgReceived()
55 ret = OnPeerMsgRequestInfoReceived(devId, packet->payload, packet->length); in OnPeerMsgReceived()
58 ret = OnPeerMsgResponseInfoReceived(devId, packet->payload, packet->length); in OnPeerMsgReceived()
71 int32_t OnSendResultNotifier(const DeviceIdentify *devId, uint64_t transNo, uint32_t result) in OnSendResultNotifier() argument
73 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/msdp/device_status/services/interaction/coordination/include/
Ddistributed_input_adapter.h87 …void OnResult(const std::string &devId, const uint32_t &inputTypes, const int32_t &status) overrid…
92 …void OnResult(const std::string &devId, const uint32_t &inputTypes, const int32_t &status) overrid…
98 void OnResultDhids(const std::string &devId, const int32_t &status) override;
104 void OnResultDhids(const std::string &devId, const int32_t &status) override;
110 void OnResultDhids(const std::string &devId, const int32_t &status) override;
116 void OnResultDhids(const std::string &devId, const int32_t &status) override;
122 void OnResult(const std::string &devId, const int32_t &status) override;
128 void OnResult(const std::string &devId, const int32_t &status) override;
134 void OnResult(const std::string &devId, const int32_t &status) override;
140 void OnResult(const std::string &devId, const int32_t &status) override;
/base/security/device_security_level/services/msg/
Ddslm_messenger_wrapper.c75 void SendMsgToDevice(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t ms… in SendMsgToDevice() argument
82 SendMsgTo(g_messenger, transNo, devId, msg, msgLen); in SendMsgToDevice()
87 bool GetPeerDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType) in GetPeerDeviceOnlineStatus() argument
94 if (devId == NULL || devType == NULL) { in GetPeerDeviceOnlineStatus()
98 bool ret = GetDeviceOnlineStatus(g_messenger, devId, devType); in GetPeerDeviceOnlineStatus()
/base/msdp/device_status/services/interaction/coordination/src/
Ddistributed_input_adapter.cpp176 void DistributedInputAdapter::StartDInputCallback::OnResult(const std::string &devId, const uint32_… in OnResult() argument
182 void DistributedInputAdapter::StopDInputCallback::OnResult(const std::string &devId, const uint32_t… in OnResult() argument
188 void DistributedInputAdapter::StartDInputCallbackDHIds::OnResultDhids(const std::string &devId, con… in OnResultDhids() argument
193 void DistributedInputAdapter::StopDInputCallbackDHIds::OnResultDhids(const std::string &devId, cons… in OnResultDhids() argument
198 void DistributedInputAdapter::StartDInputCallbackSink::OnResultDhids(const std::string &devId, cons… in OnResultDhids() argument
203 void DistributedInputAdapter::StopDInputCallbackSink::OnResultDhids(const std::string &devId, const… in OnResultDhids() argument
208 void DistributedInputAdapter::PrepareStartDInputCallback::OnResult(const std::string &devId, const … in OnResult() argument
213 void DistributedInputAdapter::UnPrepareStopDInputCallback::OnResult(const std::string &devId, const… in OnResult() argument
218 void DistributedInputAdapter::PrepareStartDInputCallbackSink::OnResult(const std::string &devId, co… in OnResult() argument
223 void DistributedInputAdapter::UnPrepareStopDInputCallbackSink::OnResult(const std::string &devId, c… in OnResult() argument
/base/security/dataclassification/test/unittest/datatransmitmgr/
DDevSLMgrTest.cpp295 DeviceIdentify devId; variable
296 (void)memset_s(&devId, sizeof(devId), 0, sizeof(devId));
297 (void)memcpy_s(devId.identity, MAX_UDID_LENGTH, queryParams.udid, queryParams.udidLen);
298 devId.length = queryParams.udidLen;
301 OnApiDeviceSecInfoCallback(&devId, nullptr);
302 OnApiDeviceSecInfoCallback(&devId, &devInfo);
/base/security/access_token/frameworks/accesstoken/src/
Dpermission_state_full_parcel.cpp28 for (auto devId : this->permStatFull.resDeviceID) { in Marshalling()
29 RETURN_IF_FALSE(out.WriteString(devId)); in Marshalling()
/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dsoft_bus_session_mock.cpp135 int GetPeerDeviceId(int sessionId, char *devId, unsigned int len) in GetPeerDeviceId() argument
146 if (memcpy_s(devId, x.length(), x.c_str(), x.length()) != EOK) { in GetPeerDeviceId()
149 devId[x.length()] = '\0'; in GetPeerDeviceId()
/base/update/sys_installer/services/module_update/src/
Dmodule_loop.cpp97 size_t devId = static_cast<size_t>(id); in PreAllocateLoopDevices() local
98 if (startId < devId) { in PreAllocateLoopDevices()
99 startId = devId; in PreAllocateLoopDevices()
/base/security/device_security_level/test/dslm_fuzz_test/dslm_fuzzer/
Ddslm_fuzzer.cpp26 extern "C" int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len);
/base/security/access_token/services/tokensyncmanager/test/mock/include/
Dsession.h331 int GetPeerDeviceId(int sessionId, char *devId, unsigned int len);

12