summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorEric Holk <eholk@google.com>2018-09-20 12:03:10 -0700
committerEric Holk <eholk@google.com>2018-10-15 15:26:11 -0700
commitdbc36e2bcb9eb6d3c6865f2f32d5529b6fc77b09 (patch)
tree8f6f0936a19a5954823a90186b3eb7d2de0b61aa /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0af8c5c73c423ed76c132a46d624cd64af999ab8 (diff)
Start on DexBuilder
This change begins work on DexBuilder, which will allow us to generate DEX files directly from layouts. This version is rather limited, but we will expand its functionality in future CLs. The DexBuilder in this CL can create a DEX file from scratch, define classes, and define methods on those classes. Within methods, it supports extremely simple instructions, such as storing a small constant in a register and returning a value from a register. Additionally, there are tests to make sure that at least at a structural level, the generated DEX files are valid. DexBuilder and its associated builder classes use functionality from libartdexfile and the Dex Slicer tool to support the actual encoding of DEX files. Test: atest, also manually tested by loaded a generated DEX file in an Android app and verifying its behavior. Change-Id: Iaa01aa7e3a0c7e4d5f4fa8dbce1492499c93c222
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions