/base/account/os_account/frameworks/osaccount/native/test/unittest/ |
H A D | os_account_info_test.cpp | 119 OsAccountInfo *osAccountInfo = new (std::nothrow) OsAccountInfo(); in HWTEST_F() local 120 EXPECT_NE(osAccountInfo, nullptr); in HWTEST_F() 121 delete (osAccountInfo); in HWTEST_F() 132 OsAccountInfo *osAccountInfo = in HWTEST_F() local 134 EXPECT_NE(osAccountInfo, nullptr); in HWTEST_F() 135 delete (osAccountInfo); in HWTEST_F() 147 OsAccountInfo osAccountInfo; in HWTEST_F() local 148 osAccountInfo.localId_ = id; in HWTEST_F() 149 EXPECT_EQ(id, osAccountInfo.GetLocalId()); in HWTEST_F() 160 OsAccountInfo osAccountInfo; in HWTEST_F() local 174 OsAccountInfo osAccountInfo; HWTEST_F() local 187 OsAccountInfo osAccountInfo; HWTEST_F() local 201 OsAccountInfo osAccountInfo; HWTEST_F() local 214 OsAccountInfo osAccountInfo; HWTEST_F() local 228 OsAccountInfo osAccountInfo; HWTEST_F() local 241 OsAccountInfo osAccountInfo; HWTEST_F() local 255 OsAccountInfo osAccountInfo; HWTEST_F() local 268 OsAccountInfo osAccountInfo; HWTEST_F() local 282 OsAccountInfo osAccountInfo; HWTEST_F() local 295 OsAccountInfo osAccountInfo; HWTEST_F() local 309 OsAccountInfo osAccountInfo; HWTEST_F() local 322 OsAccountInfo osAccountInfo; HWTEST_F() local 336 OsAccountInfo osAccountInfo; HWTEST_F() local 349 OsAccountInfo osAccountInfo; HWTEST_F() local 363 OsAccountInfo osAccountInfo; HWTEST_F() local 376 OsAccountInfo osAccountInfo; HWTEST_F() local 390 OsAccountInfo osAccountInfo; HWTEST_F() local 404 OsAccountInfo osAccountInfo; HWTEST_F() local 417 OsAccountInfo osAccountInfo; HWTEST_F() local 430 OsAccountInfo osAccountInfo; HWTEST_F() local 490 OsAccountInfo osAccountInfo; HWTEST_F() local 505 OsAccountInfo osAccountInfo; HWTEST_F() local 532 OsAccountInfo osAccountInfo; HWTEST_F() local 549 OsAccountInfo osAccountInfo; HWTEST_F() local 566 OsAccountInfo osAccountInfo; HWTEST_F() local 584 OsAccountInfo osAccountInfo; HWTEST_F() local 605 OsAccountInfo osAccountInfo; HWTEST_F() local 626 OsAccountInfo osAccountInfo; HWTEST_F() local 647 OsAccountInfo osAccountInfo; HWTEST_F() local 669 OsAccountInfo osAccountInfo; HWTEST_F() local 757 OsAccountInfo osAccountInfo; HWTEST_F() local 923 OsAccountInfo osAccountInfo; HWTEST_F() local [all...] |
/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | os_account_interface.h | 33 static ErrCode SendToAMSAccountStart(OsAccountInfo &osAccountInfo, bool isAppRecovery = false); 34 static ErrCode SendToAMSAccountStop(OsAccountInfo &osAccountInfo); 35 static ErrCode SendToAMSAccountDeactivate(OsAccountInfo &osAccountInfo); 37 OsAccountInfo &osAccountInfo, const std::vector<std::string> &disallowedHapList = {}); 41 static ErrCode SendToBMSAccountDelete(OsAccountInfo &osAccountInfo); 43 static ErrCode SendToIDMAccountDelete(OsAccountInfo &osAccountInfo); 45 static void SendToCESAccountCreate(OsAccountInfo &osAccountInfo); 46 static void SendToCESAccountDelete(OsAccountInfo &osAccountInfo); 49 static ErrCode SendToStorageAccountCreate(OsAccountInfo &osAccountInfo); 50 static ErrCode SendToStorageAccountRemove(OsAccountInfo &osAccountInfo); [all...] |
H A D | iinner_os_account_manager.h | 37 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) override; 39 const OsAccountType &type, OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {}) override; 40 ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, 42 ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo) override; 56 ErrCode QueryOsAccountById(const int id, OsAccountInfo &osAccountInfo) override; 90 OsAccountInfo &osAccountInfo) override; 113 ErrCode SendMsgForAccountCreate(OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {}); 114 ErrCode GetOsAccountInfoById(const int id, OsAccountInfo &osAccountInfo); 133 ErrCode PrepareRemoveOsAccount(OsAccountInfo &osAccountInfo, bool isCleanGarbage = false); 134 ErrCode RemoveOsAccountOperate(const int id, OsAccountInfo &osAccountInfo, boo [all...] |
H A D | os_account_database_operator.h | 32 void UpdateOsAccountInDatabase(const OsAccountInfo &osAccountInfo); 33 void InsertOsAccountIntoDataBase(const OsAccountInfo &osAccountInfo); 39 ErrCode GetOsAccountFromDatabase(const std::string &storeID, const int id, OsAccountInfo &osAccountInfo);
|
/base/account/os_account/services/accountmgr/test/mock/os_account/ |
H A D | os_account_interface.h | 24 static ErrCode SendToAMSAccountStart(OsAccountInfo &osAccountInfo, bool isAppRecovery = false); 25 static ErrCode SendToAMSAccountStop(OsAccountInfo &osAccountInfo); 26 static ErrCode SendToAMSAccountDeactivate(OsAccountInfo &osAccountInfo); 31 OsAccountInfo &osAccountInfo, const std::vector<std::string> &disallowedHapList = {}); 32 static ErrCode SendToBMSAccountDelete(OsAccountInfo &osAccountInfo); 34 static ErrCode SendToIDMAccountDelete(OsAccountInfo &osAccountInfo); 36 static void SendToCESAccountCreate(OsAccountInfo &osAccountInfo); 37 static void SendToCESAccountDelete(OsAccountInfo &osAccountInfo); 40 static ErrCode SendToStorageAccountCreate(OsAccountInfo &osAccountInfo); 41 static ErrCode SendToStorageAccountRemove(OsAccountInfo &osAccountInfo); [all...] |
H A D | os_account_interface.cpp | 21 ErrCode OsAccountInterface::SendToAMSAccountStart(OsAccountInfo &osAccountInfo, bool isAppRecovery) in SendToAMSAccountStart() argument 27 ErrCode OsAccountInterface::SendToAMSAccountStop(OsAccountInfo &osAccountInfo) in SendToAMSAccountStop() argument 42 OsAccountInfo &osAccountInfo, const std::vector<std::string> &disallowedHapList) in SendToBMSAccountCreate() 45 if (osAccountInfo.GetLocalName() == "CreateOsAccountRollback001") { in SendToBMSAccountCreate() 51 ErrCode OsAccountInterface::SendToAMSAccountDeactivate(OsAccountInfo &osAccountInfo) in SendToAMSAccountDeactivate() argument 57 ErrCode OsAccountInterface::SendToBMSAccountDelete(OsAccountInfo &osAccountInfo) in SendToBMSAccountDelete() argument 64 ErrCode OsAccountInterface::SendToIDMAccountDelete(OsAccountInfo &osAccountInfo) in SendToIDMAccountDelete() argument 71 void OsAccountInterface::SendToCESAccountCreate(OsAccountInfo &osAccountInfo) in SendToCESAccountCreate() argument 76 void OsAccountInterface::SendToCESAccountDelete(OsAccountInfo &osAccountInfo) in SendToCESAccountDelete() argument 87 const OsAccountInfo &osAccountInfo, cons in PublishCommonEvent() 41 SendToBMSAccountCreate( OsAccountInfo &osAccountInfo, const std::vector<std::string> &disallowedHapList) SendToBMSAccountCreate() argument 86 PublishCommonEvent( const OsAccountInfo &osAccountInfo, const std::string &commonEvent, const std::string &operation) PublishCommonEvent() argument 99 SendToStorageAccountCreate(OsAccountInfo &osAccountInfo) SendToStorageAccountCreate() argument 105 SendToStorageAccountRemove(OsAccountInfo &osAccountInfo) SendToStorageAccountRemove() argument 111 SendToStorageAccountStart(OsAccountInfo &osAccountInfo) SendToStorageAccountStart() argument 119 SendToStorageAccountStop(OsAccountInfo &osAccountInfo) SendToStorageAccountStop() argument [all...] |
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | inner_os_account_manager.cpp | 100 OsAccountInfo osAccountInfo( in CreateBaseAdminAccount() 105 osAccountInfo.SetCreateTime(time); in CreateBaseAdminAccount() 106 osAccountInfo.SetIsCreateCompleted(true); in CreateBaseAdminAccount() 107 osAccountInfo.SetIsActived(true); // admin local account is always active in CreateBaseAdminAccount() 108 osAccountControl_->InsertOsAccount(osAccountInfo); in CreateBaseAdminAccount() 109 ReportOsAccountLifeCycle(osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE); in CreateBaseAdminAccount() 122 OsAccountInfo osAccountInfo(Constants::START_USER_ID, Constants::STANDARD_LOCAL_NAME, in CreateBaseStandardAccount() 125 OsAccountInfo osAccountInfo(Constants::START_USER_ID, "", OsAccountType::ADMIN, serialNumber); in CreateBaseStandardAccount() 133 osAccountInfo.SetConstraints(constraints); in CreateBaseStandardAccount() 137 osAccountInfo in CreateBaseStandardAccount() 150 RetryToGetAccount(OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 175 GetRealOsAccountInfoById(const int id, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 203 OsAccountInfo osAccountInfo; RetryToGetAccount() local 229 OsAccountInfo osAccountInfo = osAccountInfos[i]; RetryToGetAccount() local 250 PrepareOsAccountInfo(const std::string &name, const OsAccountType &type, const DomainAccountInfo &domainInfo, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 256 PrepareOsAccountInfo(const std::string &localName, const std::string &shortName, const OsAccountType &type, const DomainAccountInfo &domainInfo, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 293 FillOsAccountInfo(const std::string &localName, const std::string &shortName, const OsAccountType &type, const DomainAccountInfo &domainInfo, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 331 PrepareOsAccountInfoWithFullInfo(OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 389 SendMsgForAccountCreate( OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options) RetryToGetAccount() argument 441 CreateOsAccount( const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 468 CreateOsAccount(const std::string &localName, const std::string &shortName, const OsAccountType &type, OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options) RetryToGetAccount() argument 539 CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options) RetryToGetAccount() argument 645 OsAccountInfo osAccountInfo; RetryToGetAccount() local 734 PrepareRemoveOsAccount(OsAccountInfo &osAccountInfo, bool isCleanGarbage) RetryToGetAccount() argument 775 RemoveOsAccountOperate(const int id, OsAccountInfo &osAccountInfo, bool isCleanGarbage) RetryToGetAccount() argument 827 OsAccountInfo osAccountInfo; RetryToGetAccount() local 855 SendMsgForAccountStop(OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 877 SendMsgForAccountDeactivate(OsAccountInfo &osAccountInfo, bool isStopStorage) RetryToGetAccount() argument 905 OsAccountInfo osAccountInfo; RetryToGetAccount() local 913 ValidateOsAccount(const OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 981 SendMsgForAccountRemove(OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 1026 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1044 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1074 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1106 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1138 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1235 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1352 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1417 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1428 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1437 QueryOsAccountById(const int id, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 1459 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1470 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1496 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1534 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1575 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1606 DeactivateOsAccountByInfo(OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 1639 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1668 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1725 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1764 SendMsgForAccountActivate(OsAccountInfo &osAccountInfo, const bool startStorage, const uint64_t displayId, const bool isAppRecovery) RetryToGetAccount() argument 1851 GetOsAccountInfoById(const int id, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 1863 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1900 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1912 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1955 OsAccountInfo osAccountInfo; RetryToGetAccount() local 1993 OsAccountInfo osAccountInfo; RetryToGetAccount() local 2003 OsAccountInfo osAccountInfo; RetryToGetAccount() local 2026 OsAccountInfo osAccountInfo; RetryToGetAccount() local 2135 GetOsAccountFromDatabase(const std::string& storeID, const int id, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 2261 UpdateAccountToForeground(const uint64_t displayId, OsAccountInfo &osAccountInfo) RetryToGetAccount() argument 2356 OsAccountInfo osAccountInfo; RetryToGetAccount() local 2368 IsValidOsAccount(const OsAccountInfo &osAccountInfo) RetryToGetAccount() argument [all...] |
H A D | os_account_interface.cpp | 69 ErrCode OsAccountInterface::SendToAMSAccountStart(OsAccountInfo &osAccountInfo, bool isAppRecovery) in SendToAMSAccountStart() argument 71 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountStart() 105 ErrCode OsAccountInterface::SendToAMSAccountStop(OsAccountInfo &osAccountInfo) in SendToAMSAccountStop() argument 107 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountStop() 141 ErrCode OsAccountInterface::SendToAMSAccountDeactivate(OsAccountInfo &osAccountInfo) in SendToAMSAccountDeactivate() argument 143 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountDeactivate() 146 ErrCode code = AbilityManagerAdapter::GetInstance()->LogoutUser(osAccountInfo.GetLocalId()); in SendToAMSAccountDeactivate() 149 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, code, in SendToAMSAccountDeactivate() 173 OsAccountInfo &osAccountInfo, const std::vector<std::string> &disallowedHapList) in SendToBMSAccountCreate() 178 errCode = BundleManagerAdapter::GetInstance()->CreateNewUser(osAccountInfo in SendToBMSAccountCreate() 172 SendToBMSAccountCreate( OsAccountInfo &osAccountInfo, const std::vector<std::string> &disallowedHapList) SendToBMSAccountCreate() argument 189 SendToBMSAccountDelete(OsAccountInfo &osAccountInfo) SendToBMSAccountDelete() argument 195 SendToIDMAccountDelete(OsAccountInfo &osAccountInfo) SendToIDMAccountDelete() argument 238 SendToCESAccountCreate(OsAccountInfo &osAccountInfo) SendToCESAccountCreate() argument 260 SendToCESAccountDelete(OsAccountInfo &osAccountInfo) SendToCESAccountDelete() argument 282 PublishCommonEvent( const OsAccountInfo &osAccountInfo, const std::string &commonEvent, const std::string &operation) PublishCommonEvent() argument 327 SendToStorageAccountCreate(OsAccountInfo &osAccountInfo) SendToStorageAccountCreate() argument 359 InnerSendToStorageAccountCreate(OsAccountInfo &osAccountInfo) InnerSendToStorageAccountCreate() argument 404 SendToStorageAccountRemove(OsAccountInfo &osAccountInfo) SendToStorageAccountRemove() argument 501 SendToStorageAccountStart(OsAccountInfo &osAccountInfo) SendToStorageAccountStart() argument 538 SendToStorageAccountStop(OsAccountInfo &osAccountInfo) SendToStorageAccountStop() argument [all...] |
H A D | os_account_database_operator.cpp | 95 void OsAccountDatabaseOperator::InsertOsAccountIntoDataBase(const OsAccountInfo &osAccountInfo) in InsertOsAccountIntoDataBase() argument 98 ACCOUNT_LOGE("InnerInit failed! target localID %{public}d!", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase() 102 if (osAccountInfo.GetLocalId() < Constants::START_USER_ID) { in InsertOsAccountIntoDataBase() 103 ACCOUNT_LOGI("target os account id %{public}d will not be saved in database!", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase() 107 ErrCode errCode = accountDataStorage_->AddAccountInfo(osAccountInfo); in InsertOsAccountIntoDataBase() 110 errCode, osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase() 113 ACCOUNT_LOGI("insert account %{public}d to database succeed.", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase() 131 void OsAccountDatabaseOperator::UpdateOsAccountInDatabase(const OsAccountInfo &osAccountInfo) in UpdateOsAccountInDatabase() argument 134 ACCOUNT_LOGE("InnerInit failed! local id %{public}d!", osAccountInfo.GetLocalId()); in UpdateOsAccountInDatabase() 138 ErrCode errCode = accountDataStorage_->SaveAccountInfo(osAccountInfo); in UpdateOsAccountInDatabase() 147 GetOsAccountFromDatabase(const std::string& storeID, const int id, OsAccountInfo &osAccountInfo) GetOsAccountFromDatabase() argument [all...] |
H A D | os_account_data_storage.cpp | 35 OsAccountInfo osAccountInfo; in SaveEntries() local 46 osAccountInfo.FromJson(jsonObject); in SaveEntries() 47 infos.emplace(item.key.ToString(), std::make_shared<OsAccountInfo>(osAccountInfo)); in SaveEntries()
|
/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/ |
H A D | createosaccount_fuzzer.cpp | 109 OsAccountInfo osAccountInfo; in CreateOsAccountForDomainFuzzTest() local 113 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in CreateOsAccountForDomainFuzzTest() 124 OsAccountInfo osAccountInfo; in UpdateOsAccountWithFullInfoFuzzTest() local 125 osAccountInfo.SetLocalName(fuzzData.GenerateRandomString()); in UpdateOsAccountWithFullInfoFuzzTest() 126 osAccountInfo.SetLocalId(fuzzData.GetData<int64_t>()); in UpdateOsAccountWithFullInfoFuzzTest() 127 osAccountInfo.SetSerialNumber(fuzzData.GetData<int64_t>()); in UpdateOsAccountWithFullInfoFuzzTest() 128 osAccountInfo.SetCreateTime(fuzzData.GetData<int64_t>()); in UpdateOsAccountWithFullInfoFuzzTest() 129 osAccountInfo.SetLastLoginTime(fuzzData.GetData<int64_t>()); in UpdateOsAccountWithFullInfoFuzzTest() 130 result = OsAccountManager::UpdateOsAccountWithFullInfo(osAccountInfo); in UpdateOsAccountWithFullInfoFuzzTest() 133 OsAccountManager::RemoveOsAccount(osAccountInfo in UpdateOsAccountWithFullInfoFuzzTest() 144 OsAccountInfo osAccountInfo; CreateOsAccountWithFullInfoFuzzTest() local [all...] |
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
H A D | inner_os_account_manager_test.cpp | 68 OsAccountInfo osAccountInfo; in HWTEST_F() local 69 ErrCode ret = innerMgrService_->SendMsgForAccountStop(osAccountInfo); in HWTEST_F() 81 OsAccountInfo osAccountInfo; in HWTEST_F() local 82 ErrCode ret = innerMgrService_->SendMsgForAccountRemove(osAccountInfo); in HWTEST_F() 94 OsAccountInfo osAccountInfo; in HWTEST_F() local 95 ErrCode ret = innerMgrService_->SendMsgForAccountActivate(osAccountInfo); in HWTEST_F() 110 OsAccountInfo osAccountInfo; in HWTEST_F() local 173 OsAccountInfo osAccountInfo; in HWTEST_F() local 174 ErrCode ret = innerMgrService_->CreateOsAccount("InnerOsAccountManager003", OsAccountType::NORMAL, osAccountInfo); in HWTEST_F() 176 innerMgrService_->RemoveOsAccount(osAccountInfo in HWTEST_F() [all...] |
H A D | os_account_manager_service_module_test.cpp | 628 OsAccountInfo osAccountInfo; in HWTEST_F() local 629 EXPECT_EQ(osAccountManagerService_->QueryCurrentOsAccount(osAccountInfo), ERR_OK); in HWTEST_F() 644 OsAccountInfo osAccountInfo; in HWTEST_F() local 645 EXPECT_EQ(osAccountManagerService_->QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfo), ERR_OK); in HWTEST_F() 658 OsAccountInfo osAccountInfo; in HWTEST_F() local 659 EXPECT_EQ(osAccountManagerService_->QueryOsAccountById(Constants::MAX_USER_ID + 1, osAccountInfo), in HWTEST_F() 1025 OsAccountInfo osAccountInfo; in HWTEST_F() local 1026 ASSERT_EQ(osAccountManagerService_->CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); in HWTEST_F() 1028 bool checkValid = (osAccountInfo.GetLocalId() > Constants::START_USER_ID); in HWTEST_F() 1033 GetOsAccountInfoById(osAccountInfo in HWTEST_F() 1060 OsAccountInfo osAccountInfo; HWTEST_F() local 1106 OsAccountInfo osAccountInfo; HWTEST_F() local 1138 OsAccountInfo osAccountInfo; HWTEST_F() local 1160 OsAccountInfo osAccountInfo; HWTEST_F() local 1188 OsAccountInfo osAccountInfo; HWTEST_F() local 1211 OsAccountInfo osAccountInfo; HWTEST_F() local 1456 OsAccountInfo osAccountInfo; HWTEST_F() local 1469 OsAccountInfo osAccountInfo; HWTEST_F() local 1481 OsAccountInfo osAccountInfo; HWTEST_F() local 1576 OsAccountInfo osAccountInfo; HWTEST_F() local 1620 OsAccountInfo osAccountInfo; HWTEST_F() local 1644 OsAccountInfo osAccountInfo; HWTEST_F() local 1662 OsAccountInfo osAccountInfo; HWTEST_F() local 1804 OsAccountInfo osAccountInfo; HWTEST_F() local 1818 OsAccountInfo osAccountInfo; HWTEST_F() local 1981 OsAccountInfo osAccountInfo; HWTEST_F() local 2208 OsAccountInfo osAccountInfo; HWTEST_F() local 2226 OsAccountInfo osAccountInfo; HWTEST_F() local 2243 OsAccountInfo osAccountInfo; HWTEST_F() local 2395 OsAccountInfo osAccountInfo; HWTEST_F() local 2501 OsAccountInfo osAccountInfo; HWTEST_F() local 2542 OsAccountInfo osAccountInfo; HWTEST_F() local 2597 OsAccountInfo osAccountInfo; HWTEST_F() local 2653 OsAccountInfo osAccountInfo; HWTEST_F() local 2681 OsAccountInfo osAccountInfo; HWTEST_F() local [all...] |
H A D | os_account_manager_service_subscribe_module_test.cpp | 199 OsAccountInfo osAccountInfo; in HWTEST_F() local 201 "OsAccountManagerServiceSubscribeModuleTest_0001", OsAccountType::GUEST, osAccountInfo); in HWTEST_F() 203 subscriberTestPtr->id_ = osAccountInfo.GetLocalId(); in HWTEST_F() 210 result = OsAccount::GetInstance().ActivateOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F() 226 result = OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId()); in HWTEST_F() 246 OsAccountInfo osAccountInfo; in HWTEST_F() local 248 "OsAccountManagerServiceSubscribeModuleTest_0002", OsAccountType::GUEST, osAccountInfo); in HWTEST_F() 249 const int id = osAccountInfo.GetLocalId(); in HWTEST_F()
|
/base/account/os_account/frameworks/osaccount/core/test/unittest/ |
H A D | os_account_test.cpp | 120 OsAccountInfo osAccountInfo; in HWTEST_F() local 121 ErrCode errCode = g_osAccount->CreateOsAccount(STRING_NAME_OUT_OF_RANGE, OsAccountType::GUEST, osAccountInfo); in HWTEST_F() 122 osAccountInfo.SetShortName("shortName"); in HWTEST_F() 134 OsAccountInfo osAccountInfo; in HWTEST_F() local 135 ErrCode errCode = g_osAccount->CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfo); in HWTEST_F() 220 OsAccountInfo osAccountInfo; in HWTEST_F() local 222 EXPECT_EQ(osAccountInfo.SetDomainInfo(domainInfo), true); in HWTEST_F() 225 osAccountInfo.GetDomainInfo(getDomainInfo); in HWTEST_F() 241 OsAccountInfo osAccountInfo; in HWTEST_F() local 243 EXPECT_EQ(osAccountInfo in HWTEST_F() 273 OsAccountInfo osAccountInfo; HWTEST_F() local 290 OsAccountInfo osAccountInfo; HWTEST_F() local 308 OsAccountInfo osAccountInfo; HWTEST_F() local [all...] |
/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
H A D | mock_domain_create_domain_account_callback.cpp | 47 OsAccountInfo *osAccountInfo = OsAccountInfo::Unmarshalling(parcel); in OnResult() local 48 if (osAccountInfo == nullptr || errCode != ERR_OK) { in OnResult() 55 osAccountInfo->GetDomainInfo(newDomainInfo); in OnResult() 57 localId_ = osAccountInfo->GetLocalId(); in OnResult() 65 OsAccountManager::RemoveOsAccount(osAccountInfo->GetLocalId()); in OnResult()
|
/base/account/os_account/test/fuzztest/osaccount_stub/checkosaccountconstraintenabledstub_fuzzer/ |
H A D | checkosaccountconstraintenabledstub_fuzzer.cpp | 149 OsAccountInfo osAccountInfo; in ProcUpdateOsAccountWithFullInfoStubFuzzTest() local 150 osAccountInfo.SetLocalId(fuzzData.GetData<int>()); in ProcUpdateOsAccountWithFullInfoStubFuzzTest() 151 osAccountInfo.SetLocalName(fuzzData.GenerateRandomString()); in ProcUpdateOsAccountWithFullInfoStubFuzzTest() 152 osAccountInfo.SetShortName(fuzzData.GenerateRandomString()); in ProcUpdateOsAccountWithFullInfoStubFuzzTest() 155 osAccountInfo.SetType(PRIVATE); in ProcUpdateOsAccountWithFullInfoStubFuzzTest() 157 osAccountInfo.SetType(END); in ProcUpdateOsAccountWithFullInfoStubFuzzTest() 160 osAccountInfo.SetType(testType); in ProcUpdateOsAccountWithFullInfoStubFuzzTest() 162 osAccountInfo.SetSerialNumber(fuzzData.GetData<int64_t>()); in ProcUpdateOsAccountWithFullInfoStubFuzzTest() 164 if (!datas.WriteParcelable(&osAccountInfo)) { in ProcUpdateOsAccountWithFullInfoStubFuzzTest()
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
H A D | os_account_inner_account_mgr_cov.cpp | 225 OsAccountInfo osAccountInfo; in HWTEST_F() local 226 int errCode = innerMgrService_->CreateOsAccount(ACCOUNT_NAME, OsAccountType::NORMAL, osAccountInfo); in HWTEST_F() 227 subscriberPtr->localId_ = osAccountInfo.GetLocalId(); in HWTEST_F() 229 errCode = innerMgrService_->SendMsgForAccountDeactivate(osAccountInfo); in HWTEST_F() 231 int localID = osAccountInfo.GetLocalId(); in HWTEST_F() 278 OsAccountInfo osAccountInfo; in HWTEST_F() local 279 ErrCode errCode = innerMgrService_->CreateOsAccount(ACCOUNT_NAME, OsAccountType::NORMAL, osAccountInfo); in HWTEST_F() 282 int32_t localID = osAccountInfo.GetLocalId(); in HWTEST_F() 297 OsAccountInfo osAccountInfo; in HWTEST_F() local 299 innerMgrService_->CreateOsAccount("CreateOsAccountRollback001", OsAccountType::NORMAL, osAccountInfo); in HWTEST_F() [all...] |
H A D | os_account_file_manager_multiple_thread_test.cpp | 92 OsAccountInfo osAccountInfo(g_id, testName, OS_ACCOUNT_TYPE, STRING_TEST_USER_SHELLNUMBER); in TestWriteReadFileInfo() 93 osAccountInfo.SetIsCreateCompleted(true); in TestWriteReadFileInfo() 94 EXPECT_EQ(g_controlManager->UpdateOsAccount(osAccountInfo), ERR_OK); in TestWriteReadFileInfo() 98 OsAccountInfo osAccountInfo; in TestWriteReadFileInfo() local 99 EXPECT_EQ(g_controlManager->GetOsAccountInfoById(g_id, osAccountInfo), ERR_OK); in TestWriteReadFileInfo() 100 EXPECT_EQ(osAccountInfo.GetIsCreateCompleted(), true); in TestWriteReadFileInfo()
|
/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
H A D | os_account_manager_module_test.cpp | 823 OsAccountInfo osAccountInfo; in HWTEST_F() local 824 EXPECT_EQ(OsAccountManager::QueryCurrentOsAccount(osAccountInfo), ERR_OK); in HWTEST_F() 835 OsAccountInfo osAccountInfo; in HWTEST_F() local 836 EXPECT_EQ(OsAccountManager::QueryOsAccountById(Constants::START_USER_ID, osAccountInfo), ERR_OK); in HWTEST_F() 837 EXPECT_EQ(Constants::START_USER_ID, osAccountInfo.GetLocalId()); in HWTEST_F() 848 OsAccountInfo osAccountInfo; in HWTEST_F() local 849 EXPECT_NE(OsAccountManager::QueryOsAccountById(Constants::MAX_USER_ID + 1, osAccountInfo), ERR_OK); in HWTEST_F() 1162 OsAccountInfo osAccountInfo; in HWTEST_F() local 1163 EXPECT_EQ(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); in HWTEST_F() 1165 bool checkValid = (osAccountInfo in HWTEST_F() 1193 OsAccountInfo osAccountInfo; HWTEST_F() local 1238 OsAccountInfo osAccountInfo; HWTEST_F() local 1266 OsAccountInfo osAccountInfo; HWTEST_F() local 1285 OsAccountInfo osAccountInfo; HWTEST_F() local 1313 OsAccountInfo osAccountInfo; HWTEST_F() local 1331 OsAccountInfo osAccountInfo; HWTEST_F() local 1429 OsAccountInfo osAccountInfo; HWTEST_F() local 1453 OsAccountInfo osAccountInfo; HWTEST_F() local 2025 OsAccountInfo osAccountInfo; HWTEST_F() local 2126 OsAccountInfo osAccountInfo; HWTEST_F() local 2280 OsAccountInfo osAccountInfo; HWTEST_F() local 2368 OsAccountInfo osAccountInfo; HWTEST_F() local 2466 OsAccountInfo osAccountInfo; HWTEST_F() local 2631 OsAccountInfo osAccountInfo; HWTEST_F() local 2851 OsAccountInfo osAccountInfo; HWTEST_F() local 2888 OsAccountInfo osAccountInfo; HWTEST_F() local 2941 OsAccountInfo osAccountInfo; HWTEST_F() local 3005 OsAccountInfo osAccountInfo; HWTEST_F() local 3038 OsAccountInfo osAccountInfo; HWTEST_F() local 3200 OsAccountInfo osAccountInfo; HWTEST_F() local [all...] |
/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
H A D | os_account_manager.h | 55 * @param osAccountInfo - Indicates the information about the created OS account. 58 static ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo); 66 * @param osAccountInfo - Indicates the information about the created OS account. 70 const OsAccountType& type, OsAccountInfo& osAccountInfo); 80 * @param osAccountInfo - Indicates the information about the created OS account. 84 const OsAccountType& type, const CreateOsAccountOptions& options, OsAccountInfo& osAccountInfo); 89 * @param osAccountInfo - Indicates the information about the created OS account. 92 static ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, 98 * @param osAccountInfo - Indicates the information about the created OS account. 101 static ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo); [all...] |
/base/account/os_account/frameworks/osaccount/native/src/ |
H A D | os_account_manager.cpp | 25 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) in CreateOsAccount() 27 return OsAccount::GetInstance().CreateOsAccount(name, type, osAccountInfo); in CreateOsAccount() 31 const std::string &localName, const std::string &shortName, const OsAccountType &type, OsAccountInfo &osAccountInfo) in CreateOsAccount() 33 return OsAccount::GetInstance().CreateOsAccount(localName, shortName, type, osAccountInfo); in CreateOsAccount() 37 const OsAccountType& type, const CreateOsAccountOptions& options, OsAccountInfo& osAccountInfo) in CreateOsAccount() 39 return OsAccount::GetInstance().CreateOsAccount(localName, shortName, type, osAccountInfo, options); in CreateOsAccount() 42 ErrCode OsAccountManager::CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, in CreateOsAccountWithFullInfo() argument 45 return OsAccount::GetInstance().CreateOsAccountWithFullInfo(osAccountInfo, options); in CreateOsAccountWithFullInfo() 48 ErrCode OsAccountManager::UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo) in UpdateOsAccountWithFullInfo() argument 50 return OsAccount::GetInstance().UpdateOsAccountWithFullInfo(osAccountInfo); in UpdateOsAccountWithFullInfo() 24 CreateOsAccount( const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) CreateOsAccount() argument 30 CreateOsAccount( const std::string &localName, const std::string &shortName, const OsAccountType &type, OsAccountInfo &osAccountInfo) CreateOsAccount() argument 36 CreateOsAccount(const std::string& localName, const std::string& shortName, const OsAccountType& type, const CreateOsAccountOptions& options, OsAccountInfo& osAccountInfo) CreateOsAccount() argument 156 QueryCurrentOsAccount(OsAccountInfo &osAccountInfo) QueryCurrentOsAccount() argument 161 QueryOsAccountById(const int id, OsAccountInfo &osAccountInfo) QueryOsAccountById() argument 287 GetOsAccountFromDatabase(const std::string& storeID, const int id, OsAccountInfo &osAccountInfo) GetOsAccountFromDatabase() argument [all...] |
/base/account/os_account/services/accountmgr/src/ |
H A D | account_info_report.cpp | 53 OsAccountInfo osAccountInfo; in ReportSecurityInfo() local 54 (void)IInnerOsAccountManager::GetInstance().QueryOsAccountById(id, osAccountInfo); in ReportSecurityInfo() 55 userName = osAccountInfo.GetLocalName(); in ReportSecurityInfo()
|
/base/account/os_account/test/fuzztest/osaccount/queryaccountinfo_fuzzer/ |
H A D | queryaccountinfo_fuzzer.cpp | 58 OsAccountInfo osAccountInfo; in QueryOsAccountByIdFuzzTest() local 59 result = OsAccountManager::QueryOsAccountById(testId, osAccountInfo); in QueryOsAccountByIdFuzzTest() 85 OsAccountInfo osAccountInfo; in QueryCurrentOsAccountFuzzTest() local 86 osAccountInfo.SetLocalName(testName); in QueryCurrentOsAccountFuzzTest() 87 result = OsAccountManager::QueryCurrentOsAccount(osAccountInfo); in QueryCurrentOsAccountFuzzTest()
|
/base/account/os_account/frameworks/osaccount/core/include/ |
H A D | os_account.h | 29 ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo); 31 OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {}); 32 ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {}); 33 ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo); 50 ErrCode QueryCurrentOsAccount(OsAccountInfo &osAccountInfo); 51 ErrCode QueryOsAccountById(const int id, OsAccountInfo &osAccountInfo); 80 OsAccountInfo &osAccountInfo);
|