/foundation/communication/dsoftbus/tests/core/adapter/unittest/ |
H A D | lnn_ohos_account_adapter_mock.cpp | 18 OHOS::AccountSA::OhosAccountKits &OHOS::AccountSA::OhosAccountKits::GetInstance() in GetInstance() 24 std::pair<bool, OHOS::AccountSA::OhosAccountInfo> OHOS::AccountSA::OhosAccountKits::QueryOhosAccountInfo() in QueryOhosAccountInfo() 26 auto mock = OHOS::AccountSA::OhosAccountKitsMock::GetMock(); in QueryOhosAccountInfo() 28 std::pair<bool, OHOS::AccountSA::OhosAccountInfo> account_info = {}; in QueryOhosAccountInfo() 34 bool OHOS::AccountSA::OhosAccountKits::IsSameAccountGroupDevice() in IsSameAccountGroupDevice() 36 auto mock = OHOS::AccountSA::OhosAccountKitsMock::GetMock(); in IsSameAccountGroupDevice() 43 namespace OHOS::AccountSA { namespace in OHOS 58 auto mock = OHOS::AccountSA in IsSameAccountGroupDevice() 86 namespace OHOS::AccountSA { global() namespace in OHOS [all...] |
H A D | lnn_ohos_account_adapter_test.cpp | 75 AccountSA::OhosAccountKitsMock mock; in HWTEST_F() 91 OHOS::AccountSA::OhosAccountInfo oh_acc_info; in HWTEST_F() 92 std::pair<bool, OHOS::AccountSA::OhosAccountInfo> oh_acc_info_pair = {false, oh_acc_info}; in HWTEST_F() 93 AccountSA::OhosAccountKitsMock mock; in HWTEST_F() 110 OHOS::AccountSA::OhosAccountInfo oh_acc_info; in HWTEST_F() 112 std::pair<bool, OHOS::AccountSA::OhosAccountInfo> oh_acc_info_pair = {true, oh_acc_info}; in HWTEST_F() 113 OHOS::AccountSA::OhosAccountKitsMock mock; in HWTEST_F() 131 OHOS::AccountSA::OhosAccountKitsMock mock; in HWTEST_F() 145 OHOS::AccountSA::OhosAccountInfo oh_acc_info; in HWTEST_F() 146 std::pair<bool, OHOS::AccountSA in HWTEST_F() [all...] |
H A D | lnn_ohos_account_adapter_mock.h | 26 namespace OHOS::AccountSA { namespace in OHOS 34 virtual std::pair<bool, OHOS::AccountSA::OhosAccountInfo> QueryOhosAccountInfo(); 38 class OhosAccountKitsMock : public AccountSA::OhosAccountKits { 42 MOCK_METHOD0(QueryOhosAccountInfo, std::pair<bool, OHOS::AccountSA::OhosAccountInfo>()); 63 class OsAccountManagerMock : public AccountSA::OsAccountManager { 78 } // namespace OHOS::AccountSA
|
/foundation/bundlemanager/app_domain_verify/test/unittest/frameworks_common/bms_test/ |
H A D | bundle_info_query_test.cpp | 44 OHOS::AccountSA::g_enableMockIds = true; in SetUpTestCase() 62 OHOS::AccountSA::g_accountIds.clear(); in TearDown() 72 OHOS::AccountSA::g_accountIds.push_back(1); in HWTEST_F() 102 OHOS::AccountSA::g_accountIds.push_back(1); in HWTEST_F() 128 OHOS::AccountSA::g_accountIds.push_back(-1); in HWTEST_F() 133 OHOS::AccountSA::g_accountIds.clear(); in HWTEST_F() 142 OHOS::AccountSA::g_accountIds.push_back(-1); in HWTEST_F() 143 OHOS::AccountSA::g_accountIds.push_back(-2); in HWTEST_F() 156 OHOS::AccountSA::g_accountIds.push_back(-1); in HWTEST_F() 157 OHOS::AccountSA in HWTEST_F() [all...] |
/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/ |
H A D | account_observer.cpp | 27 AccountObserver::AccountObserver(const AccountSA::OsAccountSubscribeInfo &subscriberInfo) in AccountObserver() 28 : AccountSA::OsAccountSubscriber(subscriberInfo) in AccountObserver() 38 AccountSA::OS_ACCOUNT_SWITCH_MOD switchMod = AccountSA::OsAccountManager::GetOsAccountSwitchMod(); in OnAccountsChanged()
|
H A D | mem_mgr_event_center.cpp | 228 AccountSA::OsAccountSubscribeInfo osAccountSubscribeInfo; in RegisterAccountObserver() 229 osAccountSubscribeInfo.SetOsAccountSubscribeType(AccountSA::OS_ACCOUNT_SUBSCRIBE_TYPE::ACTIVED); in RegisterAccountObserver() 232 ErrCode errCode = AccountSA::OsAccountManager::SubscribeOsAccount(accountObserver_); in RegisterAccountObserver() 277 AccountSA::OsAccountManager::UnsubscribeOsAccount(accountObserver_); in UnregisterEventObserver()
|
/foundation/ability/ability_runtime/interfaces/inner_api/deps_wrapper/src/ |
H A D | os_account_manager_wrapper.cpp | 41 return AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in QueryActiveOsAccountIds() 53 return AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(uid, id); in GetOsAccountLocalIdFromUid() 65 return AccountSA::OsAccountManager::GetOsAccountLocalIdFromProcess(id); in GetOsAccountLocalIdFromProcess() 77 return AccountSA::OsAccountManager::IsOsAccountExists(id, isOsAccountExists); in IsOsAccountExists() 89 AccountSA::OsAccountInfo osAccountInfo; in CreateOsAccount() 90 ErrCode errCode = AccountSA::OsAccountManager::CreateOsAccount(name, in CreateOsAccount() 91 AccountSA::OsAccountType::NORMAL, osAccountInfo); in CreateOsAccount() 104 return AccountSA::OsAccountManager::RemoveOsAccount(id); in RemoveOsAccount()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/include/reclaim_priority_manager/ |
H A D | account_priority_info.h | 26 AccountPriorityInfo(int id, std::string name, AccountSA::OsAccountType type, bool isActived); 31 AccountSA::OsAccountType GetType(); 32 void SetType(AccountSA::OsAccountType type); 41 AccountSA::OsAccountType type_;
|
H A D | multi_account_manager.h | 36 AccountSA::OsAccountType accountType, bool isActived); 44 bool HandleOsAccountsChanged(int accountId, AccountSA::OS_ACCOUNT_SWITCH_MOD switchMod,
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/account/src/ |
H A D | account_delegate_normal_impl.cpp | 40 auto ohosAccountInfo = AccountSA::OhosAccountKits::GetInstance().QueryOhosAccountInfo(); in GetCurrentAccountId() 43 return AccountSA::DEFAULT_OHOS_ACCOUNT_UID; in GetCurrentAccountId() 47 return AccountSA::DEFAULT_OHOS_ACCOUNT_UID; in GetCurrentAccountId() 72 return AccountSA::OsAccountManager::QueryActiveOsAccountIds(users) == 0; in QueryUsers() 77 std::vector<AccountSA::ForegroundOsAccount> accounts; in QueryForegroundUsers() 78 if (AccountSA::OsAccountManager::GetForegroundOsAccounts(accounts) != 0) { in QueryForegroundUsers() 89 return GetCurrentAccountId() != AccountSA::DEFAULT_OHOS_ACCOUNT_UID; in IsLoginAccount() 98 auto status = AccountSA::OsAccountManager::IsOsAccountVerified(userId, res); in IsVerified() 203 AccountSA::OhosAccountInfo info; in GetUnencryptedAccountId() 204 auto ret = AccountSA in GetUnencryptedAccountId() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | account_helper.cpp | 30 return AccountSA::OsAccountManager::IsOsAccountCompleted(id, isOsAccountExists); in IsOsAccountExists() 42 int32_t ret = AccountSA::OsAccountManager::GetForegroundOsAccountLocalId(localId); in GetCurrentActiveUserId() 58 int32_t ret = AccountSA::OsAccountManager::IsOsAccountVerified(userId, isOsAccountVerified); in IsOsAccountVerified() 74 ErrCode err = AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(callingUid, localId); in GetOsAccountLocalIdFromUid()
|
/foundation/resourceschedule/memmgr/test/unittest/phone/ |
H A D | multi_account_manager_test.cpp | 66 AccountSA::OsAccountType accountType = AccountSA::OsAccountType::ADMIN; in HWTEST_F() 83 AccountSA::OsAccountType accountType = AccountSA::OsAccountType::ADMIN; in HWTEST_F() 136 AccountSA::OsAccountType accountType = AccountSA::OsAccountType::ADMIN; in HWTEST_F() 155 AccountSA::OsAccountType accountType = AccountSA::OsAccountType::ADMIN; in HWTEST_F() 219 * @tc.desc: test the branch of switchMod equals to AccountSA::COLD_SWITCH 220 * @tc.desc: test the branch of switchMod equals to AccountSA [all...] |
H A D | default_multi_account_strategy_test.cpp | 69 AccountSA::OsAccountType accountType = AccountSA::OsAccountType::ADMIN; in HWTEST_F() 106 AccountSA::OsAccountType accountType = AccountSA::OsAccountType::ADMIN; in HWTEST_F()
|
/foundation/ability/dmsfwk/services/dtbschedmgr/src/ |
H A D | common_event_listener.cpp | 96 ErrCode err = AccountSA::OsAccountManager::GetForegroundOsAccountLocalId(accountId); in GetForegroundOsAccountLocalId() 105 AccountSA::OsAccountType CommonEventListener::GetOsAccountType(int32_t& accountId) in GetOsAccountType() 107 AccountSA::OsAccountType type; in GetOsAccountType() 108 ErrCode err = AccountSA::OsAccountManager::GetOsAccountType(accountId, type); in GetOsAccountType() 118 AccountSA::OsAccountType type = GetOsAccountType(accountId); in OnUserSwitched() 120 if (type == AccountSA::OsAccountType::PRIVATE) { in OnUserSwitched()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_priority_manager/ |
H A D | account_priority_info.cpp | 24 AccountPriorityInfo::AccountPriorityInfo(int id, std::string name, AccountSA::OsAccountType type, bool isActived) in AccountPriorityInfo() 50 AccountSA::OsAccountType AccountPriorityInfo::GetType() in GetType() 55 void AccountPriorityInfo::SetType(AccountSA::OsAccountType type) in SetType()
|
H A D | multi_account_manager.cpp | 55 ErrCode errCode = AccountSA::OsAccountManager::QueryActiveOsAccountIds(oldActiveAccountIds_); in Init() 86 AccountSA::OsAccountType accountType, bool isActived) in SetAccountPriority() 176 ErrCode errCode = AccountSA::OsAccountManager::QueryActiveOsAccountIds(newActiveAccountIds); in GetSwitchedAccountIds() 196 AccountSA::OsAccountInfo osAccountInfo; in UpdateAccountPriorityInfo() 197 ErrCode errCode = AccountSA::OsAccountManager::QueryOsAccountById(accountId, osAccountInfo); in UpdateAccountPriorityInfo() 284 bool MultiAccountManager::HandleOsAccountsChanged(int accountId, AccountSA::OS_ACCOUNT_SWITCH_MOD switchMod, in HandleOsAccountsChanged() 306 case AccountSA::COLD_SWITCH: in HandleOsAccountsChanged() 308 case AccountSA::HOT_SWITCH: in HandleOsAccountsChanged()
|
/foundation/multimedia/player_framework/services/services/observer/ |
H A D | account_observer.cpp | 96 AccountSA::OsAccountSubscribeInfo osAccountSubscribeInfo; in RegisterObserver() 97 osAccountSubscribeInfo.SetOsAccountSubscribeType(AccountSA::OS_ACCOUNT_SUBSCRIBE_TYPE::SWITCHED); in RegisterObserver() 104 ErrCode errCode = AccountSA::OsAccountManager::SubscribeOsAccount(accountListener_); in RegisterObserver() 115 AccountSA::OsAccountManager::UnsubscribeOsAccount(accountListener_); in UnregisterObserver()
|
H A D | account_listener.cpp | 29 AccountListener::AccountListener(const AccountSA::OsAccountSubscribeInfo &subscribeInfo) in AccountListener() 30 : AccountSA::OsAccountSubscriber(subscribeInfo) in AccountListener()
|
H A D | account_listener.h | 25 class AccountListener : public AccountSA::OsAccountSubscriber { 27 explicit AccountListener(const AccountSA::OsAccountSubscribeInfo &subscribeInfo);
|
/foundation/resourceschedule/memmgr/services/memmgrservice/include/event/ |
H A D | account_observer.h | 25 class AccountObserver : public AccountSA::OsAccountSubscriber { 27 AccountObserver(const AccountSA::OsAccountSubscribeInfo &subscriberInfo);
|
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/include/ |
H A D | account_observer.h | 24 class AccountObserver : public AccountSA::OsAccountSubscriber { 26 AccountObserver(const AccountSA::OsAccountSubscribeInfo &subscriberInfo);
|
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/ |
H A D | account_observer.cpp | 24 AccountObserver::AccountObserver(const AccountSA::OsAccountSubscribeInfo &subscriberInfo) in AccountObserver() 25 : AccountSA::OsAccountSubscriber(subscriberInfo) in AccountObserver()
|
/foundation/communication/dsoftbus/core/adapter/bus_center/src/ |
H A D | lnn_ohos_account_adapter.cpp | 42 auto accountInfo = OHOS::AccountSA::OhosAccountKits::GetInstance().QueryOhosAccountInfo(); in GetOsAccountId() 81 auto accountInfo = OHOS::AccountSA::OhosAccountKits::GetInstance().QueryOhosAccountInfo(); in GetCurrentAccount() 111 int32_t ret = OHOS::AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountId); in GetActiveOsAccountIds() 129 OHOS::ErrCode res = OHOS::AccountSA::OsAccountManager::IsOsAccountVerified(osAccountId, isUnlocked); in IsActiveOsAccountUnlocked() 146 auto accountInfo = OHOS::AccountSA::OhosAccountKits::GetInstance().QueryOhosAccountInfo(); in GetOsAccountUid()
|
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
H A D | bundle_active_account_helper.cpp | 26 ErrCode ret = OHOS::AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(uid, userId); in GetUserId() 38 if (AccountSA::OsAccountManager::QueryActiveOsAccountIds(activatedOsAccountIds) != ERR_OK) { in GetActiveUserId()
|
/foundation/resourceschedule/work_scheduler/utils/native/src/ |
H A D | work_sched_utils.cpp | 30 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(osAccountIds); in GetCurrentAccountId() 53 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(osAccountIds); in IsIdActive()
|