Home
last modified time | relevance | path

Searched refs:Slice (Results 1 – 25 of 77) sorted by relevance

1234

/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/impl/
DListBuilderV1Impl.java19 import static android.app.slice.Slice.HINT_ACTIONS;
20 import static android.app.slice.Slice.HINT_LARGE;
21 import static android.app.slice.Slice.HINT_LIST_ITEM;
22 import static android.app.slice.Slice.HINT_NO_TINT;
23 import static android.app.slice.Slice.HINT_PARTIAL;
24 import static android.app.slice.Slice.HINT_SEE_MORE;
25 import static android.app.slice.Slice.HINT_SHORTCUT;
26 import static android.app.slice.Slice.HINT_SUMMARY;
27 import static android.app.slice.Slice.HINT_TITLE;
28 import static android.app.slice.Slice.SUBTYPE_COLOR;
[all …]
DGridRowBuilderListV1Impl.java19 import static android.app.slice.Slice.HINT_HORIZONTAL;
20 import static android.app.slice.Slice.HINT_LARGE;
21 import static android.app.slice.Slice.HINT_NO_TINT;
22 import static android.app.slice.Slice.HINT_PARTIAL;
23 import static android.app.slice.Slice.HINT_SEE_MORE;
24 import static android.app.slice.Slice.HINT_TITLE;
25 import static android.app.slice.Slice.SUBTYPE_CONTENT_DESCRIPTION;
38 import androidx.slice.Slice;
60 public void apply(Slice.Builder builder) { in apply()
63 Slice.Builder actionBuilder = new Slice.Builder(getBuilder()).addHints(HINT_TITLE); in apply()
[all …]
DTemplateBuilderImpl.java23 import androidx.slice.Slice;
32 private final Slice.Builder mSliceBuilder;
35 protected TemplateBuilderImpl(Slice.Builder b, SliceSpec spec) { in TemplateBuilderImpl()
43 public Slice build() { in build()
53 public Slice.Builder getBuilder() { in getBuilder()
61 public Slice.Builder createChildBuilder() { in createChildBuilder()
62 return new Slice.Builder(mSliceBuilder); in createChildBuilder()
69 public abstract void apply(Slice.Builder builder); in apply()
DMessagingV1Impl.java19 import static android.app.slice.Slice.SUBTYPE_MESSAGE;
26 import androidx.slice.Slice;
37 public MessagingV1Impl(Slice.Builder b, SliceSpec spec) { in MessagingV1Impl()
51 public void apply(Slice.Builder builder) { in apply()
78 android.app.slice.Slice.SUBTYPE_SOURCE); in addSource()
98 public void apply(Slice.Builder builder) { in apply()
DListBuilderBasicImpl.java29 import androidx.slice.Slice;
43 public ListBuilderBasicImpl(Slice.Builder b, SliceSpec spec) { in ListBuilderBasicImpl()
107 Slice.Builder sb = new Slice.Builder(getBuilder()); in setKeywords()
164 public void apply(Slice.Builder builder) { in apply()
182 super(new Slice.Builder(uri), null); in RowBuilderImpl()
297 public void apply(Slice.Builder builder) { in apply()
316 super(new Slice.Builder(uri), null); in HeaderBuilderImpl()
322 public void apply(Slice.Builder builder) { in apply()
DMessagingListV1Impl.java28 import androidx.slice.Slice;
41 public MessagingListV1Impl(Slice.Builder b, SliceSpec spec) { in MessagingListV1Impl()
65 public void apply(Slice.Builder builder) { in apply()
81 private MessageBuilder(Slice.Builder builder) { in MessageBuilder()
111 public void apply(Slice.Builder builder) { in apply()
DMessagingBasicImpl.java27 import androidx.slice.Slice;
40 public MessagingBasicImpl(Slice.Builder builder, SliceSpec spec) { in MessagingBasicImpl()
47 public void apply(Slice.Builder builder) { in apply()
95 private MessageBuilder(Slice.Builder builder) { in MessageBuilder()
124 public void apply(Slice.Builder builder) { in apply()
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/
DSliceTestProvider.java19 import static android.app.slice.Slice.HINT_LARGE;
20 import static android.app.slice.Slice.HINT_LIST;
21 import static android.app.slice.Slice.HINT_NO_TINT;
22 import static android.app.slice.Slice.HINT_TITLE;
29 import androidx.slice.Slice.Builder;
41 public Slice onBindSlice(Uri sliceUri) { in onBindSlice()
48 return b.addSubSlice(new Slice.Builder(b).build(), "subslice").build(); in onBindSlice()
50 return new Slice.Builder(sliceUri).addText("Expected text", "text").build(); in onBindSlice()
52 return new Slice.Builder(sliceUri).addIcon( in onBindSlice()
57 Slice subSlice = new Slice.Builder(builder).build(); in onBindSlice()
[all …]
DSliceTest.java19 import static android.app.slice.Slice.HINT_LARGE;
20 import static android.app.slice.Slice.HINT_LIST;
21 import static android.app.slice.Slice.HINT_NO_TINT;
22 import static android.app.slice.Slice.HINT_TITLE;
69 Slice.bindSlice(mContext, in testProcess()
82 Slice s = Slice.bindSlice(mContext, BASE_URI, Collections.<SliceSpec>emptySet()); in testSliceUri()
89 Slice s = Slice.bindSlice(mContext, uri, Collections.<SliceSpec>emptySet()); in testSubSlice()
104 Slice s = Slice.bindSlice(mContext, uri, Collections.<SliceSpec>emptySet()); in testText()
117 Slice s = Slice.bindSlice(mContext, uri, Collections.<SliceSpec>emptySet()); in testIcon()
147 Slice s = Slice.bindSlice(mContext, uri, Collections.<SliceSpec>emptySet()); in testAction()
[all …]
/frameworks/support/slices/core/src/main/java/androidx/slice/
DSliceItem.java27 import static androidx.slice.Slice.addHints;
88 protected @Slice.SliceHint String[] mHints;
98 @Slice.SliceHint String[] hints) { in SliceItem()
110 @Slice.SliceHint List<String> hints) { in SliceItem()
118 public SliceItem(PendingIntent intent, Slice slice, String format, String subType, in SliceItem()
119 @Slice.SliceHint String[] hints) { in SliceItem()
120 this(new Pair<Object, Slice>(intent, slice), format, subType, hints); in SliceItem()
127 public SliceItem(Consumer<Uri> action, Slice slice, String format, String subType, in SliceItem()
128 @Slice.SliceHint String[] hints) { in SliceItem()
129 this(new Pair<Object, Slice>(action, slice), format, subType, hints); in SliceItem()
[all …]
DSlice.java19 import static android.app.slice.Slice.HINT_ACTIONS;
20 import static android.app.slice.Slice.HINT_HORIZONTAL;
21 import static android.app.slice.Slice.HINT_LARGE;
22 import static android.app.slice.Slice.HINT_LIST;
23 import static android.app.slice.Slice.HINT_LIST_ITEM;
24 import static android.app.slice.Slice.HINT_NO_TINT;
25 import static android.app.slice.Slice.HINT_PARTIAL;
26 import static android.app.slice.Slice.HINT_SEE_MORE;
27 import static android.app.slice.Slice.HINT_SELECTED;
28 import static android.app.slice.Slice.HINT_SHORTCUT;
[all …]
DSliceConvert.java43 public static android.app.slice.Slice unwrap(androidx.slice.Slice slice) { in unwrap()
44 android.app.slice.Slice.Builder builder = new android.app.slice.Slice.Builder( in unwrap()
93 public static androidx.slice.Slice wrap(android.app.slice.Slice slice) { in wrap()
94 androidx.slice.Slice.Builder builder = new androidx.slice.Slice.Builder( in wrap()
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/
DSliceXmlTest.java60 Slice s = new Slice.Builder(Uri.parse("content://pkg/slice")) in testThrowForAction()
70 Slice s = new Slice.Builder(Uri.parse("content://pkg/slice")) in testThrowForRemoteInput()
80 Slice s = new Slice.Builder(Uri.parse("content://pkg/slice")) in testThrowForImage()
90 Slice s = new Slice.Builder(Uri.parse("content://pkg/slice")) in testNoThrowForAction()
100 Slice s = new Slice.Builder(Uri.parse("content://pkg/slice")) in testNoThrowForRemoteInput()
110 Slice s = new Slice.Builder(Uri.parse("content://pkg/slice")) in testNoThrowForImage()
122 Slice before = new Slice.Builder(Uri.parse("content://pkg/slice")) in testSerialization()
123 .addSubSlice(new Slice.Builder(Uri.parse("content://pkg/slice/sub")) in testSerialization()
129 new Slice.Builder(Uri.parse("content://pkg/slice/action")) in testSerialization()
147 Slice after = SliceUtils.parseSlice(mContext, inputStream, "UTF-8", listener); in testSerialization()
[all …]
DSliceMetadataTest.java19 import static android.app.slice.Slice.HINT_TITLE;
137 Slice gridSlice = lb.build(); in testGetPrimaryActionForGrid()
160 Slice rowSlice = lb.build(); in testGetPrimaryActionForRow()
183 Slice headerSlice = lb.build(); in testGetPrimaryActionForHeader()
206 Slice rowSlice = lb.build(); in testGetPrimaryActionNull()
222 Slice gridSlice = lb.build(); in testGetHeaderTypeGrid()
234 Slice rowSlice = lb.build(); in testGetHeaderTypeRow()
250 Slice toggleSlice = lb.build(); in testGetHeaderTypeToggle()
267 Slice sliderSlice = lb.build(); in testGetHeaderTypeSlider()
282 Slice sliderSlice = lb.build(); in testGetHeaderTypeProgress()
[all …]
/frameworks/base/core/java/android/app/slice/
DSliceItem.java122 protected @Slice.SliceHint
140 @Slice.SliceHint String[] hints) { in SliceItem()
150 public SliceItem(PendingIntent intent, Slice slice, String format, String subType, in SliceItem()
151 @Slice.SliceHint String[] hints) { in SliceItem()
159 public @NonNull @Slice.SliceHint List<String> getHints() { in getHints()
218 return ((Pair<PendingIntent, Slice>) mObj).first; in getAction()
245 public Slice getSlice() { in getSlice()
247 return ((Pair<PendingIntent, Slice>) mObj).second; in getSlice()
249 return (Slice) mObj; in getSlice()
272 public boolean hasHint(@Slice.SliceHint String hint) { in hasHint()
[all …]
DSlice.java46 public final class Slice implements Parcelable { class
277 Slice(ArrayList<SliceItem> items, @SliceHint String[] hints, Uri uri, SliceSpec spec) { in Slice() method in Slice
284 protected Slice(Parcel in) { in Slice() method in Slice
388 public Builder(@NonNull Slice.Builder parent) { in Builder()
430 public Builder addSubSlice(@NonNull Slice slice, @Nullable @SliceSubtype String subType) { in addSubSlice()
442 public Slice.Builder addAction(@NonNull PendingIntent action, @NonNull Slice s, in addAction()
481 public Slice.Builder addRemoteInput(RemoteInput remoteInput, in addRemoteInput()
506 public Slice.Builder addTimestamp(long time, @Nullable @SliceSubtype String subType, in addTimestamp()
516 public Slice.Builder addLong(long value, @Nullable @SliceSubtype String subType, in addLong()
530 public Slice.Builder addBundle(Bundle bundle, @Nullable @SliceSubtype String subType, in addBundle()
[all …]
DSliceProvider.java18 import static android.app.slice.Slice.SUBTYPE_COLOR;
215 public Slice onBindSlice(Uri sliceUri, Set<SliceSpec> supportedSpecs) { in onBindSlice()
224 public Slice onBindSlice(Uri sliceUri, List<SliceSpec> supportedSpecs) { in onBindSlice()
365 Slice s = handleBindSlice(uri, supportedSpecs, callingPackage, callingUid, callingPid); in call()
376 Slice s = handleBindSlice(uri, supportedSpecs, getCallingPackage(), in call()
444 private Slice handleBindSlice(Uri sliceUri, List<SliceSpec> supportedSpecs, in handleBindSlice()
468 public Slice createPermissionSlice(Context context, Uri sliceUri, in createPermissionSlice()
478 Slice.Builder parent = new Slice.Builder(sliceUri); in createPermissionSlice()
479 Slice.Builder childAction = new Slice.Builder(parent) in createPermissionSlice()
483 .addHints(Arrays.asList(Slice.HINT_TITLE, Slice.HINT_SHORTCUT)) in createPermissionSlice()
[all …]
/frameworks/support/slices/core/src/main/java/androidx/slice/core/
DSliceActionImpl.java19 import static android.app.slice.Slice.HINT_LARGE;
20 import static android.app.slice.Slice.HINT_NO_TINT;
21 import static android.app.slice.Slice.HINT_SELECTED;
22 import static android.app.slice.Slice.HINT_SHORTCUT;
23 import static android.app.slice.Slice.HINT_TITLE;
24 import static android.app.slice.Slice.SUBTYPE_CONTENT_DESCRIPTION;
25 import static android.app.slice.Slice.SUBTYPE_PRIORITY;
26 import static android.app.slice.Slice.SUBTYPE_TOGGLE;
47 import androidx.slice.Slice;
311 public Slice buildSlice(@NonNull Slice.Builder builder) { in buildSlice()
[all …]
/frameworks/support/slices/core/api_legacy/
D28.0.0-alpha1.txt3 public final class Slice {
11 method public static android.app.slice.Slice unwrap(androidx.app.slice.Slice);
12 method public static androidx.app.slice.Slice wrap(android.app.slice.Slice);
21 method public androidx.app.slice.Slice getSlice();
30 method public abstract androidx.app.slice.Slice onBindSlice(android.net.Uri);
Dcurrent.txt3 public final class Slice {
11 method public static android.app.slice.Slice unwrap(androidx.slice.Slice);
12 method public static androidx.slice.Slice wrap(android.app.slice.Slice);
21 method public androidx.slice.Slice getSlice();
30 method public abstract androidx.slice.Slice onBindSlice(android.net.Uri);
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/compat/
DSliceProviderCompatTest.java41 import androidx.slice.Slice;
63 Slice s = new Slice.Builder(uri) in testBindWithPermission()
86 assertEquals(s.toString(), new Slice(result.getBundle(EXTRA_SLICE)).toString()); in testBindWithPermission()
96 Slice s = new Slice.Builder(uri) in testBindWithoutPermission()
119 assertNotEquals(s.toString(), new Slice(result.getBundle(EXTRA_SLICE)).toString()); in testBindWithoutPermission()
130 public Slice onBindSlice(Uri sliceUri) { in onBindSlice()
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
DShortcutView.java19 import static android.app.slice.Slice.HINT_LARGE;
20 import static android.app.slice.Slice.HINT_NO_TINT;
21 import static android.app.slice.Slice.HINT_TITLE;
22 import static android.app.slice.Slice.SUBTYPE_COLOR;
46 import androidx.slice.Slice;
154 Slice slice = mListContent.getSlice(); in determineShortcutItems()
193 Slice.Builder sb = new Slice.Builder(slice.getUri()); in determineShortcutItems()
199 Slice.Builder sb = new Slice.Builder(slice.getUri()); in determineShortcutItems()
206 new Slice.Builder(slice.getUri()).build(), FORMAT_ACTION, in determineShortcutItems()
DSliceLiveData.java29 import androidx.slice.Slice;
68 public static LiveData<Slice> fromUri(Context context, Uri uri) { in fromUri()
76 public static LiveData<Slice> fromIntent(@NonNull Context context, @NonNull Intent intent) { in fromIntent()
80 private static class SliceLiveDataImpl extends LiveData<Slice> {
118 Slice s = mUri != null ? mSliceManager.bindSlice(mUri)
130 public void onSliceUpdated(@NonNull Slice s) {
/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/
DTemplateSliceBuilder.java27 import androidx.slice.Slice;
44 private final Slice.Builder mBuilder;
64 protected TemplateSliceBuilder(Slice.Builder b, Context context) { in TemplateSliceBuilder()
80 mBuilder = new Slice.Builder(uri); in TemplateSliceBuilder()
93 public Slice build() { in build()
101 protected Slice.Builder getBuilder() { in getBuilder()
/frameworks/support/slices/view/api_legacy/
Dcurrent.txt4 method public abstract androidx.slice.Slice bindSlice(android.net.Uri);
5 method public abstract androidx.slice.Slice bindSlice(android.content.Intent);
16 method public abstract void onSliceUpdated(androidx.slice.Slice);
20 method public static int getLoadingState(androidx.slice.Slice);
21 …ethod public static java.util.List<androidx.slice.SliceItem> getSliceActions(androidx.slice.Slice);
22 …method public static androidx.slice.Slice parseSlice(java.io.InputStream, java.lang.String) throws…
23 …method public static void serializeSlice(androidx.slice.Slice, android.content.Context, java.io.Ou…
71 …method public static android.arch.lifecycle.LiveData<androidx.slice.Slice> fromIntent(android.cont…
72 …method public static android.arch.lifecycle.LiveData<androidx.slice.Slice> fromUri(android.content…
82 method public void onChanged(androidx.slice.Slice);
[all …]

1234