Home
last modified time | relevance | path

Searched refs:osAccountIds (Results 1 - 14 of 14) sorted by relevance

/base/notification/common_event_service/services/src/
H A Dbundle_manager_helper.cpp82 std::vector<int> osAccountIds; in QueryExtensionInfos() local
83 if (DelayedSingleton<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()
228 if (DelayedSingleton<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 if (DelayedSingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds) != ERR_OK) { in UpdateSubscriber()
448 if (find(osAccountIds.begin(), osAccountIds.end(), userId) == osAccountIds.end()) { in UpdateSubscriber()
/base/security/device_auth/services/frameworks/src/os_account_adapter_mock/
H A Dos_account_adapter_mock.cpp55 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size) in GetAllOsAccountIds() argument
57 (void)osAccountIds; in GetAllOsAccountIds()
/base/security/device_auth/test/unittest/deviceauth/source/
H A Dos_account_adapter_mock.c54 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size) in GetAllOsAccountIds() argument
56 (void)osAccountIds; in GetAllOsAccountIds()
/base/security/device_auth/test/unittest/tdd_framework/common/src/
H A Dos_account_adapter_mock.c54 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size) in GetAllOsAccountIds() argument
56 (void)osAccountIds; in GetAllOsAccountIds()
/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()
/base/account/os_account/interfaces/kits/cj/osaccount/src/
H A Dcj_osaccount_ffi.cpp78 std::vector<int32_t> osAccountIds; in FfiOHOSOsAccountGetActivatedOsAccountLocalIds() local
80 int32_t code = OsAccountManagerImpl::GetActivatedOsAccountLocalIds(osAccountIds); in FfiOHOSOsAccountGetActivatedOsAccountLocalIds()
87 size_t listSize = osAccountIds.size(); in FfiOHOSOsAccountGetActivatedOsAccountLocalIds()
96 retValue[i] = osAccountIds[i]; in FfiOHOSOsAccountGetActivatedOsAccountLocalIds()
H A Dosaccount_manager_impl.cpp66 int32_t OsAccountManagerImpl::GetActivatedOsAccountLocalIds(std::vector<int32_t> &osAccountIds) in GetActivatedOsAccountLocalIds() argument
68 return OsAccountManager::QueryActiveOsAccountIds(osAccountIds); in GetActivatedOsAccountLocalIds()
/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()
238 LOGE("[OsAccountAdapter]: Failed to alloc memory for osAccountIds!"); in GetAllOsAccountIds()
242 (*osAccountIds)[index] = osAccountInfos[index].GetLocalId(); in GetAllOsAccountIds()
/base/security/device_auth/services/frameworks/inc/os_account_adapter/
H A Dos_account_adapter.h43 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size);
/base/account/os_account/interfaces/kits/cj/osaccount/include/
H A Dosaccount_manager_impl.h28 static int32_t GetActivatedOsAccountLocalIds(std::vector<int> &osAccountIds);
/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; in HWTEST_F() local
345 res = GetAllOsAccountIds(&osAccountIds, nullptr); in HWTEST_F()
353 res = GetAllOsAccountIds(&osAccountIds, &size); in HWTEST_F()
355 HcFree(osAccountIds); in HWTEST_F()
/base/account/os_account/interfaces/kits/napi/osaccount/include/
H A Dnapi_os_account.h121 std::vector<int> osAccountIds; member
/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()

Completed in 10 milliseconds