summaryrefslogtreecommitdiff
path: root/tests/Codegen/runTest.sh
AgeCommit message (Collapse)Author
2019-11-01[codegen] Support nested classesEugene Susla
Adds support for arbitrarily-nested @DataClasses Only static ones are supported for now See FileInfo for the main implementation piece Fixes: 139833958 Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: I31cd16969788c47003a7a15a3573a4bf623ab960
2019-10-11codegen: do not modify caller's working directoryMårten Kongstad
When changing directory to $ANDROID_BUILD_TOP, do so in a subshell environment. This will leave the caller's working directory intact. Test: manual (cd frameworks/base && source tests/Codegen/runTest.sh # afterwards, $(pwd) is still frameworks/base) Change-Id: I6558f00a8912141f41c65426ba31c234fc9d63df
2019-10-08Fix some stale dataclass detector false positivesEugene Susla
Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: I562bb4f238bdb28af49804e77c956e41a7bd198d
2019-10-07Merge "codegen: do not assume arch is arm64"TreeHugger Robot
2019-10-04codegen: do not assume arch is arm64Mårten Kongstad
Replace hard-coded path to CodegenTests.apk, which assumes the current architechure is arm64, with dynamic lookup. Test: manual (runTest.sh works on the aosp_x86_64-eng emulator) Change-Id: I4110083f055a65375de89da95fdc07739a3d9da5
2019-10-04Add inheritance support for parcelable dataclassesEugene Susla
We don't want to recommend this, but some legacy framework classes use inheritance, and it's easy enough to support Fixes: 142081378 Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: Ifb7f34abf1dfb871ac01b9a9a38dfee144e5f49a
2019-10-03Fix a few corner-cases with parcelling SparseArrays and MapsEugene Susla
Also added a test for some similar parcelling corner cases Test: . frameworks/base/tests/Codegen/runTest.sh Fixes: 141877655 Change-Id: Iad5c3b0a8489206754f6ebe6acb8b56ba9ca174a
2019-08-05Addresses further review comments from ag/8000041Eugene Susla
Including: - An API to opt out of Int/StringDefs generation on per-field basis - A way to customize Builder - Non-optional fields are passed in Builder constructor - Various adjustments to SampleDataclass examples, as requested Test: . $ANDROID_BUILD_TOP/frameworks/base/tests/Codegen/runTest.sh Change-Id: I32d2eec52f05d505ff07779d923e4793d3036579
2019-07-29Auto-build/update codegenEugene Susla
Test: 1. Manually enter version/presence of build artifact, and ensure `codegen FILENAME` still works 2. run codegen again without altering version, ensure no build triggered Change-Id: I6f1dba0a476077c708bbea8ef558445107e5ad97
2019-07-17Codegen for parcelable/dataclass boilerplateEugene Susla
This is the initial implementation of the `codegen` cli utility for in-place java boilerplate generation See DataClass and SampleDataClass for documentation/guide/examples. See tools/codegen/ for implementation and tests/Codegen/ for tests. Bug: 64221737 Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: I75177cb770f1beabc87dbae9e77ce4b93ca08e7f