diff options
| author | 2024-03-22 20:13:07 +0000 | |
|---|---|---|
| committer | 2024-03-22 20:13:07 +0000 | |
| commit | 2fc94acfec50f0f383a210e5c919c77dc8c22016 (patch) | |
| tree | f9e10710df45c2d2d826480d72e9f08e4dfc7bce | |
| parent | 58dd487c08380348ea0123c5b1d5ed10ea1bbd44 (diff) | |
Autofill Fix Latency Metrics
Fix unexpected cases where
t.metric_array.metric.event.autofill.event_autofill_fill_response_reported.atom.latency_response_processing_millis is not initialized
Test: locally test metric is logged
Fixes: 326516791
Change-Id: Id973cb4d9ee7d181276585e86fda830ec3ce42a6
| -rw-r--r-- | services/autofill/java/com/android/server/autofill/Session.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/autofill/java/com/android/server/autofill/Session.java b/services/autofill/java/com/android/server/autofill/Session.java index d006cf6d703a..993a1d5494a2 100644 --- a/services/autofill/java/com/android/server/autofill/Session.java +++ b/services/autofill/java/com/android/server/autofill/Session.java @@ -2383,6 +2383,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState mFillResponseEventLogger.maybeSetResponseStatus(RESPONSE_STATUS_FAILURE); } mPresentationStatsEventLogger.logAndEndEvent(); + mFillResponseEventLogger.maybeSetLatencyResponseProcessingMillis(); mFillResponseEventLogger.logAndEndEvent(); } notifyUnavailableToClient(AutofillManager.STATE_UNKNOWN_FAILED, @@ -5400,6 +5401,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState } // Log the existing FillResponse event. mFillResponseEventLogger.maybeSetAvailableCount(0); + mFillResponseEventLogger.maybeSetLatencyResponseProcessingMillis(); mFillResponseEventLogger.logAndEndEvent(); mService.resetLastResponse(); |