/base/account/os_account/services/accountmgr/src/osaccount/ |
D | os_account_domain_account_callback.cpp | 86 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()
|
D | inner_os_account_manager.cpp | 86 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 …]
|
D | os_account_database_operator.cpp | 89 if (curOsInfo.GetLocalId() >= Constants::START_USER_ID) { in GetOsAccountListFromDatabase() 103 if (osAccountInfo.GetLocalId() < Constants::START_USER_ID) { in InsertOsAccountIntoDataBase()
|
D | os_account_control_file_manager.cpp | 104 {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()
|
D | os_account_manager_service.cpp | 68 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/ |
D | mock_domain_auth_callback.cpp | 24 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/ |
D | os_account_manager_service_create_os_account_test.cpp | 89 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++) {
|
D | os_account_manager_service_module_test.cpp | 347 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 …]
|
D | os_account_manager_service_subscribe_module_test.cpp | 129 osAccountManagerService_->ActivateOsAccount(Constants::START_USER_ID); 181 osAccountManagerService_->ActivateOsAccount(Constants::START_USER_ID);
|
/base/account/os_account/services/accountmgr/src/domain_account/ |
D | domain_account_manager_service.cpp | 24 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/ |
D | os_account_control_file_manager_test.cpp | 134 …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);
|
D | os_account_inner_account_mgr_cov.cpp | 148 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount);
|
D | os_account_inner_account_mgr_mock.cpp | 128 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount); 1339 ret = innerMgrService_->SetDefaultActivatedOsAccount(Constants::START_USER_ID);
|
/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
D | os_account_constants.h | 75 const std::int32_t START_USER_ID = 100; variable
|
/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
D | os_account_manager_module_test.cpp | 420 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/ |
D | account_mgr_service.cpp | 202 std::int32_t defaultActivatedId = Constants::START_USER_ID; in OnStart() 250 std::int32_t defaultActivatedId = Constants::START_USER_ID; in OnAddSystemAbility()
|
D | account_stub.cpp | 158 if ((userId >= 0) && (userId < Constants::START_USER_ID)) { in CheckUserIdValid()
|
/base/account/os_account/frameworks/osaccount/core/src/ |
D | os_account.cpp | 41 if (localId < Constants::START_USER_ID) { in CheckLocalId() 99 if (id <= Constants::START_USER_ID) { in RemoveOsAccount()
|