/ohos5.0/foundation/resourceschedule/work_scheduler/utils/native/src/ |
H A D | work_sched_utils.cpp | 29 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 D | bundle_info_query.cpp | 75 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 D | bundle_manager_helper.cpp | 82 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 D | static_subscriber_manager.cpp | 443 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 D | os_account_adapter.cpp | 223 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 D | print_bms_helper.cpp | 46 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 D | os_account_adapter_mock.c | 48 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 D | os_account_adapter_mock.c | 48 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 D | os_account_adapter_mock.cpp | 49 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 D | os_account_adapter_test.cpp | 344 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 D | os_account_adapter.h | 42 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size);
|
/ohos5.0/base/account/os_account/interfaces/kits/napi/osaccount/include/ |
H A D | napi_os_account.h | 121 std::vector<int> osAccountIds; member
|
/ohos5.0/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
H A D | napi_os_account_common.cpp | 973 asyncContext->errCode = OsAccountManager::QueryActiveOsAccountIds(asyncContext->osAccountIds); in QueryActiveIdsExecuteCB() 1025 GetActiveIds(env, asyncContext->osAccountIds, dataJs); in QueryActiveIdsCallbackCompletedCB() 1031 GetActiveIds(env, asyncContext->osAccountIds, dataJs); in QueryActiveIdsCallbackCompletedCB()
|