From 570adf55c854076a6eeec87026d98f17f8810b5f Mon Sep 17 00:00:00 2001 From: Jieru Shi Date: Thu, 30 Sep 2021 21:08:59 -0700 Subject: [PATCH] Add logging for remote service died for CCAPI. Test: manual Bug: 201480600 Change-Id: I91ecee33681449d5360660e8bcb330bba929813f --- .../server/contentcapture/ContentCapturePerUserService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java b/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java index 904def0af2cf2..6bd1fa6c335dc 100644 --- a/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java +++ b/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java @@ -190,6 +190,9 @@ final class ContentCapturePerUserService Slog.w(TAG, "remote service died: " + service); synchronized (mLock) { mZombie = true; + writeServiceEvent( + FrameworkStatsLog.CONTENT_CAPTURE_SERVICE_EVENTS__EVENT__ON_REMOTE_SERVICE_DIED, + getServiceComponentName()); } }