Loading core/java/android/view/InputWindowHandle.java +2 −5 Original line number Diff line number Diff line Loading @@ -70,11 +70,8 @@ public final class InputWindowHandle { // Window is visible. public boolean visible; // Window can receive keys. public boolean canReceiveKeys; // Window has focus. public boolean hasFocus; // Window can be focused. public boolean focusable; // Window has wallpaper. (window is the current wallpaper target) public boolean hasWallpaper; Loading core/jni/android_hardware_input_InputWindowHandle.cpp +3 −11 Original line number Diff line number Diff line Loading @@ -56,8 +56,7 @@ static struct { jfieldID scaleFactor; jfieldID touchableRegion; jfieldID visible; jfieldID canReceiveKeys; jfieldID hasFocus; jfieldID focusable; jfieldID hasWallpaper; jfieldID paused; jfieldID trustedOverlay; Loading Loading @@ -145,10 +144,7 @@ bool NativeInputWindowHandle::updateInfo() { mInfo.visible = env->GetBooleanField(obj, gInputWindowHandleClassInfo.visible); mInfo.canReceiveKeys = env->GetBooleanField(obj, gInputWindowHandleClassInfo.canReceiveKeys); mInfo.hasFocus = env->GetBooleanField(obj, gInputWindowHandleClassInfo.hasFocus); mInfo.focusable = env->GetBooleanField(obj, gInputWindowHandleClassInfo.focusable); mInfo.hasWallpaper = env->GetBooleanField(obj, gInputWindowHandleClassInfo.hasWallpaper); mInfo.paused = env->GetBooleanField(obj, Loading Loading @@ -320,11 +316,7 @@ int register_android_view_InputWindowHandle(JNIEnv* env) { GET_FIELD_ID(gInputWindowHandleClassInfo.visible, clazz, "visible", "Z"); GET_FIELD_ID(gInputWindowHandleClassInfo.canReceiveKeys, clazz, "canReceiveKeys", "Z"); GET_FIELD_ID(gInputWindowHandleClassInfo.hasFocus, clazz, "hasFocus", "Z"); GET_FIELD_ID(gInputWindowHandleClassInfo.focusable, clazz, "focusable", "Z"); GET_FIELD_ID(gInputWindowHandleClassInfo.hasWallpaper, clazz, "hasWallpaper", "Z"); Loading services/core/java/com/android/server/wm/DragState.java +3 −2 Original line number Diff line number Diff line Loading @@ -283,8 +283,9 @@ class DragState { mDragWindowHandle.layoutParamsType = WindowManager.LayoutParams.TYPE_DRAG; mDragWindowHandle.dispatchingTimeoutMillis = DEFAULT_DISPATCHING_TIMEOUT_MILLIS; mDragWindowHandle.visible = true; mDragWindowHandle.canReceiveKeys = false; mDragWindowHandle.hasFocus = true; // Allows the system to consume keys when dragging is active. This can also be used to // modify the drag state on key press. Example, cancel drag on escape key. mDragWindowHandle.focusable = true; mDragWindowHandle.hasWallpaper = false; mDragWindowHandle.paused = false; mDragWindowHandle.ownerPid = Process.myPid(); Loading services/core/java/com/android/server/wm/InputConsumerImpl.java +1 −2 Original line number Diff line number Diff line Loading @@ -80,8 +80,7 @@ class InputConsumerImpl implements IBinder.DeathRecipient { mWindowHandle.layoutParamsFlags = 0; mWindowHandle.dispatchingTimeoutMillis = DEFAULT_DISPATCHING_TIMEOUT_MILLIS; mWindowHandle.visible = true; mWindowHandle.canReceiveKeys = false; mWindowHandle.hasFocus = false; mWindowHandle.focusable = false; mWindowHandle.hasWallpaper = false; mWindowHandle.paused = false; mWindowHandle.ownerPid = Process.myPid(); Loading services/core/java/com/android/server/wm/InputMonitor.java +2 −4 Original line number Diff line number Diff line Loading @@ -281,8 +281,7 @@ final class InputMonitor { inputWindowHandle.layoutParamsType = type; inputWindowHandle.dispatchingTimeoutMillis = child.getInputDispatchingTimeoutMillis(); inputWindowHandle.visible = isVisible; inputWindowHandle.canReceiveKeys = child.canReceiveKeys(); inputWindowHandle.hasFocus = hasFocus; inputWindowHandle.focusable = hasFocus; inputWindowHandle.hasWallpaper = hasWallpaper; inputWindowHandle.paused = child.mActivityRecord != null ? child.mActivityRecord.paused : false; inputWindowHandle.ownerPid = child.mSession.mPid; Loading Loading @@ -579,8 +578,7 @@ final class InputMonitor { inputWindowHandle.layoutParamsType = type; inputWindowHandle.dispatchingTimeoutMillis = 0; // it should never receive input inputWindowHandle.visible = isVisible; inputWindowHandle.canReceiveKeys = false; inputWindowHandle.hasFocus = false; inputWindowHandle.focusable = false; inputWindowHandle.inputFeatures = INPUT_FEATURE_NO_INPUT_CHANNEL; inputWindowHandle.scaleFactor = 1; inputWindowHandle.layoutParamsFlags = Loading Loading
core/java/android/view/InputWindowHandle.java +2 −5 Original line number Diff line number Diff line Loading @@ -70,11 +70,8 @@ public final class InputWindowHandle { // Window is visible. public boolean visible; // Window can receive keys. public boolean canReceiveKeys; // Window has focus. public boolean hasFocus; // Window can be focused. public boolean focusable; // Window has wallpaper. (window is the current wallpaper target) public boolean hasWallpaper; Loading
core/jni/android_hardware_input_InputWindowHandle.cpp +3 −11 Original line number Diff line number Diff line Loading @@ -56,8 +56,7 @@ static struct { jfieldID scaleFactor; jfieldID touchableRegion; jfieldID visible; jfieldID canReceiveKeys; jfieldID hasFocus; jfieldID focusable; jfieldID hasWallpaper; jfieldID paused; jfieldID trustedOverlay; Loading Loading @@ -145,10 +144,7 @@ bool NativeInputWindowHandle::updateInfo() { mInfo.visible = env->GetBooleanField(obj, gInputWindowHandleClassInfo.visible); mInfo.canReceiveKeys = env->GetBooleanField(obj, gInputWindowHandleClassInfo.canReceiveKeys); mInfo.hasFocus = env->GetBooleanField(obj, gInputWindowHandleClassInfo.hasFocus); mInfo.focusable = env->GetBooleanField(obj, gInputWindowHandleClassInfo.focusable); mInfo.hasWallpaper = env->GetBooleanField(obj, gInputWindowHandleClassInfo.hasWallpaper); mInfo.paused = env->GetBooleanField(obj, Loading Loading @@ -320,11 +316,7 @@ int register_android_view_InputWindowHandle(JNIEnv* env) { GET_FIELD_ID(gInputWindowHandleClassInfo.visible, clazz, "visible", "Z"); GET_FIELD_ID(gInputWindowHandleClassInfo.canReceiveKeys, clazz, "canReceiveKeys", "Z"); GET_FIELD_ID(gInputWindowHandleClassInfo.hasFocus, clazz, "hasFocus", "Z"); GET_FIELD_ID(gInputWindowHandleClassInfo.focusable, clazz, "focusable", "Z"); GET_FIELD_ID(gInputWindowHandleClassInfo.hasWallpaper, clazz, "hasWallpaper", "Z"); Loading
services/core/java/com/android/server/wm/DragState.java +3 −2 Original line number Diff line number Diff line Loading @@ -283,8 +283,9 @@ class DragState { mDragWindowHandle.layoutParamsType = WindowManager.LayoutParams.TYPE_DRAG; mDragWindowHandle.dispatchingTimeoutMillis = DEFAULT_DISPATCHING_TIMEOUT_MILLIS; mDragWindowHandle.visible = true; mDragWindowHandle.canReceiveKeys = false; mDragWindowHandle.hasFocus = true; // Allows the system to consume keys when dragging is active. This can also be used to // modify the drag state on key press. Example, cancel drag on escape key. mDragWindowHandle.focusable = true; mDragWindowHandle.hasWallpaper = false; mDragWindowHandle.paused = false; mDragWindowHandle.ownerPid = Process.myPid(); Loading
services/core/java/com/android/server/wm/InputConsumerImpl.java +1 −2 Original line number Diff line number Diff line Loading @@ -80,8 +80,7 @@ class InputConsumerImpl implements IBinder.DeathRecipient { mWindowHandle.layoutParamsFlags = 0; mWindowHandle.dispatchingTimeoutMillis = DEFAULT_DISPATCHING_TIMEOUT_MILLIS; mWindowHandle.visible = true; mWindowHandle.canReceiveKeys = false; mWindowHandle.hasFocus = false; mWindowHandle.focusable = false; mWindowHandle.hasWallpaper = false; mWindowHandle.paused = false; mWindowHandle.ownerPid = Process.myPid(); Loading
services/core/java/com/android/server/wm/InputMonitor.java +2 −4 Original line number Diff line number Diff line Loading @@ -281,8 +281,7 @@ final class InputMonitor { inputWindowHandle.layoutParamsType = type; inputWindowHandle.dispatchingTimeoutMillis = child.getInputDispatchingTimeoutMillis(); inputWindowHandle.visible = isVisible; inputWindowHandle.canReceiveKeys = child.canReceiveKeys(); inputWindowHandle.hasFocus = hasFocus; inputWindowHandle.focusable = hasFocus; inputWindowHandle.hasWallpaper = hasWallpaper; inputWindowHandle.paused = child.mActivityRecord != null ? child.mActivityRecord.paused : false; inputWindowHandle.ownerPid = child.mSession.mPid; Loading Loading @@ -579,8 +578,7 @@ final class InputMonitor { inputWindowHandle.layoutParamsType = type; inputWindowHandle.dispatchingTimeoutMillis = 0; // it should never receive input inputWindowHandle.visible = isVisible; inputWindowHandle.canReceiveKeys = false; inputWindowHandle.hasFocus = false; inputWindowHandle.focusable = false; inputWindowHandle.inputFeatures = INPUT_FEATURE_NO_INPUT_CHANNEL; inputWindowHandle.scaleFactor = 1; inputWindowHandle.layoutParamsFlags = Loading