From 680e0b5088d78c9050b953ccbdd8652048d542f6 Mon Sep 17 00:00:00 2001 From: Arpan Kaphle Date: Tue, 7 Mar 2023 23:41:41 +0000 Subject: [PATCH] Fix Backwards Compatible Logging Related Bug We have changed the definition of 'final latency', but have not yet incorporated collecting these numbers in the framework. Thus, for now, while waiting for those changes, this will fix the exception. Bug: 272127428 Test: Builds Change-Id: Id93a4bd8b3c90dfd5d1043bf051e03655fb81adb --- .../java/com/android/server/credentials/MetricUtilities.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/credentials/java/com/android/server/credentials/MetricUtilities.java b/services/credentials/java/com/android/server/credentials/MetricUtilities.java index 880ae6d4201e9..91470f685920f 100644 --- a/services/credentials/java/com/android/server/credentials/MetricUtilities.java +++ b/services/credentials/java/com/android/server/credentials/MetricUtilities.java @@ -115,9 +115,7 @@ public class MetricUtilities { /* chosen_provider_round_trip_time_overall_microseconds */ chosenProviderMetric.getEntireProviderLatencyMicroseconds(), /* chosen_provider_final_phase_microseconds (backwards compat only) */ - getMetricTimestampDifferenceMicroseconds(chosenProviderMetric - .getFinalFinishTimeNanoseconds(), - chosenProviderMetric.getUiCallEndTimeNanoseconds()), + DEFAULT_INT_32, /* chosen_provider_status */ chosenProviderMetric.getChosenProviderStatus()); }