diff options
author | Jeff Sharkey <jsharkey@android.com> | 2019-11-23 16:10:52 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2019-11-23 16:11:18 -0700 |
commit | 6d520a4903e10c99a6478557f0cc8b90f5ad4165 (patch) | |
tree | f3a276d651b6424eb23579dc617f0205d813f81d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 0fa31f695062b92b299879c421856de0157f6352 (diff) |
Add QUERY_ARG_RELATED_URI to aid media placement.
We normally have strict rules about where media can be created to
help ensure that the user's content stays organized. (For example,
"image/jpeg" can only be placed inside DCIM/ or Pictures/.)
However, when inserting an SD card from another device, it's pretty
common to find media outside of these well-defined top-level
directories. Apps have been able to read and write pre-existing
content in these locations, but this change now provides a way for
apps to create new media "adjacent" to this pre-existing content,
subject to the following rules:
-- The top level MIME type must be in agreement.
-- The relative path on the device must be in agreement.
When a developer wants to perform an insert() which would normally
be blocked, they can provide a QUERY_ARG_RELATED_URI to allow that
operation to succeed, if it meets the rules above.
Bug: 131643582
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I7d678ee733023f5c5b55b5d18cdcde5a20116312
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions