Home
last modified time | relevance | path

Searched refs:mScrollBar (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/
DDefaultScrollBarTest.java51 private ScrollBar mScrollBar; field in DefaultScrollBarTest
66 mScrollBar = new DefaultScrollBar(); in setUp()
78 mScrollBar.initialize(mRecyclerView, scrollView); in initialize_shouldInitializeScrollListener()
95 mScrollBar.initialize(mRecyclerView, scrollView); in initialize_shouldSetMaxRecyclerViews()
109 mScrollBar.initialize(mRecyclerView, scrollView); in initialize_shouldNotHaveFlingListener()
123 mScrollBar.initialize(mRecyclerView, scrollView); in setPadding_shouldSetStartAndEndPadding()
124 mScrollBar.setPadding(10, 20); in setPadding_shouldSetStartAndEndPadding()
126 DefaultScrollBar defaultScrollBar = (DefaultScrollBar) mScrollBar; in setPadding_shouldSetStartAndEndPadding()
134 assertThrows(NullPointerException.class, () -> mScrollBar.setPadding(10, 20)); in setPadding_shouldThrowErrorWithoutInitialization()
139 assertThrows(NullPointerException.class, () -> mScrollBar.requestLayout()); in requestLayout_shouldThrowErrorWithoutInitialization()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiRecyclerView.java71 private ScrollBar mScrollBar; field in CarUiRecyclerView
328 mScrollBar = (ScrollBar) cls.getDeclaredConstructor().newInstance(); in createScrollBarFromConfig()
333 mScrollBar.initialize(this, scrollView); in createScrollBarFromConfig()
335 mScrollBar.setPadding((int) mScrollBarPaddingStart, (int) mScrollBarPaddingEnd); in createScrollBarFromConfig()
353 if (mScrollBar != null) { in setScrollBarPadding()
354 mScrollBar.setPadding(paddingStart, paddingEnd); in setScrollBarPadding()