/base/account/os_account/services/accountmgr/src/osaccount/ |
D | os_account_interface.cpp | 60 ErrCode code = AbilityManagerAdapter::GetInstance()->StartUser(osAccountInfo.GetLocalId()); in SendToAMSAccountStart() 63 … ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_ACTIVATE, code, in SendToAMSAccountStart() 78 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, in SendToAMSAccountStop() 84 ErrCode code = AbilityManagerAdapter::GetInstance()->StopUser(osAccountInfo.GetLocalId(), in SendToAMSAccountStop() 88 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, code, in SendToAMSAccountStop() 104 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_STOP, -1, in SendToAMSAccountStop() 116 return BundleManagerAdapter::GetInstance()->CreateNewUser(osAccountInfo.GetLocalId()); in SendToBMSAccountCreate() 121 return BundleManagerAdapter::GetInstance()->RemoveUser(osAccountInfo.GetLocalId()); in SendToBMSAccountDelete() 130 ReportOsAccountOperationFail(osAccountInfo.GetLocalId(), Constants::OPERATION_DELETE, in SendToIDMAccountDelete() 136 … = UserIam::UserAuth::UserIdmClient::GetInstance().EraseUser(osAccountInfo.GetLocalId(), callback); in SendToIDMAccountDelete() [all …]
|
D | os_account_database_operator.cpp | 89 if (curOsInfo.GetLocalId() >= Constants::START_USER_ID) { in GetOsAccountListFromDatabase() 99 ACCOUNT_LOGE("InnerInit failed! target localID %{public}d!", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase() 103 if (osAccountInfo.GetLocalId() < Constants::START_USER_ID) { in InsertOsAccountIntoDataBase() 104 …LOGI("target os account id %{public}d will not be saved in database!", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase() 111 errCode, osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase() 114 ACCOUNT_LOGI("insert account %{public}d to database succeed.", osAccountInfo.GetLocalId()); in InsertOsAccountIntoDataBase() 135 ACCOUNT_LOGE("InnerInit failed! local id %{public}d!", osAccountInfo.GetLocalId()); in UpdateOsAccountInDatabase() 142 osAccountInfo.GetLocalId(), errCode); in UpdateOsAccountInDatabase() 144 …("update os account info in database for account %{public}d succeed!", osAccountInfo.GetLocalId()); in UpdateOsAccountInDatabase()
|
D | os_account_domain_account_callback.cpp | 86 if (osAccountInfo_.GetLocalId() != Constants::START_USER_ID) { in OnResult() 87 (void)osAccountControl->DelOsAccount(osAccountInfo_.GetLocalId()); 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()
|
D | inner_os_account_manager.cpp | 138 subscribeManager_.PublishActivatedOsAccount(osAccountInfo.GetLocalId()); in StartAccount() 151 std::int32_t id = osAccountInfo.GetLocalId(); in RestartActiveAccount() 241 … osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE, errCode, "UpdateOsAccount failed!"); in SendMsgForAccountCreate() 246 ReportOsAccountLifeCycle(osAccountInfo.GetLocalId(), Constants::OPERATION_CREATE); in SendMsgForAccountCreate() 262 (void)osAccountControl_->DelOsAccount(osAccountInfo.GetLocalId()); in CreateOsAccount() 294 …if (isEnabled && (osAccountInfos.size() == 1) && (osAccountInfos[0].GetLocalId() == Constants::STA… in BindDomainAccount() 303 if (osAccountInfo.GetLocalId() != Constants::START_USER_ID) { in BindDomainAccount() 315 domainAccountInfo, osAccountInfo.GetLocalId(), callbackWrapper); in BindDomainAccount() 438 osAccountInfo.GetLocalId(), errCode); in SendMsgForAccountStop() 444 osAccountInfo.GetLocalId(), errCode); in SendMsgForAccountStop() [all …]
|
/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
D | os_account_manager_module_test.cpp | 300 …EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), E… 303 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 342 …EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), E… 345 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 359 …EXPECT_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), E… 362 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 407 EXPECT_NE(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 485 …EXPECT_EQ(OsAccountManager::IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountActived),… 487 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 501 …EXPECT_EQ(OsAccountManager::SetOsAccountConstraints(osAccountInfoOne.GetLocalId(), CONSTANTS_VECTO… [all …]
|
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
D | os_account_manager_service_module_test.cpp | 214 …errCode = osAccountManagerService_->QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInf… 217 errCode = osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()); 276 errCode = osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()); 290 EXPECT_EQ(osAccountManagerService_->ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 291 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 334 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 414 …EXPECT_EQ(osAccountManagerService_->IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountA… 417 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 437 osAccountInfoOne.GetLocalId(), CONSTANTS_VECTOR, enable), ERR_OK); 439 …EXPECT_EQ(osAccountManagerService_->QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInf… [all …]
|
D | os_account_manager_service_subscribe_module_test.cpp | 103 subscriberTestPtr->id_ = osAccountInfo.GetLocalId(); 114 result = osAccountManagerService_->ActivateOsAccount(osAccountInfo.GetLocalId()); 131 result = osAccountManagerService_->RemoveOsAccount(osAccountInfo.GetLocalId()); 155 subscriberTestPtr->id_ = osAccountInfo.GetLocalId(); 166 result = osAccountManagerService_->ActivateOsAccount(osAccountInfo.GetLocalId()); 183 result = osAccountManagerService_->RemoveOsAccount(osAccountInfo.GetLocalId());
|
D | os_account_database_operator_test.cpp | 73 EXPECT_EQ(info.GetLocalId(), localId); 90 EXPECT_EQ(info.GetLocalId(), localId);
|
/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
D | mock_domain_create_domain_account_callback.cpp | 46 localId_ = osAccountInfo->GetLocalId(); in OnResult() 54 OsAccountManager::RemoveOsAccount(osAccountInfo->GetLocalId()); in OnResult() 61 int32_t TestCreateDomainAccountCallback::GetLocalId(void) in GetLocalId() function in OHOS::AccountSA::TestCreateDomainAccountCallback
|
D | mock_domain_auth_callback.cpp | 41 int32_t localId = accountInfo_.GetLocalId(); in OnResult()
|
/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/ |
D | account_mgr_inner_sdk_func_test.cpp | 144 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 177 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 190 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 231 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 244 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 276 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 289 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 331 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 344 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 367 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/ohos_account/ |
D | ohos_account_manager_test.cpp | 215 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 231 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin); 236 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin); 241 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout); 243 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 256 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 273 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogin); 279 osAccountInfoOne.GetLocalId(), curAccountInfo.ohosAccountInfo_, g_eventLogout); 283 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
|
/base/account/os_account/tools/test/moduletest/acm/ |
D | account_command_util.cpp | 56 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in DeleteLastOsAccount() 77 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in DumpLastOsAccount() 98 std::string localAccountId = std::to_string(osAccounts.begin()->GetLocalId()); in SwitchToFirstOsAccount() 119 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); in SwitchToLastOsAccount()
|
D | account_command_set_module_test.cpp | 72 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId()); 99 std::string localAccountId = std::to_string(osAccounts.rbegin()->GetLocalId());
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
D | os_account_inner_account_mgr_cov.cpp | 218 subscriberPtr->localId_ = osAccountInfo.GetLocalId(); 220 int localID = osAccountInfo.GetLocalId(); 256 subscriberPtr->localId_ = osAccountInfo.GetLocalId(); 258 int localID = osAccountInfo.GetLocalId(); 298 int32_t localID = osAccountInfo.GetLocalId();
|
/base/account/os_account/tools/test/unittest/acm/ |
D | account_command_switch_test.cpp | 54 OsAccount::GetInstance().RemoveOsAccount(info.GetLocalId()); in SetUp() 252 std::string userId = std::to_string(osAccountInfo.GetLocalId()); 264 EXPECT_EQ(ERR_OK, OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId()));
|
D | account_command_dump_test.cpp | 54 OsAccount::GetInstance().RemoveOsAccount(info.GetLocalId()); in SetUp() 272 std::string userId = std::to_string(osAccountInfo.GetLocalId()); 283 EXPECT_EQ(ERR_OK, OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId()));
|
D | account_command_set_test.cpp | 58 OsAccount::GetInstance().RemoveOsAccount(info.GetLocalId()); in SetUp() 362 std::string userId = std::to_string(osAccountInfo.GetLocalId()); 376 EXPECT_EQ(ERR_OK, OsAccount::GetInstance().RemoveOsAccount(osAccountInfo.GetLocalId()));
|
D | account_command_delete_test.cpp | 54 OsAccount::GetInstance().RemoveOsAccount(info.GetLocalId()); in SetUp() 274 std::string userId = std::to_string(osAccountInfo.GetLocalId());
|
/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/ |
D | createosaccount_fuzzer.cpp | 40 OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()); in CreateOsAccountFuzzTest()
|
/base/account/os_account/frameworks/domain_account/test/moduletest/include/ |
D | mock_domain_create_domain_account_callback.h | 39 int32_t GetLocalId();
|
/base/account/os_account/test/fuzztest/osaccount/createosaccountfordomain_fuzzer/ |
D | createosaccountfordomain_fuzzer.cpp | 42 OsAccountManager::RemoveOsAccount(osAccountInfo.GetLocalId()); in CreateOsAccountForDomainFuzzTest()
|
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/ |
D | print_utils_test.cpp | 112 std::string result = PrintUtils::GetLocalId(gid, id); 127 std::string result = PrintUtils::GetLocalId(gid, id); 142 std::string result = PrintUtils::GetLocalId(gid, id);
|
/base/print/print_fwk/frameworks/innerkitsimpl/include/ |
D | print_utils.h | 27 static std::string GetLocalId(const std::string& globalId, const std::string& extensionId);
|
/base/account/os_account/frameworks/osaccount/native/test/unittest/ |
D | os_account_info_test.cpp | 127 EXPECT_EQ(id, osAccountInfo.GetLocalId()); 411 EXPECT_EQ(osAccountInfo.GetLocalId(), INT_ID); 430 EXPECT_EQ(osAccountInfoTar.GetLocalId(), INT_ID);
|