Package org.robolectric.shadows
Class ShadowAccessibilityManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowAccessibilityManager
-
@Implements(android.view.accessibility.AccessibilityManager.class) public class ShadowAccessibilityManager extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowAccessibilityManager()
-
Method Summary
-
-
-
Method Detail
-
reset
@Resetter public static void reset()
-
getInstance
@HiddenApi @Implementation public static AccessibilityManager getInstance(Context context) throws Exception
- Throws:
Exception
-
addAccessibilityStateChangeListener
@Implementation protected boolean addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener)
-
addAccessibilityStateChangeListener
@Implementation(minSdk=26) protected void addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener, Handler handler)
-
removeAccessibilityStateChangeListener
@Implementation protected boolean removeAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener)
-
getAccessibilityServiceList
@Implementation protected List<ServiceInfo> getAccessibilityServiceList()
-
setAccessibilityServiceList
public void setAccessibilityServiceList(List<ServiceInfo> accessibilityServiceList)
-
getEnabledAccessibilityServiceList
@Implementation protected List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackTypeFlags)
-
setEnabledAccessibilityServiceList
public void setEnabledAccessibilityServiceList(List<AccessibilityServiceInfo> enabledAccessibilityServiceList)
-
getInstalledAccessibilityServiceList
@Implementation protected List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList()
-
setInstalledAccessibilityServiceList
public void setInstalledAccessibilityServiceList(List<AccessibilityServiceInfo> installedAccessibilityServiceList)
-
sendAccessibilityEvent
@Implementation protected void sendAccessibilityEvent(AccessibilityEvent event)
-
getSentAccessibilityEvents
public com.google.common.collect.ImmutableList<AccessibilityEvent> getSentAccessibilityEvents()
Returns a list of all accessibility events that have been sent viasendAccessibilityEvent(android.view.accessibility.AccessibilityEvent)
.
-
isEnabled
@Implementation protected boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
isTouchExplorationEnabled
@Implementation protected boolean isTouchExplorationEnabled()
-
setTouchExplorationEnabled
public void setTouchExplorationEnabled(boolean touchExplorationEnabled)
-
isAccessibilityButtonSupported
@Implementation(minSdk=27) protected static boolean isAccessibilityButtonSupported()
Returnstrue
by default, or the value specified viasetAccessibilityButtonSupported(boolean)
.
-
performAccessibilityShortcut
@HiddenApi @Implementation(minSdk=26) protected void performAccessibilityShortcut()
-
setAccessibilityButtonSupported
public static void setAccessibilityButtonSupported(boolean supported)
Sets that the system navigation area is supported accessibility button; controls the return value ofAccessibilityManager.isAccessibilityButtonSupported()
.
-
-