/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
H A D | os_account_manager_module_test.cpp | 234 if (info.GetLocalId() == START_USER_ID) { in SetUp() 237 ACCOUNT_LOGI("[SetUp] remove account %{public}d", info.GetLocalId()); in SetUp() 238 OsAccountManager::RemoveOsAccount(info.GetLocalId()); in SetUp() 350 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); in HWTEST_F() 357 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 396 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); in HWTEST_F() 403 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 417 EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); in HWTEST_F() 424 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 470 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_O in HWTEST_F() [all...] |
H A D | os_account_manager_no_bms_mock_test.cpp | 116 OHOS::AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfos, osAccountInfoOne.GetLocalId())); in HWTEST_F() 131 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F()
|
/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/ |
H A D | subscribe_distributed_account_event_test.cpp | 91 EXPECT_EQ(OsAccountManager::ActivateOsAccount(SubDistributedAccount.GetLocalId()), ERR_OK); in HWTEST_F() 98 loginEventData.id_ = SubDistributedAccount.GetLocalId(); in HWTEST_F() 107 logoutEventData.id_ = SubDistributedAccount.GetLocalId(); in HWTEST_F() 122 EXPECT_EQ(ERR_OK, OsAccountManager::RemoveOsAccount(SubDistributedAccount.GetLocalId())); in HWTEST_F() 136 EXPECT_EQ(OsAccountManager::ActivateOsAccount(SubDistributedAccount.GetLocalId()), ERR_OK); in HWTEST_F() 143 loginEventData.id_ = SubDistributedAccount.GetLocalId(); in HWTEST_F() 153 logoffEventData.id_ = SubDistributedAccount.GetLocalId(); in HWTEST_F() 174 EXPECT_EQ(ERR_OK, OsAccountManager::RemoveOsAccount(SubDistributedAccount.GetLocalId())); in HWTEST_F() 188 EXPECT_EQ(OsAccountManager::ActivateOsAccount(SubDistributedAccount.GetLocalId()), ERR_OK); in HWTEST_F() 195 loginEventData.id_ = SubDistributedAccount.GetLocalId(); in HWTEST_F() [all...] |
H A D | account_mgr_inner_sdk_func_test.cpp | 196 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 233 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 246 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 288 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 301 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 320 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 333 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 353 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
in HWTEST_F() 401 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogin);
in HWTEST_F() 403 ret = OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(osAccountInfoOne.GetLocalId(), accountInfoge in HWTEST_F() [all...] |
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
H A D | os_account_manager_service_module_test.cpp | 176 errCode = osAccountManagerService_->QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo); in HWTEST_F() 183 errCode = osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F() 235 errCode = osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F() 240 osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F() 253 EXPECT_EQ(osAccountManagerService_->ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 254 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 274 osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F() 298 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 379 EXPECT_EQ(osAccountManagerService_->IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountActived), in HWTEST_F() 382 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_O in HWTEST_F() [all...] |
H A D | os_account_database_operator_test.cpp | 80 EXPECT_EQ(info.GetLocalId(), localId); in HWTEST_F() 97 EXPECT_EQ(info.GetLocalId(), localId); in HWTEST_F()
|
H A D | os_account_manager_service_subscribe_module_test.cpp | 203 subscriberTestPtr->id_ = osAccountInfo.GetLocalId(); in HWTEST_F() 210 result = OsAccount::GetInstance().ActivateOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F() 226 result = OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F() 249 const int id = osAccountInfo.GetLocalId(); in HWTEST_F()
|
/base/account/os_account/frameworks/osaccount/native/test/unittest/ |
H A D | os_account_info_test.cpp | 149 EXPECT_EQ(id, osAccountInfo.GetLocalId()); in HWTEST_F() 435 EXPECT_EQ(osAccountInfo.GetLocalId(), INT_ID); in HWTEST_F() 454 EXPECT_EQ(osAccountInfoTar.GetLocalId(), INT_ID); in HWTEST_F() 507 uint32_t localId = osAccountInfo.GetLocalId(); in HWTEST_F() 594 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F() 615 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F() 636 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F() 720 OsAccountManager::RemoveOsAccount(osAccountInfoTwo.GetLocalId()); in HWTEST_F() 721 EXPECT_EQ(ERR_OK, OsAccountManager::SetOsAccountName(osAccountInfoOne.GetLocalId(), "updateName")); in HWTEST_F() 722 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in HWTEST_F() [all...] |
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_interface.cpp | 71 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountStart() 107 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountStop() 143 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountDeactivate() 146 ErrCode code = AbilityManagerAdapter::GetInstance()->LogoutUser(osAccountInfo.GetLocalId()); in SendToAMSAccountDeactivate() 149 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, code, in SendToAMSAccountDeactivate() 178 errCode = BundleManagerAdapter::GetInstance()->CreateNewUser(osAccountInfo.GetLocalId(), disallowedHapList); in SendToBMSAccountCreate() 191 return BundleManagerAdapter::GetInstance()->RemoveUser(osAccountInfo.GetLocalId()); in SendToBMSAccountDelete() 200 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_REMOVE, in SendToIDMAccountDelete() 206 int32_t ret = UserIam::UserAuth::UserIdmClient::GetInstance().EraseUser(osAccountInfo.GetLocalId(), callback); in SendToIDMAccountDelete() 209 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constant in SendToIDMAccountDelete() [all...] |
H A D | os_account_database_operator.cpp | 88 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 ACCOUNT_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 ACCOUNT_LOGI("update os account info in database for account %{public}d succeed!", osAccountInfo.GetLocalId()); in UpdateOsAccountInDatabase()
|
H A D | os_account_domain_account_callback.cpp | 86 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult() 87 (void)osAccountControl_->DelOsAccount(osAccountInfo_.GetLocalId()); in OnResult() 92 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult() 99 if ((osAccountInfo_.GetLocalId() == Constants::START_USER_ID) && (errCode == ERR_OK)) { in OnResult()
|
H A D | inner_os_account_manager.cpp | 109 ReportOsAccountLifeCycle(osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE); in CreateBaseAdminAccount() 146 ReportOsAccountLifeCycle(osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE); in CreateBaseStandardAccount() 208 SetDefaultActivatedOsAccount(osAccountInfo.GetLocalId()); in RetryToGetAccount() 230 std::int32_t id = osAccountInfo.GetLocalId(); in RetryToGetAccount() 273 if (!CheckAndAddLocalIdOperating(osAccountInfo.GetLocalId())) { in RetryToGetAccount() 274 ACCOUNT_LOGW("Account id = %{public}d already in operating", osAccountInfo.GetLocalId()); in RetryToGetAccount() 284 errCode = osAccountControl_->UpdateBaseOAConstraints(std::to_string(osAccountInfo.GetLocalId()), in RetryToGetAccount() 363 std::to_string(osAccountInfo.GetLocalId()), constraintsResult, true); in RetryToGetAccount() 397 int32_t localId = osAccountInfo.GetLocalId(); in RetryToGetAccount() 421 AppAccountControlManager::GetInstance().SetOsAccountRemoved(osAccountInfo.GetLocalId(), fals in RetryToGetAccount() [all...] |
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
H A D | os_account_inner_account_mgr_mock.cpp | 176 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID); in HWTEST_F() 180 EXPECT_EQ(ERR_OK, innerMgrService_->GetOsAccountInfoById(createInfo.GetLocalId(), accountInfo)); in HWTEST_F() 184 EXPECT_EQ(accountInfo.GetLocalId(), createInfo.GetLocalId()); in HWTEST_F() 209 std::to_string(accountInfo.GetLocalId()), constraintsFromFile, JsonType::ARRAY); in HWTEST_F() 215 auto iter = accountIndexJson.find(std::to_string(accountInfo.GetLocalId())); in HWTEST_F() 221 EXPECT_EQ(ERR_OK, innerMgrService_->RemoveOsAccount(accountInfo.GetLocalId())); in HWTEST_F() 235 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID); in HWTEST_F() 237 EXPECT_EQ(ERR_OK, innerMgrService_->GetOsAccountInfoById(createInfo.GetLocalId(), accountInfo)); in HWTEST_F() 241 EXPECT_EQ(accountInfo.GetLocalId(), createInf in HWTEST_F() [all...] |
H A D | os_account_inner_account_mgr_cov.cpp | 227 subscriberPtr->localId_ = osAccountInfo.GetLocalId(); in HWTEST_F() 231 int localID = osAccountInfo.GetLocalId(); in HWTEST_F() 282 int32_t localID = osAccountInfo.GetLocalId(); in HWTEST_F() 302 errCode = innerMgrService_->QueryOsAccountById(osAccountInfo.GetLocalId(), osAccountInfoQuery); in HWTEST_F() 304 innerMgrService_->RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F()
|
/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
H A D | mock_domain_create_domain_account_callback.cpp | 57 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
|
/base/account/os_account/tools/test/unittest/acm/ |
H A D | account_command_switch_test.cpp | 63 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()); in HWTEST_F() 277 OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F()
|
H A D | account_command_dump_test.cpp | 63 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()); in HWTEST_F() 296 OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F()
|
H A D | account_command_delete_test.cpp | 63 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()); in HWTEST_F()
|
H A D | account_command_set_test.cpp | 67 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()); in HWTEST_F() 389 OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F()
|
/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/ |
H A D | createosaccount_fuzzer.cpp | 65 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()
|
/base/account/os_account/tools/test/moduletest/acm/ |
H A D | account_command_util.cpp | 66 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()
|
H A D | account_command_set_module_test.cpp | 95 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in HWTEST_F() 122 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in HWTEST_F()
|
/base/account/os_account/services/accountmgr/test/unittest/ohos_account/ |
H A D | ohos_account_manager_test.cpp | 211 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 228 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin); in HWTEST_F() 231 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin); in HWTEST_F() 237 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout); in HWTEST_F() 239 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 253 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F() 269 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin); in HWTEST_F() 274 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout); in HWTEST_F() 279 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); in HWTEST_F()
|
/base/security/asset/services/os_dependency/src/ |
H A D | os_account_wrapper.cpp | 61 [](auto &iter) { return iter.GetLocalId(); }); in GetUserIds() 88 [](auto &iter) { return iter.GetLocalId(); }); in GetUsersSize()
|
/base/account/os_account/frameworks/domain_account/test/moduletest/include/ |
H A D | mock_domain_create_domain_account_callback.h | 39 int32_t GetLocalId();
|