Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/guide/
DProgramGrid.java48 public void onGlobalFocusChanged(View oldFocus, View newFocus) {
49 if (newFocus != mNextFocusByUpDown) {
52 clearUpDownFocusState(newFocus);
55 if (newFocus != ProgramGrid.this && contains(newFocus)) {
56 mLastFocusedView = newFocus;
104 void onRequestChildFocus(View oldFocus, View newFocus); in onRequestChildFocus() argument
DProgramTableAdapter.java284 public void onGlobalFocusChanged(View oldFocus, View newFocus) {
286 isChild(newFocus) ? newFocus : null);
432 public void onChildFocus(View oldFocus, View newFocus) {
433 if (newFocus == null) {
438 if (newFocus == mChannelHeaderView) {
440 } else if (newFocus == mDetailView) {
443 mSelectedEntry = ((ProgramItemView) newFocus).getTableEntry();
458 int direction = oldFocus.getLeft() < newFocus.getLeft() ? -1 : 1;
DProgramGuide.java415 public void onRequestChildFocus(View oldFocus, View newFocus) { in onRequestChildFocus() argument
416 if (oldFocus != null && newFocus != null) { in onRequestChildFocus()
418 if (oldFocus.getTop() < newFocus.getTop()) { in onRequestChildFocus()
424 } else if (oldFocus.getTop() > newFocus.getTop()) { in onRequestChildFocus()
870 public void onGlobalFocusChanged(View oldFocus, View newFocus) {
871 if (DEBUG) Log.d(TAG, "onGlobalFocusChanged " + oldFocus + " -> " + newFocus);
876 int toLocation = getLocation(newFocus);
DProgramRow.java51 void onChildFocus(View oldFocus, View newFocus); in onChildFocus() argument
/packages/experimental/FilledApp/src/foo/bar/filled/
DCustomLinearLayout.java25 getViewTreeObserver().addOnGlobalFocusChangeListener((oldFocus, newFocus) -> { in CustomLinearLayout()
32 if (newFocus != null) { in CustomLinearLayout()
34 newFocus.getBoundsOnScreen(bounds); in CustomLinearLayout()
36 newFocus.getAccessibilityViewId(), bounds); in CustomLinearLayout()
/packages/apps/Launcher2/src/com/android/launcher2/
DHandleView.java55 View newFocus = super.focusSearch(direction); in focusSearch() local
56 if (newFocus == null && !mLauncher.isAllAppsVisible()) { in focusSearch()
62 return newFocus; in focusSearch()
/packages/apps/TV/src/com/android/tv/menu/
DMenuView.java65 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in MenuView()
66 MenuRowView newParent = getParentMenuRowView(newFocus); in MenuView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java1665 private boolean requestNextFocus(int direction, View focused, View newFocus) {
1668 offsetRectIntoDescendantCoords(newFocus, mTempRect);
1669 return newFocus.requestFocus(direction, mTempRect);