Loading core/java/android/os/RecoverySystem.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -695,6 +695,7 @@ public class RecoverySystem { String line = null; String line = null; int bytesWrittenInMiB = -1, bytesStashedInMiB = -1; int bytesWrittenInMiB = -1, bytesStashedInMiB = -1; int timeTotal = -1; int timeTotal = -1; int uncryptTime = -1; int sourceVersion = -1; int sourceVersion = -1; while ((line = in.readLine()) != null) { while ((line = in.readLine()) != null) { // Here is an example of lines in last_install: // Here is an example of lines in last_install: Loading Loading @@ -730,6 +731,8 @@ public class RecoverySystem { if (line.startsWith("time")) { if (line.startsWith("time")) { timeTotal = scaled; timeTotal = scaled; } else if (line.startsWith("uncrypt_time")) { uncryptTime = scaled; } else if (line.startsWith("source_build")) { } else if (line.startsWith("source_build")) { sourceVersion = scaled; sourceVersion = scaled; } else if (line.startsWith("bytes_written")) { } else if (line.startsWith("bytes_written")) { Loading @@ -745,6 +748,9 @@ public class RecoverySystem { if (timeTotal != -1) { if (timeTotal != -1) { MetricsLogger.histogram(context, "ota_time_total", timeTotal); MetricsLogger.histogram(context, "ota_time_total", timeTotal); } } if (uncryptTime != -1) { MetricsLogger.histogram(context, "ota_uncrypt_time", uncryptTime); } if (sourceVersion != -1) { if (sourceVersion != -1) { MetricsLogger.histogram(context, "ota_source_version", sourceVersion); MetricsLogger.histogram(context, "ota_source_version", sourceVersion); } } Loading Loading
core/java/android/os/RecoverySystem.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -695,6 +695,7 @@ public class RecoverySystem { String line = null; String line = null; int bytesWrittenInMiB = -1, bytesStashedInMiB = -1; int bytesWrittenInMiB = -1, bytesStashedInMiB = -1; int timeTotal = -1; int timeTotal = -1; int uncryptTime = -1; int sourceVersion = -1; int sourceVersion = -1; while ((line = in.readLine()) != null) { while ((line = in.readLine()) != null) { // Here is an example of lines in last_install: // Here is an example of lines in last_install: Loading Loading @@ -730,6 +731,8 @@ public class RecoverySystem { if (line.startsWith("time")) { if (line.startsWith("time")) { timeTotal = scaled; timeTotal = scaled; } else if (line.startsWith("uncrypt_time")) { uncryptTime = scaled; } else if (line.startsWith("source_build")) { } else if (line.startsWith("source_build")) { sourceVersion = scaled; sourceVersion = scaled; } else if (line.startsWith("bytes_written")) { } else if (line.startsWith("bytes_written")) { Loading @@ -745,6 +748,9 @@ public class RecoverySystem { if (timeTotal != -1) { if (timeTotal != -1) { MetricsLogger.histogram(context, "ota_time_total", timeTotal); MetricsLogger.histogram(context, "ota_time_total", timeTotal); } } if (uncryptTime != -1) { MetricsLogger.histogram(context, "ota_uncrypt_time", uncryptTime); } if (sourceVersion != -1) { if (sourceVersion != -1) { MetricsLogger.histogram(context, "ota_source_version", sourceVersion); MetricsLogger.histogram(context, "ota_source_version", sourceVersion); } } Loading