Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/dispatcher/
DFocusResolver.cpp176 int32_t displayId, const std::string& reason, const sp<IBinder>& newFocus, in updateFocusedWindow() argument
179 if (newFocus == oldFocus) { in updateFocusedWindow()
182 if (newFocus) { in updateFocusedWindow()
183 mFocusedWindowTokenByDisplay[displayId] = {tokenName, newFocus}; in updateFocusedWindow()
188 return {{oldFocus, newFocus, displayId, reason}}; in updateFocusedWindow()
DFocusResolver.h56 sp<IBinder> newFocus; member
DInputDispatcher.cpp6255 if (changes.newFocus) { in onFocusChangedLocked()
6256 enqueueFocusEventLocked(changes.newFocus, true /*hasFocus*/, changes.reason); in onFocusChangedLocked()
6270 sendFocusChangedCommandLocked(changes.oldFocus, changes.newFocus); in onFocusChangedLocked()
/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/
DAnrController.java196 void onFocusChanged(WindowState newFocus) { in onFocusChanged() argument
199 unresponsiveApp = mUnresponsiveAppByDisplay.get(newFocus.getDisplayId()); in onFocusChanged()
200 if (unresponsiveApp == null || unresponsiveApp != newFocus.mActivityRecord) { in onFocusChanged()
DDisplayContent.java3690 void scheduleToastWindowsTimeoutIfNeededLocked(WindowState oldFocus, WindowState newFocus) { in scheduleToastWindowsTimeoutIfNeededLocked() argument
3691 if (oldFocus == null || (newFocus != null && newFocus.mOwnerUid == oldFocus.mOwnerUid)) { in scheduleToastWindowsTimeoutIfNeededLocked()
3740 WindowState newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId); in updateFocusedWindowLocked() local
3741 if (mCurrentFocus == newFocus) { in updateFocusedWindowLocked()
3759 newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId); in updateFocusedWindowLocked()
3764 mCurrentFocus, newFocus, getDisplayId(), Debug.getCallers(4)); in updateFocusedWindowLocked()
3766 mCurrentFocus = newFocus; in updateFocusedWindowLocked()
3768 if (newFocus != null) { in updateFocusedWindowLocked()
3772 if (newFocus.canReceiveKeys()) { in updateFocusedWindowLocked()
3776 newFocus.mToken.paused = false; in updateFocusedWindowLocked()
[all …]
DRootWindowContainer.java466 final WindowState newFocus = dc.mCurrentFocus; in updateFocusedWindowLocked() local
467 if (newFocus != null) { in updateFocusedWindowLocked()
468 final int pidOfNewFocus = newFocus.mSession.mPid; in updateFocusedWindowLocked()
470 mTopFocusedAppByProcess.put(pidOfNewFocus, newFocus.mActivityRecord); in updateFocusedWindowLocked()
DDisplayPolicy.java2146 public void focusChangedLw(WindowState lastFocus, WindowState newFocus) { in focusChangedLw() argument
2147 mFocusedWindow = newFocus; in focusChangedLw()
2150 mService.mPolicy.onDefaultDisplayFocusChangedLw(newFocus); in focusChangedLw()
/frameworks/native/services/inputflinger/tests/
DFocusResolver_test.cpp24 ASSERT_EQ(_newFocus, _changes->newFocus); \
78 ASSERT_EQ(nullptr, changes->newFocus); in TEST()
107 ASSERT_EQ(nullptr, changes->newFocus); in TEST()
165 ASSERT_EQ(focusableWindowToken, changes->newFocus); in TEST()
/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.java142 public void onGlobalFocusChanged(View oldFocus, View newFocus); in onGlobalFocusChanged() argument
1119 final void dispatchOnGlobalFocusChange(View oldFocus, View newFocus) { in dispatchOnGlobalFocusChange() argument
1127 listener.onGlobalFocusChanged(oldFocus, newFocus); in dispatchOnGlobalFocusChange()
DViewGroup.java1408 final View newFocus = focusSearch(FOCUS_FORWARD); in setTouchscreenBlocksFocus() local
1409 if (newFocus != null) { in setTouchscreenBlocksFocus()
1410 newFocus.requestFocus(); in setTouchscreenBlocksFocus()
DView.java16818 final int newFocus; in setFlags() local
16820 newFocus = FOCUSABLE; in setFlags()
16822 newFocus = NOT_FOCUSABLE; in setFlags()
16824 mViewFlags = (mViewFlags & ~FOCUSABLE) | newFocus; in setFlags()
16825 focusableChangedByAuto = (old & FOCUSABLE) ^ (newFocus & FOCUSABLE); in setFlags()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java1192 default void onDefaultDisplayFocusChangedLw(WindowState newFocus) {} in onDefaultDisplayFocusChangedLw() argument
DPhoneWindowManager.java3340 public void onDefaultDisplayFocusChangedLw(WindowState newFocus) {
3343 newFocus != null ? newFocus.getOwningPackage() : null);
/frameworks/base/core/java/android/webkit/
DWebView.java2131 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in onGlobalFocusChanged() argument