Home
last modified time | relevance | path

Searched refs:SliceItem (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/android/app/slice/
DSliceQuery.java39 public static SliceItem getPrimaryIcon(Slice slice) { in getPrimaryIcon()
40 for (SliceItem item : slice.getItems()) { in getPrimaryIcon()
41 if (Objects.equals(item.getFormat(), SliceItem.FORMAT_IMAGE)) { in getPrimaryIcon()
44 if (!(compareTypes(item, SliceItem.FORMAT_SLICE) in getPrimaryIcon()
48 && !compareTypes(item, SliceItem.FORMAT_ACTION)) { in getPrimaryIcon()
49 SliceItem icon = SliceQuery.find(item, SliceItem.FORMAT_IMAGE); in getPrimaryIcon()
61 public static SliceItem findNotContaining(SliceItem container, List<SliceItem> list) { in findNotContaining()
62 SliceItem ret = null; in findNotContaining()
64 SliceItem remove = list.remove(0); in findNotContaining()
75 private static boolean contains(SliceItem container, SliceItem item) { in contains()
[all …]
DSlice.java262 private final SliceItem[] mItems;
267 Slice(ArrayList<SliceItem> items, @SliceHint String[] hints, Uri uri, SliceSpec spec) { in Slice()
269 mItems = items.toArray(new SliceItem[items.size()]); in Slice()
277 mItems = new SliceItem[n]; in Slice()
279 mItems[i] = SliceItem.CREATOR.createFromParcel(in); in Slice()
302 public List<SliceItem> getItems() { in getItems()
355 private ArrayList<SliceItem> mItems = new ArrayList<>();
409 mItems.add(new SliceItem(slice, SliceItem.FORMAT_SLICE, subType, in addSubSlice()
425 mItems.add(new SliceItem(action, s, SliceItem.FORMAT_ACTION, subType, hints.toArray( in addAction()
437 mItems.add(new SliceItem(text, SliceItem.FORMAT_TEXT, subType, hints)); in addText()
[all …]
DSliceItem.java62 public final class SliceItem implements Parcelable { class
130 public SliceItem(Object obj, @SliceType String format, String subType, in SliceItem() method in SliceItem
138 public SliceItem(Object obj, @SliceType String format, String subType, in SliceItem() method in SliceItem
149 public SliceItem(PendingIntent intent, Slice slice, String format, String subType, in SliceItem() method in SliceItem
269 public SliceItem(Parcel in) { in SliceItem() method in SliceItem
371 …ublic static final @android.annotation.NonNull Creator<SliceItem> CREATOR = new Creator<SliceItem>…
373 public SliceItem createFromParcel(Parcel in) {
374 return new SliceItem(in);
378 public SliceItem[] newArray(int size) {
379 return new SliceItem[size];
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/anc/ui/viewmodel/
DAncViewModel.kt21 import androidx.slice.SliceItem
66 val slices = ArrayDeque<SliceItem>() in isClickable()
69 val item: SliceItem = slices.removeFirst() in isClickable()
71 android.app.slice.SliceItem.FORMAT_ACTION -> { in isClickable()
77 android.app.slice.SliceItem.FORMAT_SLICE -> { in isClickable()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/component/anc/
DFakeSliceFactory.kt20 import androidx.slice.SliceItem
28 val sliceItem: SliceItem = mock { in createSlice()
29 whenever(format).thenReturn(android.app.slice.SliceItem.FORMAT_SLICE) in createSlice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePanelSlicesAdapter.java20 import static android.app.slice.SliceItem.FORMAT_SLICE;
33 import androidx.slice.SliceItem;
129 for (SliceItem item : slice.getItems()) { in isValidSlice()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceView.java42 import androidx.slice.SliceItem;
144 SliceItem mainTitle = header.getTitleItem(); in showSlice()
163 SliceItem item = rc.getSliceItem(); in showSlice()
181 final SliceItem titleItem = rc.getTitleItem(); in showSlice()
186 SliceItem icon = SliceQuery.find(item.getSlice(), in showSlice()
187 android.app.slice.SliceItem.FORMAT_IMAGE); in showSlice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java41 import androidx.slice.SliceItem;
130 SliceItem text = SliceQuery.find(slice, android.app.slice.SliceItem.FORMAT_TEXT, in returnsValidSlice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/anc/domain/interactor/
DAncSliceInteractor.kt20 import android.app.slice.SliceItem.FORMAT_SLICE in <lambda>()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt8882 Landroid/app/slice/Slice;->mItems:[Landroid/app/slice/SliceItem;
8886 Landroid/app/slice/SliceItem;-><init>(Landroid/app/PendingIntent;Landroid/app/slice/Slice;Ljava/lan…
8887 Landroid/app/slice/SliceItem;-><init>(Landroid/os/Parcel;)V
8888 Landroid/app/slice/SliceItem;-><init>(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/u…
8889 Landroid/app/slice/SliceItem;-><init>(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;[Ljava/…
8890 Landroid/app/slice/SliceItem;->getBaseType(Ljava/lang/String;)Ljava/lang/String;
8891 Landroid/app/slice/SliceItem;->getRemoteView()Landroid/widget/RemoteViews;
8892 Landroid/app/slice/SliceItem;->hasAnyHints([Ljava/lang/String;)Z
8893 Landroid/app/slice/SliceItem;->hasHints([Ljava/lang/String;)Z
8894 Landroid/app/slice/SliceItem;->mFormat:Ljava/lang/String;
[all …]
/frameworks/base/boot/
Dpreloaded-classes1225 android.app.slice.SliceItem$1
1226 android.app.slice.SliceItem
14072 [Landroid.app.slice.SliceItem;
Dboot-image-profile.txt3345 HSPLandroid/app/slice/SliceItem;->getAction()Landroid/app/PendingIntent;
3346 HSPLandroid/app/slice/SliceItem;->getFormat()Ljava/lang/String;
3347 HSPLandroid/app/slice/SliceItem;->getHints()Ljava/util/List;
3348 HSPLandroid/app/slice/SliceItem;->getText()Ljava/lang/CharSequence;
23602 Landroid/app/slice/SliceItem$1;
23603 Landroid/app/slice/SliceItem;
36519 [Landroid/app/slice/SliceItem;
/frameworks/base/config/
Dpreloaded-classes1225 android.app.slice.SliceItem$1
1226 android.app.slice.SliceItem
17095 [Landroid.app.slice.SliceItem;
Dboot-image-profile.txt3345 HSPLandroid/app/slice/SliceItem;->getAction()Landroid/app/PendingIntent;
3346 HSPLandroid/app/slice/SliceItem;->getFormat()Ljava/lang/String;
3347 HSPLandroid/app/slice/SliceItem;->getHints()Ljava/util/List;
3348 HSPLandroid/app/slice/SliceItem;->getText()Ljava/lang/CharSequence;
33732 Landroid/app/slice/SliceItem$1;
33733 Landroid/app/slice/SliceItem;
49686 [Landroid/app/slice/SliceItem;
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt9248 method @Deprecated public java.util.List<android.app.slice.SliceItem> getItems();
9302 @Deprecated public final class SliceItem implements android.os.Parcelable {
9317 …ed @NonNull public static final android.os.Parcelable.Creator<android.app.slice.SliceItem> CREATOR;