Home
last modified time | relevance | path

Searched refs:SliceProviderCompat (Results 1 – 7 of 7) sorted by relevance

/frameworks/support/slices/view/src/main/java/androidx/slice/
DSliceManagerCompat.java28 import androidx.slice.compat.SliceProviderCompat;
48 SliceProviderCompat.pinSlice(mContext, uri, SliceLiveData.SUPPORTED_SPECS); in pinSlice()
53 SliceProviderCompat.unpinSlice(mContext, uri, SliceLiveData.SUPPORTED_SPECS); in unpinSlice()
58 return SliceProviderCompat.getPinnedSpecs(mContext, uri); in getPinnedSpecs()
64 return SliceProviderCompat.bindSlice(mContext, uri, SUPPORTED_SPECS); in bindSlice()
70 return SliceProviderCompat.bindSlice(mContext, intent, SUPPORTED_SPECS); in bindSlice()
76 return SliceProviderCompat.mapIntentToUri(mContext, intent); in mapIntentToUri()
81 return SliceProviderCompat.checkSlicePermission(mContext, mContext.getPackageName(), uri, in checkSlicePermission()
87 SliceProviderCompat.grantSlicePermission(mContext, mContext.getPackageName(), toPackage, in grantSlicePermission()
93 SliceProviderCompat.revokeSlicePermission(mContext, mContext.getPackageName(), toPackage, in revokeSlicePermission()
[all …]
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/compat/
DSliceProviderCompatTest.java21 import static androidx.slice.compat.SliceProviderCompat.EXTRA_BIND_URI;
22 import static androidx.slice.compat.SliceProviderCompat.EXTRA_SLICE;
73 SliceProviderCompat compat = new SliceProviderCompat(provider, permissions, in testBindWithPermission()
83 SliceProviderCompat.addSpecs(b, Collections.<SliceSpec>emptySet()); in testBindWithPermission()
85 Bundle result = compat.call(SliceProviderCompat.METHOD_SLICE, null, b); in testBindWithPermission()
106 SliceProviderCompat compat = new SliceProviderCompat(provider, permissions, in testBindWithoutPermission()
116 SliceProviderCompat.addSpecs(b, Collections.<SliceSpec>emptySet()); in testBindWithoutPermission()
118 Bundle result = compat.call(SliceProviderCompat.METHOD_SLICE, null, b); in testBindWithoutPermission()
/frameworks/support/slices/core/src/main/java/androidx/slice/
DSliceProvider.java22 import static androidx.slice.compat.SliceProviderCompat.EXTRA_BIND_URI;
23 import static androidx.slice.compat.SliceProviderCompat.EXTRA_PKG;
24 import static androidx.slice.compat.SliceProviderCompat.EXTRA_PROVIDER_PKG;
25 import static androidx.slice.compat.SliceProviderCompat.PERMS_PREFIX;
53 import androidx.slice.compat.SliceProviderCompat;
110 private SliceProviderCompat mCompat;
162 mCompat = new SliceProviderCompat(this, in onCreate()
DSlice.java62 import androidx.slice.compat.SliceProviderCompat;
514 return SliceProviderCompat.bindSlice(context, uri, supportedSpecs); in bindSlice()
/frameworks/support/slices/core/src/main/java/androidx/slice/compat/
DSlicePermissionActivity.java59 mUri = getIntent().getParcelableExtra(SliceProviderCompat.EXTRA_BIND_URI); in onCreate()
60 mCallingPkg = getIntent().getStringExtra(SliceProviderCompat.EXTRA_PKG); in onCreate()
61 mProviderPkg = getIntent().getStringExtra(SliceProviderCompat.EXTRA_PROVIDER_PKG); in onCreate()
130 SliceProviderCompat.grantSlicePermission(this, getPackageName(), mCallingPkg, in onClick()
DSliceProviderCompat.java63 public class SliceProviderCompat { class
102 public SliceProviderCompat(SliceProvider provider, CompatPermissionManager permissionManager, in SliceProviderCompat() method in SliceProviderCompat
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/
DSliceManagerTest.java19 import static androidx.slice.compat.SliceProviderCompat.PERMS_PREFIX;