/base/security/access_token/services/tokensyncmanager/src/device/ |
D | device_info_repository.cpp | 46 DeviceId deviceId; in FindDeviceInfo() local 47 if (FindDeviceIdByNodeIdLocked(nodeId, type, deviceId)) { in FindDeviceInfo() 48 return FindDeviceInfoByDeviceIdLocked(deviceId, deviceInfo); in FindDeviceInfo() 54 const std::string &nodeId, const DeviceIdType type, DeviceId &deviceId) const in FindDeviceIdByNodeIdLocked() 57 return FindDeviceIdByNetworkIdLocked(nodeId, deviceId); in FindDeviceIdByNodeIdLocked() 59 return FindDeviceIdByUniversallyUniqueIdLocked(nodeId, deviceId); in FindDeviceIdByNodeIdLocked() 61 return FindDeviceIdByUniqueDeviceIdLocked(nodeId, deviceId); in FindDeviceIdByNodeIdLocked() 63 if (FindDeviceIdByNetworkIdLocked(nodeId, deviceId)) { in FindDeviceIdByNodeIdLocked() 65 } else if (FindDeviceIdByUniversallyUniqueIdLocked(nodeId, deviceId)) { in FindDeviceIdByNodeIdLocked() 67 } else if (FindDeviceIdByUniqueDeviceIdLocked(nodeId, deviceId)) { in FindDeviceIdByNodeIdLocked() [all …]
|
/base/security/device_security_level/services/dslm/ |
D | dslm_core_process.c | 49 static const DeviceIdentify *RefreshDeviceOnlineStatus(const DeviceIdentify *deviceId); 51 int32_t OnPeerMsgRequestInfoReceived(const DeviceIdentify *deviceId, const uint8_t *msg, uint32_t l… in OnPeerMsgRequestInfoReceived() argument 53 if (deviceId == NULL || msg == NULL || len == 0) { in OnPeerMsgRequestInfoReceived() 71 ret = DefaultRequestDslmCred(deviceId, &reqObject, &cred); in OnPeerMsgRequestInfoReceived() 80 SendMsgToDevice(0, deviceId, resBuff->buff, resBuff->length); in OnPeerMsgRequestInfoReceived() 88 int32_t OnPeerMsgResponseInfoReceived(const DeviceIdentify *deviceId, const uint8_t *msg, uint32_t … in OnPeerMsgResponseInfoReceived() argument 90 if (deviceId == NULL || msg == NULL || len == 0) { in OnPeerMsgResponseInfoReceived() 95 DslmDeviceInfo *deviceInfo = GetDslmDeviceInfo(deviceId); in OnPeerMsgResponseInfoReceived() 111 int32_t OnMsgSendResultNotifier(const DeviceIdentify *deviceId, uint64_t transNo, uint32_t result) in OnMsgSendResultNotifier() argument 119 DslmDeviceInfo *deviceInfo = GetDslmDeviceInfo(deviceId); in OnMsgSendResultNotifier() [all …]
|
/base/msdp/device_status/rust/subsystem/device_profile/binding/src/ |
D | fusion_device_profile_adapter.cpp | 61 bool GetCrossSwitchState(const std::string &deviceId); 62 int32_t RegisterCrossStateListener(const std::string &deviceId, 64 int32_t UnregisterCrossStateListener(const std::string &deviceId); 67 void SaveSubscribeInfos(const std::string &deviceId, 70 …void RemoveFailedSubscriptions(const std::string &deviceId, const std::list<ProfileEvent> &failedE… 105 std::string deviceId = changeNotification.GetDeviceId(); in OnProfileChanged() local 106 …ate = DelayedRefSingleton<FusionDeviceProfileAdapter>::GetInstance().GetCrossSwitchState(deviceId); in OnProfileChanged() 107 listener_->onUpdate(listener_, deviceId.c_str(), switchState); in OnProfileChanged() 177 [&syncOptions](auto &deviceId) { in SyncCrossSwitchState() argument 178 syncOptions.AddDevice(deviceId); in SyncCrossSwitchState() [all …]
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/ |
D | distributed_device_callback_test.cpp | 32 virtual void OnConnected(const std::string &deviceId); 33 virtual void OnDisconnected(const std::string &deviceId); 42 void DistributedDeviceCallbackTest::OnConnected(const std::string &deviceId) in OnConnected() argument 44 EXPECT_EQ(deviceId, "device1"); in OnConnected() 47 void DistributedDeviceCallbackTest::OnDisconnected(const std::string &deviceId) in OnDisconnected() argument 49 EXPECT_EQ(deviceId, "device2"); in OnDisconnected() 66 strcpy_s(info.deviceId, sizeof(info.deviceId) - 1, "device1"); 84 strcpy_s(info.deviceId, sizeof(info.deviceId) - 1, "device2");
|
D | distributed_notification_manager_test.cpp | 34 …const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) {}; in OnPublish() argument 36 …const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) {}; in OnUpdate() argument 38 …const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id) … in OnDelete() argument 151 std::string deviceId = "<remoteDeviceId>"; variable 156 EXPECT_EQ(distributedManager_->DeleteRemoteNotification(deviceId, bundleName, label, id), 295 std::string deviceId = "<remoteDeviceId>"; variable 299 distributedManager_->OnDatabaseInsert(deviceId, key, value); 301 distributedManager_->OnDatabaseUpdate(deviceId, key, value); 303 distributedManager_->OnDatabaseDelete(deviceId, key, value); 305 EXPECT_EQ(distributedManager_->CheckDeviceId(deviceId, key), false); [all …]
|
D | distributed_database_test.cpp | 33 …virtual void OnInsert(const std::string &deviceId, const std::string &key, const std::string &valu… 34 …virtual void OnUpdate(const std::string &deviceId, const std::string &key, const std::string &valu… 35 …virtual void OnDelete(const std::string &deviceId, const std::string &key, const std::string &valu… 36 virtual void OnConnected(const std::string &deviceId); 37 virtual void OnDisconnected(const std::string &deviceId); 83 void DistributedDatabaseTest::OnInsert(const std::string &deviceId, const std::string &key, const s… in OnInsert() argument 86 void DistributedDatabaseTest::OnUpdate(const std::string &deviceId, const std::string &key, const s… in OnUpdate() argument 89 void DistributedDatabaseTest::OnDelete(const std::string &deviceId, const std::string &key, const s… in OnDelete() argument 92 void DistributedDatabaseTest::OnConnected(const std::string &deviceId) in OnConnected() argument 95 void DistributedDatabaseTest::OnDisconnected(const std::string &deviceId) in OnDisconnected() argument [all …]
|
/base/notification/distributed_notification_service/services/distributed/include/ |
D | distributed_notification_manager.h | 41 … const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request)> 44 … const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request)> 47 … const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id)> 95 … const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id); 139 …void OnDatabaseInsert(const std::string &deviceId, const std::string &key, const std::string &valu… 140 …void OnDatabaseUpdate(const std::string &deviceId, const std::string &key, const std::string &valu… 141 …void OnDatabaseDelete(const std::string &deviceId, const std::string &key, const std::string &valu… 142 void OnDeviceConnected(const std::string &deviceId); 143 void OnDeviceDisconnected(const std::string &deviceId); 147 std::string deviceId; member [all …]
|
/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_notification_manager.cpp | 80 …const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id, … in GenerateDistributedKey() argument 82 key = deviceId + DELIMITER + bundleName + DELIMITER + label + DELIMITER + ToString(id); in GenerateDistributedKey() 88 std::string deviceId; in GenerateLocalDistributedKey() local 93 if (!database_->GetLocalDeviceId(deviceId)) { in GenerateLocalDistributedKey() 97 GenerateDistributedKey(deviceId, bundleName, label, id, key); in GenerateLocalDistributedKey() 120 resolveKey.deviceId = key.substr(deviceIdPosition, deviceIdEndPosition - deviceIdPosition); in ResolveDistributedKey() 128 bool DistributedNotificationManager::CheckDeviceId(const std::string &deviceId, const std::string &… in CheckDeviceId() argument 136 return deviceId == resolveKey.deviceId; in CheckDeviceId() 140 const std::string &deviceId, const std::string &key, const std::string &value) in OnDatabaseInsert() argument 148 if (!CheckDeviceId(deviceId, key)) { in OnDatabaseInsert() [all …]
|
D | distributed_device_callback.cpp | 31 ANS_LOGI("device %{public}s is online", deviceInfo.deviceId); in OnDeviceOnline() 32 callback_.OnConnected(deviceInfo.deviceId); in OnDeviceOnline() 40 ANS_LOGI("device %{public}s is offline", deviceInfo.deviceId); in OnDeviceOffline() 41 callback_.OnDisconnected(deviceInfo.deviceId); in OnDeviceOffline() 47 ANS_LOGI("device %{public}s is changed", deviceInfo.deviceId); in OnDeviceChanged() 52 ANS_LOGI("device %{public}s is ready", deviceInfo.deviceId); in OnDeviceReady()
|
/base/security/access_token/frameworks/common/src/ |
D | constant_common.cpp | 27 std::string ConstantCommon::EncryptDevId(std::string deviceId) in EncryptDevId() argument 29 std::string result = deviceId; in EncryptDevId() 30 if (deviceId.empty()) { in EncryptDevId() 33 if (deviceId.size() > MINDEVICEIDLEN) { in EncryptDevId() 34 result.replace(ENCRYPTBEGIN + ENCRYPTLEN, deviceId.size() - MINDEVICEIDLEN, REPLACE_TARGET); in EncryptDevId() 36 result.replace(ENCRYPTBEGIN + 1, deviceId.size()-1, REPLACE_TARGET_LESS_THAN_MINLEN); in EncryptDevId()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
D | notification_hisysevent_test.cpp | 89 std::string deviceId = "123"; in HWTEST_F() local 91 Notification notificationTest(deviceId, request); in HWTEST_F() 93 EXPECT_EQ(result, deviceId); in HWTEST_F() 114 std::string deviceId = "123"; in HWTEST_F() local 117 Notification notificationTest(deviceId, request); in HWTEST_F() 144 std::string deviceId = "123"; in HWTEST_F() local 146 Notification notificationTest(deviceId, request); in HWTEST_F() 170 std::string deviceId = "123"; in HWTEST_F() local 172 Notification notificationTest(deviceId, request); in HWTEST_F() 194 std::string deviceId = "123"; in HWTEST_F() local [all …]
|
/base/security/device_security_level/services/include/ |
D | dslm_core_process.h | 30 int32_t OnPeerMsgRequestInfoReceived(const DeviceIdentify *deviceId, const uint8_t *msg, uint32_t l… 32 int32_t OnPeerMsgResponseInfoReceived(const DeviceIdentify *deviceId, const uint8_t *msg, uint32_t … 34 int32_t OnRequestDeviceSecLevelInfo(const DeviceIdentify *deviceId, const RequestOption *option, ui… 37 int32_t OnMsgSendResultNotifier(const DeviceIdentify *deviceId, uint64_t transNo, uint32_t result); 39 int32_t OnPeerStatusReceiver(const DeviceIdentify *deviceId, uint32_t status, uint32_t devType);
|
/base/security/access_token/services/tokensyncmanager/include/device/ |
D | device_info_repository.h | 42 …void SaveDeviceInfo(const DeviceId deviceId, const std::string &deviceName, const std::string &dev… 52 …viceIdByNodeIdLocked(const std::string &nodeId, const DeviceIdType type, DeviceId &deviceId) const; 54 bool FindDeviceInfoByDeviceIdLocked(const DeviceId deviceId, DeviceInfo &deviceInfo) const; 56 bool FindDeviceIdByNetworkIdLocked(const std::string &networkId, DeviceId &deviceId) const; 58 …iceIdByUniversallyUniqueIdLocked(const std::string &universallyUniqueId, DeviceId &deviceId) const; 60 …bool FindDeviceIdByUniqueDeviceIdLocked(const std::string &uniqueDeviceId, DeviceId &deviceId) con… 62 void DeleteDeviceInfoByDeviceIdLocked(const DeviceId deviceId);
|
/base/security/access_token/services/tokensyncmanager/test/mock/src/ |
D | constant_mock.cpp | 33 std::string ConstantCommon::EncryptDevId(std::string deviceId) in EncryptDevId() argument 35 std::string result = deviceId; in EncryptDevId() 36 if (deviceId.size() > MINDEVICEIDLEN) { in EncryptDevId() 37 result.replace(ENCRYPTBEGIN + ENCRYPTLEN, deviceId.size() - MINDEVICEIDLEN, REPLACE_TARGET); in EncryptDevId() 39 result.replace(ENCRYPTBEGIN, deviceId.size(), REPLACE_TARGET); in EncryptDevId()
|
/base/web/webview/test/fuzztest/ohos_adapter/multimodalinput_adapter/ondeviceremoved_fuzzer/ |
D | ondeviceremoved_fuzzer.cpp | 29 void OnDeviceAdded(int32_t deviceId, const std::string &type) override {}; in OnDeviceAdded() argument 30 void OnDeviceRemoved(int32_t deviceId, const std::string &type) override {}; in OnDeviceRemoved() argument 39 int32_t deviceId; in OnDeviceRemovedFuzzTest() local 40 if (memcpy_s(&deviceId, sizeof(int32_t), data, sizeof(int32_t)) != 0) { in OnDeviceRemovedFuzzTest() 44 listenerAdapterImpl->OnDeviceRemoved(deviceId, type); in OnDeviceRemovedFuzzTest()
|
/base/web/webview/test/fuzztest/ohos_adapter/multimodalinput_adapter/ondeviceadded_fuzzer/ |
D | ondeviceadded_fuzzer.cpp | 28 void OnDeviceAdded(int32_t deviceId, const std::string &type) override {}; in OnDeviceAdded() argument 29 void OnDeviceRemoved(int32_t deviceId, const std::string &type) override {}; in OnDeviceRemoved() argument 38 int32_t deviceId; in OnDeviceAddedFuzzTest() local 39 if (memcpy_s(&deviceId, sizeof(int32_t), data, sizeof(int32_t)) != 0) { in OnDeviceAddedFuzzTest() 43 listenerAdapterImpl->OnDeviceAdded(deviceId, type); in OnDeviceAddedFuzzTest()
|
/base/security/device_auth/services/frameworks/src/sa_subscriber/ |
D | sa_subscriber.cpp | 25 void SaSubscriber::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId) in OnAddSystemAbility() argument 27 (void)deviceId; in OnAddSystemAbility() 32 void SaSubscriber::OnRemoveSystemAbility(int32_t systemAbilityId, const std::string& deviceId) in OnRemoveSystemAbility() argument 35 (void)deviceId; in OnRemoveSystemAbility()
|
/base/security/device_auth/services/key_agree_sdk/src/ |
D | key_agree_sdk.c | 34 const KeyAgreeBlob *deviceId, const char *extras) in CheckKeyAgreeStartSessionParams() argument 44 if ((deviceId->length < MIN_DEVICE_ID_LENGTH) || (deviceId->length > MAX_DEVICE_ID_LENGTH)) { in CheckKeyAgreeStartSessionParams() 48 if (strnlen((const char *)(deviceId->data), deviceId->length) > deviceId->length + 1) { in CheckKeyAgreeStartSessionParams() 108 const KeyAgreeBlob *deviceId, const char *extras) in InitKeyAgreeStartSessionParams() argument 123 if (InitSingleParam(&(spekeSession->deviceId), deviceId->length) != HC_SUCCESS) { in InitKeyAgreeStartSessionParams() 128 if (memcpy_s(spekeSession->deviceId.val, spekeSession->deviceId.length, in InitKeyAgreeStartSessionParams() 129 deviceId->data, deviceId->length) != HC_SUCCESS) { in InitKeyAgreeStartSessionParams() 140 FreeAndCleanKey(&spekeSession->deviceId); in InitKeyAgreeStartSessionParams() 191 const KeyAgreeBlob *deviceId, const char *extras) in KeyAgreeStartSession() argument 194 if ((sharedSecret == NULL) || (deviceId == NULL) || (session == NULL)) { in KeyAgreeStartSession() [all …]
|
/base/security/device_auth/services/legacy/authenticators/inc/account_related/creds_manager/ |
D | asy_token_manager.h | 27 Uint8Buff deviceId; member 41 …_t (*getToken)(int32_t osAccountId, AccountToken *token, const char *userId, const char *deviceId); 42 int32_t (*deleteToken)(int32_t osAccountId, const char *userId, const char *deviceId); 44 int32_t (*generateKeyAlias)(const char *userId, const char *deviceId, 46 Algorithm (*getAlgVersion)(int32_t osAccountId, const char *userId, const char *deviceId);
|
/base/msdp/device_status/rust/subsystem/device_profile/binding/include/ |
D | fusion_device_profile_adapter.h | 32 void (*onUpdate)(CICrossStateListener* listener, const char* deviceId, int32_t switchState); 43 int32_t GetCrossSwitchState(const char* deviceId); 44 int32_t RegisterCrossStateListener(const char* deviceId, CICrossStateListener* listener); 45 int32_t UnregisterCrossStateListener(const char* deviceId);
|
/base/security/device_auth/services/cred_manager/src/account_related/ |
D | account_related_cred_plugin.c | 36 const char *deviceId = GetStringFromJson(in, FIELD_DEVICE_ID); in ProcessAsyTokens() local 37 if (deviceId == NULL) { in ProcessAsyTokens() 41 return GetAccountAuthTokenManager()->deleteToken(osAccountId, userId, deviceId); in ProcessAsyTokens() 68 const char *deviceId = GetStringFromJson(in, FIELD_DEVICE_ID); in ProcessSymTokens() local 69 if (deviceId == NULL) { in ProcessSymTokens() 73 return GetSymTokenManager()->deleteToken(osAccountId, userId, deviceId); in ProcessSymTokens()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservgetregisterinfo_fuzzer/ |
D | devauthservgetregisterinfo_fuzzer.cpp | 25 static void GenerateReqJson(CJson *json, const char *deviceId) in GenerateReqJson() argument 28 AddStringToJson(json, FIELD_DEVICE_ID, deviceId); in GenerateReqJson() 39 std::string deviceId(reinterpret_cast<const char *>(data), size); in FuzzDoGetRegisterInfo() 40 GenerateReqJson(reqJson, deviceId.c_str()); in FuzzDoGetRegisterInfo()
|
/base/web/webview/ohos_adapter/multimodalinput_adapter/src/ |
D | mmi_adapter_impl.cpp | 33 void MMIListenerAdapterImpl::OnDeviceAdded(int32_t deviceId, const std::string &type) in OnDeviceAdded() argument 36 listener_->OnDeviceAdded(deviceId, type); in OnDeviceAdded() 40 void MMIListenerAdapterImpl::OnDeviceRemoved(int32_t deviceId, const std::string &type) in OnDeviceRemoved() argument 43 listener_->OnDeviceRemoved(deviceId, type); in OnDeviceRemoved() 112 int32_t MMIAdapterImpl::GetKeyboardType(int32_t deviceId, std::function<void(int32_t)> callback) in GetKeyboardType() argument 114 return InputManager::GetInstance()->GetKeyboardType(deviceId, callback); in GetKeyboardType() 122 int32_t MMIAdapterImpl::GetDeviceInfo(int32_t deviceId, std::function<void(const MMIDeviceInfoAdapt… in GetDeviceInfo() argument 128 int32_t ret = InputManager::GetInstance()->GetDevice(deviceId, in GetDeviceInfo()
|
/base/account/os_account/frameworks/ohosaccount/native/src/ |
D | system_ability_status_change_listener.cpp | 26 int32_t systemAbilityId, const std::string &deviceId) in OnAddSystemAbility() argument 29 domainCallback_(systemAbilityId, deviceId); in OnAddSystemAbility() 34 int32_t systemAbilityId, const std::string &deviceId) in OnRemoveSystemAbility() argument
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/ |
D | distributed_database_branch_test.cpp | 45 …virtual void OnInsert(const std::string &deviceId, const std::string &key, const std::string &valu… 46 …virtual void OnUpdate(const std::string &deviceId, const std::string &key, const std::string &valu… 47 …virtual void OnDelete(const std::string &deviceId, const std::string &key, const std::string &valu… 48 virtual void OnConnected(const std::string &deviceId); 49 virtual void OnDisconnected(const std::string &deviceId); 95 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnInsert() argument 98 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnUpdate() argument 101 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnDelete() argument 103 void DistributedDatabaseBranchTest::OnConnected(const std::string &deviceId) in OnConnected() argument 106 void DistributedDatabaseBranchTest::OnDisconnected(const std::string &deviceId) in OnDisconnected() argument [all …]
|