commit | d73dfd4ab0ff4cbf704034750b2a25832da7fb0c | [log] [tgz] |
---|---|---|
author | Paul Lawrence <paullawrence@google.com> | Fri Aug 11 10:27:24 2023 -0700 |
committer | Paul Lawrence <paullawrence@google.com> | Mon Aug 14 23:51:39 2023 +0000 |
tree | 5c114669a8b11fa6337fb9cc795617d033cc9b17 | |
parent | d54caf0598da089cb4fdbb226ba83cd00c1be51b [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 Change-Id: I907892041b1ce2cd72092a9877ac34c12bf3f254