Code example for Queue

Methods: add

0
     * argument. 
     * 
     * @param expectedEvent The expected event argument. 
     */ 
    public void expectEvent(AccessibilityEvent expectedEvent) {
        mExpectedEvents.add(expectedEvent);
    } 
 
    /** 
     * Sets an expected call of {@link #onInterrupt()}. 
     */ 
    public void expectInterrupt() { 
        mExpectedInterrupt = true;
    } 
 
    @Override 
    public void onAccessibilityEvent(AccessibilityEvent receivedEvent) {
        if (!mReplaying) {
            return; 
        }