Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/grid/
DTaskViewFocusFrame.java95 public void moveGridTaskViewFocus(View newFocus) { in moveGridTaskViewFocus() argument
99 if (newFocus instanceof GridTaskView) { in moveGridTaskViewFocus()
102 newFocus.getLocationInWindow(location); in moveGridTaskViewFocus()
115 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in onGlobalFocusChanged() argument
119 if (newFocus == null) { in onGlobalFocusChanged()
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChange.java40 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in onGlobalFocusChanged() argument
42 mNewFocus = newFocus; in onGlobalFocusChanged()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayContent.java3014 void scheduleToastWindowsTimeoutIfNeededLocked(WindowState oldFocus, WindowState newFocus) { in scheduleToastWindowsTimeoutIfNeededLocked() argument
3015 if (oldFocus == null || (newFocus != null && newFocus.mOwnerUid == oldFocus.mOwnerUid)) { in scheduleToastWindowsTimeoutIfNeededLocked()
3063 WindowState newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId); in updateFocusedWindowLocked() local
3064 if (mCurrentFocus == newFocus) { in updateFocusedWindowLocked()
3083 newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId); in updateFocusedWindowLocked()
3085 if (mCurrentFocus != newFocus) { in updateFocusedWindowLocked()
3090 + mCurrentFocus + " to " + newFocus + " displayId=" + getDisplayId() in updateFocusedWindowLocked()
3093 mCurrentFocus = newFocus; in updateFocusedWindowLocked()
3094 mLosingFocus.remove(newFocus); in updateFocusedWindowLocked()
3096 if (newFocus != null) { in updateFocusedWindowLocked()
[all …]
DActivityDisplay.java1227 final AppWindowToken newFocus; in setFocusedApp() local
1232 newFocus = null; in setFocusedApp()
1234 newFocus = mService.mWindowManager.mRoot.getAppWindowToken(token); in setFocusedApp()
1235 if (newFocus == null) { in setFocusedApp()
1239 if (DEBUG_FOCUS_LIGHT) Slog.v(TAG_WM, "Set focused app to: " + newFocus in setFocusedApp()
1243 final boolean changed = mDisplayContent.setFocusedApp(newFocus); in setFocusedApp()
DRootWindowContainer.java174 final WindowState newFocus = dc.mCurrentFocus; in updateFocusedWindowLocked() local
175 if (newFocus != null) { in updateFocusedWindowLocked()
176 final int pidOfNewFocus = newFocus.mSession.mPid; in updateFocusedWindowLocked()
178 mTopFocusedAppByProcess.put(pidOfNewFocus, newFocus.mAppToken); in updateFocusedWindowLocked()
DWindowManagerService.java4596 WindowState newFocus; in handleMessage() local
4610 newFocus = displayContent.mCurrentFocus; in handleMessage()
4612 if (lastFocus == newFocus) { in handleMessage()
4617 displayContent.mLastFocus = newFocus; in handleMessage()
4619 " to " + newFocus + " displayId=" + displayContent.getDisplayId()); in handleMessage()
4620 if (newFocus != null && lastFocus != null && !newFocus.isDisplayedLw()) { in handleMessage()
4633 if (newFocus != null) { in handleMessage()
4634 if (DEBUG_FOCUS_LIGHT) Slog.i(TAG_WM, "Gaining focus: " + newFocus); in handleMessage()
4635 newFocus.reportFocusChangedSerialized(true, mInTouchMode); in handleMessage()
DDisplayPolicy.java3041 public int focusChangedLw(WindowState lastFocus, WindowState newFocus) { in focusChangedLw() argument
3042 mFocusedWindow = newFocus; in focusChangedLw()
3045 mService.mPolicy.onDefaultDisplayFocusChangedLw(newFocus); in focusChangedLw()
/frameworks/base/core/java/android/widget/
DListView.java3106 View newFocus; in arrowScrollFocused() local
3109 newFocus = FocusFinder.getInstance().findNextFocus(this, oldFocus, direction); in arrowScrollFocused()
3131 newFocus = FocusFinder.getInstance().findNextFocusFromRect(this, mTempRect, direction); in arrowScrollFocused()
3134 if (newFocus != null) { in arrowScrollFocused()
3135 final int positionOfNewFocus = positionOfNewFocus(newFocus); in arrowScrollFocused()
3148 int focusScroll = amountToScrollToNewFocus(direction, newFocus, positionOfNewFocus); in arrowScrollFocused()
3153 newFocus.requestFocus(direction); in arrowScrollFocused()
3156 } else if (distanceToView(newFocus) < maxScrollAmount){ in arrowScrollFocused()
3161 newFocus.requestFocus(direction); in arrowScrollFocused()
3173 private int positionOfNewFocus(View newFocus) {
[all …]
/frameworks/base/core/java/android/view/
DViewTreeObserver.java123 public void onGlobalFocusChanged(View oldFocus, View newFocus); in onGlobalFocusChanged() argument
1032 final void dispatchOnGlobalFocusChange(View oldFocus, View newFocus) { in dispatchOnGlobalFocusChange() argument
1040 listener.onGlobalFocusChanged(oldFocus, newFocus); in dispatchOnGlobalFocusChange()
DViewGroup.java1380 final View newFocus = focusSearch(FOCUS_FORWARD); in setTouchscreenBlocksFocus() local
1381 if (newFocus != null) { in setTouchscreenBlocksFocus()
1382 newFocus.requestFocus(); in setTouchscreenBlocksFocus()
DView.java15666 final int newFocus; in setFlags() local
15668 newFocus = FOCUSABLE; in setFlags()
15670 newFocus = NOT_FOCUSABLE; in setFlags()
15672 mViewFlags = (mViewFlags & ~FOCUSABLE) | newFocus; in setFlags()
15673 focusableChangedByAuto = (old & FOCUSABLE) ^ (newFocus & FOCUSABLE); in setFlags()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java1496 default void onDefaultDisplayFocusChangedLw(WindowState newFocus) {} in onDefaultDisplayFocusChangedLw() argument
DPhoneWindowManager.java3250 public void onDefaultDisplayFocusChangedLw(WindowState newFocus) { in onDefaultDisplayFocusChangedLw() argument
3253 newFocus != null ? newFocus.getOwningPackage() : null); in onDefaultDisplayFocusChangedLw()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.h428 const sp<InputWindowHandle>& newFocus) REQUIRES(mLock);
DInputDispatcher.cpp4052 const sp<InputWindowHandle>& newFocus) { in onFocusChangedLocked() argument
4054 sp<IBinder> newToken = newFocus != nullptr ? newFocus->getToken() : nullptr; in onFocusChangedLocked()
/frameworks/base/core/java/android/webkit/
DWebView.java2104 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in onGlobalFocusChanged() argument