commit | 3335c72da9c4315ca2fb265d9436aaadfbc1d034 | [log] [tgz] |
---|---|---|
author | Edgar Wang <edgarwang@google.com> | Wed May 31 18:42:11 2023 +0800 |
committer | Edgar Wang <edgarwang@google.com> | Tue Jul 04 09:56:35 2023 +0000 |
tree | 8bd42bec80431591ea9cda5bb494d2a099224b00 | |
parent | d42cc8e5e2bf8517a220d222b3c8308bf5db5b36 [diff] |
Correct used size of Storage Settings. Since StorageManager rounded the totalBytes of device storage but they don't do that rounding for freeBytes. So in some cases the freeBytes can be greater than totalBytes. We propose to get totalBytes of device storage directly to calculate correct privateUsedBytes. Test: robotest Bug: 281955532 Change-Id: I4f137c20e7c2f54f4e037d50e81b3176edc1a83a (cherry picked from commit e52320e755823fc94e3be11fefa7d5d718daba24)