/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_device_callback.cpp | 27 void DistributedDeviceCallback::OnDeviceOnline(const DistributedHardware::DmDeviceInfo &deviceInfo) in OnDeviceOnline() argument 31 ANS_LOGI("device %{public}s is online", deviceInfo.deviceId); in OnDeviceOnline() 32 callback_.OnConnected(deviceInfo.deviceId); in OnDeviceOnline() 36 void DistributedDeviceCallback::OnDeviceOffline(const DistributedHardware::DmDeviceInfo &deviceInfo) in OnDeviceOffline() argument 40 ANS_LOGI("device %{public}s is offline", deviceInfo.deviceId); in OnDeviceOffline() 41 callback_.OnDisconnected(deviceInfo.deviceId); in OnDeviceOffline() 45 void DistributedDeviceCallback::OnDeviceChanged(const DistributedHardware::DmDeviceInfo &deviceInfo) in OnDeviceChanged() argument 47 ANS_LOGI("device %{public}s is changed", deviceInfo.deviceId); in OnDeviceChanged() 50 void DistributedDeviceCallback::OnDeviceReady(const DistributedHardware::DmDeviceInfo &deviceInfo) in OnDeviceReady() argument 52 ANS_LOGI("device %{public}s is ready", deviceInfo.deviceId); in OnDeviceReady()
|
D | distributed_database.cpp | 259 DistributedHardware::DmDeviceInfo deviceInfo; in GetLocalDeviceId() local 260 …2_t ret = DistributedHardware::DeviceManager::GetInstance().GetLocalDeviceInfo(APP_ID, deviceInfo); in GetLocalDeviceId() 265 localDeviceId_ = deviceInfo.deviceId; in GetLocalDeviceId()
|
/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 UtilsStartOnceTimerTask(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/notification/distributed_notification_service/services/distributed/include/ |
D | distributed_device_callback.h | 49 void OnDeviceOnline(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 50 void OnDeviceOffline(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 51 void OnDeviceChanged(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 52 void OnDeviceReady(const DistributedHardware::DmDeviceInfo &deviceInfo) override;
|
/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/update/update_app/common/src/main/ets/util/ |
D | DeviceUtils.ets | 16 import deviceInfo from '@ohos.deviceInfo'; 31 return deviceInfo.deviceType; 40 return deviceInfo.displayVersion;
|
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/ |
D | peer_to_peer_group.c | 267 TrustedDeviceEntry *deviceInfo = CreateDeviceEntry(); in AddAuthIdAndUserTypeToParams() local 268 if (deviceInfo == NULL) { in AddAuthIdAndUserTypeToParams() 277 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() 281 if (GetTrustedDevInfoById(osAccountId, localUdid, true, groupId, deviceInfo) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams() 283 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() 287 … if (AddStringToJson(jsonParams, FIELD_DEVICE_ID, StringGet(&deviceInfo->authId)) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams() 289 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() 292 if (AddIntToJson(jsonParams, FIELD_USER_TYPE, deviceInfo->devType) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams() 294 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() 297 DestroyDeviceEntry(deviceInfo); in AddAuthIdAndUserTypeToParams() [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/ |
D | identical_account_group.c | 353 static int32_t CheckPeerDeviceNotSelf(const CJson *deviceInfo) in CheckPeerDeviceNotSelf() argument 355 const char *udid = GetStringFromJson(deviceInfo, FIELD_UDID); in CheckPeerDeviceNotSelf() 363 static int32_t AddDeviceAndToken(int32_t osAccountId, const CJson *jsonParams, CJson *deviceInfo) in AddDeviceAndToken() argument 370 CJson *credential = GetObjFromJson(deviceInfo, FIELD_CREDENTIAL); in AddDeviceAndToken() 375 int32_t res = GenerateAddTokenParams(deviceInfo, credential); in AddDeviceAndToken() 384 res = AddDeviceToDatabaseByJson(osAccountId, GenerateTrustedDevParams, deviceInfo, groupId); in AddDeviceAndToken() 391 static int32_t DelPeerDeviceAndToken(int32_t osAccountId, CJson *jsonParams, CJson *deviceInfo) in DelPeerDeviceAndToken() argument 398 const char *deviceId = GetStringFromJson(deviceInfo, FIELD_DEVICE_ID); in DelPeerDeviceAndToken() 474 …tic int32_t CheckUserIdValid(int32_t osAccountId, const CJson *jsonParams, const CJson *deviceInfo) in CheckUserIdValid() argument 476 const char *userId = GetStringFromJson(deviceInfo, FIELD_USER_ID); in CheckUserIdValid() [all …]
|
/base/notification/distributed_notification_service/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/ |
D | notificationDialog.ets | 18 import deviceInfo from '@ohos.deviceInfo'; 37 if (this.isLand || !(deviceInfo.deviceType == 'default' || deviceInfo.deviceType == 'phone')) {
|
/base/web/webview/test/unittest/ohos_adapter/system_properties_adapter/ |
D | system_properties_adapter_test.cpp | 56 std::string deviceInfo = SystemPropertiesAdapterImpl::GetInstance().GetDeviceInfoBrand(); variable 57 EXPECT_NE(deviceInfo, "");
|
/base/notification/distributed_notification_service/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/ServiceExtAbility/ |
D | NotificationServiceExtAbility.ts | 19 import deviceInfo from '@ohos.deviceInfo'; 79 if (deviceInfo.deviceType === 'default' || deviceInfo.deviceType === 'phone') {
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/ |
D | distributed_database_test.cpp | 112 DistributedHardware::DmDeviceInfo deviceInfo; variable 113 deviceCallback_->OnDeviceOnline(deviceInfo); 114 deviceCallback_->OnDeviceOffline(deviceInfo); 192 DistributedDatabase::DeviceInfo deviceInfo; variable 194 EXPECT_EQ(database_->GetLocalDeviceInfo(deviceInfo), true);
|
D | distributed_notification_manager_test.cpp | 236 DistributedDatabase::DeviceInfo deviceInfo; variable 237 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/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
D | compatible_bind_sub_session_common.c | 142 TrustedDeviceEntry *deviceInfo = CreateDeviceEntry(); in CheckAuthIdAndUserTypeValid() local 143 if (deviceInfo == NULL) { in CheckAuthIdAndUserTypeValid() 147 int32_t result = GetTrustedDevInfoById(osAccountId, udid, true, groupId, deviceInfo); in CheckAuthIdAndUserTypeValid() 150 DestroyDeviceEntry(deviceInfo); in CheckAuthIdAndUserTypeValid() 153 const char *oriAuthId = StringGet(&deviceInfo->authId); in CheckAuthIdAndUserTypeValid() 154 …if ((deviceInfo->devType != userType) || ((oriAuthId != NULL) && (strcmp(oriAuthId, authId) != 0))… in CheckAuthIdAndUserTypeValid() 156 DestroyDeviceEntry(deviceInfo); in CheckAuthIdAndUserTypeValid() 159 DestroyDeviceEntry(deviceInfo); in CheckAuthIdAndUserTypeValid()
|
/base/msdp/device_status/services/interaction/coordination/include/ |
D | coordination_sm.h | 86 void OnDeviceOnline(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 87 void OnDeviceChanged(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 88 void OnDeviceReady(const DistributedHardware::DmDeviceInfo &deviceInfo) override; 89 void OnDeviceOffline(const DistributedHardware::DmDeviceInfo &deviceInfo) override;
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
D | mock_device_manager_impl.cpp | 99 … const DmDeviceInfo &deviceInfo, const std::string &extra, in AuthenticateDevice() argument 105 …DeviceManagerImpl::UnAuthenticateDevice(const std::string &pkgName, const DmDeviceInfo &deviceInfo) in UnAuthenticateDevice() argument
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_notification_manager_branch_test/ |
D | distributed_notification_manager_branch_test.cpp | 314 DistributedDatabase::DeviceInfo deviceInfo; variable 316 distributedManager_->GetLocalDeviceInfo(deviceInfo), ERR_ANS_DISTRIBUTED_OPERATION_FAILED);
|
/base/security/device_auth/services/group_manager/src/group_operation/ |
D | group_operation_common.c | 409 static int32_t AddAuthIdToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddAuthIdToReturn() argument 411 const char *authId = StringGet(&deviceInfo->authId); in AddAuthIdToReturn() 423 static int32_t AddCredentialTypeToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddCredentialTypeToReturn() argument 425 int credentialType = deviceInfo->credential; in AddCredentialTypeToReturn() 433 static int32_t AddUserTypeToReturn(const TrustedDeviceEntry *deviceInfo, CJson *json) in AddUserTypeToReturn() argument 435 int userType = deviceInfo->devType; in AddUserTypeToReturn()
|
/base/security/access_token/services/tokensyncmanager/test/unittest/token_sync_service/ |
D | token_sync_service_test.cpp | 1270 DeviceInfo deviceInfo; variable 1273 ASSERT_EQ(false, DeviceInfoRepository::GetInstance().FindDeviceInfo("456", type, deviceInfo)); 1280 … ASSERT_EQ(true, DeviceInfoRepository::GetInstance().FindDeviceInfo(networkId, type, deviceInfo)); 1284 …Q(true, DeviceInfoRepository::GetInstance().FindDeviceInfo(universallyUniqueId, type, deviceInfo)); 1288 …ERT_EQ(true, DeviceInfoRepository::GetInstance().FindDeviceInfo(uniqueDeviceId, type, deviceInfo)); 1292 … ASSERT_EQ(true, DeviceInfoRepository::GetInstance().FindDeviceInfo(networkId, type, deviceInfo));
|