diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2021-07-06 08:30:19 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2021-07-06 08:30:19 +0100 |
commit | 93a42f68840458e2b167c00f112db3ca1bf2a148 (patch) | |
tree | a373239ac23972154e8e3567a29f5870a1ced928 | |
parent | 35362a9dc157993c509a8beb68707b2ca0761ec5 (diff) | |
download | base-93a42f68840458e2b167c00f112db3ca1bf2a148.tar.gz |
Report prebuilt and vdex compilation reasons to TRON.
They were currently being reported as "unknown".
Test: m
Bug: 192408935
Change-Id: I00c3761413899d28316910f37efab7cd2e942832
-rw-r--r-- | services/core/java/com/android/server/pm/dex/ArtManagerService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/pm/dex/ArtManagerService.java b/services/core/java/com/android/server/pm/dex/ArtManagerService.java index 42b40e5a991e..882e85b4d1a8 100644 --- a/services/core/java/com/android/server/pm/dex/ArtManagerService.java +++ b/services/core/java/com/android/server/pm/dex/ArtManagerService.java @@ -608,6 +608,8 @@ public class ArtManagerService extends android.content.pm.dex.IArtManager.Stub { private static final int TRON_COMPILATION_REASON_BOOT_AFTER_OTA = 20; private static final int TRON_COMPILATION_REASON_POST_BOOT = 21; private static final int TRON_COMPILATION_REASON_CMDLINE = 22; + private static final int TRON_COMPILATION_REASON_PREBUILT = 23; + private static final int TRON_COMPILATION_REASON_VDEX = 24; // The annotation to add as a suffix to the compilation reason when dexopt was // performed with dex metadata. @@ -628,6 +630,8 @@ public class ArtManagerService extends android.content.pm.dex.IArtManager.Stub { case "ab-ota" : return TRON_COMPILATION_REASON_AB_OTA; case "inactive" : return TRON_COMPILATION_REASON_INACTIVE; case "shared" : return TRON_COMPILATION_REASON_SHARED; + case "prebuilt" : return TRON_COMPILATION_REASON_PREBUILT; + case "vdex" : return TRON_COMPILATION_REASON_VDEX; case "install-fast" : return TRON_COMPILATION_REASON_INSTALL_FAST; case "install-bulk" : |