AccessibilityWindowInfoCompat.java 9.13 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
package android.support.v4.view.accessibility;

import android.graphics.Rect;
import android.os.Build.VERSION;
import android.view.accessibility.AccessibilityWindowInfo;

public class AccessibilityWindowInfoCompat
{
  public static final int TYPE_ACCESSIBILITY_OVERLAY = 4;
  public static final int TYPE_APPLICATION = 1;
  public static final int TYPE_INPUT_METHOD = 2;
  public static final int TYPE_SPLIT_SCREEN_DIVIDER = 5;
  public static final int TYPE_SYSTEM = 3;
  private static final c a = new d();
  private Object b;
  
  static
  {
    if (Build.VERSION.SDK_INT >= 24)
    {
      a = new b();
      return;
    }
    if (Build.VERSION.SDK_INT >= 21)
    {
      a = new a();
      return;
    }
  }
  
  private AccessibilityWindowInfoCompat(Object paramObject)
  {
    this.b = paramObject;
  }
  
  static AccessibilityWindowInfoCompat a(Object paramObject)
  {
    if (paramObject != null) {
      return new AccessibilityWindowInfoCompat(paramObject);
    }
    return null;
  }
  
  public static AccessibilityWindowInfoCompat obtain()
  {
    return a(a.a());
  }
  
  public static AccessibilityWindowInfoCompat obtain(AccessibilityWindowInfoCompat paramAccessibilityWindowInfoCompat)
  {
    if (paramAccessibilityWindowInfoCompat == null) {
      return null;
    }
    return a(a.a(paramAccessibilityWindowInfoCompat.b));
  }
  
  public boolean equals(Object paramObject)
  {
    if (this == paramObject) {}
    do
    {
      do
      {
        return true;
        if (paramObject == null) {
          return false;
        }
        if (getClass() != paramObject.getClass()) {
          return false;
        }
        paramObject = (AccessibilityWindowInfoCompat)paramObject;
        if (this.b != null) {
          break;
        }
      } while (((AccessibilityWindowInfoCompat)paramObject).b == null);
      return false;
    } while (this.b.equals(((AccessibilityWindowInfoCompat)paramObject).b));
    return false;
  }
  
  public AccessibilityNodeInfoCompat getAnchor()
  {
    return AccessibilityNodeInfoCompat.a(a.m(this.b));
  }
  
  public void getBoundsInScreen(Rect paramRect)
  {
    a.a(this.b, paramRect);
  }
  
  public AccessibilityWindowInfoCompat getChild(int paramInt)
  {
    return a(a.a(this.b, paramInt));
  }
  
  public int getChildCount()
  {
    return a.j(this.b);
  }
  
  public int getId()
  {
    return a.f(this.b);
  }
  
  public int getLayer()
  {
    return a.c(this.b);
  }
  
  public AccessibilityWindowInfoCompat getParent()
  {
    return a(a.e(this.b));
  }
  
  public AccessibilityNodeInfoCompat getRoot()
  {
    return AccessibilityNodeInfoCompat.a(a.d(this.b));
  }
  
  public CharSequence getTitle()
  {
    return a.l(this.b);
  }
  
  public int getType()
  {
    return a.b(this.b);
  }
  
  public int hashCode()
  {
    if (this.b == null) {
      return 0;
    }
    return this.b.hashCode();
  }
  
  public boolean isAccessibilityFocused()
  {
    return a.i(this.b);
  }
  
  public boolean isActive()
  {
    return a.g(this.b);
  }
  
  public boolean isFocused()
  {
    return a.h(this.b);
  }
  
  public void recycle()
  {
    a.k(this.b);
  }
  
