Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01104236 authored by Arc Wang's avatar Arc Wang Committed by Automerger Merge Worker
Browse files

Merge "Fix incorrect storage size in Storage Settings" into sc-dev am: 68caefba

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15175229

Change-Id: I522dcf99202b6ab757c930477c92d3068187d4df
parents 449bcaa5 68caefba
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
            }

+0 −7
Original line number Diff line number Diff line
@@ -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<StorageAsyncLoader.StorageResult> results = new SparseArray<>();
        results.put(0, result);