• Home
  • Raw
  • Download

Lines Matching refs:mScope

67     private final ContentScope mScope = new ContentScope();  field in FocusManager
138 if (hasFocus && mScope.isValid() && v.getParent() == mScope.view) { in onFocusChange()
139 mScope.lastFocusPosition = mScope.view.getChildAdapterPosition(v); in onFocusChange()
145 if (!mScope.isValid() || mScope.adapter.getItemCount() == 0) { in focusDirectoryList()
163 final int focusPos = (mScope.lastFocusPosition != RecyclerView.NO_POSITION) in focusDirectoryList()
164 ? mScope.lastFocusPosition in focusDirectoryList()
165 : mScope.layout.findFirstVisibleItemPosition(); in focusDirectoryList()
180 if (mScope.pendingFocusId == null) { in onLayoutCompleted()
184 int pos = mScope.adapter.getStableIds().indexOf(mScope.pendingFocusId); in onLayoutCompleted()
188 mScope.pendingFocusId = null; in onLayoutCompleted()
193 if (mScope.isValid()) { in clearFocus()
194 mScope.view.clearFocus(); in clearFocus()
205 if (!mScope.isValid()) { in focusDocument()
211 int pos = mScope.adapter.getAdapterPosition(modelId); in focusDocument()
212 if (pos != -1 && mScope.view.findViewHolderForAdapterPosition(pos) != null) { in focusDocument()
215 mScope.pendingFocusId = modelId; in focusDocument()
226 return mScope.lastFocusPosition; in getFocusedPosition()
231 return mScope.lastFocusPosition != RecyclerView.NO_POSITION; in hasFocusedItem()
236 if (mScope.lastFocusPosition != RecyclerView.NO_POSITION) { in getFocusModelId()
237 DocumentHolder holder = (DocumentHolder) mScope.view in getFocusModelId()
238 .findViewHolderForAdapterPosition(mScope.lastFocusPosition); in getFocusModelId()
257 return mScope.adapter.getItemCount() - 1; in findTargetPosition()
275 int currentPosition = mScope.view.getChildAdapterPosition(view); in findTargetPosition()
286 if (currentPosition < mScope.adapter.getItemCount() - 1) { in findTargetPosition()
301 mScope.view.setFocusable(false); in findTargetPosition()
303 mScope.view.setFocusable(true); in findTargetPosition()
308 if (targetView.getParent() == mScope.view) { in findTargetPosition()
309 return mScope.view.getChildAdapterPosition(targetView); in findTargetPosition()
332 int first = mScope.layout.findFirstVisibleItemPosition(); in findPagedTargetPosition()
333 int last = mScope.layout.findLastVisibleItemPosition(); in findPagedTargetPosition()
334 int current = mScope.view.getChildAdapterPosition(view); in findPagedTargetPosition()
355 int max = mScope.adapter.getItemCount() - 1; in findPagedTargetPosition()
381 if (mScope.pendingFocusId != null) { in focusItem()
382 Log.v(TAG, "clearing pending focus id: " + mScope.pendingFocusId); in focusItem()
383 mScope.pendingFocusId = null; in focusItem()
386 final RecyclerView recyclerView = mScope.view; in focusItem()
424 return mScope.layout.getSpanCount() > 1; in inGridMode()
524 mScope.model.addUpdateListener(mModelListener); in search()
569 mScope.model.removeUpdateListener(mModelListener); in endSearch()
585 int itemCount = mScope.adapter.getItemCount(); in buildIndex()
588 String modelId = mScope.adapter.getStableId(i); in buildIndex()
589 Cursor cursor = mScope.model.getItem(modelId); in buildIndex()
670 mScope.view = view; in reset()
671 mScope.adapter = (DocumentsAdapter) view.getAdapter(); in reset()
672 mScope.layout = (GridLayoutManager) view.getLayoutManager(); in reset()
673 mScope.model = model; in reset()
675 mScope.lastFocusPosition = RecyclerView.NO_POSITION; in reset()
676 mScope.pendingFocusId = null; in reset()