  public String toString()
  {
    boolean bool2 = true;
    StringBuilder localStringBuilder1 = new StringBuilder();
    Rect localRect = new Rect();
    getBoundsInScreen(localRect);
    localStringBuilder1.append("AccessibilityWindowInfo[");
    localStringBuilder1.append("id=").append(getId());
    StringBuilder localStringBuilder2 = localStringBuilder1.append(", type=");
    Object localObject;
    switch (getType())
    {
    default: 
      localObject = "<UNKNOWN>";
      localStringBuilder2.append((String)localObject);
      localStringBuilder1.append(", layer=").append(getLayer());
      localStringBuilder1.append(", bounds=").append(localRect);
      localStringBuilder1.append(", focused=").append(isFocused());
      localStringBuilder1.append(", active=").append(isActive());
      localObject = localStringBuilder1.append(", hasParent=");
      if (getParent() != null)
      {
        bool1 = true;
        label177:
        ((StringBuilder)localObject).append(bool1);
        localObject = localStringBuilder1.append(", hasChildren=");
        if (getChildCount() <= 0) {
          break label249;
        }
      }
      break;
    }
    label249:
    for (boolean bool1 = bool2;; bool1 = false)
    {
      ((StringBuilder)localObject).append(bool1);
      localStringBuilder1.append(']');
      return localStringBuilder1.toString();
      localObject = "TYPE_APPLICATION";
      break;
      localObject = "TYPE_INPUT_METHOD";
      break;
      localObject = "TYPE_SYSTEM";
      break;
      localObject = "TYPE_ACCESSIBILITY_OVERLAY";
      break;
      bool1 = false;
      break label177;
    }
  }
  
  static class a
    extends AccessibilityWindowInfoCompat.d
  {
    public final Object a()
    {
      return AccessibilityWindowInfo.obtain();
    }
    
    public final Object a(Object paramObject)
    {
      return AccessibilityWindowInfo.obtain((AccessibilityWindowInfo)paramObject);
    }
    
    public final Object a(Object paramObject, int paramInt)
    {
      return ((AccessibilityWindowInfo)paramObject).getChild(paramInt);
    }
    
    public final void a(Object paramObject, Rect paramRect)
    {
      ((AccessibilityWindowInfo)paramObject).getBoundsInScreen(paramRect);
    }
    
    public final int b(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).getType();
    }
    
    public final int c(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).getLayer();
    }
    
    public final Object d(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).getRoot();
    }
    
    public final Object e(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).getParent();
    }
    
    public final int f(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).getId();
    }
    
    public final boolean g(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).isActive();
    }
    
    public final boolean h(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).isFocused();
    }
    
    public final boolean i(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).isAccessibilityFocused();
    }
    
    public final int j(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).getChildCount();
    }
    
    public final void k(Object paramObject)
    {
      ((AccessibilityWindowInfo)paramObject).recycle();
    }
  }
  
  static final class b
    extends AccessibilityWindowInfoCompat.a
  {
    public final CharSequence l(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).getTitle();
    }
    
    public final Object m(Object paramObject)
    {
      return ((AccessibilityWindowInfo)paramObject).getAnchor();
    }
  }
  
  static abstract interface c
  {
    public abstract Object a();
    
    public abstract Object a(Object paramObject);
    
    public abstract Object a(Object paramObject, int paramInt);
    
    public abstract void a(Object paramObject, Rect paramRect);
    
    public abstract int b(Object paramObject);
    
    public abstract int c(Object paramObject);
    
    public abstract Object d(Object paramObject);
    
    public abstract Object e(Object paramObject);
    
    public abstract int f(Object paramObject);
    
    public abstract boolean g(Object paramObject);
    
    public abstract boolean h(Object paramObject);
    
    public abstract boolean i(Object paramObject);
    
    public abstract int j(Object paramObject);
    
    public abstract void k(Object paramObject);
    
    public abstract CharSequence l(Object paramObject);
    
    public abstract Object m(Object paramObject);
  }
  
  static class d
    implements AccessibilityWindowInfoCompat.c
  {
    public Object a()
    {
      return null;
    }
    
    public Object a(Object paramObject)
    {
      return null;
    }
    
    public Object a(Object paramObject, int paramInt)
    {
      return null;
    }
    
    public void a(Object paramObject, Rect paramRect) {}
    
    public int b(Object paramObject)
    {
      return -1;
    }
    
    public int c(Object paramObject)
    {
      return -1;
    }
    
    public Object d(Object paramObject)
    {
      return null;
    }
    
    public Object e(Object paramObject)
    {
      return null;
    }
    
    public int f(Object paramObject)
    {
      return -1;
    }
    
    public boolean g(Object paramObject)
    {
      return true;
    }
    
    public boolean h(Object paramObject)
    {
      return true;
    }
    
    public boolean i(Object paramObject)
    {
      return true;
    }
    
    public int j(Object paramObject)
    {
      return 0;
    }
    
    public void k(Object paramObject) {}
    
    public CharSequence l(Object paramObject)
    {
      return null;
    }
    
    public Object m(Object paramObject)
    {
      return null;
    }
  }
}


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