Lines Matching refs:view
37 import android.view.KeyEvent;
38 import android.view.View;
138 if (hasFocus && mScope.isValid() && v.getParent() == mScope.view) { in onFocusChange()
139 mScope.lastFocusPosition = mScope.view.getChildAdapterPosition(v); in onFocusChange()
194 mScope.view.clearFocus(); in clearFocus()
212 if (pos != -1 && mScope.view.findViewHolderForAdapterPosition(pos) != null) { in focusDocument()
237 DocumentHolder holder = (DocumentHolder) mScope.view in getFocusModelId()
252 private int findTargetPosition(View view, int keyCode, KeyEvent event) { in findTargetPosition() argument
260 return findPagedTargetPosition(view, keyCode, event); in findTargetPosition()
275 int currentPosition = mScope.view.getChildAdapterPosition(view); in findTargetPosition()
301 mScope.view.setFocusable(false); in findTargetPosition()
302 View targetView = view.focusSearch(searchDir); 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()
331 private int findPagedTargetPosition(View view, int keyCode, KeyEvent event) { in findPagedTargetPosition() argument
334 int current = mScope.view.getChildAdapterPosition(view); in findPagedTargetPosition()
386 final RecyclerView recyclerView = mScope.view; in focusItem()
399 public void onScrollStateChanged(RecyclerView view, int newState) { in focusItem()
402 RecyclerView.ViewHolder vh = view in focusItem()
414 view.removeOnScrollListener(this); in focusItem()
428 public void onFocus(View view); in onFocus() argument
549 public void onFocus(View view) { in search()
550 mHighlighter.applyHighlight(view); in search()
636 private void applyHighlight(View view) { in applyHighlight() argument
637 TextView titleView = (TextView) view.findViewById(android.R.id.title); in applyHighlight()
667 public FocusManager reset(RecyclerView view, Model model) { in reset() argument
668 assert (view != null); in reset()
670 mScope.view = view; in reset()
671 mScope.adapter = (DocumentsAdapter) view.getAdapter(); in reset()
672 mScope.layout = (GridLayoutManager) view.getLayoutManager(); in reset()
682 private @Nullable RecyclerView view; field in FocusManager.ContentScope
691 return (view != null && model != null); in isValid()