Home
last modified time | relevance | path

Searched refs:ReasonMapping (Results 1 – 14 of 14) sorted by relevance

/art/libartservice/service/java/com/android/server/art/model/
DArtFlags.java27 import com.android.server.art.ReasonMapping;
163 case ReasonMapping.REASON_INSTALL: in defaultDexoptFlags()
164 case ReasonMapping.REASON_INSTALL_FAST: in defaultDexoptFlags()
165 case ReasonMapping.REASON_INSTALL_BULK: in defaultDexoptFlags()
166 case ReasonMapping.REASON_INSTALL_BULK_SECONDARY: in defaultDexoptFlags()
167 case ReasonMapping.REASON_INSTALL_BULK_DOWNGRADED: in defaultDexoptFlags()
168 case ReasonMapping.REASON_INSTALL_BULK_SECONDARY_DOWNGRADED: in defaultDexoptFlags()
170 case ReasonMapping.REASON_INACTIVE: in defaultDexoptFlags()
172 case ReasonMapping.REASON_FIRST_BOOT: in defaultDexoptFlags()
173 case ReasonMapping.REASON_BOOT_AFTER_OTA: in defaultDexoptFlags()
[all …]
DDexoptParams.java31 import com.android.server.art.ReasonMapping;
134 mParams.mCompilerFilter = ReasonMapping.getCompilerFilterForReason(mParams.mReason); in build()
141 mParams.mPriorityClass = ReasonMapping.getPriorityClassForReason(mParams.mReason); in build()
/art/libartservice/service/javatests/com/android/server/art/
DReasonMappingTest.java46 assertThat(ReasonMapping.getCompilerFilterForReason("foo")).isEqualTo("speed"); in testGetCompilerFilterForReason()
52 ReasonMapping.getCompilerFilterForReason("foo"); in testGetCompilerFilterForReasonInvalidFilter()
57 ReasonMapping.getCompilerFilterForReason("foo"); in testGetCompilerFilterForReasonInvalidReason()
63 assertThat(ReasonMapping.getCompilerFilterForShared()).isEqualTo("speed"); in testGetCompilerFilterForShared()
69 ReasonMapping.getCompilerFilterForShared(); in testGetCompilerFilterForSharedProfileGuidedFilter()
74 assertThat(ReasonMapping.getPriorityClassForReason("install")) in testGetPriorityClassForReason()
80 ReasonMapping.getPriorityClassForReason("foo"); in testGetPriorityClassForReasonInvalidReason()
88 assertThat(ReasonMapping.getConcurrencyForReason("bg-dexopt")).isEqualTo(3); in testGetConcurrencyForReason()
DArtManagerLocalTest.java1129 argThat(params -> params.getReason().equals(ReasonMapping.REASON_FIRST_BOOT)), in testOnBoot()
1134 ReasonMapping.REASON_FIRST_BOOT, progressCallbackExecutor, progressCallback); in testOnBoot()
1140 argThat(params -> params.getReason().equals(ReasonMapping.REASON_FIRST_BOOT)), in testOnBootNoProgressCallback()
1144 mArtManagerLocal.onBoot(ReasonMapping.REASON_FIRST_BOOT, in testOnBootNoProgressCallback()
1376 mArtManagerLocal.onBoot(ReasonMapping.REASON_BOOT_AFTER_OTA, in testCommitPreRebootStagedFiles()
DBackgroundDexoptJobTest.java127 same(mSnapshot), eq(ReasonMapping.REASON_BG_DEXOPT), any(), any(), any())) in testStart()
/art/libartservice/service/java/com/android/server/art/
DReasonMapping.java46 public class ReasonMapping { class
47 private ReasonMapping() {} in ReasonMapping() method in ReasonMapping
DArtShellCommand.java23 import static com.android.server.art.ReasonMapping.BatchDexoptReason;
295 var paramsBuilder = new DexoptParams.Builder(ReasonMapping.REASON_CMDLINE); in handleCompile()
297 if (reason.equals(ReasonMapping.REASON_INACTIVE)) { in handleCompile()
301 paramsBuilder.setCompilerFilter(ReasonMapping.getCompilerFilterForReason(reason)); in handleCompile()
304 paramsBuilder.setPriorityClass(ReasonMapping.getPriorityClassForReason(reason)); in handleCompile()
373 new DexoptParams.Builder(ReasonMapping.REASON_CMDLINE) in handleForceDexopt()
396 new DexoptParams.Builder(ReasonMapping.REASON_BG_DEXOPT).build(), in handleBgDexoptJob()
609 if (!ReasonMapping.BATCH_DEXOPT_REASONS.contains(reason)) { in handleBatchDexopt()
611 ReasonMapping.BATCH_DEXOPT_REASONS); in handleBatchDexopt()
1191 return reason.equals(ReasonMapping.REASON_BG_DEXOPT) ? "Dexopting apps (main pass)" in getProgressMessageForBatchDexoptPass()
DArtManagerLocal.java27 import static com.android.server.art.ReasonMapping.BatchDexoptReason;
28 import static com.android.server.art.ReasonMapping.BootReason;
418 new DexoptParams.Builder(ReasonMapping.REASON_INSTALL).build(), cancellationSignal); in resetDexoptStatus()
490 Executors.newFixedThreadPool(ReasonMapping.getConcurrencyForReason(reason)); in dexoptPackages()
494 if (reason.equals(ReasonMapping.REASON_BG_DEXOPT)) { in dexoptPackages()
510 if (reason.equals(ReasonMapping.REASON_BG_DEXOPT)) { in dexoptPackages()
885 if ((bootReason.equals(ReasonMapping.REASON_BOOT_AFTER_OTA) in onBoot()
886 || bootReason.equals(ReasonMapping.REASON_BOOT_AFTER_MAINLINE_UPDATE)) in onBoot()
1204 List<String> packages = getDefaultPackages(snapshot, ReasonMapping.REASON_INACTIVE) in maybeDowngradePackages()
1211 new DexoptParams.Builder(ReasonMapping.REASON_INACTIVE).build(); in maybeDowngradePackages()
[all …]
DBackgroundDexoptJob.java235 ReasonMapping.REASON_BG_DEXOPT, cancellationSignal, Runnable::run, in run()
DDexopter.java171 needsToBeShared ? ReasonMapping.getCompilerFilterForShared() in dexopt()
550 && ReasonMapping.REASONS_FOR_INSTALL.contains(dexoptOptions.compilationReason)) { in dexoptFile()
/art/libartservice/service/java/com/android/server/art/prereboot/
DPreRebootManager.java34 import com.android.server.art.ReasonMapping;
113 artManagerLocal.dexoptPackages(snapshot, ReasonMapping.REASON_PRE_REBOOT_DEXOPT, in run()
DPreRebootStatsReporter.java34 import com.android.server.art.ReasonMapping;
302 ReasonMapping.REASON_PRE_REBOOT_DEXOPT)); in hasUsablePreRebootArtifacts()
/art/libartservice/service/api/
Dsystem-server-current.txt66 public class ReasonMapping {
/art/libartservice/service/
DREADME.md73 `art/libartservice/service/java/com/android/server/art/ReasonMapping.java`