Home
last modified time | relevance | path

Searched refs:MenuAction (Results 1 – 7 of 7) sorted by relevance

/packages/apps/TV/src/com/android/tv/menu/
DTvOptionsRowAdapter.java46 protected List<MenuAction> createBaseActions() { in createBaseActions()
47 List<MenuAction> actionList = new ArrayList<>(); in createBaseActions()
48 actionList.add(MenuAction.SELECT_CLOSED_CAPTION_ACTION); in createBaseActions()
49 actionList.add(MenuAction.SELECT_DISPLAY_MODE_ACTION); in createBaseActions()
51 actionList.add(MenuAction.SYSTEMWIDE_PIP_ACTION); in createBaseActions()
53 actionList.add(MenuAction.SELECT_AUDIO_LANGUAGE_ACTION); in createBaseActions()
54 actionList.add(MenuAction.MORE_CHANNELS_ACTION); in createBaseActions()
56 actionList.add(MenuAction.DEV_ACTION); in createBaseActions()
58 actionList.add(MenuAction.SETTINGS_ACTION); in createBaseActions()
70 notifyItemChanged(getItemPosition(MenuAction.SELECT_CLOSED_CAPTION_ACTION)); in updateActions()
[all …]
DMenuAction.java30 public class MenuAction { class
32 public static final MenuAction SELECT_CLOSED_CAPTION_ACTION =
33 new MenuAction(R.string.options_item_closed_caption,
36 public static final MenuAction SELECT_DISPLAY_MODE_ACTION =
37 new MenuAction(R.string.options_item_display_mode, TvOptionsManager.OPTION_DISPLAY_MODE,
39 public static final MenuAction SYSTEMWIDE_PIP_ACTION =
40 new MenuAction(R.string.options_item_pip, TvOptionsManager.OPTION_SYSTEMWIDE_PIP,
42 public static final MenuAction SELECT_AUDIO_LANGUAGE_ACTION =
43 new MenuAction(R.string.options_item_multi_audio, TvOptionsManager.OPTION_MULTI_AUDIO,
45 public static final MenuAction MORE_CHANNELS_ACTION =
[all …]
DOptionsRowAdapter.java31 public abstract class OptionsRowAdapter extends ItemListRowView.ItemListAdapter<MenuAction> {
34 private List<MenuAction> mActionList;
39 final MenuAction action = (MenuAction) view.getTag();
78 protected abstract List<MenuAction> createActions(); in createActions()
87 protected MenuAction getAction(int position) { in getAction()
DCustomizableOptionsRowAdapter.java41 protected abstract List<MenuAction> createBaseActions(); in createBaseActions()
48 protected List<MenuAction> createActions() { in createActions()
49 List<MenuAction> actions = new ArrayList<>(createBaseActions()); in createActions()
57 MenuAction action = new MenuAction( in createActions()
DActionCardView.java31 public class ActionCardView extends RelativeLayout implements ItemListRowView.CardView<MenuAction> {
63 public void onBind(MenuAction action, boolean selected) { in onBind()
DPartnerOptionsRowAdapter.java32 protected List<MenuAction> createBaseActions() { in createBaseActions()
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DTvOptionsRowAdapterTest.java78 MenuAction.SELECT_AUDIO_LANGUAGE_ACTION.isEnabled()); in testUpdateAudioAction_2tracks()
95 MenuAction.SELECT_AUDIO_LANGUAGE_ACTION.isEnabled()); in testUpdateAudioAction_1track()
113 MenuAction.SELECT_AUDIO_LANGUAGE_ACTION.isEnabled()); in testUpdateAudioAction_noTracks()