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

Commit 5e8ea462 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't try to report non-existent stats" into sc-dev am: 41d74dfe

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13971766

Change-Id: I79211bc126ff7f6a4ac9b1bc915416029e84c996
parents e9b73bf7 41d74dfe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -260,7 +260,8 @@ public class PackageDexOptimizer {

                // Only report metrics for base apk for now.
                // TODO: add ISA and APK type to metrics.
                if (pkg.getBaseApkPath().equals(path)) {
                // OTAPreopt doesn't have stats so don't report in that case.
                if (pkg.getBaseApkPath().equals(path) && packageStats != null) {
                    Trace.traceBegin(Trace.TRACE_TAG_PACKAGE_MANAGER, "dex2oat-metrics");
                    try {
                        long sessionId = Math.randomLongInternal();