/base/security/access_token/services/tokensyncmanager/src/device/ |
D | device_info_manager.cpp | 32 const std::string &nodeId, DeviceIdType deviceIdType, DeviceInfo &deviceInfo) const in GetDeviceInfo() 34 return DeviceInfoRepository::GetInstance().FindDeviceInfo(nodeId, deviceIdType, deviceInfo); in GetDeviceInfo() 39 DeviceInfo deviceInfo; in ExistDeviceInfo() local 40 return DeviceInfoRepository::GetInstance().FindDeviceInfo(nodeId, deviceIdType, deviceInfo); in ExistDeviceInfo() 72 DeviceInfo deviceInfo; in RemoveRemoteDeviceInfo() local 74 if (DeviceInfoRepository::GetInstance().FindDeviceInfo(nodeId, deviceIdType, deviceInfo)) { in RemoveRemoteDeviceInfo() 75 if (deviceInfo.deviceId.uniqueDeviceId != localDevice) { in RemoveRemoteDeviceInfo() 89 DeviceInfo deviceInfo; in ConvertToUniversallyUniqueIdOrFetch() local 90 …!(DeviceInfoRepository::GetInstance().FindDeviceInfo(nodeId, DeviceIdType::UNKNOWN, deviceInfo))) { in ConvertToUniversallyUniqueIdOrFetch() 93 std::string universallyUniqueId = deviceInfo.deviceId.universallyUniqueId; in ConvertToUniversallyUniqueIdOrFetch() [all …]
|
D | device_info_repository.cpp | 30 std::vector<DeviceInfo> deviceInfo; in ListDeviceInfo() local 37 deviceInfo.push_back(it->second); in ListDeviceInfo() 40 return deviceInfo; in ListDeviceInfo() 43 …nfoRepository::FindDeviceInfo(const std::string &nodeId, DeviceIdType type, DeviceInfo &deviceInfo) in FindDeviceInfo() argument 48 return FindDeviceInfoByDeviceIdLocked(deviceId, deviceInfo); in FindDeviceInfo() 76 …foRepository::FindDeviceInfoByDeviceIdLocked(const DeviceId deviceId, DeviceInfo &deviceInfo) const in FindDeviceInfoByDeviceIdLocked() 80 deviceInfo = deviceInfoMap_.at(deviceInfoKey); in FindDeviceInfoByDeviceIdLocked() 115 void DeviceInfoRepository::DeleteAllDeviceInfoExceptOne(const DeviceInfo deviceInfo) in DeleteAllDeviceInfoExceptOne() argument 122 SaveDeviceInfo(deviceInfo); in DeleteAllDeviceInfoExceptOne() 125 void DeviceInfoRepository::SaveDeviceInfo(const DeviceInfo deviceInfo) in SaveDeviceInfo() argument [all …]
|
/base/security/device_security_level/services/dslm/ |
D | dslm_core_process.c | 95 DslmDeviceInfo *deviceInfo = GetDslmDeviceInfo(deviceId); in OnPeerMsgResponseInfoReceived() local 96 if (deviceInfo == NULL) { in OnPeerMsgResponseInfoReceived() 106 ScheduleDslmStateMachine(deviceInfo, EVENT_CRED_RSP, &buff); in OnPeerMsgResponseInfoReceived() 107 ReportHiEventInfoSync(deviceInfo); in OnPeerMsgResponseInfoReceived() 119 DslmDeviceInfo *deviceInfo = GetDslmDeviceInfo(deviceId); in OnMsgSendResultNotifier() local 120 if (deviceInfo == NULL) { in OnMsgSendResultNotifier() 124 …SECURITY_LOG_INFO("current DslmDeviceInfo transNum is %{public}u", (uint32_t)deviceInfo->transNum); in OnMsgSendResultNotifier() 125 if (deviceInfo->transNum != transNo) { in OnMsgSendResultNotifier() 129 if (deviceInfo->credInfo.credLevel != 0) { in OnMsgSendResultNotifier() 133 ScheduleDslmStateMachine(deviceInfo, EVENT_MSG_SEND_FAILED, &result); in OnMsgSendResultNotifier() [all …]
|
D | dslm_fsm_process.c | 213 DslmDeviceInfo *deviceInfo = STATE_MACHINE_ENTRY(machine, DslmDeviceInfo, machine); in ProcessSdkRequest() local 238 AddListNode(¬ify->linkNode, &deviceInfo->notifyList); in ProcessSdkRequest() 239 RefreshNotifyList(deviceInfo); in ProcessSdkRequest() 242 deviceInfo->machine.machineId, notify->owner, notify->cookie, notify->keep); in ProcessSdkRequest() 243 uint32_t state = GetCurrentMachineState(deviceInfo); in ProcessSdkRequest() 244 if (state == STATE_SUCCESS || state == STATE_FAILED || deviceInfo->credInfo.credLevel != 0) { in ProcessSdkRequest() 245 ProcessSendDeviceInfoCallback(deviceInfo, RequestDoneChecker); in ProcessSdkRequest() 249 StartOnceTimerTask(notify->keep, TimerProcessSdkRequestTimeout, deviceInfo); in ProcessSdkRequest() 286 DslmDeviceInfo *deviceInfo = STATE_MACHINE_ENTRY(machine, DslmDeviceInfo, machine); in ProcessVerifyCredMessage() local 289 deviceInfo->lastResponseTime = GetMillisecondSinceBoot(); in ProcessVerifyCredMessage() [all …]
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/device/ |
D | atm_device_state_callback.h | 34 void OnDeviceOnline(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 35 void OnDeviceOffline(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 36 void OnDeviceReady(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 37 void OnDeviceChanged(const DistributedHardware::DmDeviceInfo &deviceInfo) override;
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/device/ |
D | atm_device_state_callback.cpp | 50 void AtmDeviceStateCallback::OnDeviceOnline(const DmDeviceInfo &deviceInfo) in OnDeviceOnline() argument 69 void AtmDeviceStateCallback::OnDeviceOffline(const DmDeviceInfo &deviceInfo) in OnDeviceOffline() argument 74 void AtmDeviceStateCallback::OnDeviceReady(const DmDeviceInfo &deviceInfo) in OnDeviceReady() argument 79 void AtmDeviceStateCallback::OnDeviceChanged(const DmDeviceInfo &deviceInfo) in OnDeviceChanged() argument
|
/base/security/access_token/services/tokensyncmanager/include/device/ |
D | device_info_repository.h | 36 bool FindDeviceInfo(const std::string &nodeId, DeviceIdType type, DeviceInfo &deviceInfo); 38 void DeleteAllDeviceInfoExceptOne(const DeviceInfo deviceInfo); 40 void SaveDeviceInfo(const DeviceInfo deviceInfo); 54 bool FindDeviceInfoByDeviceIdLocked(const DeviceId deviceId, DeviceInfo &deviceInfo) const;
|
D | device_info_manager.h | 42 …bool GetDeviceInfo(const std::string &nodeId, DeviceIdType deviceIdType, DeviceInfo &deviceInfo) c…
|
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/ |
D | across_account_group.c | 259 static int32_t GenerateAddTokenParams(const CJson *deviceInfo, CJson *addParams) in GenerateAddTokenParams() argument 261 const char *userId = GetStringFromJson(deviceInfo, FIELD_USER_ID); in GenerateAddTokenParams() 266 const char *deviceId = GetStringFromJson(deviceInfo, FIELD_DEVICE_ID); in GenerateAddTokenParams() 388 static int32_t CheckPeerDeviceNotSelf(const CJson *deviceInfo) in CheckPeerDeviceNotSelf() argument 390 const char *udid = GetStringFromJson(deviceInfo, FIELD_UDID); in CheckPeerDeviceNotSelf() 398 static int32_t AddDeviceAndToken(int32_t osAccountId, const CJson *jsonParams, CJson *deviceInfo) in AddDeviceAndToken() argument 405 CJson *credential = GetObjFromJson(deviceInfo, FIELD_CREDENTIAL); in AddDeviceAndToken() 410 int32_t res = GenerateAddTokenParams(deviceInfo, credential); in AddDeviceAndToken() 419 res = AddDeviceToDatabaseByJson(osAccountId, GenerateTrustedDevParams, deviceInfo, groupId); in AddDeviceAndToken() 426 static int32_t DelPeerDeviceAndToken(int32_t osAccountId, CJson *jsonParams, CJson *deviceInfo) in DelPeerDeviceAndToken() argument [all …]
|
/base/startup/syspara_lite/interfaces/kits/js/ |
D | @ohos.deviceInfo.d.ts | 23 declare namespace deviceInfo { namespace 245 export default deviceInfo;
|
/base/startup/init/interfaces/kits/jskits/ |
D | @ohos.deviceInfo.d.ts | 23 declare namespace deviceInfo { namespace 245 export default deviceInfo;
|
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/ |
D | identical_account_group.c | 357 static int32_t CheckPeerDeviceNotSelf(const CJson *deviceInfo) in CheckPeerDeviceNotSelf() argument 359 const char *udid = GetStringFromJson(deviceInfo, FIELD_UDID); in CheckPeerDeviceNotSelf() 367 static int32_t AddDeviceAndToken(int32_t osAccountId, const CJson *jsonParams, CJson *deviceInfo) in AddDeviceAndToken() argument 374 CJson *credential = GetObjFromJson(deviceInfo, FIELD_CREDENTIAL); in AddDeviceAndToken() 379 int32_t res = GenerateAddTokenParams(deviceInfo, credential); in AddDeviceAndToken() 388 res = AddDeviceToDatabaseByJson(osAccountId, GenerateTrustedDevParams, deviceInfo, groupId); in AddDeviceAndToken() 395 static int32_t DelPeerDeviceAndToken(int32_t osAccountId, CJson *jsonParams, CJson *deviceInfo) in DelPeerDeviceAndToken() argument 402 const char *deviceId = GetStringFromJson(deviceInfo, FIELD_DEVICE_ID); in DelPeerDeviceAndToken() 478 …tic int32_t CheckUserIdValid(int32_t osAccountId, const CJson *jsonParams, const CJson *deviceInfo) in CheckUserIdValid() argument 480 const char *userId = GetStringFromJson(deviceInfo, FIELD_USER_ID); in CheckUserIdValid() [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/ |
D | peer_to_peer_group.c | 269 TrustedDeviceEntry *deviceInfo = CreateDeviceEntry(); in AddAuthIdAndUserTypeToParams() local 270 if (deviceInfo == NULL) { in AddAuthIdAndUserTypeToParams() 279 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() 283 if (GetTrustedDevInfoById(osAccountId, localUdid, true, groupId, deviceInfo) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams() 285 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() 289 … if (AddStringToJson(jsonParams, FIELD_DEVICE_ID, StringGet(&deviceInfo->authId)) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams() 291 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() 294 if (AddIntToJson(jsonParams, FIELD_USER_TYPE, deviceInfo->devType) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams() 296 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() 299 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() [all …]
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/ |
D | distributed_database_test.cpp | 112 DistributedKv::DeviceInfo deviceInfo; variable 113 deviceCallback_->OnDeviceChanged(deviceInfo, DistributedKv::DeviceChangeType::DEVICE_ONLINE); 114 deviceCallback_->OnDeviceChanged(deviceInfo, DistributedKv::DeviceChangeType::DEVICE_OFFLINE); 192 DistributedDatabase::DeviceInfo deviceInfo; variable 194 EXPECT_EQ(database_->GetLocalDeviceInfo(deviceInfo), true);
|
D | distributed_notification_manager_test.cpp | 239 DistributedDatabase::DeviceInfo deviceInfo; variable 240 EXPECT_EQ(distributedManager_->GetLocalDeviceInfo(deviceInfo), ERR_OK);
|
/base/security/device_security_level/baselib/msglib/src/standard/ |
D | messenger_device_status_manager.cpp | 85 void OnDeviceOnline(const DmDeviceInfo &deviceInfo) override in OnDeviceOnline() argument 89 void OnDeviceOffline(const DmDeviceInfo &deviceInfo) override in OnDeviceOffline() argument 91 MessengerOnNodeStateChange(deviceInfo, EVENT_NODE_STATE_OFFLINE); in OnDeviceOffline() 94 void OnDeviceChanged(const DmDeviceInfo &deviceInfo) override in OnDeviceChanged() argument 98 void OnDeviceReady(const DmDeviceInfo &deviceInfo) override in OnDeviceReady() argument 100 MessengerOnNodeStateChange(deviceInfo, EVENT_NODE_STATE_ONLINE); in OnDeviceReady()
|
/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_database.cpp | 249 DistributedKv::DeviceInfo deviceInfo; in GetLocalDeviceId() local 250 DistributedKv::Status status = kvDataManager_->GetLocalDevice(deviceInfo); in GetLocalDeviceId() 256 localDeviceId_ = deviceInfo.deviceId; in GetLocalDeviceId()
|
D | distributed_notification_manager.cpp | 409 …ode DistributedNotificationManager::GetLocalDeviceInfo(DistributedDatabase::DeviceInfo &deviceInfo) in GetLocalDeviceInfo() argument 413 if (!database_->GetLocalDeviceInfo(deviceInfo)) { in GetLocalDeviceInfo()
|
/base/security/device_auth/services/group_manager/src/session/bind_session/ |
D | bind_session_common.c | 453 TrustedDeviceEntry *deviceInfo = CreateDeviceEntry(); in CheckAuthIdAndUserTypeValid() local 454 if (deviceInfo == NULL) { in CheckAuthIdAndUserTypeValid() 458 int32_t result = GetTrustedDevInfoById(osAccountId, udid, true, groupId, deviceInfo); in CheckAuthIdAndUserTypeValid() 461 DestroyDeviceEntry(deviceInfo); in CheckAuthIdAndUserTypeValid() 464 const char *oriAuthId = StringGet(&deviceInfo->authId); in CheckAuthIdAndUserTypeValid() 465 …if ((deviceInfo->devType != userType) || ((oriAuthId != NULL) && (strcmp(oriAuthId, authId) != 0))… in CheckAuthIdAndUserTypeValid() 467 DestroyDeviceEntry(deviceInfo); in CheckAuthIdAndUserTypeValid() 470 DestroyDeviceEntry(deviceInfo); in CheckAuthIdAndUserTypeValid()
|
/base/security/access_token/services/tokensyncmanager/test/unittest/token_sync_service/ |
D | token_sync_service_test.cpp | 1101 DeviceInfo deviceInfo; variable 1104 ASSERT_EQ(false, DeviceInfoRepository::GetInstance().FindDeviceInfo("456", type, deviceInfo)); 1111 … ASSERT_EQ(true, DeviceInfoRepository::GetInstance().FindDeviceInfo(networkId, type, deviceInfo)); 1115 …Q(true, DeviceInfoRepository::GetInstance().FindDeviceInfo(universallyUniqueId, type, deviceInfo)); 1119 …ERT_EQ(true, DeviceInfoRepository::GetInstance().FindDeviceInfo(uniqueDeviceId, type, deviceInfo)); 1123 … ASSERT_EQ(true, DeviceInfoRepository::GetInstance().FindDeviceInfo(networkId, type, deviceInfo));
|
/base/security/device_auth/services/group_manager/src/group_operation/ |
D | group_operation_common.c | 428 static int32_t AddAuthIdToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddAuthIdToReturn() argument 430 const char *authId = StringGet(&deviceInfo->authId); in AddAuthIdToReturn() 442 static int32_t AddCredentialTypeToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddCredentialTypeToReturn() argument 444 int credentialType = deviceInfo->credential; in AddCredentialTypeToReturn() 452 static int32_t AddUserTypeToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddUserTypeToReturn() argument 454 int userType = deviceInfo->devType; in AddUserTypeToReturn()
|
/base/notification/distributed_notification_service/services/distributed/include/ |
D | distributed_notification_manager.h | 125 ErrCode GetLocalDeviceInfo(DistributedDatabase::DeviceInfo &deviceInfo);
|
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
D | remote_token_kit_test.cpp | 155 NodeBasicInfo deviceInfo; in SetUp() local 156 int32_t res = ::GetLocalNodeDeviceInfo(TEST_PKG_NAME.c_str(), &deviceInfo); in SetUp() 159 ::GetNodeKeyInfo(TEST_PKG_NAME.c_str(), deviceInfo.networkId, in SetUp() 163 networkId_.append(deviceInfo.networkId); in SetUp()
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 1912 DistributedHardware::DmDeviceInfo deviceInfo; variable 1914 callback->OnDeviceOnline(deviceInfo); // remote object is not nullptr
|