/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/account/test/ |
H A D | account_delegate_test.cpp | 80 auto account = AccountDelegate::GetInstance(); in HWTEST_F() local 81 EXPECT_NE(account, nullptr); in HWTEST_F() 82 auto status = account->Subscribe(nullptr); in HWTEST_F() 86 status = account->Subscribe(observer); in HWTEST_F() 99 auto account = AccountDelegate::GetInstance(); in HWTEST_F() local 100 EXPECT_NE(account, nullptr); in HWTEST_F() 102 auto status = account->Subscribe(observer); in HWTEST_F() 105 status = account->Subscribe(observer); in HWTEST_F() 117 auto account = AccountDelegate::GetInstance(); in HWTEST_F() local 118 EXPECT_NE(account, nullpt in HWTEST_F() 139 auto account = AccountDelegate::GetInstance(); HWTEST_F() local 161 auto account = AccountDelegate::GetInstance(); HWTEST_F() local 242 auto account = AccountDelegate::GetInstance(); HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/test/unittest/os_account_manager_wrapper_test/ |
H A D | os_account_manager_wrapper_test.cpp | 54 * @tc.desc: get os account local Id from Uid. 59 int account = ACCOUNT_VALUE; in HWTEST_F() local 60 int ret = DelayedSingleton<OsAccountManagerWrapper>::GetInstance()->GetOsAccountLocalIdFromUid(UID, account); in HWTEST_F() 61 EXPECT_EQ(account, ACCOUNT_ID); in HWTEST_F() 67 * @tc.desc: get os account local Id from process. 72 int account = ACCOUNT_VALUE; in HWTEST_F() local 73 int ret = DelayedSingleton<OsAccountManagerWrapper>::GetInstance()->GetOsAccountLocalIdFromProcess(account); in HWTEST_F() 79 * @tc.desc: Is os account exists. 93 * @tc.desc: Create os account. 98 int account in HWTEST_F() local 110 int account = ACCOUNT_VALUE; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/tests/core/adapter/unittest/ |
H A D | lnn_ohos_account_adapter_test.cpp | 129 int64_t account = 10; in HWTEST_F() local 133 EXPECT_EQ(GetCurrentAccount(&account), SOFTBUS_AUTH_INNER_ERR); in HWTEST_F() 144 int64_t account = 10; in HWTEST_F() local 150 EXPECT_EQ(GetCurrentAccount(&account), SOFTBUS_ERR); in HWTEST_F() 161 int64_t account = 10; in HWTEST_F() local 168 EXPECT_EQ(GetCurrentAccount(&account), SOFTBUS_OK); in HWTEST_F() 179 int64_t account = 10; in HWTEST_F() local 186 EXPECT_EQ(GetCurrentAccount(&account), SOFTBUS_OK); in HWTEST_F() 197 int64_t account = 10; in HWTEST_F() local 204 EXPECT_EQ(GetCurrentAccount(&account), SOFTBUS_O in HWTEST_F() 215 int64_t account = 10; HWTEST_F() local [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/account/src/ |
H A D | account_delegate_normal_impl.cpp | 81 for (auto &account : accounts) { in QueryForegroundUsers() 82 users.push_back(account.localId); in QueryForegroundUsers() 107 ZLOGI("Subscribe account event listener start."); in SubscribeAccountEvent() 115 eventSubscriber_->SetEventCallback([this](AccountEventInfo& account) { in SubscribeAccountEvent() 116 UpdateUserStatus(account); in SubscribeAccountEvent() 117 account.harmonyAccountId = GetCurrentAccountId(); in SubscribeAccountEvent() 118 NotifyAccountChanged(account); in SubscribeAccountEvent() 124 void AccountDelegateNormalImpl::UpdateUserStatus(const AccountEventInfo& account) in UpdateUserStatus() argument 126 uint32_t status = static_cast<uint32_t>(account.status); in UpdateUserStatus() 129 userStatus_.Erase(atoi(account in UpdateUserStatus() [all...] |
H A D | account_delegate_normal_impl.h | 46 void UpdateUserStatus(const AccountEventInfo& account);
|
H A D | account_delegate_impl.h | 31 using EventCallback = std::function<void(AccountEventInfo &account)>;
|
/foundation/communication/dsoftbus/core/adapter/bus_center/src/ |
H A D | lnn_ohos_account_adapter_virtual.cpp | 28 int32_t GetCurrentAccount(int64_t *account) in GetCurrentAccount() argument 30 (void)account; in GetCurrentAccount()
|
H A D | lnn_ohos_account_adapter.cpp | 39 LNN_LOGE(LNN_STATE, "not have same account group, no need update accountId"); in GetOsAccountId() 60 LNN_LOGD(LNN_STATE, "not login account"); in GetOsAccountId() 70 int32_t GetCurrentAccount(int64_t *account) in GetCurrentAccount() argument 72 if (account == NULL) { in GetCurrentAccount() 77 LNN_LOGE(LNN_STATE, "not have same account group, no need update accountId"); in GetCurrentAccount() 80 *account = 0; in GetCurrentAccount() 97 LNN_LOGD(LNN_STATE, "not login account"); in GetCurrentAccount() 100 *account = strtoll(accountInfo.second.name_.c_str(), nullptr, ACCOUNT_STRTOLL_BASE); in GetCurrentAccount() 101 if (*account == 0) { in GetCurrentAccount() 116 LNN_LOGD(LNN_STATE, "account i in GetActiveOsAccountIds() [all...] |
/foundation/resourceschedule/memmgr/test/unittest/phone/ |
H A D | multi_account_manager_test.cpp | 96 std::shared_ptr<AccountBundleInfo> account = std::make_shared<AccountBundleInfo>(accountId); in HWTEST_F() local 109 account->AddBundleToOsAccount(bundle); in HWTEST_F() 110 osAccountsInfoMap.insert(std::make_pair(account->id_, account)); in HWTEST_F() 119 std::shared_ptr<AccountBundleInfo> account = std::make_shared<AccountBundleInfo>(accountId); in HWTEST_F() local 132 account->AddBundleToOsAccount(bundle); in HWTEST_F() 133 osAccountsInfoMap.insert(std::make_pair(account->id_, account)); in HWTEST_F()
|
H A D | reclaim_priority_manager_test.cpp | 106 std::shared_ptr<AccountBundleInfo> account = std::make_shared<AccountBundleInfo>(accountId); in HWTEST_F() local 107 ReclaimPriorityManager::GetInstance().AddOsAccountInfo(account); in HWTEST_F() 116 std::shared_ptr<AccountBundleInfo> account = std::make_shared<AccountBundleInfo>(accountId); in HWTEST_F() local 117 ReclaimPriorityManager::GetInstance().AddOsAccountInfo(account); in HWTEST_F() 159 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); in HWTEST_F() local 160 bool hasBundle = account->HasBundle(uid); in HWTEST_F() 163 std::shared_ptr<BundlePriorityInfo> bundle = account->FindBundleById(uid); in HWTEST_F() 189 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); in HWTEST_F() local 190 std::shared_ptr<BundlePriorityInfo> bundle = account->FindBundleById(uid); in HWTEST_F() 213 std::shared_ptr<AccountBundleInfo> account in HWTEST_F() local 238 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 279 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 313 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 344 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 375 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 404 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 447 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 462 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 483 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 505 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); HWTEST_F() local 520 std::shared_ptr<AccountBundleInfo> account = ReclaimPriorityManager::GetInstance().FindOsAccountById(accountId); GetBundle() local 809 std::shared_ptr<AccountBundleInfo> account = manager.FindOsAccountById(accountId); HWTEST_F() local 844 std::shared_ptr<AccountBundleInfo> account = manager.FindOsAccountById(accountId); HWTEST_F() local 879 std::shared_ptr<AccountBundleInfo> account = manager.FindOsAccountById(accountId); HWTEST_F() local [all...] |
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_priority_manager/ |
H A D | reclaim_priority_manager.cpp | 307 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(accountId); in SetBundleState() local 308 if (account != nullptr) { in SetBundleState() 309 auto pairPtr = account->bundleIdInfoMapping_.find(uid); in SetBundleState() 310 if (pairPtr != account->bundleIdInfoMapping_.end()) { in SetBundleState() 348 HILOGD("found the account info"); in FindOsAccountById() 351 HILOGI("not found the account info"); in FindOsAccountById() 361 void ReclaimPriorityManager::AddOsAccountInfo(std::shared_ptr<AccountBundleInfo> account) in AddOsAccountInfo() argument 363 osAccountsInfoMap_.insert(std::make_pair(account->id_, account)); in AddOsAccountInfo() 368 std::shared_ptr<AccountBundleInfo> account in IsProcExist() local 444 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(accountId); HandleAbilityStart() local 478 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(accountId); CheckAbilityStartCompleted() local 561 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(accountId); CheckCreateProcPriorityDelay() local 571 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(accountId); HandleCreateProcess() local 619 HandleTerminateProcess(ProcessPriorityInfo proc, std::shared_ptr<BundlePriorityInfo> bundle, std::shared_ptr<AccountBundleInfo> account) HandleTerminateProcess() argument 674 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(bundle->accountId_); FilterDiedProcess() local 748 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(accountId); UpdateExtensionStatusForTarget() local 818 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(accountId); GetConnectedExtensionProc() local 952 std::shared_ptr<AccountBundleInfo> account = FindOsAccountById(accountId); UpdateReclaimPriorityInner() local [all...] |
/foundation/distributeddatamgr/pasteboard/framework/framework/clip/ |
H A D | clip_plugin.cpp | 95 ret = ret && SetValue(node, account, GET_NAME(account)); in Marshal() 111 ret = ret && GetValue(node, GET_NAME(account), account); in Unmarshal()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/metadata/ |
H A D | store_meta_data.cpp | 55 SetValue(node[GET_NAME(account)], account); in Marshal() 62 SetValue(node[GET_NAME(userId)], account); in Marshal() 95 GetValue(node, GET_NAME(account), account); in Unmarshal() 104 GetValue(node, GET_NAME(userId), account); in Unmarshal() 146 account == metaData.account && authType == metaData.authType && haMode == metaData.haMode); in operator ==()
|
/foundation/communication/dsoftbus/core/adapter/bus_center/include/ |
H A D | lnn_ohos_account_adapter.h | 26 int32_t GetCurrentAccount(int64_t *account);
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/ |
H A D | feature_stub_impl.cpp | 88 int32_t FeatureStubImpl::OnUserChange(uint32_t code, const std::string &user, const std::string &account) in OnUserChange() argument 93 return featureImpl_->OnUserChange(code, user, account); in OnUserChange()
|
H A D | feature_stub_impl.h | 39 int32_t OnUserChange(uint32_t code, const std::string &user, const std::string &account);
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_service_mock.cpp | 233 int32_t GetCurrentAccount(int64_t *account) in GetCurrentAccount() argument 235 return GetServiceInterface()->GetCurrentAccount(account); in GetCurrentAccount()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | feature_test.cpp | 226 std::string account = "example_account";
in HWTEST_F() local 229 int32_t ret = mockFeature.OnUserChange(code, user, account);
in HWTEST_F()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | kvdb_exporter.cpp | 57 { meta.account, meta.appId, meta.storeId, BehaviourType::DATABASE_BACKUP, message }); in Exporter()
|
/foundation/distributeddatamgr/pasteboard/framework/framework/include/clip/ |
H A D | clip_plugin.h | 39 std::string account; member
|
/foundation/communication/dsoftbus/core/discovery/ble/softbus_ble/src/ |
H A D | disc_ble_utils.c | 146 uint8_t account[SHA_256_HASH_LEN] = {0}; in DiscBleGetShortUserIdHash() local 147 int32_t ret = LnnGetLocalByteInfo(BYTE_KEY_ACCOUNT_HASH, account, SHA_256_HASH_LEN); in DiscBleGetShortUserIdHash() 150 DISC_CHECK_AND_RETURN_RET_LOGE(memcpy_s(hashStr, len, account, len) == EOK, in DiscBleGetShortUserIdHash()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/ |
H A D | object_service_impl.cpp | 23 #include "account/account_delegate.h" 149 saveMeta.account = accountId; in OnInitialize() 179 int32_t ObjectServiceImpl::OnUserChange(uint32_t code, const std::string &user, const std::string &account) in OnUserChange() argument 184 return Feature::OnUserChange(code, user, account); in OnUserChange()
|
H A D | object_service_impl.h | 47 int32_t OnUserChange(uint32_t code, const std::string &user, const std::string &account) override;
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/metadata/ |
H A D | store_meta_data.h | 60 std::string account = ""; member
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/feature/ |
H A D | feature_system.h | 54 virtual int32_t OnUserChange(uint32_t code, const std::string &user, const std::string &account);
|