Category breakdown size should match total size.
The system apps' base size was not being properly attributed to the system. This was causing the storage to go totally unattributed (and causing roughly a 1GB gap in sizes.) On my test device, the sizes now sum properly. Change-Id: Ibc13015e40f854090a7a3ec09eef4c5c52918e0f Fixes: 35144717 Test: Settings robo
This commit is contained in:
@@ -132,7 +132,7 @@ public class StorageAsyncLoaderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSystemAppsBaseSizeIsIgnored() throws Exception {
|
||||
public void testSystemAppsBaseSizeIsAddedToSystem() throws Exception {
|
||||
ApplicationInfo systemApp =
|
||||
addPackage(PACKAGE_NAME_1, 100, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED);
|
||||
systemApp.flags = ApplicationInfo.FLAG_SYSTEM;
|
||||
@@ -141,6 +141,7 @@ public class StorageAsyncLoaderTest {
|
||||
|
||||
assertThat(result.size()).isEqualTo(1);
|
||||
assertThat(result.get(PRIMARY_USER_ID).otherAppsSize).isEqualTo(10L);
|
||||
assertThat(result.get(PRIMARY_USER_ID).systemSize).isEqualTo(1L);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user