Code example for AccessibilityServiceInfo

0
     * values. 
     * 
     * @return The default info. 
     */ 
    public static AccessibilityServiceInfo createDefaultInfo() {
        AccessibilityServiceInfo defaultInfo = new AccessibilityServiceInfo();
        defaultInfo.eventTypes = AccessibilityEvent.TYPE_VIEW_CLICKED;
        defaultInfo.feedbackType = AccessibilityServiceInfo.FEEDBACK_AUDIBLE;
        defaultInfo.flags = 0;
        defaultInfo.notificationTimeout = 0;
        defaultInfo.packageNames = new String[] {
            "foo.bar.baz" 
        }; 
 
        return defaultInfo;
    } 
 
    /** 
     * Starts replaying the mock. 
     */ 
    public void replay() {