Fix calculateSizeBytes
dataBytes including cacheBytes, so not adding cacheBytes separately.
Bug: 236346018
Test: Manually with Settings
Change-Id: I92ecad3d9ec7a29d690e8ceba2614dd11b561ad3
diff --git a/tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppStoragePreferenceTest.kt b/tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppStoragePreferenceTest.kt
index 4754bb2..ebbd57a 100644
--- a/tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppStoragePreferenceTest.kt
+++ b/tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppStoragePreferenceTest.kt
@@ -89,7 +89,7 @@
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
.assertIsDisplayed()
- composeTestRule.waitUntilExists(hasText("123 B used in internal storage"))
+ composeTestRule.waitUntilExists(hasText("120 B used in internal storage"))
}
@Test
@@ -104,7 +104,7 @@
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
.assertIsDisplayed()
- composeTestRule.waitUntilExists(hasText("123 B used in external storage"))
+ composeTestRule.waitUntilExists(hasText("120 B used in external storage"))
}
private fun setContent(app: ApplicationInfo) {