diff options
| author | 2023-05-11 20:57:47 +0100 | |
|---|---|---|
| committer | 2023-05-12 13:39:35 +0000 | |
| commit | f5107e929fdc91891ef2f8a1c3956d73f3ca9b89 (patch) | |
| tree | f5f526db2abc3fe94020eb9100a7156bf67a6ec1 /compiler/optimizing/execution_subgraph_test.cc | |
| parent | 438e03725ff5e83f095bca2e7b6cea6d302f3f13 (diff) | |
Recompile packages with cdex in vdex'es in background dexopt when the
disable cdex experiment is enabled.
Test: adb install out/dist/com.google.android.art.apex
      adb reboot && adb wait-for-device
      m AppUsedByOtherApp
      adb install-multiple out/target/product/vsoc_x86_64/testcases/AppUsedByOtherApp/x86_64/AppUsedByOtherApp.apk AppUsedByOtherApp.dm
      # where AppUsedByOtherApp.dm is created from a non-empty profile
      adb root && adb wait-for-device
      adb shell pm bg-dexopt-job
      adb shell find data/app data/dalvik-cache -name \*.vdex \
        \| xargs grep cdex001
      # -> matches are found, e.g. in system apps
      adb shell pm compile -f -m speed-profile \
        android.compilation.cts.appusedbyotherapp
      adb shell grep cdex001 \
        /data/app/\*/android.compilation.cts.appusedbyotherapp-\*/oat/x86_64/base.vdex
      # -> check that a match is found
      adb shell setprop \
        persist.device_config.runtime_native_boot.disable_compact_dex \
        true
      adb shell pm bg-dexopt-job
      adb shell find data/app data/dalvik-cache -name \*.vdex \
        \| xargs grep cdex001
      # -> check that no matches are found
  on SC and TM platform images
Bug: 256664509
Bug: 282137215
Ignore-AOSP-First: Will cherry-pick to AOSP later
Change-Id: I720ffc5861768dc43f70789c0dfbad7ceedc5c9a
(cherry picked from commit 35ea7e066db64f4c9c740894d2c428707015a8c0)
Merged-In: I720ffc5861768dc43f70789c0dfbad7ceedc5c9a
Diffstat (limited to 'compiler/optimizing/execution_subgraph_test.cc')
0 files changed, 0 insertions, 0 deletions