OSDN Git Service

Change storage migration to use quota APIs.
authorJeff Sharkey <jsharkey@android.com>
Thu, 6 Jul 2017 17:29:24 +0000 (11:29 -0600)
committerAndreas Gampe <agampe@google.com>
Tue, 31 Oct 2017 16:48:11 +0000 (09:48 -0700)
commitefe4b48d9b0355762470bb81295cead72c626fc9
treed5fc8166335b918692b5c332df1d9d70dec0df40
parent1e5cd4c3dfb9969e0f5277c8d5bb7e0f75004872
Change storage migration to use quota APIs.

New quota APIs are much faster than trying to measure manually, and
removing this last user of calculateDirectorySize() means we can
remove it once and for all.

(cherry picked from commit fc522c677d2bcb4835f799b39993c69f4c222e55)

Bug: 36056324
Test: builds, boots
Merged-In: Icdf774cff520a4b7ca6ec210b34a1c5ff85f8110
Change-Id: Icdf774cff520a4b7ca6ec210b34a1c5ff85f8110
src/com/android/settings/deviceinfo/MigrateEstimateTask.java