From 1b76ccfa7c6e92549213b884e97d654b5646e772 Mon Sep 17 00:00:00 2001 From: Songchun Fan Date: Wed, 24 Feb 2021 22:25:59 +0000 Subject: [incremental] expose duration since oldest pending read As requested by go/incremental-disablement-metrics, we will expose the duration since oldest pending read as part of the crash/ANR metrics. This is the first step that exposes the value to Incremental Service. BUG: 180951530 Test: unit test Change-Id: Ic67460072556ef01780a1794b40924ca2092060d --- services/incremental/BinderIncrementalService.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'services/incremental/BinderIncrementalService.h') diff --git a/services/incremental/BinderIncrementalService.h b/services/incremental/BinderIncrementalService.h index 740c542f9759..ebb23dc25bac 100644 --- a/services/incremental/BinderIncrementalService.h +++ b/services/incremental/BinderIncrementalService.h @@ -18,6 +18,7 @@ #include #include +#include #include #include "IncrementalService.h" @@ -97,6 +98,8 @@ public: const ::android::os::incremental::StorageHealthCheckParams& healthCheckParams, const ::android::sp& healthListener, bool* _aidl_return) final; binder::Status unregisterStorageHealthListener(int32_t storageId) final; + binder::Status getMetrics(int32_t storageId, + android::os::PersistableBundle* _aidl_return) final; private: android::incremental::IncrementalService mImpl; -- cgit v1.2.3-59-g8ed1b