/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/ |
D | CarUiSnapHelperTest.java | 47 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/ |
D | MenuView.java | 44 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/ |
D | CarNotificationView.java | 32 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/ |
D | TestRecyclerView.java | 36 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/ |
D | ContextualCardsFragment.java | 43 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/ |
D | ContextualCardsFragment.java | 42 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/ |
D | HorizontalBreadcrumb.java | 49 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/ |
D | ProgramGrid.java | 344 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/ |
D | AlarmClockFragment.java | 93 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()
|
D | AlarmClockFragment.kt | 79 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/ |
D | BugReportInfoActivity.java | 72 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/ |
D | SettingsPreferenceFragment.java | 122 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/ |
D | SettingsPreferenceFragment.java | 122 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/ |
D | WearableListView.java | 1305 private final LayoutManager mLayoutManager; field in WearableListView.SmoothScroller 1309 mLayoutManager = manager; in SmoothScroller() 1332 if (targetPosition < mLayoutManager.getFirstPosition()) { in computeScrollVectorForPosition()
|