Loading storaged/storaged_diskstats.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,10 @@ bool get_disk_stats_from_health_hal(const sp<IHealth>& service, struct disk_stat bool success = false; auto ret = service->getDiskStats([&success, stats](auto result, const auto& halStats) { if (result == Result::NOT_SUPPORTED) { LOG_TO(SYSTEM, DEBUG) << "getDiskStats is not supported on health HAL."; return; } if (result != Result::SUCCESS || halStats.size() == 0) { LOG_TO(SYSTEM, ERROR) << "getDiskStats failed with result " << toString(result) << " and size " << halStats.size(); Loading storaged/storaged_info.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -370,8 +370,12 @@ void ufs_info_t::report() void health_storage_info_t::report() { auto ret = mHealth->getStorageInfo([this](auto result, const auto& halInfos) { if (result == Result::NOT_SUPPORTED) { LOG_TO(SYSTEM, DEBUG) << "getStorageInfo is not supported on health HAL."; return; } if (result != Result::SUCCESS || halInfos.size() == 0) { LOG_TO(SYSTEM, DEBUG) << "getStorageInfo failed with result " << toString(result) LOG_TO(SYSTEM, ERROR) << "getStorageInfo failed with result " << toString(result) << " and size " << halInfos.size(); return; } Loading @@ -380,7 +384,7 @@ void health_storage_info_t::report() { }); if (!ret.isOk()) { LOG_TO(SYSTEM, DEBUG) << "getStorageInfo failed with " << ret.description(); LOG_TO(SYSTEM, ERROR) << "getStorageInfo failed with " << ret.description(); } } Loading Loading
storaged/storaged_diskstats.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,10 @@ bool get_disk_stats_from_health_hal(const sp<IHealth>& service, struct disk_stat bool success = false; auto ret = service->getDiskStats([&success, stats](auto result, const auto& halStats) { if (result == Result::NOT_SUPPORTED) { LOG_TO(SYSTEM, DEBUG) << "getDiskStats is not supported on health HAL."; return; } if (result != Result::SUCCESS || halStats.size() == 0) { LOG_TO(SYSTEM, ERROR) << "getDiskStats failed with result " << toString(result) << " and size " << halStats.size(); Loading
storaged/storaged_info.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -370,8 +370,12 @@ void ufs_info_t::report() void health_storage_info_t::report() { auto ret = mHealth->getStorageInfo([this](auto result, const auto& halInfos) { if (result == Result::NOT_SUPPORTED) { LOG_TO(SYSTEM, DEBUG) << "getStorageInfo is not supported on health HAL."; return; } if (result != Result::SUCCESS || halInfos.size() == 0) { LOG_TO(SYSTEM, DEBUG) << "getStorageInfo failed with result " << toString(result) LOG_TO(SYSTEM, ERROR) << "getStorageInfo failed with result " << toString(result) << " and size " << halInfos.size(); return; } Loading @@ -380,7 +384,7 @@ void health_storage_info_t::report() { }); if (!ret.isOk()) { LOG_TO(SYSTEM, DEBUG) << "getStorageInfo failed with " << ret.description(); LOG_TO(SYSTEM, ERROR) << "getStorageInfo failed with " << ret.description(); } } Loading