diff options
author | 2021-02-24 22:25:59 +0000 | |
---|---|---|
committer | 2021-03-09 23:06:57 +0000 | |
commit | 1b76ccfa7c6e92549213b884e97d654b5646e772 (patch) | |
tree | 4a7c7f7b13c64acf3aaf58cefa48f741438acfe5 /services/incremental/BinderIncrementalService.h | |
parent | 020348499ecd983489c1293831c11421795aa9ef (diff) |
[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
Diffstat (limited to 'services/incremental/BinderIncrementalService.h')
-rw-r--r-- | services/incremental/BinderIncrementalService.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <binder/BinderService.h> #include <binder/IServiceManager.h> +#include <binder/PersistableBundle.h> #include <jni.h> #include "IncrementalService.h" @@ -97,6 +98,8 @@ public: const ::android::os::incremental::StorageHealthCheckParams& healthCheckParams, const ::android::sp<IStorageHealthListener>& 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; |