Package org.robolectric.shadows
Class ShadowAccessibilityWindowInfo
java.lang.Object
org.robolectric.shadows.ShadowAccessibilityWindowInfo
@Implements(android.view.accessibility.AccessibilityWindowInfo.class)
public class ShadowAccessibilityWindowInfo
extends Object
Shadow of
AccessibilityWindowInfo
that allows a test to set
properties that are locked in the original class.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(AccessibilityWindowInfo child) protected AccessibilityNodeInfo
protected void
getBoundsInScreen
(Rect outBounds) protected AccessibilityWindowInfo
getChild
(int index) protected int
protected AccessibilityWindowInfo
protected AccessibilityNodeInfo
getRoot()
protected static AccessibilityWindowInfo
obtain
(AccessibilityWindowInfo window) protected void
recycle()
void
setAccessibilityFocused
(boolean value) void
setActive
(boolean value) void
setAnchor
(AccessibilityNodeInfo anchor) void
setBoundsInScreen
(Rect bounds) void
setDisplayId
(int displayId) void
setFocused
(boolean focused) void
setId
(int value) void
setLayer
(int value) void
setPictureInPicture
(boolean pictureInPicture) void
setRoot
(AccessibilityNodeInfo root) void
setTitle
(CharSequence value) Sets the title of this window.void
setType
(int value)
-
Constructor Details
-
ShadowAccessibilityWindowInfo
public ShadowAccessibilityWindowInfo()
-
-
Method Details
-
obtain
-
getChildCount
-
getChild
-
getParent
-
getRoot
-
getAnchor
-
getBoundsInScreen
-
recycle
-
setRoot
-
setAnchor
-
setType
-
setBoundsInScreen
-
setAccessibilityFocused
-
setActive
-
setId
-
setLayer
-
setTitle
Sets the title of this window.- Parameters:
value
- TheCharSequence
to set as the title of this window
-
setFocused
-
setPictureInPicture
-
setDisplayId
-
addChild
-