Home
last modified time | relevance | path

Searched refs:GuidedAction (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DGuidedStepActivity.java38 import androidx.leanback.widget.GuidedAction;
100 private static GuidedAction addAction(List<GuidedAction> actions, long id, String title, in addAction()
102 GuidedAction action; in addAction()
103 actions.add(action = new GuidedAction.Builder(null) in addAction()
111 private static GuidedAction addAction(List<GuidedAction> actions, long id, String title, in addAction()
112 String desc, List<GuidedAction> subActions) { in addAction()
113 GuidedAction action; in addAction()
114 actions.add(action = new GuidedAction.Builder(null) in addAction()
123 private static GuidedAction addEditableAction(Context context, List<GuidedAction> actions, in addEditableAction()
125 GuidedAction action; in addEditableAction()
[all …]
DGuidedStepSupportActivity.java41 import androidx.leanback.widget.GuidedAction;
103 private static GuidedAction addAction(List<GuidedAction> actions, long id, String title, in addAction()
105 GuidedAction action; in addAction()
106 actions.add(action = new GuidedAction.Builder(null) in addAction()
114 private static GuidedAction addAction(List<GuidedAction> actions, long id, String title, in addAction()
115 String desc, List<GuidedAction> subActions) { in addAction()
116 GuidedAction action; in addAction()
117 actions.add(action = new GuidedAction.Builder(null) in addAction()
126 private static GuidedAction addEditableAction(Context context, List<GuidedAction> actions, in addEditableAction()
128 GuidedAction action; in addEditableAction()
[all …]
DGuidedStepHalfScreenActivity.java29 import androidx.leanback.widget.GuidedAction;
63 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
65 actions.add(new GuidedAction.Builder(context) in onCreateActions()
66 .clickAction(GuidedAction.ACTION_ID_CONTINUE) in onCreateActions()
69 actions.add(new GuidedAction.Builder(context) in onCreateActions()
70 .clickAction(GuidedAction.ACTION_ID_CANCEL) in onCreateActions()
91 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
93 if (action.getId() == GuidedAction.ACTION_ID_CONTINUE) { in onGuidedActionClicked()
95 } else if (action.getId() == GuidedAction.ACTION_ID_CANCEL){ in onGuidedActionClicked()
120 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
[all …]
DGuidedStepSupportHalfScreenActivity.java32 import androidx.leanback.widget.GuidedAction;
66 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
68 actions.add(new GuidedAction.Builder(context) in onCreateActions()
69 .clickAction(GuidedAction.ACTION_ID_CONTINUE) in onCreateActions()
72 actions.add(new GuidedAction.Builder(context) in onCreateActions()
73 .clickAction(GuidedAction.ACTION_ID_CANCEL) in onCreateActions()
94 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
96 if (action.getId() == GuidedAction.ACTION_ID_CONTINUE) { in onGuidedActionClicked()
98 } else if (action.getId() == GuidedAction.ACTION_ID_CANCEL){ in onGuidedActionClicked()
123 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
[all …]
DDetailsPresenterSelectionActivity.java27 import androidx.leanback.widget.GuidedAction;
54 private static void addAction(List<GuidedAction> actions, long id, String title, String desc) { in addAction()
55 actions.add(new GuidedAction.Builder(null) in addAction()
62 private static void addCheckedAction(List<GuidedAction> actions, Context context, in addCheckedAction()
64 actions.add(new GuidedAction.Builder(null) in addCheckedAction()
98 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
116 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
DMainActivity.java29 import androidx.leanback.widget.GuidedAction;
59 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
152 private void addAction(List<GuidedAction> actions, Class cls, int titleRes, int descRes) { in addAction()
153 actions.add(new GuidedAction.Builder(getActivity()) in addAction()
161 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DGuidedStepFragmentTest.java41 import androidx.leanback.widget.GuidedAction;
71 actions.add(new GuidedAction.Builder().id(1000).title("OK").build()); in nextAndBack()
78 GuidedAction action = (GuidedAction) invocation.getArguments()[0]; in nextAndBack()
87 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
103 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
148 actions.add(new GuidedAction.Builder().id(1000).title("OK").build()); in restoreFragments()
149 actions.add(new GuidedAction.Builder().id(1001).editable(true).title("text") in restoreFragments()
151 actions.add(new GuidedAction.Builder().id(1002).editable(true).title("text") in restoreFragments()
159 GuidedAction action = (GuidedAction) invocation.getArguments()[0]; in restoreFragments()
168 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in restoreFragments()
[all …]
DGuidedStepSupportFragmentTest.java38 import androidx.leanback.widget.GuidedAction;
68 actions.add(new GuidedAction.Builder().id(1000).title("OK").build()); in nextAndBack()
75 GuidedAction action = (GuidedAction) invocation.getArguments()[0]; in nextAndBack()
84 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
100 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack()
145 actions.add(new GuidedAction.Builder().id(1000).title("OK").build()); in restoreFragments()
146 actions.add(new GuidedAction.Builder().id(1001).editable(true).title("text") in restoreFragments()
148 actions.add(new GuidedAction.Builder().id(1002).editable(true).title("text") in restoreFragments()
156 GuidedAction action = (GuidedAction) invocation.getArguments()[0]; in restoreFragments()
165 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in restoreFragments()
[all …]
DGuidedStepTestSupportFragment.java25 import androidx.leanback.widget.GuidedAction;
50 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
53 public void onCreateButtonActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions()
56 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
59 public boolean onSubGuidedActionClicked(GuidedAction action) { in onSubGuidedActionClicked()
161 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
166 public void onCreateButtonActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions()
171 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
176 public boolean onSubGuidedActionClicked(GuidedAction action) { in onSubGuidedActionClicked()
DGuidedStepTestFragment.java28 import androidx.leanback.widget.GuidedAction;
53 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
56 public void onCreateButtonActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions()
59 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
62 public boolean onSubGuidedActionClicked(GuidedAction action) { in onSubGuidedActionClicked()
164 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
169 public void onCreateButtonActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateButtonActions()
174 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
179 public boolean onSubGuidedActionClicked(GuidedAction action) { in onSubGuidedActionClicked()
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
DGuidedStepSupportFragment.java46 import androidx.leanback.widget.GuidedAction;
264 private List<GuidedAction> mActions = new ArrayList<GuidedAction>();
265 private List<GuidedAction> mButtonActions = new ArrayList<GuidedAction>();
332 public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
341 public void onCreateButtonActions(@NonNull List<GuidedAction> actions, in onCreateButtonActions()
350 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
360 public boolean onSubGuidedActionClicked(GuidedAction action) { in onSubGuidedActionClicked()
384 public void expandSubActions(GuidedAction action) { in expandSubActions()
399 public void expandAction(GuidedAction action, boolean withTransition) { in expandAction()
427 public void onGuidedActionFocused(GuidedAction action) { in onGuidedActionFocused()
[all …]
DGuidedStepFragment.java49 import androidx.leanback.widget.GuidedAction;
269 private List<GuidedAction> mActions = new ArrayList<GuidedAction>();
270 private List<GuidedAction> mButtonActions = new ArrayList<GuidedAction>();
337 public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
346 public void onCreateButtonActions(@NonNull List<GuidedAction> actions, in onCreateButtonActions()
355 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
365 public boolean onSubGuidedActionClicked(GuidedAction action) { in onSubGuidedActionClicked()
389 public void expandSubActions(GuidedAction action) { in expandSubActions()
404 public void expandAction(GuidedAction action, boolean withTransition) { in expandAction()
432 public void onGuidedActionFocused(GuidedAction action) { in onGuidedActionFocused()
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DGuidedActionAdapter.java60 void onGuidedActionClicked(GuidedAction action); in onGuidedActionClicked()
72 void onGuidedActionFocused(GuidedAction action); in onGuidedActionFocused()
83 void onGuidedActionEditCanceled(GuidedAction action); in onGuidedActionEditCanceled()
88 long onGuidedActionEditedAndProceed(GuidedAction action); in onGuidedActionEditedAndProceed()
106 private final List<GuidedAction> mActions;
110 DiffCallback<GuidedAction> mDiffCallback;
118 GuidedAction action = avh.getAction();
142 public GuidedActionAdapter(List<GuidedAction> actions, ClickListener clickListener, in GuidedActionAdapter()
145 mActions = actions == null ? new ArrayList<GuidedAction>() : in GuidedActionAdapter()
146 new ArrayList<GuidedAction>(actions); in GuidedActionAdapter()
[all …]
DGuidedActionDiffCallback.java26 public class GuidedActionDiffCallback extends DiffCallback<GuidedAction> {
39 public boolean areItemsTheSame(@NonNull GuidedAction oldItem, @NonNull GuidedAction newItem) { in areItemsTheSame()
49 public boolean areContentsTheSame(@NonNull GuidedAction oldItem, in areContentsTheSame()
50 @NonNull GuidedAction newItem) { in areContentsTheSame()
DGuidedAction.java45 public class GuidedAction extends Action { class
135 private List<GuidedAction> mSubActions;
163 protected final void applyValues(GuidedAction action) { in applyValues()
530 public B subActions(List<GuidedAction> subActions) { in subActions()
583 public GuidedAction build() { in build()
584 GuidedAction action = new GuidedAction(); in build()
611 List<GuidedAction> mSubActions;
615 protected GuidedAction() { in GuidedAction() method in GuidedAction
881 public void setSubActions(List<GuidedAction> actions) { in setSubActions()
888 public List<GuidedAction> getSubActions() { in getSubActions()
DGuidedActionsStylist.java17 import static androidx.leanback.widget.GuidedAction.EDITING_ACTIVATOR_VIEW;
18 import static androidx.leanback.widget.GuidedAction.EDITING_DESCRIPTION;
19 import static androidx.leanback.widget.GuidedAction.EDITING_NONE;
20 import static androidx.leanback.widget.GuidedAction.EDITING_TITLE;
177 GuidedAction mAction;
200 mAction != null && mAction.getCheckSetId() != GuidedAction.NO_CHECK_SET);
355 public GuidedAction getAction() { in getAction()
422 private GuidedAction mExpandedAction = null;
587 public int getItemViewType(GuidedAction action) { in getItemViewType()
680 public void onBindViewHolder(ViewHolder vh, GuidedAction action) { in onBindViewHolder()
[all …]
DGuidedActionAdapterGroup.java70 boolean focusToNextAction(GuidedActionAdapter adapter, GuidedAction action, long nextActionId) { in focusToNextAction()
73 if (nextActionId == GuidedAction.ACTION_ID_NEXT) { in focusToNextAction()
84 if (nextActionId == GuidedAction.ACTION_ID_NEXT) { in focusToNextAction()
167 if (nextActionId != GuidedAction.ACTION_ID_CURRENT in fillAndGoNext()
180 GuidedAction action = avh.getAction(); in updateTextIntoAction()
DGuidedDatePickerAction.java26 public class GuidedDatePickerAction extends GuidedAction {
35 extends GuidedAction.BuilderBase<B> {
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/wizard/
DGuidedStepAttributesTestFragment.java21 import androidx.leanback.widget.GuidedAction;
36 public static List<GuidedAction> ACTION_LIST = null;
49 public void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState) { in onCreateActions()
56 public void onGuidedActionClicked(GuidedAction action) { in onGuidedActionClicked()
67 public void onGuidedActionFocused(GuidedAction action) { in onGuidedActionFocused()
73 public boolean onSubGuidedActionClicked(GuidedAction action) { in onSubGuidedActionClicked()
80 public long onGuidedActionEditedAndProceed(GuidedAction action) { in onGuidedActionEditedAndProceed()
88 return GuidedAction.ACTION_ID_CURRENT; in onGuidedActionEditedAndProceed()
DGuidedStepAttributesTest.java31 import androidx.leanback.widget.GuidedAction;
103 List<GuidedAction> actionList = new ArrayList<>(); in testFocusDisabledOnActions()
105 actionList.add(new GuidedAction.Builder(mContext) in testFocusDisabledOnActions()
157 List<GuidedAction> allActions = fragment.getActions();
159 GuidedAction action = allActions.get(i);
214 List<GuidedAction> actionList = new ArrayList<>(); in testDisabledActions()
215 actionList.add(new GuidedAction.Builder(mContext) in testDisabledActions()
223 actionList.add(new GuidedAction.Builder(mContext) in testDisabledActions()
296 List<GuidedAction> actionList = new ArrayList<>(); in testToggleEnabledFlags()
297 actionList.add(new GuidedAction.Builder(mContext) in testToggleEnabledFlags()
[all …]
DGuidedDatePickerTest.java33 import androidx.leanback.widget.GuidedAction;
250 List<GuidedAction> actionList = new ArrayList<>(); in testJanuaryToFebruaryTransitionForLeapYear()
296 List<GuidedAction> actionList = new ArrayList<>(); in testFebruaryToMarchTransitionForLeapYear()
342 List<GuidedAction> actionList = new ArrayList<>(); in testJanuaryToFebruaryTransitionForNonLeapYear()
388 List<GuidedAction> actionList = new ArrayList<>(); in testFebruaryToMarchTransitionForNonLeapYear()
434 List<GuidedAction> actionList = new ArrayList<>(); in testDecemberToNovemberTransition()
480 List<GuidedAction> actionList = new ArrayList<>(); in testNovemberToOctoberTransition()
526 List<GuidedAction> actionList = new ArrayList<>(); in testLeapToNonLeapYearTransition()
572 List<GuidedAction> actionList = new ArrayList<>(); in testNonLeapToLeapYearTransition()
769 List<GuidedAction> actionList = new ArrayList<>(); in setupDateActionsForMinAndMaxRangeTests()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGuidedActionStylistTest.java55 private GuidedAction mGuidedAction;
86 mGuidedAction = new GuidedAction.Builder(mContext).multilineDescription(true).build(); in testWhenMultiLineDescriptionSetToTrue()
111 mGuidedAction = new GuidedAction.Builder(mContext).multilineDescription(false).build(); in testWhenMultiLineDescriptionSetToFalse()
133 mGuidedAction = new GuidedAction.Builder(mContext) in testAutofillHintsOnTitle()
152 mGuidedAction = new GuidedAction.Builder(mContext) in testAutofillHintsOnNonEditableViews()
173 mGuidedAction = new GuidedAction.Builder(mContext) in testAutofillHintsOnDescription()
/frameworks/support/leanback/api/
Dcurrent.txt406 method public void expandAction(androidx.leanback.widget.GuidedAction, boolean);
407 method public void expandSubActions(androidx.leanback.widget.GuidedAction);
408 method public androidx.leanback.widget.GuidedAction findActionById(long);
410 method public androidx.leanback.widget.GuidedAction findButtonActionById(long);
414 method public java.util.List<androidx.leanback.widget.GuidedAction> getActions();
416 method public java.util.List<androidx.leanback.widget.GuidedAction> getButtonActions();
431 …method public void onCreateActions(java.util.List<androidx.leanback.widget.GuidedAction>, android.…
434 …method public void onCreateButtonActions(java.util.List<androidx.leanback.widget.GuidedAction>, an…
438 method public void onGuidedActionClicked(androidx.leanback.widget.GuidedAction);
439 method public void onGuidedActionEditCanceled(androidx.leanback.widget.GuidedAction);
[all …]
/frameworks/support/leanback/api_legacy/
Dcurrent.txt406 method public void expandAction(android.support.v17.leanback.widget.GuidedAction, boolean);
407 method public void expandSubActions(android.support.v17.leanback.widget.GuidedAction);
408 method public android.support.v17.leanback.widget.GuidedAction findActionById(long);
410 method public android.support.v17.leanback.widget.GuidedAction findButtonActionById(long);
414 method public java.util.List<android.support.v17.leanback.widget.GuidedAction> getActions();
416 … method public java.util.List<android.support.v17.leanback.widget.GuidedAction> getButtonActions();
431 …id onCreateActions(java.util.List<android.support.v17.leanback.widget.GuidedAction>, android.os.Bu…
434 …reateButtonActions(java.util.List<android.support.v17.leanback.widget.GuidedAction>, android.os.Bu…
438 method public void onGuidedActionClicked(android.support.v17.leanback.widget.GuidedAction);
439 method public void onGuidedActionEditCanceled(android.support.v17.leanback.widget.GuidedAction);
[all …]
D27.1.0.txt406 method public void expandAction(android.support.v17.leanback.widget.GuidedAction, boolean);
407 method public void expandSubActions(android.support.v17.leanback.widget.GuidedAction);
408 method public android.support.v17.leanback.widget.GuidedAction findActionById(long);
410 method public android.support.v17.leanback.widget.GuidedAction findButtonActionById(long);
414 method public java.util.List<android.support.v17.leanback.widget.GuidedAction> getActions();
416 … method public java.util.List<android.support.v17.leanback.widget.GuidedAction> getButtonActions();
431 …id onCreateActions(java.util.List<android.support.v17.leanback.widget.GuidedAction>, android.os.Bu…
434 …reateButtonActions(java.util.List<android.support.v17.leanback.widget.GuidedAction>, android.os.Bu…
438 method public void onGuidedActionClicked(android.support.v17.leanback.widget.GuidedAction);
439 method public void onGuidedActionEditCanceled(android.support.v17.leanback.widget.GuidedAction);
[all …]

123