Correct mapping for "boot-after-ota" compilation reason

The "boot" compilation reason is now deprecated (since Android S),
but the mapping between PackageManagerService.REASON_BOOT_AFTER_OTA
and the corresponding value in ART_COMPILATION_FILTER has not been
updated (or it has been incorrect all along). Note that this will
require a change in APC/Pitot to make sure that both the previous and
the new value for this ID are treated in the same way (so we don't
lose data logged ahead of this change, which is still valid, just
associated with an unexpected ID).

Bug: 239548426
Test: atest ArtStatsLogUtilsTest
Change-Id: I38b4a16768f32f8ed2ecfe5d5c389ad4ec3b6b6e
This commit is contained in:
Stefano Cianciulli
2022-08-03 13:25:44 +00:00
parent 46a915f625
commit a1e35fbfcc

View File

@@ -62,7 +62,7 @@ public class ArtStatsLogUtils {
COMPILATION_REASON_MAP.put(PackageManagerService.REASON_FIRST_BOOT, ArtStatsLog.
ART_DATUM_REPORTED__COMPILATION_REASON__ART_COMPILATION_REASON_FIRST_BOOT);
COMPILATION_REASON_MAP.put(PackageManagerService.REASON_BOOT_AFTER_OTA, ArtStatsLog.
ART_DATUM_REPORTED__COMPILATION_REASON__ART_COMPILATION_REASON_BOOT);
ART_DATUM_REPORTED__COMPILATION_REASON__ART_COMPILATION_REASON_BOOT_AFTER_OTA);
COMPILATION_REASON_MAP.put(PackageManagerService.REASON_POST_BOOT, ArtStatsLog.
ART_DATUM_REPORTED__COMPILATION_REASON__ART_COMPILATION_REASON_POST_BOOT);
COMPILATION_REASON_MAP.put(PackageManagerService.REASON_INSTALL, ArtStatsLog.