Home
last modified time | relevance | path

Searched refs:appIds (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DInstallerTest.java95 int[] appIds = null; in testGetAppSize() local
102 if (ArrayUtils.contains(appIds, appId)) { in testGetAppSize()
105 appIds = ArrayUtils.appendInt(appIds, appId); in testGetAppSize()
137 final int[] appIds = getAppIds(UserHandle.USER_SYSTEM); in testGetUserSize() local
144 appIds, stats); in testGetUserSize()
149 appIds, quotaStats); in testGetUserSize()
152 checkEquals(Arrays.toString(appIds), stats, quotaStats); in testGetUserSize()
158 final int[] appIds = getAppIds(UserHandle.USER_SYSTEM); in testGetExternalSize() local
161 final long[] stats = mInstaller.getExternalSize(null, UserHandle.USER_SYSTEM, 0, appIds); in testGetExternalSize()
166 Installer.FLAG_USE_QUOTA, appIds); in testGetExternalSize()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java359 final int[] appIds = getAppIds(userId); in queryStatsForUser() local
362 mInstaller.getUserSize(volumeUuid, userId, getDefaultFlags(), appIds, stats); in queryStatsForUser()
366 mInstaller.getUserSize(volumeUuid, userId, 0, appIds, manualStats); in queryStatsForUser()
386 final int[] appIds = getAppIds(userId); in queryExternalStatsForUser() local
389 stats = mInstaller.getExternalSize(volumeUuid, userId, getDefaultFlags(), appIds); in queryExternalStatsForUser()
393 appIds); in queryExternalStatsForUser()
411 int[] appIds = null; in getAppIds() local
415 if (!ArrayUtils.contains(appIds, appId)) { in getAppIds()
416 appIds = ArrayUtils.appendInt(appIds, appId); in getAppIds()
419 return appIds; in getAppIds()
/frameworks/native/cmds/installd/binder/android/os/
DIInstalld.aidl27 in @nullable @utf8InCpp String[] packageNames, in int userId, int flags, in int[] appIds, in createAppDataBatched() argument
43 long[] getUserSize(@nullable @utf8InCpp String uuid, int userId, int flags, in int[] appIds); in getUserSize() argument
44 … long[] getExternalSize(@nullable @utf8InCpp String uuid, int userId, int flags, in int[] appIds); in getExternalSize() argument
/frameworks/native/cmds/installd/
DInstalldNativeService.h50 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds,
85 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds,
88 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds,
DInstalldNativeService.cpp418 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, in createAppDataBatched() argument
431 ret = createAppData(uuids->at(i), *packageName, userId, flags, appIds[i], in createAppDataBatched()
1872 …izesForUserWithQuota(const std::string& uuid, int32_t userId, const std::vector<int32_t>& appIds) { in getExternalSizesForUserWithQuota() argument
1930 for (auto appId : appIds) { in getExternalSizesForUserWithQuota()
1959 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, in getUserSize() argument
2007 auto sizes = getExternalSizesForUserWithQuota(uuidString, userId, appIds); in getUserSize()
2022 for (auto appId : appIds) { in getUserSize()
2091 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, in getExternalSize() argument
2121 auto sizes = getExternalSizesForUserWithQuota(uuidString, userId, appIds); in getExternalSize()
2132 for (auto appId : appIds) { in getExternalSize()
/frameworks/base/services/core/java/com/android/server/pm/
DInstaller.java270 public void getUserSize(String uuid, int userId, int flags, int[] appIds, PackageStats stats) in getUserSize() argument
274 final long[] res = mInstalld.getUserSize(uuid, userId, flags, appIds); in getUserSize()
286 public long[] getExternalSize(String uuid, int userId, int flags, int[] appIds) in getExternalSize() argument
290 return mInstalld.getExternalSize(uuid, userId, flags, appIds); in getExternalSize()
DSettings.java4024 int[] appIds; in createNewUserLI() local
4033 appIds = new int[packagesCount]; in createNewUserLI()
4054 appIds[i] = ps.appId; in createNewUserLI()
4066 installer.createAppData(volumeUuids[i], names[i], userHandle, flags, appIds[i], in createNewUserLI()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java535 private Set<Integer> intersectUids(Set<UidRange> ranges, Set<Integer> appIds) { in intersectUids() argument
539 for (int appId : appIds) { in intersectUids()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java1343 private int[] getUids(int userId, int[] appIds) { in getUids() argument
1344 final int[] uids = new int[appIds.length]; in getUids()
1345 for (int i = appIds.length - 1; i >= 0; --i) { in getUids()
1346 uids[i] = UserHandle.getUid(userId, appIds[i]); in getUids()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java1190 static int[] array(int... appIds) { in array() argument
1191 Arrays.sort(appIds); in array()
1192 return appIds; in array()