/frameworks/native/services/inputflinger/dispatcher/ |
D | FocusResolver.cpp | 173 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()
|
D | FocusResolver.h | 56 sp<IBinder> newFocus; member
|
D | InputDispatcher.h | 602 void notifyFocusChangedLocked(const sp<IBinder>& oldFocus, const sp<IBinder>& newFocus)
|
D | InputDispatcher.cpp | 6156 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/ |
D | GlobalFocusChange.java | 40 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in onGlobalFocusChanged() argument 42 mNewFocus = newFocus; in onGlobalFocusChanged()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AnrController.java | 150 void onFocusChanged(WindowState newFocus) { in onFocusChanged() argument 153 unresponsiveApp = mUnresponsiveAppByDisplay.get(newFocus.getDisplayId()); in onFocusChanged() 154 if (unresponsiveApp == null || unresponsiveApp != newFocus.mActivityRecord) { in onFocusChanged()
|
D | DisplayContent.java | 3339 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 …]
|
D | RootWindowContainer.java | 466 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()
|
D | DisplayPolicy.java | 2370 public int focusChangedLw(WindowState lastFocus, WindowState newFocus) { 2371 mFocusedWindow = newFocus; 2374 mService.mPolicy.onDefaultDisplayFocusChangedLw(newFocus);
|
D | WindowManagerService.java | 4923 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/ |
D | FocusResolver_test.cpp | 24 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/ |
D | ListView.java | 3106 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/ |
D | ViewTreeObserver.java | 123 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()
|
D | ViewGroup.java | 1407 final View newFocus = focusSearch(FOCUS_FORWARD); in setTouchscreenBlocksFocus() local 1408 if (newFocus != null) { in setTouchscreenBlocksFocus() 1409 newFocus.requestFocus(); in setTouchscreenBlocksFocus()
|
D | View.java | 16301 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/ |
D | WindowManagerPolicy.java | 1232 default void onDefaultDisplayFocusChangedLw(WindowState newFocus) {} in onDefaultDisplayFocusChangedLw() argument
|
D | PhoneWindowManager.java | 3006 public void onDefaultDisplayFocusChangedLw(WindowState newFocus) { 3009 newFocus != null ? newFocus.getOwningPackage() : null);
|
/frameworks/base/core/java/android/webkit/ |
D | WebView.java | 2131 public void onGlobalFocusChanged(View oldFocus, View newFocus) { in onGlobalFocusChanged() argument
|