Home
last modified time | relevance | path

Searched refs:firstItem (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/utils/
DViewUtilsTest.java128 View firstItem = mList5.getLayoutManager().findViewByPosition(0); in testGetAncestorScrollableContainer()
129 assertThat(ViewUtils.getAncestorScrollableContainer(firstItem)) in testGetAncestorScrollableContainer()
183 View firstItem = mList5.getLayoutManager().findViewByPosition(0); in testFindImplicitDefaultFocusView_inRoot()
185 assertThat(implicitDefaultFocus).isEqualTo(firstItem); in testFindImplicitDefaultFocusView_inRoot()
197 View firstItem = mList5.getLayoutManager().findViewByPosition(0); in testFindImplicitDefaultFocusView_inFocusArea()
200 assertThat(implicitDefaultFocus).isEqualTo(firstItem); in testFindImplicitDefaultFocusView_inFocusArea()
274 View firstItem = mList5.getLayoutManager().findViewByPosition(0); in testIsImplicitDefaultFocusView_firstItem()
275 assertThat(ViewUtils.isImplicitDefaultFocusView(firstItem)).isTrue(); in testIsImplicitDefaultFocusView_firstItem()
306 View firstItem = mList5.getLayoutManager().findViewByPosition(0); in testIsImplicitDefaultFocusView_skipInvisibleAncestor()
307 assertThat(ViewUtils.isImplicitDefaultFocusView(firstItem)).isFalse(); in testIsImplicitDefaultFocusView_skipInvisibleAncestor()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DWorkspaceAccessibilityHelper.java151 WorkspaceItemInfo firstItem = null; in getDescriptionForDropOver() local
153 if (firstItem == null || firstItem.rank > shortcut.rank) { in getDescriptionForDropOver()
154 firstItem = shortcut; in getDescriptionForDropOver()
158 if (firstItem != null) { in getDescriptionForDropOver()
159 return context.getString(R.string.add_to_folder_with_app, firstItem.title); in getDescriptionForDropOver()
/packages/apps/Car/Media/src/com/android/car/media/browse/
DLimitedBrowseAdapter.java122 int firstItem = mLayoutManager.findFirstCompletelyVisibleItemPosition(); in getFirstVisibleItemPosition() local
123 if (firstItem == RecyclerView.NO_POSITION) { in getFirstVisibleItemPosition()
124 firstItem = mLayoutManager.findFirstVisibleItemPosition(); in getFirstVisibleItemPosition()
126 return firstItem; in getFirstVisibleItemPosition()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerUtils.java156 int firstItem = layoutManager.findFirstCompletelyVisibleItemPosition(); in getFirstVisibleItemPosition() local
157 if (firstItem == RecyclerView.NO_POSITION) { in getFirstVisibleItemPosition()
158 firstItem = layoutManager.findFirstVisibleItemPosition(); in getFirstVisibleItemPosition()
160 return firstItem; in getFirstVisibleItemPosition()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatEduController.java106 ItemInfo firstItem = putIntoFolder.get(0); in migrateToFolder() local
108 mLauncher.getModelWriter().addItemToDatabase(folderInfo, firstItem.container, in migrateToFolder()
109 firstItem.screenId, firstItem.cellX, firstItem.cellY); in migrateToFolder()
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/
DFocusParkingViewTest.java268 View firstItem = mList.getLayoutManager().findViewByPosition(0); in testRestoreFocusInRoot_recyclerViewItemRemoved() local
271 firstItem.requestFocus(); in testRestoreFocusInRoot_recyclerViewItemRemoved()
275 assertThat(firstItem.isFocused()).isTrue(); in testRestoreFocusInRoot_recyclerViewItemRemoved()
277 ViewGroup parent = (ViewGroup) firstItem.getParent(); in testRestoreFocusInRoot_recyclerViewItemRemoved()
280 parent.removeView(firstItem); in testRestoreFocusInRoot_recyclerViewItemRemoved()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java288 int firstItem = mLayoutManager.findFirstVisibleItemPosition(); in getScrollToPositionWhenRestricted() local
289 if (firstItem >= getItemCount() - 1) { in getScrollToPositionWhenRestricted()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java818 View firstItem = mContent.getFirstItem(); in getAccessibilityInitialFocusView() local
819 return firstItem != null ? firstItem : super.getAccessibilityInitialFocusView(); in getAccessibilityInitialFocusView()