Home
last modified time | relevance | path

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

123

/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_interface.cpp64 ErrCode code = AbilityManagerAdapter::GetInstance()->StartUser(osAccountInfo.GetLocalId()); in SendToAMSAccountStart()
67 … ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_ACTIVATE, code, in SendToAMSAccountStart()
82 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, in SendToAMSAccountStop()
88 ErrCode code = AbilityManagerAdapter::GetInstance()->StopUser(osAccountInfo.GetLocalId(), in SendToAMSAccountStop()
92 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, code, in SendToAMSAccountStop()
108 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, -1, in SendToAMSAccountStop()
121 ErrCode code = AbilityManagerAdapter::GetInstance()->LogoutUser(osAccountInfo.GetLocalId()); in SendToAMSAccountDeactivate()
124 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, code, in SendToAMSAccountDeactivate()
134 …return BundleManagerAdapter::GetInstance()->CreateNewUser(osAccountInfo.GetLocalId(), disallowedHa… in SendToBMSAccountCreate()
139 return BundleManagerAdapter::GetInstance()->RemoveUser(osAccountInfo.GetLocalId()); in SendToBMSAccountDelete()
[all …]
Dos_account_database_operator.cpp89 if (curOsInfo.GetLocalId() >= Constants::START_USER_ID) { in GetOsAccountListFromDatabase()
99 ACCOUNT_LOGE("InnerInit failed! target localID %{public}d!", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase()
103 if (osAccountInfo.GetLocalId() < Constants::START_USER_ID) { in InsertOsAccountIntoDataBase()
104 …LOGI("target os account id %{public}d will not be saved in database!", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase()
111 errCode, osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase()
114 ACCOUNT_LOGI("insert account %{public}d to database succeed.", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase()
135 ACCOUNT_LOGE("InnerInit failed! local id %{public}d!", osAccountInfo.GetLocalId()); in UpdateOsAccountInDatabase()
142 osAccountInfo.GetLocalId(), errCode); in UpdateOsAccountInDatabase()
144 …("update os account info in database for account %{public}d succeed!", osAccountInfo.GetLocalId()); in UpdateOsAccountInDatabase()
Dinner_os_account_manager.cpp88 ReportOsAccountLifeCycle(osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE); in CreateBaseAdminAccount()
122 ReportOsAccountLifeCycle(osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE); in CreateBaseStandardAccount()
163 defaultActivatedId_ = osAccountInfo.GetLocalId(); in RetryToGetAccount()
187 std::int32_t id = osAccountInfo.GetLocalId(); in RetryToGetAccount()
240 errCode = osAccountControl_->UpdateBaseOAConstraints(std::to_string(osAccountInfo.GetLocalId()), in RetryToGetAccount()
321 std::to_string(osAccountInfo.GetLocalId()), constraintsResult, true); in RetryToGetAccount()
349 … osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE, errCode, "UpdateOsAccount failed!"); in RetryToGetAccount()
354 ReportOsAccountLifeCycle(osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE); in RetryToGetAccount()
356 subscribeManager_.Publish(osAccountInfo.GetLocalId(), OS_ACCOUNT_SUBSCRIBE_TYPE::CREATED); in RetryToGetAccount()
371 (void)osAccountControl_->DelOsAccount(osAccountInfo.GetLocalId()); in RetryToGetAccount()
[all …]
Dos_account_domain_account_callback.cpp83 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult()
84 (void)osAccountControl_->DelOsAccount(osAccountInfo_.GetLocalId()); in OnResult()
89 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult()
95 if ((osAccountInfo_.GetLocalId() == Constants::START_USER_ID) && (errCode == ERR_OK)) { in OnResult()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_module_test.cpp156 …errCode = osAccountManagerService_->QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInf…
163 errCode = osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId());
215 errCode = osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId());
220 osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId());
233 EXPECT_EQ(osAccountManagerService_->ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
234 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
254 osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId());
278 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
359 …EXPECT_EQ(osAccountManagerService_->IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountA…
362 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
[all …]
Dos_account_database_operator_test.cpp80 EXPECT_EQ(info.GetLocalId(), localId);
97 EXPECT_EQ(info.GetLocalId(), localId);
Dos_account_manager_service_subscribe_module_test.cpp198 subscriberTestPtr->id_ = osAccountInfo.GetLocalId();
209 result = osAccountManagerService_->ActivateOsAccount(osAccountInfo.GetLocalId());
226 result = osAccountManagerService_->RemoveOsAccount(osAccountInfo.GetLocalId());
247 const int id = osAccountInfo.GetLocalId();
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
Dos_account_manager_module_test.cpp292 if (info.GetLocalId() == START_USER_ID) { in SetUp()
295 ACCOUNT_LOGI("[SetUp] remove account %{public}d", info.GetLocalId()); in SetUp()
296 OsAccountManager::RemoveOsAccount(info.GetLocalId()); in SetUp()
348 …EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), E…
355 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
394 …EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), E…
401 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
415 …EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), E…
422 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
435 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
[all …]
Dos_account_manager_no_bms_mock_test.cpp116 … OHOS::AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfos, osAccountInfoOne.GetLocalId()));
131 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId());
/base/account/os_account/frameworks/osaccount/native/test/unittest/
Dos_account_info_test.cpp143 EXPECT_EQ(id, osAccountInfo.GetLocalId());
427 EXPECT_EQ(osAccountInfo.GetLocalId(), INT_ID);
446 EXPECT_EQ(osAccountInfoTar.GetLocalId(), INT_ID);
611 OsAccountManager::RemoveOsAccount(osAccountInfoTwo.GetLocalId());
612 …EXPECT_EQ(ERR_OK, OsAccountManager::SetOsAccountName(osAccountInfoOne.GetLocalId(), "updateName"));
613 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId());
632 OsAccountManager::RemoveOsAccount(osAccountInfoTwo.GetLocalId());
634 …EXPECT_EQ(ERR_OK, OsAccountManager::SetOsAccountName(osAccountInfoOne.GetLocalId(), "updateName"));
637 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId());
665 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId());
[all …]
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
Dmock_domain_create_domain_account_callback.cpp46 localId_ = osAccountInfo->GetLocalId(); in OnResult()
54 OsAccountManager::RemoveOsAccount(osAccountInfo->GetLocalId()); in OnResult()
61 int32_t TestCreateDomainAccountCallback::GetLocalId(void) in GetLocalId() function in OHOS::AccountSA::TestCreateDomainAccountCallback
/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/
Daccount_mgr_inner_sdk_func_test.cpp194 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
231 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
244 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
286 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
299 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
318 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
331 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
351 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
399 osAccountInfoOne.GetLocalId(), accountInfo, g_eventLogin);
401 …ret = OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(osAccountInfoOne.GetLocalId(), acc…
[all …]
/base/account/os_account/services/accountmgr/test/unittest/ohos_account/
Dohos_account_manager_test.cpp204 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
221 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin);
224 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin);
227 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout);
229 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
243 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
259 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin);
264 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout);
266 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
/base/account/os_account/tools/test/unittest/acm/
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());
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());
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());
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());
/base/account/os_account/tools/test/moduletest/acm/
Daccount_command_util.cpp56 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in DeleteLastOsAccount()
77 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in DumpLastOsAccount()
98 std::string localAccountId = std::to_string(osAccounts.begin()->GetLocalId()); in SwitchToFirstOsAccount()
119 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in SwitchToLastOsAccount()
Daccount_command_set_module_test.cpp95 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId());
122 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId());
/base/account/os_account/test/fuzztest/osaccount/createosaccountwithshortname_fuzzer/
Dcreateosaccountwithshortname_fuzzer.cpp62 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountWithShortNameFuzzTest()
77 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountWithShortNameFuzzTest()
/base/customization/enterprise_device_management/test/unittest/edm_plugin/src/
Dadd_os_account_plugin_test.cpp138 accountIdArray.push_back(accountInfo.GetLocalId());
160 accountIdArray.push_back(accountInfo.GetLocalId());
182 accountIdArray.push_back(accountInfo.GetLocalId());
/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/
Dcreateosaccount_fuzzer.cpp40 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountFuzzTest()
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
Daccount_iam_callback_test.cpp416 int32_t userId = accountInfo.GetLocalId();
421 EXPECT_EQ(OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()), ERR_OK);
438 int32_t userId = accountInfo.GetLocalId();
446 EXPECT_EQ(OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()), ERR_OK);
464 int32_t userId = accountInfo.GetLocalId();
471 EXPECT_EQ(OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()), ERR_OK);
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_utils_test.cpp112 std::string result = PrintUtils::GetLocalId(gid, id);
127 std::string result = PrintUtils::GetLocalId(gid, id);
142 std::string result = PrintUtils::GetLocalId(gid, id);
/base/account/os_account/test/fuzztest/osaccount/createosaccountfordomain_fuzzer/
Dcreateosaccountfordomain_fuzzer.cpp42 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in CreateOsAccountForDomainFuzzTest()

123