summaryrefslogtreecommitdiff
path: root/tools/aapt2/cmd/Command.cpp
AgeCommit message (Collapse)Author
2019-03-05Add --trace_folder to aapt2Fabien Sanglard
Add a tracing API and instrument key functions in order to profile aapt2 bottleneck. The API allows to generate systrace fragment files. Impact on performance is neglibible with each Trace requiring less than 1us and the final Flush operation at the end of a command requiring around 40us. Bug: None Test: None Change-Id: I51b564d3694e9384679f43b878b32295527dddf6
2018-12-19Fix long file paths for WindowsRyan Mitchell
Allows specifying which arguments into aapt2 are file paths. If the path exceeds the maximum path length for Windows, encode the path using the extended-length prefix. Bug: 120853927 Test: aapt2_tests.exe Change-Id: Ibe5c1cc79a70c33c302157f2ffd54525439a910f
2018-10-09Created resuable DumpApkCommand and added "badger"Ryan Mitchell
This change refactors the dump commands to inherit from a base DumpApkCommand and adds a command that prints out an ASCII image of a badger if the user wrote "badger" instead of "badging". The command is hidden from the help menu. Bug: 73535002 Test: manual Change-Id: I9bdd8a7bbf6a4282c4933e5c478f6d1d8e32d99e
2018-07-13AAPT2: Refactor flags into commandsRyan Mitchell
Refactors the flag based command invocation into classes that make using subcommands easier. Test: manual tests of printing Change-Id: Ic8df6af0be30db552e32150afebecbfeec7e1075