/ohos5.0/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_domain_account_callback.cpp | 96 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 D | os_account_control_file_manager.cpp | 123 } 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 D | os_account_manager_service.cpp | 262 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 D | inner_os_account_manager.cpp | 136 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 D | os_account_database_operator.cpp | 88 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 D | mock_domain_auth_callback.cpp | 24 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 D | os_account_manager_service_module_test.cpp | 426 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 D | os_account_manager_service_create_os_account_test.cpp | 97 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 D | set_flag_utils.cpp | 30 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 D | domain_account_manager_service.cpp | 25 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 D | os_account_control_file_manager_test.cpp | 145 …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 D | os_account_event_manager_multiple_thread_test.cpp | 113 …GetInstance().subscribeManager_.Publish(START_USER_ID, TEST_ID, OS_ACCOUNT_SUBSCRIBE_TYPE::SWITCHE… in TestWriteReadFileInfo()
|
H A D | os_account_inner_account_mgr_mock.cpp | 168 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 D | os_account_inner_account_mgr_cov.cpp | 156 osAccountControl->IsOsAccountExists(Constants::START_USER_ID, isExistsAccount);
|
/ohos5.0/base/account/os_account/frameworks/osaccount/native/src/ |
H A D | os_account_info.cpp | 415 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 D | os_account_manager_module_test.cpp | 312 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 D | os_account_manager_helper.cpp | 65 …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 D | storage_service_constant.h | 23 const int START_USER_ID = 100; variable
|
/ohos5.0/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
H A D | os_account_constants.h | 86 const std::int32_t START_USER_ID = 100; variable
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/user/src/ |
H A D | multi_user_manager_service.cpp | 37 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 D | os_account_manager_helper.cpp | 121 …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 D | account_command_switch_test.cpp | 63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
|
H A D | account_command_delete_test.cpp | 63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
|
H A D | account_command_dump_test.cpp | 63 if (info.GetLocalId() == START_USER_ID) { in SetUp()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/account_subscriber/ |
H A D | account_subscriber.cpp | 89 if (userId < StorageService::START_USER_ID || userId > StorageService::MAX_USER_ID) { in ResetUserEventRecord()
|