AccessibilityEventCompat.java 6.9 KB
package android.support.v4.view.accessibility;

import android.os.Build.VERSION;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityRecord;

public final class AccessibilityEventCompat
{
  public static final int CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION = 4;
  public static final int CONTENT_CHANGE_TYPE_SUBTREE = 1;
  public static final int CONTENT_CHANGE_TYPE_TEXT = 2;
  public static final int CONTENT_CHANGE_TYPE_UNDEFINED = 0;
  public static final int TYPES_ALL_MASK = -1;
  public static final int TYPE_ANNOUNCEMENT = 16384;
  public static final int TYPE_ASSIST_READING_CONTEXT = 16777216;
  public static final int TYPE_GESTURE_DETECTION_END = 524288;
  public static final int TYPE_GESTURE_DETECTION_START = 262144;
  public static final int TYPE_TOUCH_EXPLORATION_GESTURE_END = 1024;
  public static final int TYPE_TOUCH_EXPLORATION_GESTURE_START = 512;
  public static final int TYPE_TOUCH_INTERACTION_END = 2097152;
  public static final int TYPE_TOUCH_INTERACTION_START = 1048576;
  public static final int TYPE_VIEW_ACCESSIBILITY_FOCUSED = 32768;
  public static final int TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED = 65536;
  public static final int TYPE_VIEW_CONTEXT_CLICKED = 8388608;
  public static final int TYPE_VIEW_HOVER_ENTER = 128;
  public static final int TYPE_VIEW_HOVER_EXIT = 256;
  public static final int TYPE_VIEW_SCROLLED = 4096;
  public static final int TYPE_VIEW_TEXT_SELECTION_CHANGED = 8192;
  public static final int TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 131072;
  public static final int TYPE_WINDOWS_CHANGED = 4194304;
  public static final int TYPE_WINDOW_CONTENT_CHANGED = 2048;
  private static final e a = new d();
  
  static
  {
    if (Build.VERSION.SDK_INT >= 19)
    {
      a = new c();
      return;
    }
    if (Build.VERSION.SDK_INT >= 16)
    {
      a = new b();
      return;
    }
    if (Build.VERSION.SDK_INT >= 14)
    {
      a = new a();
      return;
    }
  }
  
  public static void appendRecord(AccessibilityEvent paramAccessibilityEvent, AccessibilityRecordCompat paramAccessibilityRecordCompat)
  {
    a.a(paramAccessibilityEvent, paramAccessibilityRecordCompat.getImpl());
  }
  
  public static AccessibilityRecordCompat asRecord(AccessibilityEvent paramAccessibilityEvent)
  {
    return new AccessibilityRecordCompat(paramAccessibilityEvent);
  }
  
  public static int getContentChangeTypes(AccessibilityEvent paramAccessibilityEvent)
  {
    return a.d(paramAccessibilityEvent);
  }
  
  public static AccessibilityRecordCompat getRecord(AccessibilityEvent paramAccessibilityEvent, int paramInt)
  {
    return new AccessibilityRecordCompat(a.a(paramAccessibilityEvent, paramInt));
  }
  
  public static int getRecordCount(AccessibilityEvent paramAccessibilityEvent)
  {
    return a.a(paramAccessibilityEvent);
  }
  
  public static void setContentChangeTypes(AccessibilityEvent paramAccessibilityEvent, int paramInt)
  {
    a.d(paramAccessibilityEvent, paramInt);
  }
  
  public final int getAction(AccessibilityEvent paramAccessibilityEvent)
  {
    return a.c(paramAccessibilityEvent);
  }
  
  public final int getMovementGranularity(AccessibilityEvent paramAccessibilityEvent)
  {
    return a.b(paramAccessibilityEvent);
  }
  
  public final void setAction(AccessibilityEvent paramAccessibilityEvent, int paramInt)
  {
    a.c(paramAccessibilityEvent, paramInt);
  }
  
  public final void setMovementGranularity(AccessibilityEvent paramAccessibilityEvent, int paramInt)
  {
    a.b(paramAccessibilityEvent, paramInt);
  }
  
  static class a
    extends AccessibilityEventCompat.d
  {
    public final int a(AccessibilityEvent paramAccessibilityEvent)
    {
      return paramAccessibilityEvent.getRecordCount();
    }
    
    public final Object a(AccessibilityEvent paramAccessibilityEvent, int paramInt)
    {
      return paramAccessibilityEvent.getRecord(paramInt);
    }
    
    public final void a(AccessibilityEvent paramAccessibilityEvent, Object paramObject)
    {
      paramAccessibilityEvent.appendRecord((AccessibilityRecord)paramObject);
    }
  }
  
  static class b
    extends AccessibilityEventCompat.a
  {
    public final int b(AccessibilityEvent paramAccessibilityEvent)
    {
      return paramAccessibilityEvent.getMovementGranularity();
    }
    
    public final void b(AccessibilityEvent paramAccessibilityEvent, int paramInt)
    {
      paramAccessibilityEvent.setMovementGranularity(paramInt);
    }
    
    public final int c(AccessibilityEvent paramAccessibilityEvent)
    {
      return paramAccessibilityEvent.getAction();
    }
    
    public final void c(AccessibilityEvent paramAccessibilityEvent, int paramInt)
    {
      paramAccessibilityEvent.setAction(paramInt);
    }
  }
  
  static final class c
    extends AccessibilityEventCompat.b
  {
    public final int d(AccessibilityEvent paramAccessibilityEvent)
    {
      return paramAccessibilityEvent.getContentChangeTypes();
    }
    
    public final void d(AccessibilityEvent paramAccessibilityEvent, int paramInt)
    {
      paramAccessibilityEvent.setContentChangeTypes(paramInt);
    }
  }
  
  static class d
    implements AccessibilityEventCompat.e
  {
    public int a(AccessibilityEvent paramAccessibilityEvent)
    {
      return 0;
    }
    
    public Object a(AccessibilityEvent paramAccessibilityEvent, int paramInt)
    {
      return null;
    }
    
    public void a(AccessibilityEvent paramAccessibilityEvent, Object paramObject) {}
    
    public int b(AccessibilityEvent paramAccessibilityEvent)
    {
      return 0;
    }
    
    public void b(AccessibilityEvent paramAccessibilityEvent, int paramInt) {}
    
    public int c(AccessibilityEvent paramAccessibilityEvent)
    {
      return 0;
    }
    
    public void c(AccessibilityEvent paramAccessibilityEvent, int paramInt) {}
    
    public int d(AccessibilityEvent paramAccessibilityEvent)
    {
      return 0;
    }
    
    public void d(AccessibilityEvent paramAccessibilityEvent, int paramInt) {}
  }
  
  static abstract interface e
  {
    public abstract int a(AccessibilityEvent paramAccessibilityEvent);
    
    public abstract Object a(AccessibilityEvent paramAccessibilityEvent, int paramInt);
    
    public abstract void a(AccessibilityEvent paramAccessibilityEvent, Object paramObject);
    
    public abstract int b(AccessibilityEvent paramAccessibilityEvent);
    
    public abstract void b(AccessibilityEvent paramAccessibilityEvent, int paramInt);
    
    public abstract int c(AccessibilityEvent paramAccessibilityEvent);
    
    public abstract void c(AccessibilityEvent paramAccessibilityEvent, int paramInt);
    
    public abstract int d(AccessibilityEvent paramAccessibilityEvent);
    
    public abstract void d(AccessibilityEvent paramAccessibilityEvent, int paramInt);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/view/accessibility/AccessibilityEventCompat.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */