commit | 0814d89c0ca3cf42c33a21aa2d0a3dacf2f0957f | [log] [tgz] |
---|---|---|
author | Paul Lawrence <paullawrence@google.com> | Fri Aug 11 10:27:24 2023 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Sep 01 02:15:35 2023 +0000 |
tree | e2a69fb44a4685ef9dfe826f4d9dbd26d03c2c0c | |
parent | 252b11347895767986eb639b59571fe349937c9f [diff] |
Add vdc volume getStorageSize StorageStatsManager.getTotalBytes currently takes the size of /data and rounds up to known probable sizes to guess the size of internal storage. This is not always correct. Instead, find the device /data is on and get the size of that device. This should give a more accurate answer. Bug: 295358118 Test: vdc volume getStorageSize returns storage size (cherry picked from https://android-review.googlesource.com/q/commit:d73dfd4ab0ff4cbf704034750b2a25832da7fb0c) (cherry picked from commit 24b7d2ddbcbebed90bc4c9ef947da8d22e9b3d97) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:29ab03668ff25c2a838365446d67565c563d1d53) Merged-In: I907892041b1ce2cd72092a9877ac34c12bf3f254 Change-Id: I907892041b1ce2cd72092a9877ac34c12bf3f254