Home
last modified time | relevance | path

Searched refs:SliceProvider (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/support/slices/core/src/main/java/androidx/slice/compat/
DSliceProviderWrapperContainer.java23 import android.app.slice.SliceProvider;
46 public static class SliceProviderWrapper extends SliceProvider {
48 private androidx.slice.SliceProvider mSliceProvider;
50 public SliceProviderWrapper(androidx.slice.SliceProvider provider, in SliceProviderWrapper()
69 androidx.slice.SliceProvider.setSpecs(wrap(supportedVersions)); in onBindSlice()
73 androidx.slice.SliceProvider.setSpecs(null); in onBindSlice()
DSliceProviderCompat.java20 import static android.app.slice.SliceProvider.SLICE_TYPE;
50 import androidx.slice.SliceProvider;
98 private final SliceProvider mProvider;
102 public SliceProviderCompat(SliceProvider provider, CompatPermissionManager permissionManager, in SliceProviderCompat()
263 SliceProvider.setSpecs(specs); in onBindSliceStrict()
267 SliceProvider.setSpecs(null); in onBindSliceStrict()
/frameworks/base/core/java/android/app/slice/
DSliceManager.java226 extras.putParcelable(SliceProvider.EXTRA_BIND_URI, uri); in getSliceDescendants()
227 final Bundle res = provider.call(SliceProvider.METHOD_GET_DESCENDANTS, null, extras); in getSliceDescendants()
228 return res.getParcelableArrayList(SliceProvider.EXTRA_SLICE_DESCENDANTS); in getSliceDescendants()
252 extras.putParcelable(SliceProvider.EXTRA_BIND_URI, uri); in bindSlice()
253 extras.putParcelableArrayList(SliceProvider.EXTRA_SUPPORTED_SPECS, in bindSlice()
255 final Bundle res = provider.call(SliceProvider.METHOD_SLICE, null, extras); in bindSlice()
260 return res.getParcelable(SliceProvider.EXTRA_SLICE); in bindSlice()
314 extras.putParcelable(SliceProvider.EXTRA_INTENT, intent); in mapIntentToUri()
315 final Bundle res = provider.call(SliceProvider.METHOD_MAP_ONLY_INTENT, null, extras); in mapIntentToUri()
319 return res.getParcelable(SliceProvider.EXTRA_SLICE); in mapIntentToUri()
[all …]
DSliceProvider.java95 public abstract class SliceProvider extends ContentProvider { class
184 public SliceProvider(@NonNull String... autoGrantPermissions) { in SliceProvider() method in SliceProvider
188 public SliceProvider() { in SliceProvider() method in SliceProvider
/frameworks/base/services/core/java/com/android/server/slice/
DSliceShellCommand.java17 import android.app.slice.SliceProvider;
78 if (!SliceProvider.SLICE_TYPE.equals(context.getContentResolver().getType(uri))) { in runGetPermissions()
82 Bundle b = context.getContentResolver().call(uri, SliceProvider.METHOD_GET_PERMISSIONS, in runGetPermissions()
88 String[] permissions = b.getStringArray(SliceProvider.EXTRA_RESULT); in runGetPermissions()
DPinnedSliceState.java17 import android.app.slice.SliceProvider;
188 b.putParcelable(SliceProvider.EXTRA_BIND_URI, mUri); in handleSendPinned()
190 client.call(SliceProvider.METHOD_PIN, null, b); in handleSendPinned()
201 b.putParcelable(SliceProvider.EXTRA_BIND_URI, mUri); in handleSendUnpinned()
203 client.call(SliceProvider.METHOD_UNPIN, null, b); in handleSendUnpinned()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSlicePermissionActivity.java22 import android.app.slice.SliceProvider;
50 mUri = getIntent().getParcelableExtra(SliceProvider.EXTRA_BIND_URI); in onCreate()
51 mCallingPkg = getIntent().getStringExtra(SliceProvider.EXTRA_PKG); in onCreate()
52 mProviderPkg = getIntent().getStringExtra(SliceProvider.EXTRA_PROVIDER_PKG); in onCreate()
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/compat/
DSliceProviderCompatTest.java42 import androidx.slice.SliceProvider;
67 SliceProvider provider = spy(new SliceProviderImpl()); in testBindWithPermission()
100 SliceProvider provider = spy(new SliceProviderImpl()); in testBindWithoutPermission()
122 public static class SliceProviderImpl extends SliceProvider {
/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/
DTemplateSliceBuilder.java28 import androidx.slice.SliceProvider;
134 if (SliceProvider.getCurrentSpecs() != null) { in getSpecs()
135 return new ArrayList<>(SliceProvider.getCurrentSpecs()); in getSpecs()
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/
DSliceManagerTest.java59 private SliceProvider mSliceProvider;
64 TestSliceProvider.sSliceProviderReceiver = mSliceProvider = mock(SliceProvider.class); in setup()
199 public static class TestSliceProvider extends SliceProvider {
201 public static SliceProvider sSliceProviderReceiver;
DSliceMetadataTest.java74 SliceProvider.setSpecs(SliceLiveData.SUPPORTED_SPECS); in setup()
629 SliceProvider.createPermissionSlice(mContext, uri, mContext.getPackageName()); in testIsPermissionSlice()
/frameworks/support/slices/core/src/main/java/androidx/slice/
DSliceProvider.java20 import static android.app.slice.SliceProvider.SLICE_TYPE;
100 public abstract class SliceProvider extends ContentProvider implements class
125 public SliceProvider(@NonNull String... autoGrantPermissions) { in SliceProvider() method in SliceProvider
129 public SliceProvider() { in SliceProvider() method in SliceProvider
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DPinnedSliceStateTest.java19 import android.app.slice.SliceProvider;
108 verify(mIContentProvider).call(anyString(), eq(SliceProvider.METHOD_PIN), eq(null), in testSendPinnedOnPin()
110 assertEquals(TEST_URI, b.getParcelable(SliceProvider.EXTRA_BIND_URI)); in testSendPinnedOnPin()
/frameworks/support/slices/core/api_legacy/
D28.0.0-alpha1.txt28 public abstract class SliceProvider extends android.content.ContentProvider {
29 ctor public SliceProvider();
Dcurrent.txt28 public abstract class SliceProvider extends android.content.ContentProvider {
29 ctor public SliceProvider();
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardSliceViewTest.java37 import androidx.slice.SliceProvider;
53 SliceProvider.setSpecs(new HashSet<>(Collections.singletonList(SliceSpecs.LIST))); in setUp()
/frameworks/support/slices/core/api/
Dcurrent.txt28 …public abstract class SliceProvider extends android.content.ContentProvider implements androidx.co…
29 ctor public SliceProvider(java.lang.String...);
30 ctor public SliceProvider();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java55 import androidx.slice.SliceProvider;
78 SliceProvider.setSpecs(new HashSet<>(Arrays.asList(SliceSpecs.LIST))); in setup()
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/
DSliceTestProvider.java32 public class SliceTestProvider extends androidx.slice.SliceProvider {
DSliceTest.java29 import static android.app.slice.SliceProvider.SLICE_TYPE;
/frameworks/support/slices/builders/
Dbuild.gradle37 description = "A set of builders to create templates using SliceProvider APIs"
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/
DSliceRenderer.java35 import androidx.slice.SliceProvider;
100 SliceProvider.setSpecs(SliceLiveData.SUPPORTED_SPECS); in SliceRenderer()
DSliceCreator.java39 import androidx.slice.SliceProvider;
555 return SliceProvider.createPermissionSlice(getContext(), uri, in createPermissionSlice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java49 import androidx.slice.SliceProvider;
57 public class KeyguardSliceProvider extends SliceProvider implements
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/
DSampleSliceProvider.java43 import androidx.slice.SliceProvider;
56 public class SampleSliceProvider extends SliceProvider {

12