summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix IBinder parcellingEugene Susla2021-03-231-9/+9
| | | | | | | Fixes: 183547536 Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: Ifffac8c560a8e2e9e0543d523738ad529af633e9
* Disregard annotation params for stale dataclass detectionEugene Susla2020-11-041-9/+9
| | | | | | | | | | | | Annotation processor seens annotation args with constants already inlined, making it challenging to compare to the souce-generated metadata that contains initial expressions. For now just ignoring args for all non-DataClass annotations to prevent false positives Test: . frameworks/base/tests/Codegen/runTest.sh Exempt-From-Owner-Approval: changing metadata on multiple files Change-Id: I640816ae0f20f36b1b828bc2161f53788c4a4dae
* Fix signature generation for nested annotaionsEugene Susla2020-11-031-9/+9
| | | | | Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: I240e1ab757c2d6efd6afbcf33b6a292eed4ea398
* Relax literal initializer requirement when codegen detects constantsEugene Susla2020-10-271-9/+9
| | | | | | Test: . frameworks/base/tests/Codegen/runTest.sh Fixes: 158195639 Change-Id: I93bdea18f348aeca896a9fd619bef2d65704bb41
* Fix codegen for wildcards in type argsEugene Susla2020-10-051-9/+9
| | | | | Test: tests/Codegen/runTest.sh Change-Id: I4b1f3c9d07ab2ddfa644983898ada309ff42b23e
* Generate @NonNull setter args and @MaySetToNull to opt outEugene Susla2020-02-251-9/+9
| | | | | | Bug: 143653080 Test: source /usr/local/google/home/eugenesusla/android2/master/frameworks/base/tests/Codegen/runTest.sh Change-Id: Iba8da34c91fd09e266429ab131add1d53449506b
* Add @NonNull annotation to Builder.addXXX argsEugene Susla2019-11-181-9/+9
| | | | | | | | | | API guidelines is for each non-primitive arg to have a nullablility annotation. Since it's very rate for collections to permit null values, just assume collections only accept @NunNull emenents for now. Fixes: 144725154 Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: I333327490bd8eb9bb031f062c80283bd405173af
* Fix codegen ArrayMap fieldsEugene Susla2019-11-051-9/+9
| | | | | | Fixes: 143112074 Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: Iec0fa89a91955f8b4e4b5b8d4dd9d7f0b30c608f
* [codegen] Fix generation for files without end markersEugene Susla2019-11-011-9/+9
| | | | | | | | This fixes a bug where cedegen fails for files that were generated before end of generated code section markers were introduced. Test: . master/frameworks/base/tests/Codegen/runTest.sh Change-Id: Ia68e8124fcbdeeb2052067ba8731e68e42007529
* [codegen] Support nested classesEugene Susla2019-11-011-0/+390
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