/**@class android.view.accessibility.AccessibilityWindowInfo implements android.os.Parcelable @extends java.lang.Object This class represents a state snapshot of a window for accessibility purposes. The screen content contains one or more windows where some windows can be descendants of other windows, which is the windows are hierarchically ordered. Note that there is no root window. Hence, the screen content can be seen as a collection of window trees. */ var AccessibilityWindowInfo = { /** Window type: This is an application window. Such a window shows UI for interacting with an application. */ TYPE_APPLICATION : "1", /** Window type: This is an input method window. Such a window shows UI for inputting text such as keyboard, suggestions, etc. */ TYPE_INPUT_METHOD : "2", /** Window type: This is an system window. Such a window shows UI for interacting with the system. */ TYPE_SYSTEM : "3", /** Window type: Windows that are overlaid <em>only</em> by an {@link android.accessibilityservice.AccessibilityService} for interception of user interactions without changing the windows an accessibility service can introspect. In particular, an accessibility service can introspect only windows that a sighted user can interact with which they can touch these windows or can type into these windows. For example, if there is a full screen accessibility overlay that is touchable, the windows below it will be introspectable by an accessibility service regardless they are covered by a touchable window. */ TYPE_ACCESSIBILITY_OVERLAY : "4", /** Window type: A system window used to divide the screen in split-screen mode. This type of window is present only in split-screen mode. */ TYPE_SPLIT_SCREEN_DIVIDER : "5", /**@hide */ ACTIVE_WINDOW_ID : "2147483647", /**@hide */ UNDEFINED_WINDOW_ID : "-1", /**@hide */ ANY_WINDOW_ID : "-2", /**@hide */ PICTURE_IN_PICTURE_ACTION_REPLACER_WINDOW_ID : "-3", /***/ CREATOR : "null", /**Gets the title of the window. @return {Object {java.lang.CharSequence}} The title of the window, or {@code null} if none is available. */ getTitle : function( ) {}, /**Sets the title of the window. @param {Object {CharSequence}} title The title. @hide */ setTitle : function( ) {}, /**Gets the type of the window. @return {Number} The type. @see #TYPE_APPLICATION @see #TYPE_INPUT_METHOD @see #TYPE_SYSTEM @see #TYPE_ACCESSIBILITY_OVERLAY */ getType : function( ) {}, /**Sets the type of the window. @param {Number} type The type @hide */ setType : function( ) {}, /**Gets the layer which determines the Z-order of the window. Windows with greater layer appear on top of windows with lesser layer. @return {Number} The window layer. */ getLayer : function( ) {}, /**Sets the layer which determines the Z-order of the window. Windows with greater layer appear on top of windows with lesser layer. @param {Number} layer The window layer. @hide */ setLayer : function( ) {}, /**Gets the root node in the window's hierarchy. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The root node. */ getRoot : function( ) {}, /**Sets the anchor node's ID. @param {Number} anchorId The anchor's accessibility id in its window. @hide */ setAnchorId : function( ) {}, /**Gets the node that anchors this window to another. @return {Object {android.view.accessibility.AccessibilityNodeInfo}} The anchor node, or {@code null} if none exists. */ getAnchor : function( ) {}, /** @hide */ setPictureInPicture : function( ) {}, /**Check if the window is in picture-in-picture mode. @return {Boolean} {@code true} if the window is in picture-in-picture mode, {@code false} otherwise. */ isInPictureInPictureMode : function( ) {}, /**Gets the parent window. @return {Object {android.view.accessibility.AccessibilityWindowInfo}} The parent window, or {@code null} if none exists. */ getParent : function( ) {}, /**Sets the parent window id. @param {Number} parentId The parent id. @hide */ setParentId : function( ) {}, /**Gets the unique window id. @return {Number} windowId The window id. */ getId : function( ) {}, /**Sets the unique window id. @param {Number} id The window id. @hide */ setId : function( ) {}, /**Sets the unique id of the IAccessibilityServiceConnection over which this instance can send requests to the system. @param {Number} connectionId The connection id. @hide */ setConnectionId : function( ) {}, /**Gets the bounds of this window in the screen. @param {Object {Rect}} outBounds The out window bounds. */ getBoundsInScreen : function( ) {}, /**Sets the bounds of this window in the screen. @param {Object {Rect}} bounds The out window bounds. @hide */ setBoundsInScreen : function( ) {}, /**Gets if this window is active. An active window is the one the user is currently touching or the window has input focus and the user is not touching any window. @return {Boolean} Whether this is the active window. */ isActive : function( ) {}, /**Sets if this window is active, which is this is the window the user is currently touching or the window has input focus and the user is not touching any window. @param {Boolean} active Whether this is the active window. @hide */ setActive : function( ) {}, /**Gets if this window has input focus. @return {Boolean} Whether has input focus. */ isFocused : function( ) {}, /**Sets if this window has input focus. @param {Boolean} focused Whether has input focus. @hide */ setFocused : function( ) {}, /**Gets if this window has accessibility focus. @return {Boolean} Whether has accessibility focus. */ isAccessibilityFocused : function( ) {}, /**Sets if this window has accessibility focus. @param {Boolean} focused Whether has accessibility focus. @hide */ setAccessibilityFocused : function( ) {}, /**Gets the number of child windows. @return {Number} The child count. */ getChildCount : function( ) {}, /**Gets the child window at a given index. @param {Number} index The index. @return {Object {android.view.accessibility.AccessibilityWindowInfo}} The child. */ getChild : function( ) {}, /**Adds a child window. @param {Number} childId The child window id. @hide */ addChild : function( ) {}, /**Returns a cached instance if such is available or a new one is created. @return {Object {android.view.accessibility.AccessibilityWindowInfo}} An instance. */ obtain : function( ) {}, /**Returns a cached instance if such is available or a new one is created. The returned instance is initialized from the given <code>info</code>. @param {Object {AccessibilityWindowInfo}} info The other info. @return {Object {android.view.accessibility.AccessibilityWindowInfo}} An instance. */ obtain : function( ) {}, /**Specify a counter that will be incremented on obtain() and decremented on recycle() @hide */ setNumInstancesInUseCounter : function( ) {}, /**Return an instance back to be reused. <p> <strong>Note:</strong> You must not touch the object after calling this function. </p> @throws IllegalStateException If the info is already recycled. */ recycle : function( ) {}, /** */ describeContents : function( ) {}, /** */ writeToParcel : function( ) {}, /** */ hashCode : function( ) {}, /** */ equals : function( ) {}, /** */ toString : function( ) {}, /**Checks whether this window changed. The argument should be another state of the same window, which is have the same id and type as they never change. @param {Object {AccessibilityWindowInfo}} other The new state. @return {Boolean} Whether something changed. @hide */ changed : function( ) {}, /**Reports how this window differs from a possibly different state of the same window. The argument must have the same id and type as neither of those properties may change. @param {Object {AccessibilityWindowInfo}} other The new state. @return {Number} A set of flags showing how the window has changes, or 0 if the two states are the same. @hide */ differenceFrom : function( ) {}, };