/base/notification/common_event_service/services/src/ |
H A D | bundle_manager_helper.cpp | 82 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 D | static_subscriber_manager.cpp | 443 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 D | os_account_adapter_mock.cpp | 55 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 D | os_account_adapter_mock.c | 54 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 D | os_account_adapter_mock.c | 54 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 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()
|
/base/account/os_account/interfaces/kits/cj/osaccount/src/ |
H A D | cj_osaccount_ffi.cpp | 78 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 D | osaccount_manager_impl.cpp | 66 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 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() 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 D | os_account_adapter.h | 43 int32_t GetAllOsAccountIds(int32_t **osAccountIds, uint32_t *size);
|
/base/account/os_account/interfaces/kits/cj/osaccount/include/ |
H A D | osaccount_manager_impl.h | 28 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 D | os_account_adapter_test.cpp | 344 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 D | napi_os_account.h | 121 std::vector<int> osAccountIds; member
|
/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()
|