Loading core/java/com/android/internal/policy/KeyInterceptionInfo.java +3 −1 Original line number Diff line number Diff line Loading @@ -24,13 +24,15 @@ public class KeyInterceptionInfo { // Window layout params attributes. public final int layoutParamsType; public final int layoutParamsPrivateFlags; public final int layoutParamsInputFeatures; // Debug friendly name to help identify the window public final String windowTitle; public final int windowOwnerUid; public KeyInterceptionInfo(int type, int flags, String title, int uid) { public KeyInterceptionInfo(int type, int flags, int inputFeatures, String title, int uid) { layoutParamsType = type; layoutParamsPrivateFlags = flags; layoutParamsInputFeatures = inputFeatures; windowTitle = title; windowOwnerUid = uid; } Loading services/core/java/com/android/server/wm/WindowState.java +1 −1 Original line number Diff line number Diff line Loading @@ -5549,7 +5549,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP || mKeyInterceptionInfo.windowTitle != getWindowTag() || mKeyInterceptionInfo.windowOwnerUid != getOwningUid()) { mKeyInterceptionInfo = new KeyInterceptionInfo(mAttrs.type, mAttrs.privateFlags, getWindowTag().toString(), getOwningUid()); mAttrs.inputFeatures, getWindowTag().toString(), getOwningUid()); } return mKeyInterceptionInfo; } Loading services/tests/wmtests/src/com/android/server/policy/TestPhoneWindowManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -397,7 +397,7 @@ class TestPhoneWindowManager { doNothing().when(mContext).startActivityAsUser(any(), any()); doNothing().when(mContext).startActivityAsUser(any(), any(), any()); KeyInterceptionInfo interceptionInfo = new KeyInterceptionInfo(0, 0, null, 0); KeyInterceptionInfo interceptionInfo = new KeyInterceptionInfo(0, 0, 0, null, 0); doReturn(interceptionInfo) .when(mWindowManagerInternal).getKeyInterceptionInfoFromToken(any()); Loading tests/Input/src/com/android/server/input/InputManagerServiceTests.kt +1 −0 Original line number Diff line number Diff line Loading @@ -720,6 +720,7 @@ class InputManagerServiceTests { } else { 0 }, /* inputFeatures = */0, "title", /* uid = */0 ) Loading Loading
core/java/com/android/internal/policy/KeyInterceptionInfo.java +3 −1 Original line number Diff line number Diff line Loading @@ -24,13 +24,15 @@ public class KeyInterceptionInfo { // Window layout params attributes. public final int layoutParamsType; public final int layoutParamsPrivateFlags; public final int layoutParamsInputFeatures; // Debug friendly name to help identify the window public final String windowTitle; public final int windowOwnerUid; public KeyInterceptionInfo(int type, int flags, String title, int uid) { public KeyInterceptionInfo(int type, int flags, int inputFeatures, String title, int uid) { layoutParamsType = type; layoutParamsPrivateFlags = flags; layoutParamsInputFeatures = inputFeatures; windowTitle = title; windowOwnerUid = uid; } Loading
services/core/java/com/android/server/wm/WindowState.java +1 −1 Original line number Diff line number Diff line Loading @@ -5549,7 +5549,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP || mKeyInterceptionInfo.windowTitle != getWindowTag() || mKeyInterceptionInfo.windowOwnerUid != getOwningUid()) { mKeyInterceptionInfo = new KeyInterceptionInfo(mAttrs.type, mAttrs.privateFlags, getWindowTag().toString(), getOwningUid()); mAttrs.inputFeatures, getWindowTag().toString(), getOwningUid()); } return mKeyInterceptionInfo; } Loading
services/tests/wmtests/src/com/android/server/policy/TestPhoneWindowManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -397,7 +397,7 @@ class TestPhoneWindowManager { doNothing().when(mContext).startActivityAsUser(any(), any()); doNothing().when(mContext).startActivityAsUser(any(), any(), any()); KeyInterceptionInfo interceptionInfo = new KeyInterceptionInfo(0, 0, null, 0); KeyInterceptionInfo interceptionInfo = new KeyInterceptionInfo(0, 0, 0, null, 0); doReturn(interceptionInfo) .when(mWindowManagerInternal).getKeyInterceptionInfoFromToken(any()); Loading
tests/Input/src/com/android/server/input/InputManagerServiceTests.kt +1 −0 Original line number Diff line number Diff line Loading @@ -720,6 +720,7 @@ class InputManagerServiceTests { } else { 0 }, /* inputFeatures = */0, "title", /* uid = */0 ) Loading