Searched refs:activeIds (Results 1 – 7 of 7) sorted by relevance
50 std::vector<int32_t> activeIds; in GetCurrentActiveUserId() local51 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()
112 std::vector<int> activeIds; in GetUserID() local113 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeIds); in GetUserID()118 if (activeIds.empty()) { in GetUserID()122 userId = activeIds[0]; in GetUserID()
131 std::vector<int> activeIds; in GetCurrentUserId() local132 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() argument154 activeIds.push_back(info.GetLocalId()); in GetAllUserId()156 if (activeIds.empty()) { in GetAllUserId()
208 std::vector<int> activeIds; in SetSwitchStateToSysparaForUser() local210 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() argument279 for (auto id : activeIds) { in IsUserIdInActiveIds()
46 static bool IsUserIdInActiveIds(std::vector<int> activeIds, std::string userId);
184 static bool GetAllUserId(std::vector<int>& activeIds);
1983 std::vector<int> activeIds; in GetCallingUserId() local1984 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeIds); in GetCallingUserId()1989 if (activeIds.empty()) { in GetCallingUserId()1993 userId = activeIds[0]; in GetCallingUserId()