Merge "Set focus to WMS computed focus when embedded window drops focus" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
823b164edd
@@ -2581,12 +2581,6 @@
|
|||||||
"group": "WM_DEBUG_ANIM",
|
"group": "WM_DEBUG_ANIM",
|
||||||
"at": "com\/android\/server\/wm\/WindowContainer.java"
|
"at": "com\/android\/server\/wm\/WindowContainer.java"
|
||||||
},
|
},
|
||||||
"397105698": {
|
|
||||||
"message": "grantEmbeddedWindowFocus remove request for win=%s dropped since no candidate was found",
|
|
||||||
"level": "VERBOSE",
|
|
||||||
"group": "WM_DEBUG_FOCUS",
|
|
||||||
"at": "com\/android\/server\/wm\/WindowManagerService.java"
|
|
||||||
},
|
|
||||||
"397382873": {
|
"397382873": {
|
||||||
"message": "Moving to PAUSED: %s %s",
|
"message": "Moving to PAUSED: %s %s",
|
||||||
"level": "VERBOSE",
|
"level": "VERBOSE",
|
||||||
@@ -3115,6 +3109,12 @@
|
|||||||
"group": "WM_DEBUG_LOCKTASK",
|
"group": "WM_DEBUG_LOCKTASK",
|
||||||
"at": "com\/android\/server\/wm\/LockTaskController.java"
|
"at": "com\/android\/server\/wm\/LockTaskController.java"
|
||||||
},
|
},
|
||||||
|
"958338552": {
|
||||||
|
"message": "grantEmbeddedWindowFocus win=%s dropped focus so setting focus to null since no candidate was found",
|
||||||
|
"level": "VERBOSE",
|
||||||
|
"group": "WM_DEBUG_FOCUS",
|
||||||
|
"at": "com\/android\/server\/wm\/WindowManagerService.java"
|
||||||
|
},
|
||||||
"959486822": {
|
"959486822": {
|
||||||
"message": "setSyncGroup #%d on %s",
|
"message": "setSyncGroup #%d on %s",
|
||||||
"level": "VERBOSE",
|
"level": "VERBOSE",
|
||||||
|
|||||||
@@ -8877,16 +8877,18 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
WindowState newFocusTarget = displayContent == null
|
WindowState newFocusTarget = displayContent == null
|
||||||
? null : displayContent.findFocusedWindow();
|
? null : displayContent.findFocusedWindow();
|
||||||
if (newFocusTarget == null) {
|
if (newFocusTarget == null) {
|
||||||
ProtoLog.v(WM_DEBUG_FOCUS, "grantEmbeddedWindowFocus remove request for "
|
t.setFocusedWindow(null, null, displayId).apply();
|
||||||
+ "win=%s dropped since no candidate was found",
|
ProtoLog.v(WM_DEBUG_FOCUS, "grantEmbeddedWindowFocus win=%s"
|
||||||
|
+ " dropped focus so setting focus to null since no candidate"
|
||||||
|
+ " was found",
|
||||||
embeddedWindow);
|
embeddedWindow);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
t.requestFocusTransfer(newFocusTarget.mInputChannelToken, newFocusTarget.getName(),
|
t.setFocusedWindow(newFocusTarget.mInputChannelToken, newFocusTarget.getName(),
|
||||||
inputToken, embeddedWindow.toString(),
|
|
||||||
displayId).apply();
|
displayId).apply();
|
||||||
|
|
||||||
EventLog.writeEvent(LOGTAG_INPUT_FOCUS,
|
EventLog.writeEvent(LOGTAG_INPUT_FOCUS,
|
||||||
"Transfer focus request " + newFocusTarget,
|
"Focus request " + newFocusTarget,
|
||||||
"reason=grantEmbeddedWindowFocus(false)");
|
"reason=grantEmbeddedWindowFocus(false)");
|
||||||
}
|
}
|
||||||
ProtoLog.v(WM_DEBUG_FOCUS, "grantEmbeddedWindowFocus win=%s grantFocus=%s",
|
ProtoLog.v(WM_DEBUG_FOCUS, "grantEmbeddedWindowFocus win=%s grantFocus=%s",
|
||||||
|
|||||||
Reference in New Issue
Block a user