Home
last modified time | relevance | path

Searched refs:SliceView (Results 1 – 17 of 17) sorted by relevance

/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/
DSliceBrowser.java55 import androidx.slice.widget.SliceView;
65 public class SliceBrowser extends AppCompatActivity implements SliceView.OnSliceActionListener {
129 ? savedInstanceState.getInt("SELECTED_MODE", SliceView.MODE_LARGE) in onCreate()
130 : SliceView.MODE_LARGE; in onCreate()
159 mSelectedMode = SliceView.MODE_SHORTCUT; in onOptionsItemSelected()
164 mSelectedMode = SliceView.MODE_SMALL; in onOptionsItemSelected()
169 mSelectedMode = SliceView.MODE_LARGE; in onOptionsItemSelected()
207 SliceView v = createSliceView(); in addSlice()
218 SliceView v = createSliceView(); in addSlice()
243 ((SliceView) mContainer.getChildAt(i)).setMode(mSelectedMode); in updateSliceModes()
[all …]
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
DSliceChildView.java39 protected SliceView.OnSliceActionListener mObserver;
82 int rowCount, SliceView.OnSliceActionListener observer) { in setSliceItem()
117 @SliceView.SliceMode
146 public void setSliceActionListener(SliceView.OnSliceActionListener observer) { in setSliceActionListener()
154 TypedArray a = getContext().getTheme().obtainStyledAttributes(attrs, R.styleable.SliceView, in setStyle()
DLargeTemplateView.java19 import static androidx.slice.widget.SliceView.MODE_SMALL;
43 private SliceView mParent;
75 mParent = (SliceView) getParent(); in onAttachedToWindow()
143 public void setSliceActionListener(SliceView.OnSliceActionListener observer) { in setSliceActionListener()
213 if (mode == SliceView.MODE_LARGE) { in updateDisplayedItems()
DEventInfo.java146 public @SliceView.SliceMode int sliceMode;
205 public EventInfo(@SliceView.SliceMode int sliceMode, @SliceActionType int actionType, in EventInfo()
235 sb.append("mode=").append(SliceView.modeToString(sliceMode)); in toString()
DLargeSliceAdapter.java26 import static androidx.slice.widget.SliceView.MODE_LARGE;
65 private SliceView.OnSliceActionListener mSliceObserver;
73 private SliceView mParent;
84 public void setParents(SliceView parent, LargeTemplateView templateView) { in setParents()
92 public void setSliceObserver(SliceView.OnSliceActionListener observer) { in setSliceObserver()
DSliceView.java85 public class SliceView extends ViewGroup implements Observer<Slice>, View.OnClickListener { class
160 public SliceView(Context context) { in SliceView() method in SliceView
164 public SliceView(Context context, @Nullable AttributeSet attrs) { in SliceView() method in SliceView
168 public SliceView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { in SliceView() method in SliceView
174 public SliceView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in SliceView() method in SliceView
183 TypedArray a = context.getTheme().obtainStyledAttributes(attrs, R.styleable.SliceView, in init()
665 mLongClickListener.onLongClick(SliceView.this);
DMessageView.java55 return SliceView.MODE_LARGE; in getMode()
72 int rowCount, SliceView.OnSliceActionListener observer) { in setSliceItem()
DShortcutView.java111 public @SliceView.SliceMode int getMode() { in getMode()
112 return SliceView.MODE_SHORTCUT; in getMode()
130 EventInfo ei = new EventInfo(SliceView.MODE_SHORTCUT, in performClick()
DSliceActionView.java59 private SliceView.OnSliceActionListener mObserver;
77 SliceView.OnSliceActionListener listener, int color) { in setAction()
DListContent.java33 import static androidx.slice.widget.SliceView.MODE_LARGE;
34 import static androidx.slice.widget.SliceView.MODE_SMALL;
88 TypedArray a = context.getTheme().obtainStyledAttributes(attrs, R.styleable.SliceView, in ListContent()
DGridRowView.java30 import static androidx.slice.widget.SliceView.MODE_SMALL;
168 int rowCount, SliceView.OnSliceActionListener observer) { in setSliceItem()
DRowView.java38 import static androidx.slice.widget.SliceView.MODE_SMALL;
223 int rowCount, SliceView.OnSliceActionListener observer) { in setSliceItem()
/frameworks/support/slices/view/api_legacy/
Dcurrent.txt75 public class SliceView extends android.view.ViewGroup implements android.arch.lifecycle.Observer {
76 ctor public SliceView(android.content.Context);
77 ctor public SliceView(android.content.Context, android.util.AttributeSet);
78 ctor public SliceView(android.content.Context, android.util.AttributeSet, int);
79 ctor public SliceView(android.content.Context, android.util.AttributeSet, int, int);
84 …method public void setOnSliceActionListener(androidx.slice.widget.SliceView.OnSliceActionListener);
94 public static abstract interface SliceView.OnSliceActionListener {
D28.0.0-alpha1.txt74 public class SliceView extends android.view.ViewGroup implements android.arch.lifecycle.Observer {
75 ctor public SliceView(android.content.Context);
76 ctor public SliceView(android.content.Context, android.util.AttributeSet);
77 ctor public SliceView(android.content.Context, android.util.AttributeSet, int);
78 ctor public SliceView(android.content.Context, android.util.AttributeSet, int, int);
83 …method public void setOnSliceActionListener(androidx.app.slice.widget.SliceView.OnSliceActionListe…
93 public static abstract interface SliceView.OnSliceActionListener {
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/
DSliceRenderer.java39 import androidx.slice.widget.SliceView;
62 private final SliceView mSV1;
63 private final SliceView mSV2;
64 private final SliceView mSV3;
91 mSV1.setMode(SliceView.MODE_SHORTCUT); in SliceRenderer()
93 mSV2.setMode(SliceView.MODE_SMALL); in SliceRenderer()
95 mSV3.setMode(SliceView.MODE_LARGE); in SliceRenderer()
/frameworks/support/slices/view/api/
Dcurrent.txt113 …public class SliceView extends android.view.ViewGroup implements androidx.lifecycle.Observer andro…
114 ctor public SliceView(android.content.Context);
115 ctor public SliceView(android.content.Context, android.util.AttributeSet);
116 ctor public SliceView(android.content.Context, android.util.AttributeSet, int);
117 ctor public SliceView(android.content.Context, android.util.AttributeSet, int, int);
125 …method public void setOnSliceActionListener(androidx.slice.widget.SliceView.OnSliceActionListener);
135 public static abstract interface SliceView.OnSliceActionListener {
/frameworks/support/slices/view/src/main/java/androidx/slice/
DSliceMetadata.java54 import androidx.slice.widget.SliceView;