Skip to content
  1. Mar 01, 2019
    • Colin Cross's avatar
      Optimize CPU time when running d8 and r8 · 6db4d4e6
      Colin Cross authored
      Pass -XX:+TieredCompilation -XX:TieredStopAtLevel=1 to the JVM to
      reduce the time spent JITing, which in local experiments reduced
      the CPU time of R8 while increasing the wall time, and reduced the
      total number of runnable threads.
      
      Without the new flags:
      $ time out/soong/host/linux-x86/bin/r8-compat-proguard -injars out/target/common/obj/APPS/Dialer_intermediates/classes.jar ...
      real	0m30.090s
      user	4m35.337s
      sys	0m12.853s
      
      With the new flags:
      $ time out/soong/host/linux-x86/bin/r8-compat-proguard -JXX:+TieredCompilation -JXX:TieredStopAtLevel=1 -injars out/target/common/obj/APPS/Dialer_intermediates/classes.jar ...
      real	0m35.674s
      user	2m45.135s
      sys	0m9.531s
      
      The increase in wall time should be offset by the better parallelism from
      the reduced CPU time.
      
      Bug: 119270658
      Test: m checkbuild
      Change-Id: I8fc78b5ef1f8c6f51fd97a29461b96ae2b35cada
      6db4d4e6
    • Colin Cross's avatar
      292d6cfd
    • Paul Duffin's avatar
      Merge changes Ib0389900,Ib2d69dea · e28d0c0f
      Paul Duffin authored
      * changes:
        Fix hiddenapi issue when REMOVE_ATB_FROM_BCP=true
        Improve hiddenapi processing so it does not require white list
      e28d0c0f
    • Colin Cross's avatar
      Move boot image oatdump phony rules into Soong · c9a4c366
      Colin Cross authored
      The boot image oatdump rules depend on the details of dexpreopting
      the boot image.  Instead of exporting all of the necessary values
      to make, move the rules into Soong instead.  Also removes the
      ART_DUMP_OAT_PATH variable, and moves the output to
      out/soong/boot.*.oatdump.txt.
      
      Test: m dump-oat-boot
      Change-Id: I055b1c39918ba3425c8393b3e1b5359df055472a
      c9a4c366
    • Treehugger Robot's avatar
    • Jaewoong Jung's avatar
    • Treehugger Robot's avatar
      Merge "Add path valid check" · 10d21fdc
      Treehugger Robot authored
      10d21fdc
    • Alex Light's avatar
      Add support for including py_binary and *_go_binary in apexs · 778127a0
      Alex Light authored
      These additional binary types are useful for some apexs. Add the
      ability to include them. Due to the nature of the resulting artifacts
      only py binaries with embedded launchers and host go binaries are
      supported.
      
      Test: m com.android.support.apexer
      Bug: 119332365
      Bug: 119332362
      Change-Id: I27c253d3647cf7bbe15896610d7a74a5f93e8bec
      778127a0
  2. Feb 28, 2019
  3. Feb 27, 2019
    • Alex Light's avatar
      Add java_* 'services:' field · 7f004a76
      Alex Light authored
      Some libraries rely on the java.util.ServiceLoader system to access
      classes. Allow java_* targets to specify the services that should be
      exposed there.
      
      Test: m jdi-support
      Bug: 124507633
      
      Change-Id: I253a87033563e3aebc50250fe2252d80d2883815
      7f004a76
    • Jaewoong Jung's avatar
      be977a0e
    • Jaewoong Jung's avatar
      Add override_module. · aa65e170
      Jaewoong Jung authored
      This new module type replaces the inherit-package function in make by
      allowing developers to override the name, the certificate, and the
      manifest package name of an android_app module.
      
      Bug: 122957760
      Fixes: 123640028
      Test: app_test.go + BrowserGoogle
      Change-Id: Iefe447e7078b25039233221361ef95c83a29973a
      aa65e170
    • Patrice Arruda's avatar
    • Colin Cross's avatar
      Fix Rel() after ReplaceExtension or InSameDir · 2cdd5df7
      Colin Cross authored
      Copying p.rel doesn't work, as rel needs to match the end of the
      value in path.  Apply the same transformation to p.rel as p.path.
      
      Test: paths_test.go
      Change-Id: I42d676c6c4fc18d9852c1a73f25e5a791d7553d0
      2cdd5df7
    • Jaewoong Jung's avatar
      Add a filename to anchor links in build docs. · d10f484e
      Jaewoong Jung authored
      The href base added by I8a8ac0f9ba6c0d57ed83db2155955a95e070a265
      doesn't really play nice with anchor links. This fixes the issue.
      
      Fixes: 126550408
      Test: m soong_docs
      Change-Id: If62411a6391fd8151fa40cb2ecf32c5006797d6c
      d10f484e
    • Roland Levillain's avatar
      Fix soong.android.RuleBuilderCommand.FlagWithList's comment. · 2da5d9a5
      Roland Levillain authored
      Test: n/a
      Change-Id: I96158244feaaaa25ada02275e20418ac30218004
      2da5d9a5
    • Paul Duffin's avatar
      Revert "Support libraries (not just boot jars) that have hiddenapi" · c02e834a
      Paul Duffin authored
      This reverts commit e5b5657f.
      
      The reverted change was added in order to gather the information about
      the hiddenapi that is needed for the runtime to enforce the hiddenapi
      accessibility rules. Without it the build broke with the following
      error when the android.test.base library was not in the
      PRODUCT_BOOT_JARS list:
      
      AssertionError: Error processing: frameworks/base/config/hiddenapi-greylist.txt
      The following entries were unexpected:
        Ljunit/framework/TestSuite;->isPublicTestMethod(Ljava/lang/reflect/Method;)Z
        Landroid/test/AndroidTestCase;->setTestContext(Landroid/content/Context;)V
        Landroid/test/InstrumentationTestCase;->runMethod(Ljava/lang/reflect/Method;I)V
        Landroid/test/AndroidTestCase;->getTestContext()Landroid/content/Context;
        Ljunit/framework/TestCase;->fName:Ljava/lang/String;
        Ljunit/framework/TestSuite;->isTestMethod(Ljava/lang/reflect/Method;)Z
        Please visit go/hiddenapi for more information.
      
      However, it turns out that the runtime does not currently enforce
      access to the hiddenapi of libraries that are not on the
      PRODUCT_BOOT_JARS list. Gathering hiddenapi information for a library
      not on the PRODUCT_BOOT_JARS list breaks the
      CtsHiddenApiBlacklistApi27TestCases and
      CtsHiddenApiBlacklistApi28TestCases test modules which use that
      information to ensure that correct runtime behavior.
      
      This change is being reverted simply because it does not work.
      
      Bug: 126519737
      Bug: 73711752
      Test: make REMOVE_ATB_FROM_BCP=true droid and make droid
      Change-Id: I1b4a7786b1061effa0e2d37832afa8570953a06e
      c02e834a
  4. Feb 26, 2019
  5. Feb 25, 2019
Loading