/base/security/device_security_level/test/dslm_unit_test/ |
D | dslm_msg_interface_mock.cpp | 29 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 …]
|
D | dslm_msg_interface_mock.h | 36 …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;
|
D | dslm_rpc_process_test.cpp | 26 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/ |
D | messenger.c | 34 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()
|
D | messenger_device_status_manager.h | 38 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);
|
D | messenger_impl.c | 96 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()
|
D | messenger_impl.h | 29 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…
|
D | messenger_device_session_manager.c | 111 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 …]
|
D | messenger_device_session_manager.h | 34 void MessengerSendMsgTo(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t…
|
/base/security/device_security_level/baselib/msglib/src/lite/ |
D | messenger_device_status_manager.c | 31 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/ |
D | messenger_device_status_manager.cpp | 38 …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/ |
D | dslm_messenger_wrapper.h | 31 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/ |
D | battery_backlight.cpp | 45 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/ |
D | messenger.h | 34 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/ |
D | dslm_rpc_process.c | 33 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/ |
D | dev_slinfo_adpt.c | 155 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/ |
D | distributed_input_adapter.h | 87 …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/ |
D | dslm_messenger_wrapper.c | 75 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/ |
D | distributed_input_adapter.cpp | 176 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/ |
D | DevSLMgrTest.cpp | 295 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/ |
D | permission_state_full_parcel.cpp | 28 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/ |
D | soft_bus_session_mock.cpp | 135 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/ |
D | module_loop.cpp | 97 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/ |
D | dslm_fuzzer.cpp | 26 extern "C" int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len);
|
/base/security/access_token/services/tokensyncmanager/test/mock/include/ |
D | session.h | 331 int GetPeerDeviceId(int sessionId, char *devId, unsigned int len);
|