Searched refs:firstItem (Results 1 – 8 of 8) sorted by relevance
128 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 …]
151 WorkspaceItemInfo firstItem = null; in getDescriptionForDropOver() local153 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()
122 int firstItem = mLayoutManager.findFirstCompletelyVisibleItemPosition(); in getFirstVisibleItemPosition() local123 if (firstItem == RecyclerView.NO_POSITION) { in getFirstVisibleItemPosition()124 firstItem = mLayoutManager.findFirstVisibleItemPosition(); in getFirstVisibleItemPosition()126 return firstItem; in getFirstVisibleItemPosition()
156 int firstItem = layoutManager.findFirstCompletelyVisibleItemPosition(); in getFirstVisibleItemPosition() local157 if (firstItem == RecyclerView.NO_POSITION) { in getFirstVisibleItemPosition()158 firstItem = layoutManager.findFirstVisibleItemPosition(); in getFirstVisibleItemPosition()160 return firstItem; in getFirstVisibleItemPosition()
106 ItemInfo firstItem = putIntoFolder.get(0); in migrateToFolder() local108 mLauncher.getModelWriter().addItemToDatabase(folderInfo, firstItem.container, in migrateToFolder()109 firstItem.screenId, firstItem.cellX, firstItem.cellY); in migrateToFolder()
268 View firstItem = mList.getLayoutManager().findViewByPosition(0); in testRestoreFocusInRoot_recyclerViewItemRemoved() local271 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()
288 int firstItem = mLayoutManager.findFirstVisibleItemPosition(); in getScrollToPositionWhenRestricted() local289 if (firstItem >= getItemCount() - 1) { in getScrollToPositionWhenRestricted()
818 View firstItem = mContent.getFirstItem(); in getAccessibilityInitialFocusView() local819 return firstItem != null ? firstItem : super.getAccessibilityInitialFocusView(); in getAccessibilityInitialFocusView()