Home
last modified time | relevance | path

Searched refs:START_USER_ID (Results 1 - 25 of 30) sorted by relevance

12

/base/account/os_account/services/accountmgr/src/osaccount/
H A 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()
99 if ((osAccountInfo_.GetLocalId() == Constants::START_USER_ID) && (errCode == ERR_OK)) { in OnResult()
102 EventFwk::CommonEventSupport::COMMON_EVENT_USER_INFO_UPDATED, Constants::START_USER_ID, nullptr); in OnResult()
H A Dinner_os_account_manager.cpp122 OsAccountInfo osAccountInfo(Constants::START_USER_ID, Constants::STANDARD_LOCAL_NAME, in CreateBaseStandardAccount()
125 OsAccountInfo osAccountInfo(Constants::START_USER_ID, "", OsAccountType::ADMIN, serialNumber); in CreateBaseStandardAccount()
145 SetDefaultActivatedOsAccount(Constants::START_USER_ID); in CreateBaseStandardAccount()
231 if (osAccountInfo.GetIsActived() && id != Constants::START_USER_ID) { in RetryToGetAccount()
481 ErrCode code = QueryOsAccountById(Constants::START_USER_ID, accountInfoOld); in RetryToGetAccount()
492 ReportOsAccountOperationFail(Constants::START_USER_ID, Constants::OPERATION_CREATE, code, in RetryToGetAccount()
641 (void)IsOsAccountConstraintEnable(Constants::START_USER_ID, CONSTRAINT_CREATE_ACCOUNT_DIRECTLY, isEnabled); in RetryToGetAccount()
646 if (isEnabled && (osAccountInfos.size() == 1) && (osAccountInfos[0].GetLocalId() == Constants::START_USER_ID)) { in RetryToGetAccount()
656 if (osAccountInfo.GetLocalId() != Constants::START_USER_ID) { in RetryToGetAccount()
725 osAccountControl_->SetDefaultActivatedOsAccount(Constants::START_USER_ID); in RetryToGetAccount()
[all...]
H A Dos_account_database_operator.cpp88 if (curOsInfo.GetLocalId() >= Constants::START_USER_ID) { in GetOsAccountListFromDatabase()
102 if (osAccountInfo.GetLocalId() < Constants::START_USER_ID) { in InsertOsAccountIntoDataBase()
H A Dos_account_manager_service.cpp261 if ((id == Constants::START_USER_ID) || (id == Constants::ADMIN_LOCAL_ID)) { in RemoveOsAccount()
622 int32_t currentId = Constants::START_USER_ID; in DeactivateOsAccount()
626 if (id == Constants::START_USER_ID) { in DeactivateOsAccount()
641 innerManager_.ActivateOsAccount(Constants::START_USER_ID, false, Constants::DEFAULT_DISPALY_ID); in DeactivateOsAccount()
1003 if (targetId < Constants::START_USER_ID || enforcerId < Constants::START_USER_ID) { in SetSpecificOsAccountConstraints()
1129 if (id >= Constants::ADMIN_LOCAL_ID && id < Constants::START_USER_ID) { in IsOsAccountForeground()
H A Dos_account_control_file_manager.cpp134 } else if (id >= Constants::START_USER_ID) { in RecoverAccountData()
342 {DEFAULT_ACTIVATED_ACCOUNT_ID, Constants::START_USER_ID}, in BuildAndSaveAccountListJsonFile()
356 ACCOUNT_LOGE("get %{public}d base os account constraints failed.", Constants::START_USER_ID); in BuildAndSaveBaseOAConstraintsJsonFile()
425 accounts.push_back(std::to_string(Constants::START_USER_ID)); // account 100 always exists in RecoverAccountListJsonFile()
458 if (!sameAccountID && accountID >= Constants::START_USER_ID) { in RecoverAccountListJsonFile()
973 if (osAccountInfo.GetLocalId() >= Constants::START_USER_ID) { in InsertOsAccount()
989 if (osAccountInfo.GetLocalId() >= Constants::START_USER_ID) { in InsertOsAccount()
1000 if (id <= Constants::START_USER_ID || id > Constants::MAX_USER_ID) { in DelOsAccount()
1047 if (osAccountInfo.GetLocalId() >= Constants::START_USER_ID) { in UpdateOsAccount()
1116 nextLocalId_ = Constants::START_USER_ID; in GetNextLocalId()
[all...]
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
H A Dmock_domain_auth_callback.cpp24 const int32_t START_USER_ID = 100; member
42 if (localId > START_USER_ID) { in OnResult()
/base/account/os_account/services/accountmgr/src/domain_account/
H A Ddomain_account_manager_service.cpp25 constexpr int32_t START_USER_ID = 100; member
93 if (userId < START_USER_ID) { in AuthUser()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
H A Dos_account_manager_service_create_os_account_test.cpp97 for (auto i = Constants::START_USER_ID + 1; i < Constants::MAX_USER_ID; i++) { in HWTEST_F()
110 for (auto i = Constants::START_USER_ID + 1; i < Constants::MAX_USER_ID; i++) { in HWTEST_F()
H A Dos_account_manager_service_module_test.cpp312 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(Constants::START_USER_ID), in HWTEST_F()
337 EXPECT_EQ(osAccountManagerService_->IsOsAccountExists(Constants::START_USER_ID, isOsAccountExists), ERR_OK); in HWTEST_F()
363 EXPECT_EQ(osAccountManagerService_->IsOsAccountActived(Constants::START_USER_ID, isOsAccountActive), ERR_OK); in HWTEST_F()
434 int localId = Constants::START_USER_ID - 1; in HWTEST_F()
477 int localId = Constants::START_USER_ID - 1; in HWTEST_F()
511 EXPECT_EQ(osAccountManagerService_->IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK); in HWTEST_F()
588 EXPECT_EQ(osAccountManagerService_->GetOsAccountAllConstraints(Constants::START_USER_ID, constraints), ERR_OK); in HWTEST_F()
708 int localId = Constants::START_USER_ID - 1; in HWTEST_F()
742 EXPECT_EQ(id, Constants::START_USER_ID); in HWTEST_F()
767 Constants::START_USER_ID, serialNumbe in HWTEST_F()
[all...]
/base/notification/common_event_service/services/src/
H A Dos_account_manager_helper.cpp65 return userId >= AccountSA::Constants::START_USER_ID && userId <= AccountSA::Constants::MAX_USER_ID; in IsSystemAccount()
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
H A Dos_account_constants.h86 const std::int32_t START_USER_ID = 100; member
/base/account/os_account/frameworks/osaccount/native/src/
H A Dos_account_info.cpp429 if (localId_ < Constants::START_USER_ID) { in ParamCheck()
438 if (localName_.empty() && localId_ != Constants::START_USER_ID) { in ParamCheck()
443 if (IsTypeOutOfRange() || (localId_ == Constants::START_USER_ID && type_ != OsAccountType::ADMIN)) { in ParamCheck()
448 if ((createTime_ <= 0) && (localId_ != Constants::START_USER_ID)) { in ParamCheck()
/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_control_file_manager_test.cpp148 EXPECT_EQ(g_controlManager->GetOsAccountInfoById(Constants::START_USER_ID, osAccountInfo), ERR_OK); in HWTEST_F()
215 EXPECT_EQ(g_controlManager->IsOsAccountExists(Constants::START_USER_ID, isOsAccountExists), ERR_OK); in HWTEST_F()
276 Constants::START_USER_ID, STRING_TEST_USER_NAME, OS_ACCOUNT_TYPE, STRING_TEST_USER_SHELLNUMBER); in HWTEST_F()
319 int id = Constants::START_USER_ID; in HWTEST_F()
408 bool checkIdValid = (curID >= Constants::START_USER_ID); in HWTEST_F()
H A Dos_account_event_manager_multiple_thread_test.cpp113 GetInstance().subscribeManager_.Publish(START_USER_ID, TEST_ID, OS_ACCOUNT_SUBSCRIBE_TYPE::SWITCHED); in TestWriteReadFileInfo()
H A Dos_account_inner_account_mgr_mock.cpp176 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID); in HWTEST_F()
235 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID); in HWTEST_F()
356 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID); in HWTEST_F()
421 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID); in HWTEST_F()
478 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID); in HWTEST_F()
511 EXPECT_EQ(START_USER_ID, id); in HWTEST_F()
639 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID); in HWTEST_F()
847 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount); in HWTEST_F()
1956 ret = innerMgrService_->SetDefaultActivatedOsAccount(Constants::START_USER_ID); in HWTEST_F()
H A Dos_account_inner_account_mgr_cov.cpp156 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/src/
H A Dos_account_manager_helper.cpp121 return userId >= AccountSA::Constants::START_USER_ID && userId <= AccountSA::Constants::MAX_USER_ID; in IsSystemAccount()
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
H A Dos_account_manager_module_test.cpp234 if (info.GetLocalId() == START_USER_ID) { in SetUp()
484 EXPECT_NE(OsAccountManager::RemoveOsAccount(Constants::START_USER_ID), ERR_OK); in HWTEST_F()
507 EXPECT_EQ(OsAccountManager::IsOsAccountExists(Constants::START_USER_ID, isOsAccountExists), ERR_OK); in HWTEST_F()
658 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK); in HWTEST_F()
660 EXPECT_EQ(OsAccountManager::SetOsAccountIsVerified(Constants::START_USER_ID, false), ERR_OK); in HWTEST_F()
661 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK); in HWTEST_F()
663 EXPECT_EQ(OsAccountManager::SetOsAccountIsVerified(Constants::START_USER_ID, true), ERR_OK); in HWTEST_F()
664 EXPECT_EQ(OsAccountManager::IsOsAccountVerified(Constants::START_USER_ID, isVerified), ERR_OK); in HWTEST_F()
764 EXPECT_EQ(OsAccountManager::GetOsAccountAllConstraints(Constants::START_USER_ID, constraints), ERR_OK); in HWTEST_F()
836 EXPECT_EQ(OsAccountManager::QueryOsAccountById(Constants::START_USER_ID, osAccountInf in HWTEST_F()
[all...]
/base/account/os_account/tools/test/unittest/acm/
H A Daccount_command_switch_test.cpp63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
H A Daccount_command_delete_test.cpp63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
H A Daccount_command_dump_test.cpp63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
H A Daccount_command_create_test.cpp68 if (info.GetLocalId() == START_USER_ID) { in SetUp()
H A Daccount_command_set_test.cpp67 if (info.GetLocalId() == START_USER_ID) { in SetUp()
/base/account/os_account/services/accountmgr/include/osaccount/
H A Dos_account_control_file_manager.h140 std::int32_t nextLocalId_ = Constants::START_USER_ID;
/base/account/os_account/services/accountmgr/src/
H A Daccount_mgr_service.cpp287 IInnerOsAccountManager::GetInstance().IsOsAccountCompleted(Constants::START_USER_ID, isAccountCompleted); in OnAddSystemAbility()

Completed in 25 milliseconds

12