Class ShadowAccessibilityWindowInfo

    • Constructor Detail

      • ShadowAccessibilityWindowInfo

        public ShadowAccessibilityWindowInfo()
    • Method Detail

      • __constructor__

        @Implementation
        protected void __constructor__()
      • resetObtainedInstances

        public static void resetObtainedInstances()
        Clear list of obtained instance objects. areThereUnrecycledWindows will always return false if called immediately afterwards.
      • areThereUnrecycledWindows

        public static boolean areThereUnrecycledWindows​(boolean printUnrecycledWindowsToSystemErr)
        Check for leaked objects that were obtained but never recycled.
        Parameters:
        printUnrecycledWindowsToSystemErr - - if true, stack traces of calls to obtain that lack matching calls to recycle are dumped to System.err.
        Returns:
        true if there are unrecycled windows
      • deepEquals

        public boolean deepEquals​(Object object)
      • hashCode

        @Implementation
        public int hashCode()
        Overrides:
        hashCode in class Object
      • getType

        @Implementation
        protected int getType()
      • getChildCount

        @Implementation
        protected int getChildCount()
      • isActive

        @Implementation
        protected boolean isActive()
      • getId

        @Implementation
        protected int getId()
      • getBoundsInScreen

        @Implementation
        protected void getBoundsInScreen​(Rect outBounds)
      • getLayer

        @Implementation
        protected int getLayer()
      • getTitle

        @Implementation(minSdk=24)
        protected CharSequence getTitle()
        Returns the title of this window, or null if none is available.
      • isFocused

        @Implementation
        protected boolean isFocused()
      • isAccessibilityFocused

        @Implementation
        protected boolean isAccessibilityFocused()
      • isInPictureInPictureMode

        @Implementation(minSdk=26)
        protected boolean isInPictureInPictureMode()
      • recycle

        @Implementation
        protected void recycle()
      • setType

        @Implementation
        public void setType​(int value)
      • setBoundsInScreen

        @Implementation(maxSdk=29)
        public void setBoundsInScreen​(Rect bounds)
      • setAccessibilityFocused

        @Implementation
        public void setAccessibilityFocused​(boolean value)
      • setActive

        @Implementation
        public void setActive​(boolean value)
      • setId

        @Implementation
        public void setId​(int value)
      • setLayer

        @Implementation
        public void setLayer​(int value)
      • setTitle

        @Implementation(minSdk=24)
        public void setTitle​(CharSequence value)
        Sets the title of this window.
        Parameters:
        value - The CharSequence to set as the title of this window
      • setFocused

        @Implementation
        public void setFocused​(boolean focused)
      • setPictureInPicture

        @Implementation(minSdk=26)
        public void setPictureInPicture​(boolean pictureInPicture)