@Implements(value=android.app.slice.SliceManager.class, minSdk=28) public class ShadowSliceManager extends Object
SliceManager
.Constructor | Description |
---|---|
ShadowSliceManager() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
__constructor__(Context context,
Handler handler) |
|
protected int |
checkSlicePermission(Uri uri,
int pid,
int uid) |
|
protected List<Uri> |
getPinnedSlices() |
|
protected Set<SliceSpec> |
getPinnedSpecs(Uri uri) |
|
protected void |
grantSlicePermission(String toPackage,
Uri uri) |
|
protected void |
pinSlice(Uri uri,
Set<SliceSpec> specs) |
|
static void |
reset() |
|
protected void |
revokeSlicePermission(String toPackage,
Uri uri) |
|
protected void |
unpinSlice(Uri uri) |
@Implementation protected void __constructor__(Context context, Handler handler)
@Implementation protected List<Uri> getPinnedSlices()
@Implementation protected void grantSlicePermission(String toPackage, Uri uri)
@Implementation protected void revokeSlicePermission(String toPackage, Uri uri)
@Implementation protected int checkSlicePermission(Uri uri, int pid, int uid)
@Implementation protected void pinSlice(@NonNull Uri uri, @NonNull Set<SliceSpec> specs)
@Implementation protected void unpinSlice(@NonNull Uri uri)
@Implementation @NonNull protected Set<SliceSpec> getPinnedSpecs(Uri uri)
@Resetter public static void reset()