aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java
Commit message (Collapse)AuthorAge
* Split the conflict message reporting from the merging.Gravatar corysmith2018-02-13
| | | | | RELNOTES:None PiperOrigin-RevId: 185553306
* Implement and delegate ListeningExecutorService api to clean up the ↵Gravatar corysmith2018-02-13
| | | | | | | try-with-resources code segments RELNOTES:None PiperOrigin-RevId: 185536875
* Improve error messaging on mismatched aapt2 formatsGravatar corysmith2018-02-13
| | | | | RELNOTES: None PiperOrigin-RevId: 185535264
* Desugar fixes:Gravatar kmb2018-02-10
| | | | | | | | - make Objects.requireNonNull and Long.compare rewrites compatible with --core_library - apply those and try-with-resources rewrites to generated companion classes RELNOTES: None. PiperOrigin-RevId: 185262256
* Delete erroneous piece of desugar's renaming logicGravatar kmb2018-02-09
| | | | | | RELNOTES: None. PiperOrigin-RevId: 185218745
* Stub default methods as needed for core library desugaringGravatar kmb2018-02-08
| | | | | | RELNOTES: None PiperOrigin-RevId: 185082719
* Refactor the command line argument parser to use the latest API.Gravatar cnsun2018-02-08
| | | | | RELNOTES:none PiperOrigin-RevId: 185027580
* Rename generated core classes during core library desugaringGravatar kmb2018-02-07
| | | | | | RELNOTES: None. PiperOrigin-RevId: 184915177
* Reflect renamed classes in desugar output file namesGravatar kmb2018-02-07
| | | | | | RELNOTES: None. PiperOrigin-RevId: 184869773
* drop debug info when loading classes in desugar as a workaround for ↵Gravatar kmb2018-02-06
| | | | | | | | https://bugs.openjdk.java.net/browse/JDK-8066981 RELNOTES: None. PiperOrigin-RevId: 184732576
* Always do filtering in execution (even after doing it in analysis)Gravatar Googler2018-02-06
| | | | | | | | | | | | Filtering only in analysis was neglecting the possibility of resources being in filesets, the contents of which are not available in analysis. As such, we must *always* filter in execution, even though it's usually just going to be a no-op. Also, add some documentation of same. RELNOTES: none PiperOrigin-RevId: 184722564
* Basic tooling to desugar select core librariesGravatar kmb2018-02-05
| | | | | | RELNOTES: None. PiperOrigin-RevId: 184619885
* Add the ability to output the resource table as a protocol buffer to the ↵Gravatar corysmith2018-01-25
| | | | | | | | | Aapt2ResourcePackagingAction Ensure that the custom package is respected in aapt2. This only impact the srcjar, as the classes are generated via another method. RELNOTES: None PiperOrigin-RevId: 183260369
* Support DTD when processing resource files in the aapt2 pipelineGravatar Googler2018-01-22
| | | | | | | | Unfortunately, the getTag() function explicitly fails when it encounters a DTD item, so we need to do a bit of custom handling instead. RELNOTES: none PiperOrigin-RevId: 182821046
* Multi-thread zip file writing in DexFileSplitter. Since we push content ↵Gravatar kmb2018-01-19
| | | | | | | | into output files one by one this mostly means that we can start writing the next file while the previous one is still finishing up, and can read and write in parallel. RELNOTES: None. PiperOrigin-RevId: 182570961
* Fix parsing for public.xml file when using aapt2.Gravatar Googler2018-01-16
| | | | | RELNOTES: none PiperOrigin-RevId: 182110722
* Also support es-r419 as a locale.Gravatar Googler2018-01-16
| | | | | RELNOTES: none PiperOrigin-RevId: 182099868
* Clean up Windows config_settingsGravatar Yun Peng2018-01-12
| | | | | | | | | | | | | | 1.Deleted config_setting for --cpu=x64_windows_msys, because we don't build Bazel with MSYS gcc anymore. 2.Deleted config_setting for --cpu=x64_windows_msvc, because it uses exactly the same toolchain as --cpu=x64_windows, it'll be removed in the future. This change reduces the complexity of our BUILD files and make them less confusing. Change-Id: I939831a6861413b0f745fb1be98aacd4fb780e0a PiperOrigin-RevId: 181751853
* Fix parsing for some aapt2-generated resources.Gravatar Googler2018-01-10
| | | | | RELNOTES: none PiperOrigin-RevId: 181506851
* Produce data binding file from compile action when "enable_data_binding" ↵Gravatar Googler2018-01-10
| | | | | | | attribute is on. RELNOTES: none PiperOrigin-RevId: 181503682
* Fix StreamResourceLeak errorGravatar Liam Miller-Cushon2018-01-10
| | | | | | | Fixes #4414 Change-Id: I06eac192b5be84bd84190980fbcd05574e3a4439 PiperOrigin-RevId: 181465165
* Serialize and package xml attributes from resources xml tags in values ↵Gravatar Googler2018-01-08
| | | | | | | folders for aapt2. RELNOTES: none PiperOrigin-RevId: 181226483
* PiperOrigin-RevId: 180964207Gravatar kmb2018-01-05
|
* Relax the assertion on the inferred resource type. Now we only require that theGravatar cnsun2018-01-05
| | | | | | | | | resource type should have a (public) close() method. The old version requires the resource type implements AutoCloseable. When the classpath provided to Desugar has some problems, the resource type may not implement AutoCloseable, though it has the close() method. RELNOTES:n/a. PiperOrigin-RevId: 180950815
* Automated rollback of changelist 180845132.Gravatar Googler2018-01-04
| | | | | | | | | | | | | | | | *** Reason for rollback *** Roll forward, add updated Resources.proto. Branch: pi-release Repo: platform/frameworks/base ID: 8552195d338da03df31ec188322ff30e2878d6d2 TAP Presubmit [] RELNOTES: New version of aapt2 and Resources.proto. PiperOrigin-RevId: 180873128
* Always filter resources by density in executionGravatar Googler2018-01-04
| | | | | | | | | | | | | | | Newly discovered bugs indicate that density filtering in analysis does not cover all cases. Filter in execution as a workaround for these cases. This will let us turn resource filtering in analysis on and avoid these bugs. (I will work on actually fixing these bugs in parallel.) Non-density filtering already runs in execution, even when already filtering in analysis, due to known limitations of filtering in analysis. (Specifically, aapt filters more strictly than android_ide_common, and also needs the resource filters passed anyway to generate pseudolocalized resources.) RELNOTES: none PiperOrigin-RevId: 180806206
* Use assets from the resource APK for resource shrinking rather than from the ↵Gravatar Googler2017-12-20
| | | | | | | merge actions. RELNOTES: none PiperOrigin-RevId: 179695515
* Automatic formatting cleanup of Android *.java files.Gravatar jingwen2017-12-18
| | | | | RELNOTES: None. PiperOrigin-RevId: 179425421
* Automated rollback of commit 70c2be189c9c0021f7c424c7399f8bdecc579b4e.Gravatar Googler2017-12-15
| | | | | | | | | | | | | *** Reason for rollback *** Broke some cakemix tap projects *** Original change description *** Use assets from the APK for resource shrinking rather than from the merge actions. RELNOTES: none PiperOrigin-RevId: 179252805
* Eagerly close directory content stream again when looking for dumped lambdasGravatar kmb2017-12-15
| | | | | | RELNOTES: None. PiperOrigin-RevId: 179245378
* Use assets from the APK for resource shrinking rather than from the merge ↵Gravatar Googler2017-12-15
| | | | | | | actions. RELNOTES: none PiperOrigin-RevId: 179227857
* reflect prefix in additional ClassReader methods for consistency with what ↵Gravatar kmb2017-12-14
| | | | | | | | happens during visit() RELNOTES: None. PiperOrigin-RevId: 179115377
* make desugar resilient to unrelated lambdas being dumped while it runsGravatar kmb2017-12-13
| | | | | | RELNOTES: None. PiperOrigin-RevId: 178952440
* Update aapt2 to recent version from git_pi-release.Gravatar Googler2017-12-13
| | | | | | | | Changes: - Package names must contain at least one dot. - XML files under res/values/ must have the extension ".xml". - ARSC format updated. PiperOrigin-RevId: 178952283
* Add --checkHashMismatch flag to ZipFilterAction.Gravatar jingwen2017-12-12
| | | | | | | | | | This flag is set to true by default. If `--checkHashMismatch IGNORE` is passed, ZipFilterEntryFilter will filter duplicate files based on filenames and not do the check for different content hashes. This is used for Android instrumentation tests: classes already in the target APK are removed from the instrumentation APK to prevent runtime crashes in ART. GITHUB: #903 RELNOTES: Added --checkHashMismatch flag to ZipFilterAction. Valid values are IGNORE, WARN and ERROR. --errorOnHashMismatch is deprecated, please use this flag instead. PiperOrigin-RevId: 178787292
* Correct stack map frame computation. When visiting CHOP Frame (discarding n ↵Gravatar cnsun2017-12-12
| | | | | | | | | | | local local variables), the current implementation deletes n local slots, which is wrong when the local variable to delete is of type category 2. This CL deletes local variables instead of local slots. Another change is using the Label objects to identify uninitialized values, instead of the offsets of labels, because the offsets of labels might not be computed. RELNOTES:n/a. PiperOrigin-RevId: 178762969
* Infrastructure for fixed checking if android_test can inherit resourcesGravatar Googler2017-12-08
| | | | | RELNOTES: none PiperOrigin-RevId: 178369060
* Temporary fix for resource filtering with aapt2Gravatar Googler2017-12-07
| | | | | | | | | | | | | | Currently, aapt2 always gets all resources, even the filtered ones. As such, always do density filtering, even if input to aapt2 says we don't have to. We don't need to worry about not passing resource configuration filtering information - it's already passed to aapt and aapt2 (since aapt is stricter than the resource filtering in android_ide_common that is used to filter in analysis, and also needs resource configuration filters to generate pseudolocalized resources). RELNOTES: none PiperOrigin-RevId: 178282329
* Support inclusion filter in DexFileSplitter, with the same semantics as in ↵Gravatar kmb2017-12-06
| | | | | | | | ../ziputils/DexMapper. RELNOTES: None. PiperOrigin-RevId: 178153254
* support params files in dexmerger and dexsharder toolsGravatar kmb2017-12-06
| | | | | | RELNOTES: None. PiperOrigin-RevId: 178134833
* Dedupe inputs in dexmerger tool similar to other tools.Gravatar kmb2017-12-05
| | | | | | RELNOTES: None. PiperOrigin-RevId: 178013335
* Improve exception message to output more information.Gravatar cnsun2017-12-04
| | | | | | RELNOTES:None. PiperOrigin-RevId: 177875613
* Remove static import of inner class InferredType's fieldsGravatar ccross2017-12-04
| | | | | | | | | | | | | | | A few of the InferredType's fields were being static imported, but not all of them, and the use of the statically imported fields was inconsistent. Statically importing the inner class causes strange errors when building desugar in the Android platform build with OpenJDK8, but not OpenJDK9: external/desugar/java/com/google/devtools/build/android/desugar/BytecodeTypeInference.java:1015: error: cannot find symbol @AutoValue ^ symbol: class AutoValue location: class BytecodeTypeInference 1 error Remove the static imports to make the build work and to make the usage consistent. RELNOTES:None. PiperOrigin-RevId: 177875501
* Move bazel conditions into src/conditions.Gravatar tomlu2017-11-30
| | | | | | | This will enable an easier transition from checked-in BUILD files to ones generated by copybara. RELNOTES: None PiperOrigin-RevId: 177514519
* Improve the error messaging by suppressing stack traces for expected errors.Gravatar corysmith2017-11-30
| | | | | RELNOTES: None PiperOrigin-RevId: 177460834
* Automatic code cleanup.Gravatar cushon2017-11-28
| | | | PiperOrigin-RevId: 177261837
* Let to push lambda arguments not only with *LOAD instructions but with ↵Gravatar Googler2017-11-28
| | | | | | | SIPUSH and *CONST_*. RELNOTES: None PiperOrigin-RevId: 177149410
* Revert unintentional increase in logging.Gravatar apell2017-11-27
| | | | | RELNOTES: None. PiperOrigin-RevId: 177049661
* Never allow local_resource_files in single-process testsGravatar Googler2017-11-27
| | | | | RELNOTES: None PiperOrigin-RevId: 177048616
* Enable aapt2 for robolectric when available.Gravatar corysmith2017-11-22
| | | | | RELNOTES: None PiperOrigin-RevId: 176700595