Home
last modified time | relevance | path

Searched refs:GetLocalId (Results 1 – 25 of 65) sorted by relevance

123

/ohos5.0/base/account/os_account/frameworks/osaccount/native/test/moduletest/
H A Dos_account_manager_module_test.cpp312 if (info.GetLocalId() == START_USER_ID) { in SetUp()
433 EXPECT_EQ(osAccountInfo.GetLocalId(), expectUid);
1133 EXPECT_EQ(osAccountInfoTwo.GetLocalId(), osAccountInfoOne.GetLocalId());
1319 EXPECT_EQ(queryAccountInfo.GetLocalId(), osAccountInfo.GetLocalId());
2136 EXPECT_EQ(resID, osAccountInfo.GetLocalId());
2547 EXPECT_EQ(id, osAccountInfoOne.GetLocalId());
2551 EXPECT_NE(id, osAccountInfoOne.GetLocalId());
2726 EXPECT_NE(ids[0], account.GetLocalId());
2732 EXPECT_EQ(ids[0], account.GetLocalId());
3054 EXPECT_EQ(localId, osAccountInfo.GetLocalId());
[all …]
H A Dos_account_manager_no_bms_mock_test.cpp116 … OHOS::AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfos, osAccountInfoOne.GetLocalId()));
131 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId());
/ohos5.0/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_interface.cpp69 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountStart()
102 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountStop()
135 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountDeactivate()
232 int osAccountID = osAccountInfo.GetLocalId(); in SendToCESAccountCreate()
254 int osAccountID = osAccountInfo.GetLocalId(); in SendToCESAccountDelete()
277 int osAccountID = osAccountInfo.GetLocalId(); in PublishCommonEvent()
329 osAccountInfo.GetLocalId(), errCode); in SendToStorageAccountCreate()
355 int32_t localId = osAccountInfo.GetLocalId(); in InnerSendToStorageAccountCreate()
424 int err = proxy->RemoveUser(osAccountInfo.GetLocalId(), in SendToStorageAccountRemove()
478 err = proxy->PrepareStartUser(osAccountInfo.GetLocalId()); in SendToStorageAccountStart()
[all …]
H A Dos_account_database_operator.cpp88 if (curOsInfo.GetLocalId() >= Constants::START_USER_ID) { in GetOsAccountListFromDatabase()
98 ACCOUNT_LOGE("InnerInit failed! target localID %{public}d!", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase()
102 if (osAccountInfo.GetLocalId() < Constants::START_USER_ID) { in InsertOsAccountIntoDataBase()
103 …LOGI("target os account id %{public}d will not be saved in database!", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase()
110 errCode, osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase()
113 ACCOUNT_LOGI("insert account %{public}d to database succeed.", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase()
134 ACCOUNT_LOGE("InnerInit failed! local id %{public}d!", osAccountInfo.GetLocalId()); in UpdateOsAccountInDatabase()
141 osAccountInfo.GetLocalId(), errCode); in UpdateOsAccountInDatabase()
143 …("update os account info in database for account %{public}d succeed!", osAccountInfo.GetLocalId()); in UpdateOsAccountInDatabase()
H A Dinner_os_account_manager.cpp420 int32_t localId = osAccountInfo.GetLocalId(); in RetryToGetAccount()
611 int32_t localId = newInfo.GetLocalId(); in RetryToGetAccount()
754 int32_t id = osAccountInfo.GetLocalId(); in RetryToGetAccount()
760 osAccountInfo.GetLocalId(), errCode); in RetryToGetAccount()
878 osAccountInfo.GetLocalId(), errCode); in RetryToGetAccount()
884 osAccountInfo.GetLocalId(), errCode); in RetryToGetAccount()
895 osAccountInfo.GetLocalId(), errCode); in RetryToGetAccount()
986 int32_t localId = osAccountInfo.GetLocalId(); in RetryToGetAccount()
1398 id = osAccountInfosPtr->GetLocalId(); in RetryToGetAccount()
1599 int localId = osAccountInfo.GetLocalId(); in RetryToGetAccount()
[all …]
H A Dos_account_domain_account_callback.cpp76 osAccountInfo.GetLocalId(), callbackWrapper); in OnResult()
96 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult()
97 (void)osAccountControl_->DelOsAccount(osAccountInfo_.GetLocalId()); in OnResult()
102 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult()
107 if ((osAccountInfo_.GetLocalId() == Constants::START_USER_ID) && (errCode == ERR_OK)) { in OnResult()
/ohos5.0/base/account/os_account/services/accountmgr/test/moduletest/os_account/
H A Dos_account_manager_service_module_test.cpp822 osAccountInfoOne.GetLocalId(), PHOTO_IMG_ERROR), ERR_OK);
1079 EXPECT_EQ(queryAccountInfo.GetLocalId(), osAccountInfo.GetLocalId());
1186 EXPECT_EQ(resID, osAccountInfo.GetLocalId());
1209 EXPECT_EQ(resID, osAccountInfo.GetLocalId());
1476 EXPECT_EQ(osAccountInfo.GetLocalId(), MAIN_ACCOUNT_ID);
2194 ASSERT_TRUE(osAccountInfo.GetLocalId() > Constants::START_USER_ID);
2366 createdOsAccounts.emplace_back(osAccountInfo.GetLocalId());
2499 if (osAccountInfo.GetLocalId() == START_USER_ID) {
2512 createdOsAccounts.emplace_back(osAccountInfo.GetLocalId());
2524 createdOsAccounts.emplace_back(osAccountInfo.GetLocalId());
[all …]
H A Dos_account_manager_service_subscribe_module_test.cpp204 subscriberTestPtr->id_ = osAccountInfo.GetLocalId();
211 result = OsAccount::GetInstance().ActivateOsAccount(osAccountInfo.GetLocalId());
227 result = OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId());
250 const int id = osAccountInfo.GetLocalId();
H A Dos_account_database_operator_test.cpp80 EXPECT_EQ(info.GetLocalId(), localId);
97 EXPECT_EQ(info.GetLocalId(), localId);
/ohos5.0/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/
H A Dsubscribe_distributed_account_event_test.cpp91 EXPECT_EQ(OsAccountManager::ActivateOsAccount(SubDistributedAccount.GetLocalId()), ERR_OK);
98 loginEventData.id_ = SubDistributedAccount.GetLocalId();
107 logoutEventData.id_ = SubDistributedAccount.GetLocalId();
122 EXPECT_EQ(ERR_OK, OsAccountManager::RemoveOsAccount(SubDistributedAccount.GetLocalId()));
143 loginEventData.id_ = SubDistributedAccount.GetLocalId();
153 logoffEventData.id_ = SubDistributedAccount.GetLocalId();
174 EXPECT_EQ(ERR_OK, OsAccountManager::RemoveOsAccount(SubDistributedAccount.GetLocalId()));
195 loginEventData.id_ = SubDistributedAccount.GetLocalId();
203 tokenInvalidEventData.id_ = SubDistributedAccount.GetLocalId();
260 loginEventData.id_ = SubDistributedAccount.GetLocalId();
[all …]
H A Daccount_mgr_inner_sdk_func_test.cpp233 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
401 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogin);
414 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogoff);
417 osAccountInfoOne.GetLocalId(), accountInfoget);
448 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogin);
461 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogin);
466 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogin);
472 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogoff);
505 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogin);
518 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogoff);
[all …]
/ohos5.0/base/account/os_account/frameworks/osaccount/native/test/unittest/
H A Dos_account_info_test.cpp149 EXPECT_EQ(id, osAccountInfo.GetLocalId());
435 EXPECT_EQ(osAccountInfo.GetLocalId(), INT_ID);
454 EXPECT_EQ(osAccountInfoTar.GetLocalId(), INT_ID);
507 uint32_t localId = osAccountInfo.GetLocalId();
594 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId());
615 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId());
637 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId());
721 OsAccountManager::RemoveOsAccount(osAccountInfoTwo.GetLocalId());
723 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId());
746 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId());
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_inner_account_mgr_mock.cpp176 EXPECT_EQ(accountInfo.GetLocalId(), createInfo.GetLocalId());
233 EXPECT_EQ(accountInfo.GetLocalId(), createInfo.GetLocalId());
296 EXPECT_EQ(accountInfo.GetLocalId(), 999);
365 EXPECT_EQ(accountInfo.GetLocalId(), createInfo.GetLocalId());
500 EXPECT_EQ(accountInfo.GetLocalId(), id);
542 int id = createInfo.GetLocalId();
605 int id = createInfo.GetLocalId();
664 int32_t localId = accountInfo.GetLocalId();
704 int32_t localId = createInfo.GetLocalId();
763 int id = createInfo.GetLocalId();
[all …]
H A Dos_account_control_file_manager_test.cpp404 int curID = osAccountList[i].GetLocalId();
411 EXPECT_EQ(curID, curOsAccountInfo.GetLocalId());
464 EXPECT_EQ(osAccountList[i].GetLocalId(), osAccountListByDefault[i].GetLocalId());
736 EXPECT_EQ(accountInfo1.GetLocalId(), accountInfo.GetLocalId());
H A Dos_account_inner_account_mgr_cov.cpp227 subscriberPtr->localId_ = osAccountInfo.GetLocalId();
231 int localID = osAccountInfo.GetLocalId();
282 int32_t localID = osAccountInfo.GetLocalId();
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/ohos_account/
H A Dohos_account_manager_test.cpp211 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
228 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin);
231 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin);
237 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout);
239 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
253 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
269 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin);
274 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout);
279 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
/ohos5.0/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/
H A Dcreateosaccount_fuzzer.cpp65 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountWithShortNameFuzzTest()
77 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountWithShortNameFuzzTest()
94 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountFuzzTest()
113 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in CreateOsAccountForDomainFuzzTest()
133 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in UpdateOsAccountWithFullInfoFuzzTest()
153 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in CreateOsAccountWithFullInfoFuzzTest()
/ohos5.0/base/account/os_account/tools/test/unittest/acm/
H A Daccount_command_switch_test.cpp63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
66 ACCOUNT_LOGI("[SetUp] remove account %{public}d", info.GetLocalId()); in SetUp()
67 OsAccount::GetInstance().RemoveOsAccount(info.GetLocalId()); in SetUp()
265 std::string userId = std::to_string(osAccountInfo.GetLocalId());
277 OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId());
H A Daccount_command_dump_test.cpp63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
66 ACCOUNT_LOGI("[SetUp] remove account %{public}d", info.GetLocalId()); in SetUp()
67 OsAccount::GetInstance().RemoveOsAccount(info.GetLocalId()); in SetUp()
285 std::string userId = std::to_string(osAccountInfo.GetLocalId());
296 OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId());
H A Daccount_command_set_test.cpp67 if (info.GetLocalId() == START_USER_ID) { in SetUp()
70 ACCOUNT_LOGI("[SetUp] remove account %{public}d", info.GetLocalId()); in SetUp()
71 OsAccount::GetInstance().RemoveOsAccount(info.GetLocalId()); in SetUp()
375 std::string userId = std::to_string(osAccountInfo.GetLocalId());
389 OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId());
H A Daccount_command_delete_test.cpp63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
66 ACCOUNT_LOGI("[SetUp] remove account %{public}d", info.GetLocalId()); in SetUp()
67 OsAccount::GetInstance().RemoveOsAccount(info.GetLocalId()); in SetUp()
287 std::string userId = std::to_string(osAccountInfo.GetLocalId());
/ohos5.0/base/account/os_account/frameworks/domain_account/test/moduletest/src/
H A Dmock_domain_create_domain_account_callback.cpp57 localId_ = osAccountInfo->GetLocalId(); in OnResult()
65 OsAccountManager::RemoveOsAccount(osAccountInfo->GetLocalId()); in OnResult()
72 int32_t TestCreateDomainAccountCallback::GetLocalId(void) in GetLocalId() function in OHOS::AccountSA::TestCreateDomainAccountCallback
/ohos5.0/base/account/os_account/tools/test/moduletest/acm/
H A Daccount_command_util.cpp66 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in DeleteLastOsAccount()
87 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in DumpLastOsAccount()
108 std::string localAccountId = std::to_string(osAccounts.begin()->GetLocalId()); in SwitchToFirstOsAccount()
129 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in SwitchToLastOsAccount()
/ohos5.0/base/security/asset/services/os_dependency/src/
H A Dos_account_wrapper.cpp61 [](auto &iter) { return iter.GetLocalId(); }); in GetUserIds()
88 [](auto &iter) { return iter.GetLocalId(); }); in GetUsersSize()
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/account_iam/
H A Daccount_iam_callback_test.cpp442 int32_t userId = accountInfo.GetLocalId();
452 EXPECT_EQ(OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()), ERR_OK);
469 int32_t userId = accountInfo.GetLocalId();
482 EXPECT_EQ(OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()), ERR_OK);
500 int32_t userId = accountInfo.GetLocalId();
512 EXPECT_EQ(OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()), ERR_OK);

123