Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/
DCarUiSnapHelperTest.java47 private LinearLayoutManager mLayoutManager; field in CarUiSnapHelperTest
68 when(mRecyclerView.getLayoutManager()).thenReturn(mLayoutManager); in calculateDistanceToFinalSnap_shouldReturnTopMarginDifference()
69 when(mLayoutManager.getItemCount()).thenReturn(1); in calculateDistanceToFinalSnap_shouldReturnTopMarginDifference()
70 when(mLayoutManager.canScrollVertically()).thenReturn(true); in calculateDistanceToFinalSnap_shouldReturnTopMarginDifference()
71 when(mLayoutManager.getChildCount()).thenReturn(1); in calculateDistanceToFinalSnap_shouldReturnTopMarginDifference()
73 when(mLayoutManager.getDecoratedTop(any())).thenReturn(10); in calculateDistanceToFinalSnap_shouldReturnTopMarginDifference()
76 int[] distance = mCarUiSnapHelper.calculateDistanceToFinalSnap(mLayoutManager, mChild); in calculateDistanceToFinalSnap_shouldReturnTopMarginDifference()
83 when(mRecyclerView.getLayoutManager()).thenReturn(mLayoutManager); in calculateScrollDistance_shouldScrollHeightOfView()
84 when(mLayoutManager.getItemCount()).thenReturn(1); in calculateScrollDistance_shouldScrollHeightOfView()
85 when(mLayoutManager.canScrollVertically()).thenReturn(true); in calculateScrollDistance_shouldScrollHeightOfView()
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DMenuView.java44 private final MenuLayoutManager mLayoutManager; field in MenuView
78 mLayoutManager = new MenuLayoutManager(context, this); in MenuView()
90 mLayoutManager.setMenuRowsAndViews(mMenuRows, mMenuRowViews); in setMenuRows()
102 mLayoutManager.layout(left, top, right, bottom); in onLayout()
149 mLayoutManager.onMenuShow(); in onShow()
157 mLayoutManager.onMenuHide(); in onHide()
172 mLayoutManager.onMenuRowUpdated(); in update()
184 mLayoutManager.onMenuRowUpdated(); in update()
193 int selectedPosition = mLayoutManager.getSelectedPosition(); in onRequestFocusInDescendants()
212 mLayoutManager.setSelectedPosition(position); in setSelectedPosition()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationView.java32 private LinearLayoutManager mLayoutManager; field in CarNotificationView
50 mLayoutManager = new LinearLayoutManager(mContext); in onFinishInflate()
51 listView.setLayoutManager(mLayoutManager); in onFinishInflate()
177 int firstVisible = mLayoutManager.findFirstVisibleItemPosition(); in setVisibleNotificationsAsSeen()
178 int lastVisible = mLayoutManager.findLastVisibleItemPosition(); in setVisibleNotificationsAsSeen()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestRecyclerView.java36 private RecyclerView.LayoutManager mLayoutManager; field in TestRecyclerView
71 mLayoutManager = manager; in setLayoutManager()
76 return mLayoutManager; in getLayoutManager()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCardsFragment.java43 private GridLayoutManager mLayoutManager; field in ContextualCardsFragment
72 mLayoutManager = new GridLayoutManager(getActivity(), SPAN_COUNT, in onCreateView()
74 mCardsContainer.setLayoutManager(mLayoutManager); in onCreateView()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardsFragment.java42 private GridLayoutManager mLayoutManager; field in ContextualCardsFragment
72 mLayoutManager = new GridLayoutManager(getActivity(), SPAN_COUNT, in onCreateView()
74 mCardsContainer.setLayoutManager(mLayoutManager); in onCreateView()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DHorizontalBreadcrumb.java49 private LinearLayoutManager mLayoutManager; field in HorizontalBreadcrumb
71 mLayoutManager = new LinearLayoutManager( in setup()
83 setLayoutManager(mLayoutManager); in setup()
108 mLayoutManager.scrollToPosition(mAdapter.getItemCount() - 1); in show()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGrid.java344 final LayoutManager mLayoutManager = getLayoutManager(); in getFirstVisibleChildIndex() local
345 int top = mLayoutManager.getPaddingTop(); in getFirstVisibleChildIndex()
349 int childTop = mLayoutManager.getDecoratedTop(childView); in getFirstVisibleChildIndex()
350 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()
DAlarmClockFragment.kt79 private lateinit var mLayoutManager: LinearLayoutManager variable in com.android.deskclock.AlarmClockFragment
99 mLayoutManager = object : LinearLayoutManager(context) { in onCreateView()
107 mRecyclerView.setLayoutManager(mLayoutManager) in onCreateView()
215 mLayoutManager.scrollToPositionWithOffset(position, 0) in smoothScrollTo()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportInfoActivity.java72 private RecyclerView.LayoutManager mLayoutManager; field in BugReportInfoActivity
92 mLayoutManager = new LinearLayoutManager(this); in onCreate()
93 mRecyclerView.setLayoutManager(mLayoutManager); in onCreate()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java122 private LinearLayoutManager mLayoutManager; field in SettingsPreferenceFragment
348 mLayoutManager = new LinearLayoutManager(getContext()); in onCreateLayoutManager()
349 return mLayoutManager; in onCreateLayoutManager()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsPreferenceFragment.java122 private LinearLayoutManager mLayoutManager; field in SettingsPreferenceFragment
336 mLayoutManager = new LinearLayoutManager(getContext()); in onCreateLayoutManager()
337 return mLayoutManager; in onCreateLayoutManager()
/packages/apps/PermissionController/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()