Home
last modified time | relevance | path

Searched refs:osAccountIds (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/resourceschedule/work_scheduler/utils/native/src/
H A Dwork_sched_utils.cpp29 std::vector<int32_t> osAccountIds; in GetCurrentAccountId() local
30 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(osAccountIds); in GetCurrentAccountId()
36 if (osAccountIds.empty()) { in GetCurrentAccountId()
41 auto iter = std::find_if(osAccountIds.cbegin(), osAccountIds.cend(), in GetCurrentAccountId()
43 if (iter != osAccountIds.end()) { in GetCurrentAccountId()
52 std::vector<int32_t> osAccountIds; in IsIdActive() local
53 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(osAccountIds); in IsIdActive()
59 if (osAccountIds.empty()) { in IsIdActive()
64 auto iter = std::find_if(osAccountIds.cbegin(), osAccountIds.cend(), in IsIdActive()
66 if (iter != osAccountIds.end()) { in IsIdActive()
/ohos5.0/foundation/bundlemanager/app_domain_verify/frameworks/common/src/bms/
H A Dbundle_info_query.cpp75 std::vector<int32_t> osAccountIds; in GetCurrentAccountId() local
76 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(osAccountIds); in GetCurrentAccountId()
82 if (osAccountIds.empty()) { in GetCurrentAccountId()
87 auto iter = std::find_if(osAccountIds.cbegin(), osAccountIds.cend(), in GetCurrentAccountId()
89 if (iter != osAccountIds.end()) { in GetCurrentAccountId()
/ohos5.0/base/notification/common_event_service/services/src/
H A Dbundle_manager_helper.cpp82 std::vector<int> osAccountIds; in QueryExtensionInfos() local
83 …ingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds) != ERR_OK) { in QueryExtensionInfos()
87 if (osAccountIds.size() == 0) { in QueryExtensionInfos()
91 for (auto userId : osAccountIds) { in QueryExtensionInfos()
227 std::vector<int> osAccountIds {}; in GetApplicationInfos() local
228 …edSingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds) != ERR_OK in GetApplicationInfos()
229 || osAccountIds.empty()) { in GetApplicationInfos()
239 return sptrBundleMgr_->GetApplicationInfos(flag, osAccountIds[0], appInfos); in GetApplicationInfos()
H A Dstatic_subscriber_manager.cpp443 std::vector<int> osAccountIds; in UpdateSubscriber() local
444 …ingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds) != ERR_OK) { in UpdateSubscriber()
448 if (find(osAccountIds.begin(), osAccountIds.end(), userId) == osAccountIds.end()) { in UpdateSubscriber()
/ohos5.0/base/security/device_auth/services/frameworks/src/os_account_adapter/
H A Dos_account_adapter.cpp223 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size) in GetAllOsAccountIds() argument
225 if (osAccountIds == nullptr || size == nullptr) { in GetAllOsAccountIds()
236 *osAccountIds = (int32_t *)HcMalloc(accountSize * sizeof(int32_t), 0); in GetAllOsAccountIds()
237 if (*osAccountIds == nullptr) { in GetAllOsAccountIds()
242 (*osAccountIds)[index] = osAccountInfos[index].GetLocalId(); in GetAllOsAccountIds()
/ohos5.0/base/print/print_fwk/services/print_service/src/
H A Dprint_bms_helper.cpp46 std::vector<int> osAccountIds; in QueryExtensionInfos() local
47 if (!helper_->QueryAccounts(osAccountIds)) { in QueryExtensionInfos()
51 for (auto userId : osAccountIds) { in QueryExtensionInfos()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/
H A Dos_account_adapter_mock.c48 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size) in GetAllOsAccountIds() argument
50 (void)osAccountIds; in GetAllOsAccountIds()
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/common/src/
H A Dos_account_adapter_mock.c48 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size) in GetAllOsAccountIds() argument
50 (void)osAccountIds; in GetAllOsAccountIds()
/ohos5.0/base/security/device_auth/services/frameworks/src/os_account_adapter_mock/
H A Dos_account_adapter_mock.cpp49 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size) in GetAllOsAccountIds() argument
51 (void)osAccountIds; in GetAllOsAccountIds()
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/frameworks/os_account_adapter/
H A Dos_account_adapter_test.cpp344 int32_t *osAccountIds = nullptr; variable
345 res = GetAllOsAccountIds(&osAccountIds, nullptr);
353 res = GetAllOsAccountIds(&osAccountIds, &size);
355 HcFree(osAccountIds);
/ohos5.0/base/security/device_auth/services/frameworks/inc/os_account_adapter/
H A Dos_account_adapter.h42 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size);
/ohos5.0/base/account/os_account/interfaces/kits/napi/osaccount/include/
H A Dnapi_os_account.h121 std::vector<int> osAccountIds; member
/ohos5.0/base/account/os_account/interfaces/kits/napi/osaccount/src/
H A Dnapi_os_account_common.cpp973 asyncContext->errCode = OsAccountManager::QueryActiveOsAccountIds(asyncContext->osAccountIds); in QueryActiveIdsExecuteCB()
1025 GetActiveIds(env, asyncContext->osAccountIds, dataJs); in QueryActiveIdsCallbackCompletedCB()
1031 GetActiveIds(env, asyncContext->osAccountIds, dataJs); in QueryActiveIdsCallbackCompletedCB()