/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | InstallerTest.java | 94 int[] appIds = null; in testGetAppSize() local 101 if (ArrayUtils.contains(appIds, appId)) { in testGetAppSize() 104 appIds = ArrayUtils.appendInt(appIds, appId); in testGetAppSize() 136 final int[] appIds = getAppIds(UserHandle.USER_SYSTEM); in testGetUserSize() local 143 appIds, stats); in testGetUserSize() 148 appIds, quotaStats); in testGetUserSize() 151 checkEquals(Arrays.toString(appIds), stats, quotaStats); in testGetUserSize() 157 final int[] appIds = getAppIds(UserHandle.USER_SYSTEM); in testGetExternalSize() local 160 final long[] stats = mInstaller.getExternalSize(null, UserHandle.USER_SYSTEM, 0, appIds); in testGetExternalSize() 165 Installer.FLAG_USE_QUOTA, appIds); in testGetExternalSize() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 360 final int[] appIds = getAppIds(userId); in queryStatsForUser() local 363 mInstaller.getUserSize(volumeUuid, userId, getDefaultFlags(), appIds, stats); in queryStatsForUser() 367 mInstaller.getUserSize(volumeUuid, userId, 0, appIds, manualStats); in queryStatsForUser() 387 final int[] appIds = getAppIds(userId); in queryExternalStatsForUser() local 390 stats = mInstaller.getExternalSize(volumeUuid, userId, getDefaultFlags(), appIds); in queryExternalStatsForUser() 394 appIds); in queryExternalStatsForUser() 412 int[] appIds = null; in getAppIds() local 416 if (!ArrayUtils.contains(appIds, appId)) { in getAppIds() 417 appIds = ArrayUtils.appendInt(appIds, appId); in getAppIds() 420 return appIds; in getAppIds()
|
/frameworks/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 40 long[] getUserSize(@nullable @utf8InCpp String uuid, int userId, int flags, in int[] appIds); in getUserSize() argument 41 … long[] getExternalSize(@nullable @utf8InCpp String uuid, int userId, int flags, in int[] appIds); in getExternalSize() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | Installer.java | 256 public void getUserSize(String uuid, int userId, int flags, int[] appIds, PackageStats stats) in getUserSize() argument 260 final long[] res = mInstalld.getUserSize(uuid, userId, flags, appIds); in getUserSize() 272 public long[] getExternalSize(String uuid, int userId, int flags, int[] appIds) in getExternalSize() argument 276 return mInstalld.getExternalSize(uuid, userId, flags, appIds); in getExternalSize()
|
D | Settings.java | 4104 int[] appIds; in createNewUserLI() local 4113 appIds = new int[packagesCount]; in createNewUserLI() 4133 appIds[i] = ps.appId; in createNewUserLI() 4145 installer.createAppData(volumeUuids[i], names[i], userHandle, flags, appIds[i], in createNewUserLI()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 68 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, 71 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds,
|
D | InstalldNativeService.cpp | 1558 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, in getUserSize() argument 1647 for (auto appId : appIds) { in getUserSize() 1717 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, in getExternalSize() argument 1798 for (auto appId : appIds) { in getExternalSize()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsCpuTimesTest.java | 1329 private int[] getUids(int userId, int[] appIds) { in getUids() argument 1330 final int[] uids = new int[appIds.length]; in getUids() 1331 for (int i = appIds.length - 1; i >= 0; --i) { in getUids() 1332 uids[i] = UserHandle.getUid(userId, appIds[i]); in getUids()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 1189 static int[] array(int... appIds) { in array() argument 1190 Arrays.sort(appIds); in array() 1191 return appIds; in array()
|