Home
last modified time | relevance | path

Searched refs:START_USER_ID (Results 1 – 18 of 18) sorted by relevance

/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_domain_account_callback.cpp86 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult()
92 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult()
98 if ((osAccountInfo_.GetLocalId() == Constants::START_USER_ID) && (errCode == ERR_OK)) { in OnResult()
101 … EventFwk::CommonEventSupport::COMMON_EVENT_USER_INFO_UPDATED, Constants::START_USER_ID, nullptr); in OnResult()
Dinner_os_account_manager.cpp86 osAccountControl_->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount); in CreateBaseStandardAccount()
91 … Constants::START_USER_ID, Constants::STANDARD_LOCAL_NAME, OsAccountType::ADMIN, serialNumber); in CreateBaseStandardAccount()
115 if (defaultActivatedId_ == Constants::START_USER_ID) { in StartAccount()
121 errCode = osAccountControl_->GetOsAccountInfoById(Constants::START_USER_ID, osAccountInfo); in StartAccount()
126 osAccountControl_->SetDefaultActivatedOsAccount(Constants::START_USER_ID); in StartAccount()
127 defaultActivatedId_ = Constants::START_USER_ID; in StartAccount()
152 if (osAccountInfo.GetIsActived() && id != Constants::START_USER_ID) { in RestartActiveAccount()
291 …(void)IsOsAccountConstraintEnable(Constants::START_USER_ID, CONSTRAINT_CREATE_ACCOUNT_DIRECTLY, is… in BindDomainAccount()
294 … && (osAccountInfos.size() == 1) && (osAccountInfos[0].GetLocalId() == Constants::START_USER_ID)) { in BindDomainAccount()
303 if (osAccountInfo.GetLocalId() != Constants::START_USER_ID) { in BindDomainAccount()
[all …]
Dos_account_database_operator.cpp89 if (curOsInfo.GetLocalId() >= Constants::START_USER_ID) { in GetOsAccountListFromDatabase()
103 if (osAccountInfo.GetLocalId() < Constants::START_USER_ID) { in InsertOsAccountIntoDataBase()
Dos_account_control_file_manager.cpp104 {DEFAULT_ACTIVATED_ACCOUNT_ID, Constants::START_USER_ID}, in BuildAndSaveAccountListJsonFile()
117 … ACCOUNT_LOGE("get %{public}d base os account constraints failed.", Constants::START_USER_ID); in BuildAndSaveBaseOAConstraintsJsonFile()
153 accounts.push_back(std::to_string(Constants::START_USER_ID)); // account 100 always exists in RecoverAccountListJsonFile()
186 if (!sameAccountID && accountID >= Constants::START_USER_ID) { in RecoverAccountListJsonFile()
607 if (osAccountInfo.GetLocalId() >= Constants::START_USER_ID) { in InsertOsAccount()
617 if (id <= Constants::START_USER_ID || id > Constants::MAX_USER_ID) { in DelOsAccount()
656 if (osAccountInfo.GetLocalId() >= Constants::START_USER_ID) { in UpdateOsAccount()
680 maxCreatedOsAccountNum -= Constants::START_USER_ID; in GetMaxCreatedOsAccountNum()
746 if (countCreatedNum >= Constants::MAX_USER_ID - Constants::START_USER_ID) { in GetAllowCreateId()
753 id = Constants::START_USER_ID + 1; in GetAllowCreateId()
Dos_account_manager_service.cpp68 if (localId < Constants::START_USER_ID) { in CheckLocalId()
169 if (id <= Constants::START_USER_ID) { in RemoveOsAccount()
783 if (targetId < Constants::START_USER_ID || enforcerId < Constants::START_USER_ID) { in SetSpecificOsAccountConstraints()
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
Dmock_domain_auth_callback.cpp24 const int32_t START_USER_ID = 100; variable
42 if (localId > START_USER_ID) { in OnResult()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_create_os_account_test.cpp89 for (auto i = Constants::START_USER_ID + 1; i < Constants::MAX_USER_ID; i++) {
102 for (auto i = Constants::START_USER_ID + 1; i < Constants::MAX_USER_ID; i++) {
Dos_account_manager_service_module_test.cpp347 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(Constants::START_USER_ID),
372 …EXPECT_EQ(osAccountManagerService_->IsOsAccountExists(Constants::START_USER_ID, isOsAccountExists)…
398 …EXPECT_EQ(osAccountManagerService_->IsOsAccountActived(Constants::START_USER_ID, isOsAccountActive…
471 int localId = Constants::START_USER_ID - 1;
514 int localId = Constants::START_USER_ID - 1;
543 …EXPECT_EQ(osAccountManagerService_->IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR…
620 …EXPECT_EQ(osAccountManagerService_->GetOsAccountAllConstraints(Constants::START_USER_ID, constrain…
673 …EXPECT_EQ(osAccountManagerService_->QueryOsAccountById(Constants::START_USER_ID, osAccountInfo), E…
674 EXPECT_EQ(Constants::START_USER_ID, osAccountInfo.GetLocalId());
734 int localId = Constants::START_USER_ID - 1;
[all …]
Dos_account_manager_service_subscribe_module_test.cpp129 osAccountManagerService_->ActivateOsAccount(Constants::START_USER_ID);
181 osAccountManagerService_->ActivateOsAccount(Constants::START_USER_ID);
/base/account/os_account/services/accountmgr/src/domain_account/
Ddomain_account_manager_service.cpp24 constexpr int32_t START_USER_ID = 100; variable
71 if (userId < START_USER_ID) { in AuthUser()
/base/account/os_account/services/accountmgr/test/unittest/os_account/
Dos_account_control_file_manager_test.cpp134 …EXPECT_EQ(osAccountControlManager_->GetOsAccountInfoById(Constants::START_USER_ID, osAccountInfo),…
201 …EXPECT_EQ(osAccountControlManager_->IsOsAccountExists(Constants::START_USER_ID, isOsAccountExists)…
289 … Constants::START_USER_ID, STRING_TEST_USER_NAME, OS_ACCOUNT_TYPE, STRING_TEST_USER_SHELLNUMBER);
332 int id = Constants::START_USER_ID;
421 bool checkIdValid = (curID >= Constants::START_USER_ID);
Dos_account_inner_account_mgr_cov.cpp148 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount);
Dos_account_inner_account_mgr_mock.cpp128 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount);
1339 ret = innerMgrService_->SetDefaultActivatedOsAccount(Constants::START_USER_ID);
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
Dos_account_constants.h75 const std::int32_t START_USER_ID = 100; variable
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
Dos_account_manager_module_test.cpp420 EXPECT_NE(OsAccountManager::RemoveOsAccount(Constants::START_USER_ID), ERR_OK);
443 …EXPECT_EQ(OsAccountManager::IsOsAccountExists(Constants::START_USER_ID, isOsAccountExists), ERR_OK…
595 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK);
597 EXPECT_EQ(OsAccountManager::SetOsAccountIsVerified(Constants::START_USER_ID, false), ERR_OK);
598 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK);
600 EXPECT_EQ(OsAccountManager::SetOsAccountIsVerified(Constants::START_USER_ID, true), ERR_OK);
601 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK);
689 …EXPECT_EQ(OsAccountManager::GetOsAccountAllConstraints(Constants::START_USER_ID, constraints), ERR…
741 … EXPECT_EQ(OsAccountManager::QueryOsAccountById(Constants::START_USER_ID, osAccountInfo), ERR_OK);
742 EXPECT_EQ(Constants::START_USER_ID, osAccountInfo.GetLocalId());
[all …]
/base/account/os_account/services/accountmgr/src/
Daccount_mgr_service.cpp202 std::int32_t defaultActivatedId = Constants::START_USER_ID; in OnStart()
250 std::int32_t defaultActivatedId = Constants::START_USER_ID; in OnAddSystemAbility()
Daccount_stub.cpp158 if ((userId >= 0) && (userId < Constants::START_USER_ID)) { in CheckUserIdValid()
/base/account/os_account/frameworks/osaccount/core/src/
Dos_account.cpp41 if (localId < Constants::START_USER_ID) { in CheckLocalId()
99 if (id <= Constants::START_USER_ID) { in RemoveOsAccount()