Home
last modified time | relevance | path

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

/frameworks/support/leanback/src/main/java/androidx/leanback/media/
DPlaybackControlGlue.java471 final SparseArrayObjectAdapter primaryActionsAdapter = (SparseArrayObjectAdapter) in onKey() local
473 Action action = mControlsRow.getActionForKeyCode(primaryActionsAdapter, keyCode); in onKey()
476 if (action == primaryActionsAdapter.lookup(ACTION_PLAY_PAUSE) in onKey()
477 || action == primaryActionsAdapter.lookup(ACTION_REWIND) in onKey()
478 || action == primaryActionsAdapter.lookup(ACTION_FAST_FORWARD) in onKey()
479 || action == primaryActionsAdapter.lookup(ACTION_SKIP_TO_PREVIOUS) in onKey()
480 || action == primaryActionsAdapter.lookup(ACTION_SKIP_TO_NEXT)) { in onKey()
629 final SparseArrayObjectAdapter primaryActionsAdapter = (SparseArrayObjectAdapter) in updateControlButtons() local
634 primaryActionsAdapter.set(ACTION_SKIP_TO_PREVIOUS, mSkipPreviousAction); in updateControlButtons()
636 primaryActionsAdapter.clear(ACTION_SKIP_TO_PREVIOUS); in updateControlButtons()
[all …]
DPlaybackBannerControlGlue.java279 protected void onCreatePrimaryActions(ArrayObjectAdapter primaryActionsAdapter) { in onCreatePrimaryActions() argument
282 primaryActionsAdapter.add(mSkipPreviousAction = in onCreatePrimaryActions()
286 primaryActionsAdapter.remove(mSkipPreviousAction); in onCreatePrimaryActions()
290 primaryActionsAdapter.add(mRewindAction = in onCreatePrimaryActions()
293 primaryActionsAdapter.remove(mRewindAction); in onCreatePrimaryActions()
298 primaryActionsAdapter.add(mPlayPauseAction = in onCreatePrimaryActions()
301 primaryActionsAdapter.remove(mPlayPauseAction); in onCreatePrimaryActions()
307 primaryActionsAdapter.add(mFastForwardAction = in onCreatePrimaryActions()
311 primaryActionsAdapter.remove(mFastForwardAction); in onCreatePrimaryActions()
315 primaryActionsAdapter.add(mSkipNextAction = in onCreatePrimaryActions()
[all …]
DPlaybackTransportControlGlue.java133 protected void onCreatePrimaryActions(ArrayObjectAdapter primaryActionsAdapter) { in onCreatePrimaryActions() argument
134 primaryActionsAdapter.add(mPlayPauseAction = in onCreatePrimaryActions()
209 final ObjectAdapter primaryActionsAdapter = mControlsRow.getPrimaryActionsAdapter(); in onKey() local
210 Action action = mControlsRow.getActionForKeyCode(primaryActionsAdapter, keyCode); in onKey()
DPlaybackBaseControlGlue.java420 protected void onCreatePrimaryActions(ArrayObjectAdapter primaryActionsAdapter) { in onCreatePrimaryActions() argument
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DPlaybackFragmentTest.java99 SparseArrayObjectAdapter primaryActionsAdapter = (SparseArrayObjectAdapter) in testSelectedListener() local
103 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_PLAY_PAUSE); in testSelectedListener()
106 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_REWIND); in testSelectedListener()
109 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_CUSTOM_LEFT_FIRST); in testSelectedListener()
166 SparseArrayObjectAdapter primaryActionsAdapter = (SparseArrayObjectAdapter) in testClickedListener() local
170 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_PLAY_PAUSE); in testClickedListener()
173 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_REWIND); in testClickedListener()
176 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_CUSTOM_LEFT_FIRST); in testClickedListener()
DPlaybackSupportFragmentTest.java96 SparseArrayObjectAdapter primaryActionsAdapter = (SparseArrayObjectAdapter) in testSelectedListener() local
100 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_PLAY_PAUSE); in testSelectedListener()
103 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_REWIND); in testSelectedListener()
106 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_CUSTOM_LEFT_FIRST); in testSelectedListener()
163 SparseArrayObjectAdapter primaryActionsAdapter = (SparseArrayObjectAdapter) in testClickedListener() local
167 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_PLAY_PAUSE); in testClickedListener()
170 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_REWIND); in testClickedListener()
173 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_CUSTOM_LEFT_FIRST); in testClickedListener()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DPlaybackTransportRowPresenterTest.java74 primaryActionsAdapter) { in setUp()
75 super.onCreatePrimaryActions(primaryActionsAdapter); in setUp()
76 primaryActionsAdapter.add( in setUp()