Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/dispatcher/
DFocusResolver.cpp173 int32_t displayId, const std::string& reason, const sp<IBinder>& newFocus, in updateFocusedWindow() argument
176 if (newFocus == oldFocus) { in updateFocusedWindow()
179 if (newFocus) { in updateFocusedWindow()
180 mFocusedWindowTokenByDisplay[displayId] = {tokenName, newFocus}; in updateFocusedWindow()
185 return {{oldFocus, newFocus, displayId, reason}}; in updateFocusedWindow()
DFocusResolver.h56 sp<IBinder> newFocus; member
DInputDispatcher.h602 void notifyFocusChangedLocked(const sp<IBinder>& oldFocus, const sp<IBinder>& newFocus)
DInputDispatcher.cpp6156 if (changes.newFocus) { in onFocusChangedLocked()
6157 enqueueFocusEventLocked(changes.newFocus, true /*hasFocus*/, changes.reason); in onFocusChangedLocked()
6171 notifyFocusChangedLocked(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.java150 void onFocusChanged(WindowState newFocus) { in onFocusChanged() argument
153 unresponsiveApp = mUnresponsiveAppByDisplay.get(newFocus.getDisplayId()); in onFocusChanged()
154 if (unresponsiveApp == null || unresponsiveApp != newFocus.mActivityRecord) { in onFocusChanged()
DDisplayContent.java3339 void scheduleToastWindowsTimeoutIfNeededLocked(WindowState oldFocus, WindowState newFocus) { in scheduleToastWindowsTimeoutIfNeededLocked() argument
3340 if (oldFocus == null || (newFocus != null && newFocus.mOwnerUid == oldFocus.mOwnerUid)) { in scheduleToastWindowsTimeoutIfNeededLocked()
3389 WindowState newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId); in updateFocusedWindowLocked() local
3390 if (mCurrentFocus == newFocus) { in updateFocusedWindowLocked()
3408 newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId); in updateFocusedWindowLocked()
3413 mCurrentFocus, newFocus, getDisplayId(), Debug.getCallers(4)); in updateFocusedWindowLocked()
3415 mCurrentFocus = newFocus; in updateFocusedWindowLocked()
3417 if (newFocus != null) { in updateFocusedWindowLocked()
3421 if (newFocus.canReceiveKeys()) { in updateFocusedWindowLocked()
3425 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.java2370 public int focusChangedLw(WindowState lastFocus, WindowState newFocus) {
2371 mFocusedWindow = newFocus;
2374 mService.mPolicy.onDefaultDisplayFocusChangedLw(newFocus);
DWindowManagerService.java4923 WindowState newFocus; in reportFocusChanged() local
4926 newFocus = mInputToWindowMap.get(newToken); in reportFocusChanged()
4927 ProtoLog.i(WM_DEBUG_FOCUS_LIGHT, "Focus changing: %s -> %s", lastFocus, newFocus); in reportFocusChanged()
4930 if (newFocus != null) { in reportFocusChanged()
4931 mAnrController.onFocusChanged(newFocus); in reportFocusChanged()
4932 newFocus.reportFocusChangedSerialized(true); in reportFocusChanged()
/frameworks/native/services/inputflinger/tests/
DFocusResolver_test.cpp24 ASSERT_EQ(_newFocus, _changes->newFocus); \
72 ASSERT_EQ(nullptr, changes->newFocus); in TEST()
135 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.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.java1407 final View newFocus = focusSearch(FOCUS_FORWARD); in setTouchscreenBlocksFocus() local
1408 if (newFocus != null) { in setTouchscreenBlocksFocus()
1409 newFocus.requestFocus(); in setTouchscreenBlocksFocus()
DView.java16301 final int newFocus; in setFlags() local
16303 newFocus = FOCUSABLE; in setFlags()
16305 newFocus = NOT_FOCUSABLE; in setFlags()
16307 mViewFlags = (mViewFlags & ~FOCUSABLE) | newFocus; in setFlags()
16308 focusableChangedByAuto = (old & FOCUSABLE) ^ (newFocus & FOCUSABLE); in setFlags()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java1232 default void onDefaultDisplayFocusChangedLw(WindowState newFocus) {} in onDefaultDisplayFocusChangedLw() argument
DPhoneWindowManager.java3006 public void onDefaultDisplayFocusChangedLw(WindowState newFocus) {
3009 newFocus != null ? newFocus.getOwningPackage() : null);
/frameworks/base/core/java/android/webkit/
DWebView.java2131 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in onGlobalFocusChanged() argument