diff --git a/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceController.java b/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceController.java index 22ea98fda3e..fd9ae8c5d8f 100644 --- a/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceController.java +++ b/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceController.java @@ -386,8 +386,6 @@ public class StorageItemPreferenceController extends AbstractPreferenceControlle + otherData.documentsAndOtherSize + otherData.trashSize + otherData.allAppsExceptGamesSize; - attributedSize += otherData.externalStats.totalBytes - - otherData.externalStats.appBytes; attributedSize -= otherData.duplicateCodeSize; } diff --git a/tests/robotests/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceControllerTest.java index 3eab600d841..5fcb9c1e8ef 100644 --- a/tests/robotests/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceControllerTest.java @@ -54,7 +54,6 @@ import com.android.settings.applications.manageapplications.ManageApplications; import com.android.settings.dashboard.profileselector.ProfileSelectFragment; import com.android.settings.deviceinfo.StorageItemPreference; import com.android.settings.testutils.shadow.ShadowUserManager; -import com.android.settingslib.applications.StorageStatsSource; import com.android.settingslib.deviceinfo.StorageVolumeProvider; import org.junit.Before; @@ -340,12 +339,6 @@ public class StorageItemPreferenceControllerTest { result.documentsAndOtherSize = MEGABYTE_IN_BYTES * 50; result.trashSize = KILOBYTE_IN_BYTES * 100; result.allAppsExceptGamesSize = MEGABYTE_IN_BYTES * 90; - result.externalStats = - new StorageStatsSource.ExternalStorageStats( - MEGABYTE_IN_BYTES * 500, // total - MEGABYTE_IN_BYTES * 100, // audio - MEGABYTE_IN_BYTES * 150, // video - MEGABYTE_IN_BYTES * 200, 0); // image final SparseArray results = new SparseArray<>(); results.put(0, result);