Merge "Expose permission-related Slice APIs"

This commit is contained in:
Jason Monk
2018-01-23 23:41:58 +00:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 5 deletions

View File

@@ -156,10 +156,11 @@ public final class Slice implements Parcelable {
*/
public static final String HINT_SEE_MORE = "see_more";
/**
* A hint to tell the system that this slice cares about the return value of
* {@link SliceProvider#getBindingPackage} and should not cache the result
* for multiple apps.
* @hide
* A hint used when implementing app-specific slice permissions.
* Tells the system that for this slice the return value of
* {@link SliceProvider#onBindSlice(Uri, List)} may be different depending on
* {@link SliceProvider#getBindingPackage} and should not be cached for multiple
* apps.
*/
public static final String HINT_CALLER_NEEDED = "caller_needed";
/**

View File

@@ -158,7 +158,6 @@ public abstract class SliceProvider extends ContentProvider {
* currently happening. The returned package will have been
* verified to belong to the calling UID. Returns {@code null} if not
* currently performing an {@link #onBindSlice(Uri, List)}.
* @hide
*/
public final @Nullable String getBindingPackage() {
return mBindingPkg;