Home
last modified time | relevance | path

Searched refs:activeIds (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/service_router_framework/services/srms/src/
H A Dsr_samgr_helper.cpp50 std::vector<int32_t> activeIds; in GetCurrentActiveUserId() local
51 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeIds); in GetCurrentActiveUserId()
56 if (activeIds.empty()) { in GetCurrentActiveUserId()
60 TAG_LOGE(AAFwkTag::SER_ROUTER, "activeId:%{public}d", activeIds[0]); in GetCurrentActiveUserId()
61 return activeIds[0]; in GetCurrentActiveUserId()
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/
H A Dringtone_restore_db_utils.cpp112 std::vector<int> activeIds; in GetUserID() local
113 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeIds); in GetUserID()
118 if (activeIds.empty()) { in GetUserID()
122 userId = activeIds[0]; in GetUserID()
/ohos5.0/base/location/frameworks/location_common/common/source/
H A Dcommon_utils.cpp131 std::vector<int> activeIds; in GetCurrentUserId() local
132 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeIds); in GetCurrentUserId()
137 if (activeIds.empty()) { in GetCurrentUserId()
141 userId = activeIds[0]; in GetCurrentUserId()
145 bool CommonUtils::GetAllUserId(std::vector<int>& activeIds) in GetAllUserId() argument
154 activeIds.push_back(info.GetLocalId()); in GetAllUserId()
156 if (activeIds.empty()) { in GetAllUserId()
H A Dlocation_data_rdb_manager.cpp208 std::vector<int> activeIds; in SetSwitchStateToSysparaForUser() local
210 if (CommonUtils::GetAllUserId(activeIds)) { in SetSwitchStateToSysparaForUser()
212 if (IsUserIdInActiveIds(activeIds, key)) { in SetSwitchStateToSysparaForUser()
277 bool LocationDataRdbManager::IsUserIdInActiveIds(std::vector<int> activeIds, std::string userId) in IsUserIdInActiveIds() argument
279 for (auto id : activeIds) { in IsUserIdInActiveIds()
/ohos5.0/base/location/interfaces/inner_api/include/
H A Dlocation_data_rdb_manager.h46 static bool IsUserIdInActiveIds(std::vector<int> activeIds, std::string userId);
H A Dcommon_utils.h184 static bool GetAllUserId(std::vector<int>& activeIds);
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_conn_service.cpp1983 std::vector<int> activeIds; in GetCallingUserId() local
1984 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeIds); in GetCallingUserId()
1989 if (activeIds.empty()) { in GetCallingUserId()
1993 userId = activeIds[0]; in GetCallingUserId()