OSDN Git Service

Do not throw exception when MeasurementDetails.mediaSize is empty
authorZoltan Szatmary-Ban <szatmz@google.com>
Mon, 13 Jul 2015 11:37:31 +0000 (12:37 +0100)
committerZoltan Szatmary-Ban <szatmz@google.com>
Mon, 13 Jul 2015 11:37:31 +0000 (12:37 +0100)
commit706e7014d8c3de42d5e18fcffbd07af96cc754b6
tree3f30ce3482c576678188189b1ce2e7eb152e0c35
parent93b1a5a974f723f5aa463162b1f5aa43338f8c2e
Do not throw exception when MeasurementDetails.mediaSize is empty

It is legitimate for StorageMeasurement.measureExactStorage to return without any user keys
added to the returned MeasurementDetails, when the following is true:

mVolume == null || !mVolume.isMountedReadable()

Bug: 22394495
Change-Id: Ie40bd468a487208d98dc56aae41fdad7098f41a5
src/com/android/settings/deviceinfo/PrivateVolumeSettings.java