Home
last modified time | relevance | path

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

12

/ohos5.0/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_domain_account_callback.cpp96 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult()
102 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult()
107 if ((osAccountInfo_.GetLocalId() == Constants::START_USER_ID) && (errCode == ERR_OK)) { in OnResult()
110 … EventFwk::CommonEventSupport::COMMON_EVENT_USER_INFO_UPDATED, Constants::START_USER_ID, nullptr); in OnResult()
H A Dos_account_control_file_manager.cpp123 } else if (id >= Constants::START_USER_ID) { in RecoverAccountData()
324 {DEFAULT_ACTIVATED_ACCOUNT_ID, Constants::START_USER_ID}, in BuildAndSaveAccountListJsonFile()
328 {Constants::NEXT_LOCAL_ID, Constants::START_USER_ID + 1}, in BuildAndSaveAccountListJsonFile()
441 if (!sameAccountID && accountID >= Constants::START_USER_ID) { in RecoverAccountListJsonFile()
929 nextLocalIdJson = Constants::START_USER_ID + 1; in SetNextLocalId()
980 if (osAccountInfo.GetLocalId() >= Constants::START_USER_ID) { in InsertOsAccount()
996 if (osAccountInfo.GetLocalId() >= Constants::START_USER_ID) { in InsertOsAccount()
1007 if (id <= Constants::START_USER_ID || id > Constants::MAX_USER_ID) { in DelOsAccount()
1054 if (osAccountInfo.GetLocalId() >= Constants::START_USER_ID) { in UpdateOsAccount()
1123 startId = Constants::START_USER_ID + 1; in GetNextLocalId()
[all …]
H A Dos_account_manager_service.cpp262 if ((id == Constants::START_USER_ID) || (id == Constants::ADMIN_LOCAL_ID)) { in RemoveOsAccount()
644 int32_t currentId = Constants::START_USER_ID; in DeactivateOsAccount()
648 if (id == Constants::START_USER_ID) { in DeactivateOsAccount()
663 innerManager_.ActivateOsAccount(Constants::START_USER_ID, false); in DeactivateOsAccount()
1044 if (targetId < Constants::START_USER_ID || enforcerId < Constants::START_USER_ID) { in SetSpecificOsAccountConstraints()
1170 if (id >= Constants::ADMIN_LOCAL_ID && id < Constants::START_USER_ID) { in IsOsAccountForeground()
H A Dinner_os_account_manager.cpp136 OsAccountInfo osAccountInfo(Constants::START_USER_ID, Constants::STANDARD_LOCAL_NAME, in CreateBaseStandardAccount()
139 OsAccountInfo osAccountInfo(Constants::START_USER_ID, "", OsAccountType::ADMIN, serialNumber); in CreateBaseStandardAccount()
159 SetDefaultActivatedOsAccount(Constants::START_USER_ID); in CreateBaseStandardAccount()
252 if (osAccountInfo.GetIsActived() && id != Constants::START_USER_ID) { in RetryToGetAccount()
504 ErrCode code = QueryOsAccountById(Constants::START_USER_ID, accountInfoOld); in RetryToGetAccount()
679 if (osAccountInfo.GetLocalId() != Constants::START_USER_ID) { in RetryToGetAccount()
743 osAccountControl_->SetDefaultActivatedOsAccount(Constants::START_USER_ID); in RetryToGetAccount()
744 defaultActivatedId_ = Constants::START_USER_ID; in RetryToGetAccount()
776 if (ActivateOsAccount(Constants::START_USER_ID) != ERR_OK) { in RetryToGetAccount()
2165 id = 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()
/ohos5.0/base/account/os_account/frameworks/domain_account/test/moduletest/src/
H A Dmock_domain_auth_callback.cpp24 const int32_t START_USER_ID = 100; variable
42 if (localId > START_USER_ID) { in OnResult()
/ohos5.0/base/account/os_account/services/accountmgr/test/moduletest/os_account/
H A Dos_account_manager_service_module_test.cpp426 int localId = Constants::START_USER_ID - 1;
469 int localId = Constants::START_USER_ID - 1;
700 int localId = Constants::START_USER_ID - 1;
734 EXPECT_EQ(id, Constants::START_USER_ID);
759 Constants::START_USER_ID, serialNumber), ERR_OK);
804 int localId = Constants::START_USER_ID - 1;
928 int localId = Constants::START_USER_ID - 1;
1352 int localId = Constants::START_USER_ID - 1;
1528 int localId = Constants::START_USER_ID - 1;
1590 int localId = Constants::START_USER_ID - 1;
[all …]
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++) {
110 for (auto i = Constants::START_USER_ID + 1; i < Constants::MAX_USER_ID; i++) {
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dset_flag_utils.cpp30 const int START_USER_ID = 100; variable
69 if (userId < START_USER_ID || userId > MAX_USER_ID) { in ParseDirPath()
/ohos5.0/base/account/os_account/services/accountmgr/src/domain_account/
H A Ddomain_account_manager_service.cpp25 constexpr int32_t START_USER_ID = 100; variable
93 if (userId < START_USER_ID) { in AuthUser()
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_control_file_manager_test.cpp145 …EXPECT_EQ(g_controlManager->GetOsAccountInfoById(Constants::START_USER_ID, osAccountInfo), ERR_OK);
212 …EXPECT_EQ(g_controlManager->IsOsAccountExists(Constants::START_USER_ID, isOsAccountExists), ERR_OK…
273 … Constants::START_USER_ID, STRING_TEST_USER_NAME, OS_ACCOUNT_TYPE, STRING_TEST_USER_SHELLNUMBER);
316 int id = Constants::START_USER_ID;
405 bool checkIdValid = (curID >= Constants::START_USER_ID);
H A Dos_account_event_manager_multiple_thread_test.cpp113 …GetInstance().subscribeManager_.Publish(START_USER_ID, TEST_ID, OS_ACCOUNT_SUBSCRIBE_TYPE::SWITCHE… in TestWriteReadFileInfo()
H A Dos_account_inner_account_mgr_mock.cpp168 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID);
227 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID);
348 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID);
413 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID);
470 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID);
503 EXPECT_EQ(START_USER_ID, id);
631 EXPECT_TRUE(createInfo.GetLocalId() > START_USER_ID);
839 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount);
1948 ret = innerMgrService_->SetDefaultActivatedOsAccount(Constants::START_USER_ID);
H A Dos_account_inner_account_mgr_cov.cpp156 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount);
/ohos5.0/base/account/os_account/frameworks/osaccount/native/src/
H A Dos_account_info.cpp415 if (localId_ < Constants::START_USER_ID) { in ParamCheck()
424 if (localName_.empty() && localId_ != Constants::START_USER_ID) { in ParamCheck()
429 …if (IsTypeOutOfRange() || (localId_ == Constants::START_USER_ID && type_ != OsAccountType::ADMIN))… in ParamCheck()
434 if ((createTime_ <= 0) && (localId_ != Constants::START_USER_ID)) { in ParamCheck()
/ohos5.0/base/account/os_account/frameworks/osaccount/native/test/moduletest/
H A Dos_account_manager_module_test.cpp312 if (info.GetLocalId() == START_USER_ID) { in SetUp()
587 EXPECT_NE(OsAccountManager::RemoveOsAccount(Constants::START_USER_ID), ERR_OK);
940 EXPECT_EQ(Constants::START_USER_ID, osAccountInfo.GetLocalId());
1059 EXPECT_EQ(id, Constants::START_USER_ID);
1238 EXPECT_EQ(OsAccountManager::StartOsAccount(Constants::START_USER_ID), ERR_OK);
1268 bool checkValid = (osAccountInfo.GetLocalId() > Constants::START_USER_ID);
1299 bool checkValid = (osAccountInfo.GetLocalId() > Constants::START_USER_ID);
2629 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(Constants::START_USER_ID),
2632 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(Constants::START_USER_ID), ERR_OK);
2634 EXPECT_EQ(OsAccountManager::DeactivateOsAccount(Constants::START_USER_ID - 1),
[all …]
/ohos5.0/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_I… in IsSystemAccount()
/ohos5.0/foundation/filemanagement/storage_service/services/common/include/
H A Dstorage_service_constant.h23 const int START_USER_ID = 100; variable
/ohos5.0/base/account/os_account/interfaces/innerkits/osaccount/native/include/
H A Dos_account_constants.h86 const std::int32_t START_USER_ID = 100; variable
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/user/src/
H A Dmulti_user_manager_service.cpp37 if (userId < StorageService::START_USER_ID || userId > StorageService::MAX_USER_ID) { in CheckUserIdRange()
/ohos5.0/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_I… in IsSystemAccount()
/ohos5.0/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()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/account_subscriber/
H A Daccount_subscriber.cpp89 if (userId < StorageService::START_USER_ID || userId > StorageService::MAX_USER_ID) { in ResetUserEventRecord()

12