diff options
author | Jin Seok Park <jinpark@google.com> | 2019-08-02 17:06:48 +0900 |
---|---|---|
committer | Jin Seok Park <jinpark@google.com> | 2019-08-12 10:02:47 +0900 |
commit | 38bb5081a773ed437cfb6d028d7cc8c7d6a9eb7a (patch) | |
tree | 37703a05a5b778bc9c314b38f3c183f2d7cad901 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 26f2c379d0c5e6f6f37419ed06d57f252b9501e7 (diff) |
Fix ExifInterface#saveAttributes behavior
cherry-pick from aosp/1015050, aosp/1079822
1. Currently, calling ExifInterface#saveAttributes with StrictMode
that detects unbuffered I/O throws an exception. Change
saveJpegAttributes to take BufferedInput/OutputStreams
as parameters.
2. Change saveAttributes so that when an exception is thrown, the
original image file is not deleted but restored.
3. Distinguish between two identical exception messages in
saveAttributes.
4. Add test for checking StrictMode.
Bug: 137139466
Test: Run atest CtsMediaTestCases:android.media.cts.ExifInterfaceTest
Change-Id: I9e4111ec35740198bdbdba0c9b609875b6231474
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions