Home
last modified time | relevance | path

Searched refs:mControlBar (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DControlBarPresenter.java70 ControlBar mControlBar; field in ControlBarPresenter.ViewHolder
82 mControlBar = (ControlBar) rootView.findViewById(R.id.control_bar); in ViewHolder()
83 if (mControlBar == null) { in ViewHolder()
86 mControlBar.setDefaultFocusToMiddle(mDefaultFocusToMiddle); in ViewHolder()
87 mControlBar.setOnChildFocusedListener(new ControlBar.OnChildFocusedListener() { in ViewHolder()
130 View focusedView = mControlBar.getFocusedChild(); in showControls()
132 && mControlBar.indexOfChild(focusedView) >= adapterSize) { in showControls()
133 mControlBar.getChildAt(adapter.size() - 1).requestFocus(); in showControls()
135 for (int i = mControlBar.getChildCount() - 1; i >= adapterSize; i--) { in showControls()
136 mControlBar.removeViewAt(i); in showControls()
[all …]
DPlaybackControlsPresenter.java300 vh.mControlBar.requestFocus(); in resetFocus()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DPlaybackTransportRowPresenterTest.java234 mViewHolder.mControlsVh.mControlBar.getChildAt(0).requestFocus(); in navigateRightInPrimary()
238 assertTrue(isDescendant(mViewHolder.mControlsVh.mControlBar.getChildAt(0), view)); in navigateRightInPrimary()
239 assertTrue(isDescendant(mViewHolder.mControlsVh.mControlBar.getChildAt(1), in navigateRightInPrimary()
248 mViewHolder.mSecondaryControlsVh.mControlBar.getChildAt(0).requestFocus(); in navigateRightInSecondary()
252 assertTrue(isDescendant(mViewHolder.mSecondaryControlsVh.mControlBar.getChildAt(0), view)); in navigateRightInSecondary()
253 assertTrue(isDescendant(mViewHolder.mSecondaryControlsVh.mControlBar.getChildAt(1), in navigateRightInSecondary()
262 mViewHolder.mControlsVh.mControlBar.getChildAt(0).requestFocus(); in navigatePrimaryDownToProgress()
266 assertTrue(isDescendant(mViewHolder.mControlsVh.mControlBar.getChildAt(0), view)); in navigatePrimaryDownToProgress()
285 assertTrue(isDescendant(mViewHolder.mControlsVh.mControlBar.getChildAt(0), view)); in navigateProgressUpToPrimary()
303 assertTrue(isDescendant(mViewHolder.mSecondaryControlsVh.mControlBar.getChildAt(0), view)); in navigateProgressDownToSecondary()
[all …]