Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 644edf83 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 4954419 from 23e48f39 to pi-qpr1-release

Change-Id: If37bab7faa53792230dba917f4de5045317942eb
parents 00db34da 23e48f39
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -13,6 +13,9 @@ message TelecomLog {

  // Timing information for the logging sessions
  repeated LogSessionTiming session_timings = 2;

  // Hardware revision (EVT, DVT, PVT etc.)
  optional string hardware_revision = 3;
}

message LogSessionTiming {
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.server.telecom;

import android.os.SystemProperties;

import android.telecom.Connection;
import android.telecom.DisconnectCause;
import android.telecom.Logging.EventManager;
@@ -583,6 +585,7 @@ public class Analytics {
                            .setSessionEntryPoint(timing.getKey())
                            .setTimeMillis(timing.getTime()))
                    .toArray(TelecomLogClass.LogSessionTiming[]::new);
            result.setHardwareRevision(SystemProperties.get("ro.boot.revision", ""));
            if (args.length > 1 && CLEAR_ANALYTICS_ARG.equals(args[1])) {
                sCallIdToInfo.clear();
                sSessionTimings.clear();
@@ -628,6 +631,7 @@ public class Analytics {
                    .filter(e -> sSessionIdToLogSession.containsKey(e.getKey()))
                    .forEach(e -> writer.printf("%s: %.2f\n",
                            sSessionIdToLogSession.get(e.getKey()), e.getValue()));
            writer.println("Hardware Version: " + SystemProperties.get("ro.boot.revision", ""));
        }
    }