Home
last modified time | relevance | path

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

/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/native/services/inputflinger/dispatcher/
DFocusResolver.cpp196 int32_t displayId, const std::string& reason, const sp<IBinder>& newFocus, in updateFocusedWindow() argument
199 if (newFocus == oldFocus) { in updateFocusedWindow()
202 if (newFocus) { in updateFocusedWindow()
203 mFocusedWindowTokenByDisplay[displayId] = {tokenName, newFocus}; in updateFocusedWindow()
208 return {{oldFocus, newFocus, displayId, reason}}; in updateFocusedWindow()
DFocusResolver.h56 sp<IBinder> newFocus; member
DInputDispatcher.cpp6675 if (changes.newFocus) { in onFocusChangedLocked()
6676 enqueueFocusEventLocked(changes.newFocus, /*hasFocus=*/true, changes.reason); in onFocusChangedLocked()
6690 sendFocusChangedCommandLocked(changes.oldFocus, changes.newFocus); in onFocusChangedLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DAnrController.java263 void onFocusChanged(WindowState newFocus) { in onFocusChanged() argument
266 unresponsiveApp = mUnresponsiveAppByDisplay.get(newFocus.getDisplayId()); in onFocusChanged()
267 if (unresponsiveApp == null || unresponsiveApp != newFocus.mActivityRecord) { in onFocusChanged()
272 mUnresponsiveAppByDisplay.remove(newFocus.getDisplayId()); in onFocusChanged()
DBackNavigationController.java111 void onFocusChanged(WindowState newFocus) { in onFocusChanged() argument
112 mNavigationMonitor.onFocusWindowChanged(newFocus); in onFocusChanged()
532 private void onFocusWindowChanged(WindowState newFocus) { in onFocusWindowChanged() argument
533 if (!atSameDisplay(newFocus) in onFocusWindowChanged()
538 if (newFocus != null && newFocus != mNavigatingWindow in onFocusWindowChanged()
539 && (newFocus.mActivityRecord == null in onFocusWindowChanged()
540 || (newFocus.mActivityRecord == mNavigatingWindow.mActivityRecord))) { in onFocusWindowChanged()
563 private boolean atSameDisplay(WindowState newFocus) { in atSameDisplay() argument
568 return newFocus == null || newFocus.getDisplayId() == navigatingDisplayId; in atSameDisplay()
DDisplayContent.java3792 void scheduleToastWindowsTimeoutIfNeededLocked(WindowState oldFocus, WindowState newFocus) { in scheduleToastWindowsTimeoutIfNeededLocked() argument
3793 if (oldFocus == null || (newFocus != null && newFocus.mOwnerUid == oldFocus.mOwnerUid)) { in scheduleToastWindowsTimeoutIfNeededLocked()
3867 WindowState newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId); in updateFocusedWindowLocked() local
3868 if (mCurrentFocus == newFocus) { in updateFocusedWindowLocked()
3886 newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId); in updateFocusedWindowLocked()
3891 mCurrentFocus, newFocus, getDisplayId(), Debug.getCallers(4)); in updateFocusedWindowLocked()
3893 mCurrentFocus = newFocus; in updateFocusedWindowLocked()
3895 if (newFocus != null) { in updateFocusedWindowLocked()
3899 if (newFocus.canReceiveKeys()) { in updateFocusedWindowLocked()
3903 newFocus.mToken.paused = false; in updateFocusedWindowLocked()
[all …]
DRootWindowContainer.java456 final WindowState newFocus = dc.mCurrentFocus; in updateFocusedWindowLocked() local
457 if (newFocus != null) { in updateFocusedWindowLocked()
458 final int pidOfNewFocus = newFocus.mSession.mPid; in updateFocusedWindowLocked()
460 mTopFocusedAppByProcess.put(pidOfNewFocus, newFocus.mActivityRecord); in updateFocusedWindowLocked()
DDisplayPolicy.java2117 public void focusChangedLw(WindowState lastFocus, WindowState newFocus) {
2118 mFocusedWindow = newFocus;
2121 mService.mPolicy.onDefaultDisplayFocusChangedLw(newFocus);
/frameworks/native/services/inputflinger/tests/
DFocusResolver_test.cpp24 ASSERT_EQ(_newFocus, _changes->newFocus); \
82 ASSERT_EQ(nullptr, changes->newFocus); in TEST()
111 ASSERT_EQ(nullptr, changes->newFocus); in TEST()
170 ASSERT_EQ(focusableWindowToken, changes->newFocus); in TEST()
/frameworks/base/core/java/android/widget/
DListView.java3104 View newFocus; in arrowScrollFocused() local
3107 newFocus = FocusFinder.getInstance().findNextFocus(this, oldFocus, direction); in arrowScrollFocused()
3129 newFocus = FocusFinder.getInstance().findNextFocusFromRect(this, mTempRect, direction); in arrowScrollFocused()
3132 if (newFocus != null) { in arrowScrollFocused()
3133 final int positionOfNewFocus = positionOfNewFocus(newFocus); in arrowScrollFocused()
3146 int focusScroll = amountToScrollToNewFocus(direction, newFocus, positionOfNewFocus); in arrowScrollFocused()
3151 newFocus.requestFocus(direction); in arrowScrollFocused()
3154 } else if (distanceToView(newFocus) < maxScrollAmount){ in arrowScrollFocused()
3159 newFocus.requestFocus(direction); in arrowScrollFocused()
3171 private int positionOfNewFocus(View newFocus) {
[all …]
/frameworks/base/core/java/android/view/
DViewTreeObserver.java140 public void onGlobalFocusChanged(View oldFocus, View newFocus); in onGlobalFocusChanged() argument
1113 final void dispatchOnGlobalFocusChange(View oldFocus, View newFocus) { in dispatchOnGlobalFocusChange() argument
1121 listener.onGlobalFocusChanged(oldFocus, newFocus); in dispatchOnGlobalFocusChange()
DViewGroup.java1409 final View newFocus = focusSearch(FOCUS_FORWARD); in setTouchscreenBlocksFocus() local
1410 if (newFocus != null) { in setTouchscreenBlocksFocus()
1411 newFocus.requestFocus(); in setTouchscreenBlocksFocus()
DView.java17448 final int newFocus; in setFlags() local
17450 newFocus = FOCUSABLE; in setFlags()
17452 newFocus = NOT_FOCUSABLE; in setFlags()
17454 mViewFlags = (mViewFlags & ~FOCUSABLE) | newFocus; in setFlags()
17455 focusableChangedByAuto = (old & FOCUSABLE) ^ (newFocus & FOCUSABLE); in setFlags()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java1235 default void onDefaultDisplayFocusChangedLw(WindowState newFocus) {} in onDefaultDisplayFocusChangedLw() argument
DPhoneWindowManager.java3694 public void onDefaultDisplayFocusChangedLw(WindowState newFocus) {
3697 newFocus != null ? newFocus.getOwningPackage() : null);
/frameworks/base/core/java/android/webkit/
DWebView.java2143 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in onGlobalFocusChanged() argument