Home
last modified time | relevance | path

Searched refs:mLayoutManager (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/
DPagedListView.java54 private final CarLayoutManager mLayoutManager; field in PagedListView
139 mLayoutManager = new CarLayoutManager(context); in PagedListView()
140 mLayoutManager.setOffsetRows(offsetRows); in PagedListView()
141 mLayoutManager.setItemsChangedListener(mItemsChangedListener); in PagedListView()
142 mRecyclerView.setLayoutManager(mLayoutManager); in PagedListView()
145 mRecyclerView.setItemAnimator(new CarItemAnimator(mLayoutManager)); in PagedListView()
190 mLayoutManager.setRowOffsetMode(CarLayoutManager.ROW_OFFSET_MODE_PAGE); in onInterceptTouchEvent()
200 mLayoutManager.setRowOffsetMode(CarLayoutManager.ROW_OFFSET_MODE_INDIVIDUAL); in requestChildFocus()
207 return mLayoutManager.getPosition(v); in positionOf()
216 mLayoutManager.scrollToPosition(position); in scrollToPosition()
[all …]
DCarItemAnimator.java27 private final CarLayoutManager mLayoutManager; field in CarItemAnimator
30 mLayoutManager = layoutManager; in CarItemAnimator()
65 mLayoutManager.offsetRows();
/packages/apps/TV/src/com/android/tv/menu/
DMenuView.java48 private final MenuLayoutManager mLayoutManager; field in MenuView
77 mLayoutManager = new MenuLayoutManager(context, this); in MenuView()
89 mLayoutManager.setMenuRowsAndViews(mMenuRows, mMenuRowViews); in setMenuRows()
101 mLayoutManager.layout(left, top, right, bottom); in onLayout()
145 mLayoutManager.onMenuShow(); in onShow()
153 mLayoutManager.onMenuHide(); in onHide()
168 mLayoutManager.onMenuRowUpdated(); in update()
180 mLayoutManager.onMenuRowUpdated(); in update()
189 int selectedPosition = mLayoutManager.getSelectedPosition(); in onRequestFocusInDescendants()
208 mLayoutManager.setSelectedPosition(position); in setSelectedPosition()
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardSummary.java73 private LinearLayoutManager mLayoutManager; field in DashboardSummary
178 if (mLayoutManager == null) return; in onSaveInstanceState()
179 outState.putInt(EXTRA_SCROLL_POSITION, mLayoutManager.findFirstVisibleItemPosition()); in onSaveInstanceState()
189 mLayoutManager = new LinearLayoutManager(getContext()); in onViewCreated()
190 mLayoutManager.setOrientation(LinearLayoutManager.VERTICAL); in onViewCreated()
193 mLayoutManager.scrollToPosition(scrollPosition); in onViewCreated()
195 mDashboard.setLayoutManager(mLayoutManager); in onViewCreated()
249 mLayoutManager.findFirstCompletelyVisibleItemPosition() <= 1; in onConditionsChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardSummaryTest.java60 private LinearLayoutManager mLayoutManager; field in DashboardSummaryTest
76 ReflectionHelpers.setField(mSummary, "mLayoutManager", mLayoutManager); in setUp()
92 when(mLayoutManager.findFirstCompletelyVisibleItemPosition()).thenReturn(1); in onConditionChanged_PositionAtTop_ScrollToTop()
100 when(mLayoutManager.findFirstCompletelyVisibleItemPosition()).thenReturn(2); in onConditionChanged_PositionNotTop_RemainPosition()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DHorizontalBreadcrumb.java48 private LinearLayoutManager mLayoutManager; field in HorizontalBreadcrumb
70 mLayoutManager = new LinearLayoutManager( in setup()
82 setLayoutManager(mLayoutManager); in setup()
107 mLayoutManager.scrollToPosition(mAdapter.getItemCount() - 1); in show()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGrid.java335 final LayoutManager mLayoutManager = getLayoutManager(); in getFirstVisibleChildIndex() local
336 int top = mLayoutManager.getPaddingTop(); in getFirstVisibleChildIndex()
340 int childTop = mLayoutManager.getDecoratedTop(childView); in getFirstVisibleChildIndex()
341 int childBottom = mLayoutManager.getDecoratedBottom(childView); in getFirstVisibleChildIndex()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClockFragment.java93 private LinearLayoutManager mLayoutManager; field in AlarmClockFragment
118 mLayoutManager = new LinearLayoutManager(context) { in onCreateView()
128 mRecyclerView.setLayoutManager(mLayoutManager); in onCreateView()
248 mLayoutManager.scrollToPositionWithOffset(position, 0); in smoothScrollTo()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogFragment.java111 private LinearLayoutManager mLayoutManager; field in CallLogFragment
267 if (mLayoutManager.findFirstVisibleItemPosition() > 5) { in onCallsFetched()
308 mLayoutManager = new LinearLayoutManager(getActivity()); in setupView()
309 mRecyclerView.setLayoutManager(mLayoutManager); in setupView()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java135 private LinearLayoutManager mLayoutManager; field in SettingsPreferenceFragment
371 mLayoutManager = new LinearLayoutManager(getContext()); in onCreateLayoutManager()
372 return mLayoutManager; in onCreateLayoutManager()
419 mLayoutManager.scrollToPosition(position); in highlightPreference()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java68 private final LinearLayoutManager mLayoutManager; field in AllAppsContainerView
97 mLayoutManager = mAdapter.getLayoutManager(); in AllAppsContainerView()
213 mAppsRecyclerView.setLayoutManager(mLayoutManager); in onFinishInflate()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DWearableListView.java1305 private final LayoutManager mLayoutManager; field in WearableListView.SmoothScroller
1309 mLayoutManager = manager; in SmoothScroller()
1332 if (targetPosition < mLayoutManager.getFirstPosition()) { in computeScrollVectorForPosition()