summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJayant Chowdhary <jchowdhary@google.com>2021-06-08 09:41:40 -0700
committerJayant Chowdhary <jchowdhary@google.com>2021-06-10 23:52:37 -0700
commitebbb0ce80098f34905cc483a2022a616c30427e1 (patch)
tree568a3090596c7a54a7d072a6a68a4808643b9bd7 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent6b0bcd60c81003e6a193aeccf44ee03f188e3984 (diff)
OutputConfiguration: fix CREATOR readList for sensor pixel modes.
OutputConfiguration uses writeIntArray in writeToParcel. It must use readIntArray in createFromParcel instead of readList. Bug: 188675581 Test: Sample app which tries to write invalid data into an OutputConfiguration parcel. When read again, the exception is thrown and not swallowed. Test: create OutputConfiguration; add certain sensorPixelModes; writeToParcel; set parcel's data position to 0; create OutputConfiguration from same parcel and read sensor pixel modes. They match. Change-Id: Id50396d328ba6fc830012a1c359934cf82249764 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions