From 91a68dfc98defe4de8630290b0dcff0311de6678 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Wed, 19 Sep 2018 10:28:16 -0700 Subject: [PATCH] health.filesystem HAL renamed to health.storage Bug: 111655771 Test: compiles Change-Id: Ibfcab4d116d735ba2f80a8b0ead314138a7ba23d Merged-In: Ibfcab4d116d735ba2f80a8b0ead314138a7ba23d --- Android.bp | 4 ++-- IdleMaint.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Android.bp b/Android.bp index 080c5fe..8fd29f0 100644 --- a/Android.bp +++ b/Android.bp @@ -140,7 +140,7 @@ cc_library_static { }, }, shared_libs: [ - "android.hardware.health.filesystem@1.0", + "android.hardware.health.storage@1.0", ], } @@ -173,7 +173,7 @@ cc_binary { ], shared_libs: [ - "android.hardware.health.filesystem@1.0", + "android.hardware.health.storage@1.0", "libhidltransport", ], } diff --git a/IdleMaint.cpp b/IdleMaint.cpp index 459b3b8..c5baa9e 100644 --- a/IdleMaint.cpp +++ b/IdleMaint.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include @@ -47,9 +47,9 @@ using android::base::Timer; using android::base::WriteStringToFile; using android::hardware::Return; using android::hardware::Void; -using android::hardware::health::filesystem::V1_0::IFileSystem; -using android::hardware::health::filesystem::V1_0::IGarbageCollectCallback; -using android::hardware::health::filesystem::V1_0::Result; +using android::hardware::health::storage::V1_0::IGarbageCollectCallback; +using android::hardware::health::storage::V1_0::IStorage; +using android::hardware::health::storage::V1_0::Result; namespace android { namespace vold { @@ -346,7 +346,7 @@ class GcCallback : public IGarbageCollectCallback { Result mResult{Result::UNKNOWN_ERROR}; }; -static void runDevGcOnHal(sp service) { +static void runDevGcOnHal(sp service) { LOG(DEBUG) << "Start Dev GC on HAL"; sp cb = new GcCallback(); auto ret = service->garbageCollect(DEVGC_TIMEOUT_SEC, cb); @@ -358,7 +358,7 @@ static void runDevGcOnHal(sp service) { } static void runDevGc(void) { - auto service = IFileSystem::getService(); + auto service = IStorage::getService(); if (service != nullptr) { runDevGcOnHal(service); } else {