/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/ |
D | SliceCreator.java | 103 public Slice onBindSlice(Uri sliceUri) { in onBindSlice() argument 104 String path = sliceUri.getPath(); in onBindSlice() 107 return createMessagingSlice(sliceUri); in onBindSlice() 109 return createWifiSlice(sliceUri, false /* customSeeMore */); in onBindSlice() 111 return createWifiSlice(sliceUri, true /* customSeeMore */); in onBindSlice() 113 return createNoteSlice(sliceUri); in onBindSlice() 115 return createRideSlice(sliceUri, false /* showUpdated */); in onBindSlice() 117 return createRideSlice(sliceUri, true /* showUpdated */); in onBindSlice() 119 return createCustomToggleSlice(sliceUri); in onBindSlice() 121 return createTwoCustomToggleSlices(sliceUri); in onBindSlice() [all …]
|
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/ |
D | SampleSliceProvider.java | 113 public Slice onBindSlice(Uri sliceUri) { in onBindSlice() argument 114 String path = sliceUri.getPath(); in onBindSlice() 126 return createMessagingSlice(sliceUri); in onBindSlice() 128 return createWifiSlice(sliceUri); in onBindSlice() 130 return createNoteSlice(sliceUri); in onBindSlice() 132 return createRideSlice(sliceUri); in onBindSlice() 134 return createCustomToggleSlice(sliceUri); in onBindSlice() 136 return createTwoCustomToggleSlices(sliceUri); in onBindSlice() 138 return createdToggleTesterSlice(sliceUri); in onBindSlice() 140 return createContact(sliceUri); in onBindSlice() [all …]
|
D | SliceBrowser.java | 192 String sliceUri = ai.metaData.getString(SLICE_METADATA_KEY); in updateAvailableSlices() local 193 if (sliceUri != null) { in updateAvailableSlices() 194 mSliceUris.add(Uri.parse(sliceUri)); in updateAvailableSlices()
|
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/ |
D | SliceTestProvider.java | 41 public Slice onBindSlice(Uri sliceUri) { in onBindSlice() argument 42 switch (sliceUri.getPath()) { in onBindSlice() 47 Builder b = new Builder(sliceUri); in onBindSlice() 50 return new Slice.Builder(sliceUri).addText("Expected text", "text").build(); in onBindSlice() 52 return new Slice.Builder(sliceUri).addIcon( in onBindSlice() 56 Builder builder = new Builder(sliceUri); in onBindSlice() 62 return new Slice.Builder(sliceUri).addInt(0xff121212, "int").build(); in onBindSlice() 64 return new Slice.Builder(sliceUri).addTimestamp(43, "timestamp").build(); in onBindSlice() 66 return new Slice.Builder(sliceUri) in onBindSlice() 73 return new Slice.Builder(sliceUri).build(); in onBindSlice()
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceProvider.java | 215 public Slice onBindSlice(Uri sliceUri, Set<SliceSpec> supportedSpecs) { in onBindSlice() argument 216 return onBindSlice(sliceUri, new ArrayList<>(supportedSpecs)); in onBindSlice() 224 public Slice onBindSlice(Uri sliceUri, List<SliceSpec> supportedSpecs) { in onBindSlice() argument 246 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument 257 public void onSliceUnpinned(Uri sliceUri) { in onSliceUnpinned() argument 305 public @NonNull PendingIntent onCreatePermissionRequest(Uri sliceUri) { in onCreatePermissionRequest() argument 306 return createPermissionIntent(getContext(), sliceUri, getCallingPackage()); in onCreatePermissionRequest() 424 private void handlePinSlice(Uri sliceUri) { in handlePinSlice() argument 428 onSlicePinned(sliceUri); in handlePinSlice() 434 private void handleUnpinSlice(Uri sliceUri) { in handleUnpinSlice() argument [all …]
|
/frameworks/support/slices/core/src/main/java/androidx/slice/compat/ |
D | SliceProviderWrapperContainer.java | 68 public Slice onBindSlice(Uri sliceUri, Set<SliceSpec> supportedVersions) { in onBindSlice() argument 71 return SliceConvert.unwrap(mSliceProvider.onBindSlice(sliceUri)); in onBindSlice() 78 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument 79 mSliceProvider.onSlicePinned(sliceUri); in onSlicePinned() 83 public void onSliceUnpinned(Uri sliceUri) { in onSliceUnpinned() argument 84 mSliceProvider.onSliceUnpinned(sliceUri); in onSliceUnpinned()
|
D | SliceProviderCompat.java | 221 private void handleSlicePinned(final Uri sliceUri) { in handleSlicePinned() argument 225 mProvider.onSlicePinned(sliceUri); in handleSlicePinned() 231 private void handleSliceUnpinned(final Uri sliceUri) { in handleSliceUnpinned() argument 235 mProvider.onSliceUnpinned(sliceUri); in handleSliceUnpinned() 241 private Slice handleBindSlice(final Uri sliceUri, final Set<SliceSpec> specs, in handleBindSlice() argument 247 if (mPermissionManager.checkSlicePermission(sliceUri, Binder.getCallingPid(), in handleBindSlice() 249 return mProvider.createPermissionSlice(getContext(), sliceUri, pkg); in handleBindSlice() 251 return onBindSliceStrict(sliceUri, specs); in handleBindSlice() 254 private Slice onBindSliceStrict(Uri sliceUri, Set<SliceSpec> specs) { in onBindSliceStrict() argument 265 return mProvider.onBindSlice(sliceUri); in onBindSliceStrict()
|
/frameworks/support/slices/core/src/main/java/androidx/slice/ |
D | SliceProvider.java | 196 public static Slice createPermissionSlice(Context context, Uri sliceUri, in createPermissionSlice() argument 198 Slice.Builder parent = new Slice.Builder(sliceUri); in createPermissionSlice() 202 .addAction(createPermissionIntent(context, sliceUri, callingPackage), in createPermissionSlice() 205 parent.addSubSlice(new Slice.Builder(sliceUri.buildUpon().appendPath("permission").build()) in createPermissionSlice() 218 public static PendingIntent createPermissionIntent(Context context, Uri sliceUri, in createPermissionIntent() argument 223 intent.putExtra(EXTRA_BIND_URI, sliceUri); in createPermissionIntent() 227 intent.setData(sliceUri.buildUpon().appendQueryParameter("package", callingPackage) in createPermissionIntent() 264 public abstract Slice onBindSlice(Uri sliceUri); in onBindSlice() argument 284 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument 295 public void onSliceUnpinned(Uri sliceUri) { in onSliceUnpinned() argument
|
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/ |
D | SliceManagerTest.java | 212 public Slice onBindSlice(Uri sliceUri) { in onBindSlice() argument 214 return sSliceProviderReceiver.onBindSlice(sliceUri); in onBindSlice() 229 public void onSlicePinned(Uri sliceUri) { in onSlicePinned() argument 231 sSliceProviderReceiver.onSlicePinned(sliceUri); in onSlicePinned() 236 public void onSliceUnpinned(Uri sliceUri) { in onSliceUnpinned() argument 238 sSliceProviderReceiver.onSliceUnpinned(sliceUri); in onSliceUnpinned()
|
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/compat/ |
D | SliceProviderCompatTest.java | 130 public Slice onBindSlice(Uri sliceUri) { in onBindSlice() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProvider.java | 129 public Slice onBindSlice(Uri sliceUri) { in onBindSlice() argument
|