Package org.robolectric.shadows
Class ShadowSliceManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowSliceManager
-
@Implements(value=android.app.slice.SliceManager.class, minSdk=28) public class ShadowSliceManager extends Object
Shadow ofSliceManager
.
-
-
Constructor Summary
Constructors Constructor Description ShadowSliceManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
__constructor__
@Implementation protected void __constructor__(Context context, Handler handler)
-
getPinnedSlices
@Implementation protected List<Uri> getPinnedSlices()
-
grantSlicePermission
@Implementation protected void grantSlicePermission(String toPackage, Uri uri)
-
revokeSlicePermission
@Implementation protected void revokeSlicePermission(String toPackage, Uri uri)
-
checkSlicePermission
@Implementation protected int checkSlicePermission(Uri uri, int pid, int uid)
-
pinSlice
@Implementation protected void pinSlice(@NonNull Uri uri, @NonNull Set<SliceSpec> specs)
-
unpinSlice
@Implementation protected void unpinSlice(@NonNull Uri uri)
-
getPinnedSpecs
@Implementation @NonNull protected Set<SliceSpec> getPinnedSpecs(Uri uri)
-
reset
@Resetter public static void reset()
-
-