Use the fast track calculation for apps.
This replaces the calculation of the apps category and add in a calculation for the games category using the faster GID calculation. This should result in app sizes loading roughly 10 times after. Bug: 34204877 Test: Settings unit & robo tests Change-Id: I78044a8d50f695f8c0a7e04183030232a9719260
This commit is contained in:
@@ -215,11 +215,15 @@ public class StorageItemPreferenceControllerTest {
|
||||
details.mediaSize.put(0, mediaSizes);
|
||||
mController.setSystemSize(KILOBYTE * 6);
|
||||
mController.onDetailsChanged(details);
|
||||
AppsAsyncLoader.AppsStorageResult result = new AppsAsyncLoader.AppsStorageResult();
|
||||
result.gamesSize = KILOBYTE * 8;
|
||||
result.otherAppsSize = KILOBYTE * 9;
|
||||
mController.onLoadFinished(null, result);
|
||||
|
||||
assertThat(audio.getSummary().toString()).isEqualTo("4.00KB");
|
||||
assertThat(image.getSummary().toString()).isEqualTo("5.00KB");
|
||||
assertThat(games.getSummary().toString()).isEqualTo("0");
|
||||
assertThat(apps.getSummary().toString()).isEqualTo("1.00KB");
|
||||
assertThat(games.getSummary().toString()).isEqualTo("8.00KB");
|
||||
assertThat(apps.getSummary().toString()).isEqualTo("9.00KB");
|
||||
assertThat(system.getSummary().toString()).isEqualTo("6.00KB");
|
||||
assertThat(files.getSummary().toString()).isEqualTo("5.00KB");
|
||||
}
|
||||
|
Reference in New Issue
Block a user