content: package androidx.core.view.accessibility;
  
  import android.os.Build;
  import android.view.accessibility.AccessibilityEvent;
  import android.view.accessibility.AccessibilityRecord;
  import java.lang.annotation.Retention;
  import java.lang.annotation.RetentionPolicy;
  
  public final class AccessibilityEventCompat {
      public static final int CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION = 4;
      public static final int CONTENT_CHANGE_TYPE_PANE_APPEARED = 16;
      public static final int CONTENT_CHANGE_TYPE_PANE_DISAPPEARED = 32;
      public static final int CONTENT_CHANGE_TYPE_PANE_TITLE = 8;
      public static final int CONTENT_CHANGE_TYPE_STATE_DESCRIPTION = 64;
      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;
      @Deprecated
      public static final int TYPE_TOUCH_EXPLORATION_GESTURE_END = 1024;
      @Deprecated
      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;
      @Deprecated
      public static final int TYPE_VIEW_HOVER_ENTER = 128;
      @Deprecated
      public static final int TYPE_VIEW_HOVER_EXIT = 256;
      @Deprecated
      public static final int TYPE_VIEW_SCROLLED = 4096;
      @Deprecated
      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;
      @Deprecated
      public static final int TYPE_WINDOW_CONTENT_CHANGED = 2048;
  
      static class Api16Impl {
          private Api16Impl() {
          }
  
          static int getAction(AccessibilityEvent accessibilityEvent) {
              return accessibilityEvent.getAction();
          }
  
          static int getMovementGranularity(AccessibilityEvent accessibilityEvent) {
              return accessibilityEvent.getMovementGranularity();
          }
  
          static void setAction(AccessibilityEvent accessibilityEvent, int action) {
              accessibilityEvent.setAction(action);
          }
  
          static void setMovementGranularity(AccessibilityEvent accessibilityEvent, int granularity) {
              accessibilityEvent.setMovementGranularity(granularity);
          }
      }
  
      static class Api19Impl {
          private Api19Impl() {
          }
  
          static int getContentChangeTypes(AccessibilityEvent accessibilityEvent) {
              return accessibilityEvent.getContentChangeTypes();
          }
  
          static void setContentChangeTypes(AccessibilityEvent accessibilityEvent, int changeTypes) {
              accessibilityEvent.setContentChangeTypes(changeTypes);
          }
      }
  
      @Retention(RetentionPolicy.SOURCE)
      public @interface ContentChangeType {
      }
  
      private AccessibilityEventCompat() {
      }
  
      @Deprecated
      public static void appendRecord(AccessibilityEvent event, AccessibilityRecordCompat record) {
          event.appendRecord((AccessibilityRecord) record.getImpl());
      }
  
      @Deprecated
      public static AccessibilityRecordCompat asRecord(AccessibilityEvent event) {
          return new AccessibilityRecordCompat(event);
      }
  
      public static int getAction(AccessibilityEvent event) {
          if (Build.VERSION.SDK_INT >= 16) {
              return Api16Impl.getAction(event);
          }
          return 0;
      }
  
      public static int getContentChangeTypes(AccessibilityEvent event) {
          if (Build.VERSION.SDK_INT >= 19) {
              return Api19Impl.getContentChangeTypes(event);
          }
          return 0;
      }
  
      public static int getMovementGranularity(AccessibilityEvent event) {
          if (Build.VERSION.SDK_INT >= 16) {
              return Api16Impl.getMovementGranularity(event);
          }
          return 0;
      }
  
      @Deprecated
      public static AccessibilityRecordCompat getRecord(AccessibilityEvent event, int index) {
          return new AccessibilityRecordCompat(event.getRecord(index));
      }
  
      @Deprecated
      public static int getRecordCount(AccessibilityEvent event) {
          return event.getRecordCount();
      }
  
      public static void setAction(AccessibilityEvent event, int action) {
          if (Build.VERSION.SDK_INT >= 16) {
              Api16Impl.setAction(event, action);
          }
      }
  
      public static void setContentChangeTypes(AccessibilityEvent event, int changeTypes) {
          if (Build.VERSION.SDK_INT >= 19) {
              Api19Impl.setContentChangeTypes(event, changeTypes);
          }
      }
  
      public static void setMovementGranularity(AccessibilityEvent event, int granularity) {
          if (Build.VERSION.SDK_INT >= 16) {
              Api16Impl.setMovementGranularity(event, granularity);
          }
      }
  }
  