AccessibilityManagerCompat.java 8.87 KB
package android.support.v4.view.accessibility;

import android.accessibilityservice.AccessibilityServiceInfo;
import android.os.Build.VERSION;
import android.view.accessibility.AccessibilityManager;
import android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener;
import java.util.Collections;
import java.util.List;

public final class AccessibilityManagerCompat
{
  private static final d a = new c();
  
  static
  {
    if (Build.VERSION.SDK_INT >= 19)
    {
      a = new b();
      return;
    }
    if (Build.VERSION.SDK_INT >= 14)
    {
      a = new a();
      return;
    }
  }
  
  public static boolean addAccessibilityStateChangeListener(AccessibilityManager paramAccessibilityManager, AccessibilityStateChangeListener paramAccessibilityStateChangeListener)
  {
    return a.a(paramAccessibilityManager, paramAccessibilityStateChangeListener);
  }
  
  public static boolean addTouchExplorationStateChangeListener(AccessibilityManager paramAccessibilityManager, TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener)
  {
    return a.a(paramAccessibilityManager, paramTouchExplorationStateChangeListener);
  }
  
  public static List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(AccessibilityManager paramAccessibilityManager, int paramInt)
  {
    return a.a(paramAccessibilityManager, paramInt);
  }
  
  public static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(AccessibilityManager paramAccessibilityManager)
  {
    return a.a(paramAccessibilityManager);
  }
  
  public static boolean isTouchExplorationEnabled(AccessibilityManager paramAccessibilityManager)
  {
    return a.b(paramAccessibilityManager);
  }
  
  public static boolean removeAccessibilityStateChangeListener(AccessibilityManager paramAccessibilityManager, AccessibilityStateChangeListener paramAccessibilityStateChangeListener)
  {
    return a.b(paramAccessibilityManager, paramAccessibilityStateChangeListener);
  }
  
  public static boolean removeTouchExplorationStateChangeListener(AccessibilityManager paramAccessibilityManager, TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener)
  {
    return a.b(paramAccessibilityManager, paramTouchExplorationStateChangeListener);
  }
  
  public static abstract interface AccessibilityStateChangeListener
  {
    public abstract void onAccessibilityStateChanged(boolean paramBoolean);
  }
  
  @Deprecated
  public static abstract class AccessibilityStateChangeListenerCompat
    implements AccessibilityManagerCompat.AccessibilityStateChangeListener
  {}
  
  public static abstract interface TouchExplorationStateChangeListener
  {
    public abstract void onTouchExplorationStateChanged(boolean paramBoolean);
  }
  
  static class a
    extends AccessibilityManagerCompat.c
  {
    public final AccessibilityManagerCompatIcs.AccessibilityStateChangeListenerWrapper a(final AccessibilityManagerCompat.AccessibilityStateChangeListener paramAccessibilityStateChangeListener)
    {
      new AccessibilityManagerCompatIcs.AccessibilityStateChangeListenerWrapper(paramAccessibilityStateChangeListener, new AccessibilityManagerCompatIcs.a()
      {
        public final void a(boolean paramAnonymousBoolean)
        {
          paramAccessibilityStateChangeListener.onAccessibilityStateChanged(paramAnonymousBoolean);
        }
      });
    }
    
    public final List<AccessibilityServiceInfo> a(AccessibilityManager paramAccessibilityManager)
    {
      return paramAccessibilityManager.getInstalledAccessibilityServiceList();
    }
    
    public final List<AccessibilityServiceInfo> a(AccessibilityManager paramAccessibilityManager, int paramInt)
    {
      return paramAccessibilityManager.getEnabledAccessibilityServiceList(paramInt);
    }
    
    public final boolean a(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.AccessibilityStateChangeListener paramAccessibilityStateChangeListener)
    {
      return paramAccessibilityManager.addAccessibilityStateChangeListener(a(paramAccessibilityStateChangeListener));
    }
    
    public final boolean b(AccessibilityManager paramAccessibilityManager)
    {
      return paramAccessibilityManager.isTouchExplorationEnabled();
    }
    
    public final boolean b(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.AccessibilityStateChangeListener paramAccessibilityStateChangeListener)
    {
      return paramAccessibilityManager.removeAccessibilityStateChangeListener(a(paramAccessibilityStateChangeListener));
    }
  }
  
  static final class b
    extends AccessibilityManagerCompat.a
  {
    public final AccessibilityManagerCompatKitKat.TouchExplorationStateChangeListenerWrapper a(final AccessibilityManagerCompat.TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener)
    {
      new AccessibilityManagerCompatKitKat.TouchExplorationStateChangeListenerWrapper(paramTouchExplorationStateChangeListener, new AccessibilityManagerCompatKitKat.a()
      {
        public final void a(boolean paramAnonymousBoolean)
        {
          paramTouchExplorationStateChangeListener.onTouchExplorationStateChanged(paramAnonymousBoolean);
        }
      });
    }
    
    public final boolean a(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener)
    {
      return paramAccessibilityManager.addTouchExplorationStateChangeListener((AccessibilityManager.TouchExplorationStateChangeListener)a(paramTouchExplorationStateChangeListener));
    }
    
    public final boolean b(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener)
    {
      return paramAccessibilityManager.removeTouchExplorationStateChangeListener((AccessibilityManager.TouchExplorationStateChangeListener)a(paramTouchExplorationStateChangeListener));
    }
  }
  
  static class c
    implements AccessibilityManagerCompat.d
  {
    public AccessibilityManagerCompatIcs.AccessibilityStateChangeListenerWrapper a(AccessibilityManagerCompat.AccessibilityStateChangeListener paramAccessibilityStateChangeListener)
    {
      return null;
    }
    
    public AccessibilityManagerCompatKitKat.TouchExplorationStateChangeListenerWrapper a(AccessibilityManagerCompat.TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener)
    {
      return null;
    }
    
    public List<AccessibilityServiceInfo> a(AccessibilityManager paramAccessibilityManager)
    {
      return Collections.emptyList();
    }
    
    public List<AccessibilityServiceInfo> a(AccessibilityManager paramAccessibilityManager, int paramInt)
    {
      return Collections.emptyList();
    }
    
    public boolean a(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.AccessibilityStateChangeListener paramAccessibilityStateChangeListener)
    {
      return false;
    }
    
    public boolean a(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener)
    {
      return false;
    }
    
    public boolean b(AccessibilityManager paramAccessibilityManager)
    {
      return false;
    }
    
    public boolean b(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.AccessibilityStateChangeListener paramAccessibilityStateChangeListener)
    {
      return false;
    }
    
    public boolean b(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener)
    {
      return false;
    }
  }
  
  static abstract interface d
  {
    public abstract List<AccessibilityServiceInfo> a(AccessibilityManager paramAccessibilityManager);
    
    public abstract List<AccessibilityServiceInfo> a(AccessibilityManager paramAccessibilityManager, int paramInt);
    
    public abstract boolean a(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.AccessibilityStateChangeListener paramAccessibilityStateChangeListener);
    
    public abstract boolean a(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener);
    
    public abstract boolean b(AccessibilityManager paramAccessibilityManager);
    
    public abstract boolean b(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.AccessibilityStateChangeListener paramAccessibilityStateChangeListener);
    
    public abstract boolean b(AccessibilityManager paramAccessibilityManager, AccessibilityManagerCompat.TouchExplorationStateChangeListener paramTouchExplorationStateChangeListener);
  }
}


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