summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJayant Chowdhary <jchowdhary@google.com>2021-05-26 22:37:42 -0700
committerJayant Chowdhary <jchowdhary@google.com>2021-05-27 10:56:47 -0700
commite1a464e141ebf3f17d14412ea7ae25e819a720b7 (patch)
tree0c552e63ee8aa8a3ab7c7ed896e85414b8c3e0fc /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent19e79e066e76e04769aa4f1401fe37ff4d15df80 (diff)
camera2: Fix parcelling of sensor pixel modes.
OutputConfiguration.writeToParcel previously used writeList to parcel the List<Integer> mSensorPixelModesUsed. The Integer list read from a Parcel into a vector of int32_ts in cameraserver native code, doesn't get read correctly (values sent are not the ones received). Therefore, instead we explicitly convert the Integer list into an int[] before parcelling using writeIntArray. We also explicitly use readInt32Vector on the native side in readFromParcel now. Bug: 184396641 Test: atest RobustnessTest.java#testConfigureInvalidSensorPixelModes Change-Id: Ie0a8d0da2f89c959df6a3529d4836889e235fa93 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions