Searched refs:MenuAction (Results 1 – 8 of 8) sorted by relevance
/packages/apps/TV/src/com/android/tv/menu/ |
D | MenuAction.java | 30 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 PIP_IN_APP_ACTION = 40 new MenuAction(R.string.options_item_pip, TvOptionsManager.OPTION_IN_APP_PIP, 42 public static final MenuAction SYSTEMWIDE_PIP_ACTION = 43 new MenuAction(R.string.options_item_pip, TvOptionsManager.OPTION_SYSTEMWIDE_PIP, 45 public static final MenuAction SELECT_AUDIO_LANGUAGE_ACTION = [all …]
|
D | TvOptionsRowAdapter.java | 53 protected List<MenuAction> createBaseActions() { in createBaseActions() 54 List<MenuAction> actionList = new ArrayList<>(); in createBaseActions() 55 actionList.add(MenuAction.SELECT_CLOSED_CAPTION_ACTION); in createBaseActions() 56 setOptionChangedListener(MenuAction.SELECT_CLOSED_CAPTION_ACTION); in createBaseActions() 57 actionList.add(MenuAction.SELECT_DISPLAY_MODE_ACTION); in createBaseActions() 58 setOptionChangedListener(MenuAction.SELECT_DISPLAY_MODE_ACTION); in createBaseActions() 59 actionList.add(MenuAction.PIP_IN_APP_ACTION); in createBaseActions() 60 setOptionChangedListener(MenuAction.PIP_IN_APP_ACTION); in createBaseActions() 62 actionList.add(MenuAction.SELECT_AUDIO_LANGUAGE_ACTION); in createBaseActions() 63 setOptionChangedListener(MenuAction.SELECT_AUDIO_LANGUAGE_ACTION); in createBaseActions() [all …]
|
D | PipOptionsRowAdapter.java | 54 protected List<MenuAction> createActions() { in createActions() 55 List<MenuAction> actionList = new ArrayList<>(); in createActions() 56 actionList.add(MenuAction.PIP_SELECT_INPUT_ACTION); in createActions() 57 actionList.add(MenuAction.PIP_SWAP_ACTION); in createActions() 58 actionList.add(MenuAction.PIP_SOUND_ACTION); in createActions() 59 actionList.add(MenuAction.PIP_LAYOUT_ACTION); in createActions() 60 actionList.add(MenuAction.PIP_SIZE_ACTION); in createActions() 61 for (MenuAction action : actionList) { in createActions() 97 return MenuAction.PIP_LAYOUT_ACTION.setDrawableResId( in updateLayoutAction() 102 boolean oldEnabled = MenuAction.PIP_SIZE_ACTION.isEnabled(); in updateSizeAction() [all …]
|
D | OptionsRowAdapter.java | 33 public abstract class OptionsRowAdapter extends ItemListRowView.ItemListAdapter<MenuAction> { 36 private List<MenuAction> mActionList; 41 final MenuAction action = (MenuAction) view.getTag(); 83 protected abstract List<MenuAction> createActions(); in createActions() 92 protected MenuAction getAction(int position) { in getAction() 101 protected void setAction(int position, MenuAction action) { in setAction() 110 protected void addAction(int position, MenuAction action) { in addAction() 143 protected void setOptionChangedListener(final MenuAction action) { in setOptionChangedListener()
|
D | CustomizableOptionsRowAdapter.java | 41 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()
|
D | ActionCardView.java | 31 public class ActionCardView extends FrameLayout implements ItemListRowView.CardView<MenuAction> { 63 public void onBind(MenuAction action, boolean selected) { in onBind()
|
D | PartnerOptionsRowAdapter.java | 32 protected List<MenuAction> createBaseActions() { in createBaseActions()
|
/packages/apps/TV/tests/unit/src/com/android/tv/menu/ |
D | TvOptionsRowAdapterTest.java | 66 MenuAction.SELECT_AUDIO_LANGUAGE_ACTION.isEnabled()); in testUpdateAudioAction_2tracks() 79 MenuAction.SELECT_AUDIO_LANGUAGE_ACTION.isEnabled()); in testUpdateAudioAction_1track() 91 MenuAction.SELECT_AUDIO_LANGUAGE_ACTION.isEnabled()); in testUpdateAudioAction_noTracks()
|