Loading packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/AppStorageSize.kt +1 −1 Original line number Diff line number Diff line Loading @@ -43,5 +43,5 @@ fun ApplicationInfo.getStorageSize(): State<String> { private fun ApplicationInfo.calculateSizeBytes(context: Context): Long { val storageStatsManager = context.storageStatsManager val stats = storageStatsManager.queryStatsForPackage(storageUuid, packageName, userHandle) return stats.codeBytes + stats.dataBytes + stats.cacheBytes return stats.codeBytes + stats.dataBytes } packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/AppStorageSizeTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -75,7 +75,7 @@ class AppStorageSizeTest { } } composeTestRule.waitUntil { storageSize.value == "123 B" } composeTestRule.waitUntil { storageSize.value == "120 B" } } companion object { Loading Loading
packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/AppStorageSize.kt +1 −1 Original line number Diff line number Diff line Loading @@ -43,5 +43,5 @@ fun ApplicationInfo.getStorageSize(): State<String> { private fun ApplicationInfo.calculateSizeBytes(context: Context): Long { val storageStatsManager = context.storageStatsManager val stats = storageStatsManager.queryStatsForPackage(storageUuid, packageName, userHandle) return stats.codeBytes + stats.dataBytes + stats.cacheBytes return stats.codeBytes + stats.dataBytes }
packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/AppStorageSizeTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -75,7 +75,7 @@ class AppStorageSizeTest { } } composeTestRule.waitUntil { storageSize.value == "123 B" } composeTestRule.waitUntil { storageSize.value == "120 B" } } companion object { Loading