summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2020-04-27 11:53:10 -0600
committerJeff Sharkey <jsharkey@android.com>2020-04-27 11:53:12 -0600
commit0db481191637494e570a9fd6e4362b9a212ba122 (patch)
tree0d1d2c457958a9f9ff73c1b461ce90b5ca601cbd /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent10649bff17d748eeafa6da5e9bee6edc9e409ece (diff)
Fix inconsistent MIME type mapping.
MediaProvider heavily relies on developers to provide a MIME type, which it then translates into a file extension, and then later back into a MIME type. For this flow to work without apps losing access to the data they just wrote, all MIME types need to consistently map back to the same "major" type that they started with. This change adds tests to verify this consistency for all audio, video, and image MIME types, and fixes an obscure bug where the "audio/3gpp" MIME type would end up translating to "video/3gpp". Bug: 154667531 Test: atest CtsMimeMapTestCases Change-Id: I47998d8f4b1f9922a7d9439014e2f7f51f401f04
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions