summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
AgeCommit message (Collapse)Author
2021-03-23Fix IBinder parcellingEugene Susla
Fixes: 183547536 Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: Ifffac8c560a8e2e9e0543d523738ad529af633e9
2020-11-04Disregard annotation params for stale dataclass detectionEugene Susla
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
2020-11-03Fix signature generation for nested annotaionsEugene Susla
Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: I240e1ab757c2d6efd6afbcf33b6a292eed4ea398
2020-10-27Relax literal initializer requirement when codegen detects constantsEugene Susla
Test: . frameworks/base/tests/Codegen/runTest.sh Fixes: 158195639 Change-Id: I93bdea18f348aeca896a9fd619bef2d65704bb41
2020-10-05Fix codegen for wildcards in type argsEugene Susla
Test: tests/Codegen/runTest.sh Change-Id: I4b1f3c9d07ab2ddfa644983898ada309ff42b23e
2020-02-25Generate @NonNull setter args and @MaySetToNull to opt outEugene Susla
Bug: 143653080 Test: source /usr/local/google/home/eugenesusla/android2/master/frameworks/base/tests/Codegen/runTest.sh Change-Id: Iba8da34c91fd09e266429ab131add1d53449506b
2019-11-18Add @NonNull annotation to Builder.addXXX argsEugene Susla
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
2019-11-05Fix codegen ArrayMap fieldsEugene Susla
Fixes: 143112074 Test: . frameworks/base/tests/Codegen/runTest.sh Change-Id: Iec0fa89a91955f8b4e4b5b8d4dd9d7f0b30c608f
2019-11-01[codegen] Fix generation for files without end markersEugene Susla
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
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