OSDN Git Service

Display total storage for Internal shared storage.
authorFelipe Leme <felipeal@google.com>
Wed, 11 May 2016 20:58:41 +0000 (13:58 -0700)
committerFelipe Leme <felipeal@google.com>
Fri, 13 May 2016 22:40:34 +0000 (15:40 -0700)
commit9c7bb2775aa38efb8c1ccc56c78f4bed86c9c7b1
treeb8a0ad9faf75464adbd6d2c8e190197b3d667bc0
parent41dffe632f549e2c982e65c87daaadb37a604f09
Display total storage for Internal shared storage.

Prior to this change, Settings was using
volume.getPath().getTotalBytes() to calculate the total, which includes
the user-accessible storage, but not the internal partitions. As such,
the total displayed was often missing many GBs (for example, in a 32GB
device, it could display "12.09GB of 25.01GB used".

This change fix this problem by using the total size and creating a
"System" section containing the "missing" storage.

BUG: 24128505

Change-Id: Ic35cd7c8406eff16ac1d97c4b4c233ecde64a6e1
res/values/strings.xml
src/com/android/settings/deviceinfo/PrivateVolumeSettings.java
src/com/android/settings/deviceinfo/StorageSettings.java
src/com/android/settings/deviceinfo/StorageVolumePreference.java