content: package androidx.core.view.accessibility;
  
  import android.os.Build;
  import android.os.Bundle;
  import android.view.accessibility.AccessibilityNodeInfo;
  import android.view.accessibility.AccessibilityNodeProvider;
  import java.util.ArrayList;
  import java.util.List;
  
  public class AccessibilityNodeProviderCompat {
      public static final int HOST_VIEW_ID = -1;
      private final Object mProvider;
  
      static class AccessibilityNodeProviderApi16 extends AccessibilityNodeProvider {
          final AccessibilityNodeProviderCompat mCompat;
  
          AccessibilityNodeProviderApi16(AccessibilityNodeProviderCompat compat) {
              this.mCompat = compat;
          }
  
          public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) {
              AccessibilityNodeInfoCompat createAccessibilityNodeInfo = this.mCompat.createAccessibilityNodeInfo(virtualViewId);
              if (createAccessibilityNodeInfo == null) {
                  return null;
              }
              return createAccessibilityNodeInfo.unwrap();
          }
  
          public List<AccessibilityNodeInfo> findAccessibilityNodeInfosByText(String text, int virtualViewId) {
              List<AccessibilityNodeInfoCompat> findAccessibilityNodeInfosByText = this.mCompat.findAccessibilityNodeInfosByText(text, virtualViewId);
              if (findAccessibilityNodeInfosByText == null) {
                  return null;
              }
              ArrayList arrayList = new ArrayList();
              int size = findAccessibilityNodeInfosByText.size();
              for (int i = 0; i < size; i++) {
                  arrayList.add(findAccessibilityNodeInfosByText.get(i).unwrap());
              }
              return arrayList;
          }
  
          public boolean performAction(int virtualViewId, int action, Bundle arguments) {
              return this.mCompat.performAction(virtualViewId, action, arguments);
          }
      }
  
      static class AccessibilityNodeProviderApi19 extends AccessibilityNodeProviderApi16 {
          AccessibilityNodeProviderApi19(AccessibilityNodeProviderCompat compat) {
              super(compat);
          }
  
          public AccessibilityNodeInfo findFocus(int focus) {
              AccessibilityNodeInfoCompat findFocus = this.mCompat.findFocus(focus);
              if (findFocus == null) {
                  return null;
              }
              return findFocus.unwrap();
          }
      }
  
      static class AccessibilityNodeProviderApi26 extends AccessibilityNodeProviderApi19 {
          AccessibilityNodeProviderApi26(AccessibilityNodeProviderCompat compat) {
              super(compat);
          }
  
          public void addExtraDataToAccessibilityNodeInfo(int virtualViewId, AccessibilityNodeInfo info, String extraDataKey, Bundle arguments) {
              this.mCompat.addExtraDataToAccessibilityNodeInfo(virtualViewId, AccessibilityNodeInfoCompat.wrap(info), extraDataKey, arguments);
          }
      }
  
      public AccessibilityNodeProviderCompat() {
          if (Build.VERSION.SDK_INT >= 26) {
              this.mProvider = new AccessibilityNodeProviderApi26(this);
          } else if (Build.VERSION.SDK_INT >= 19) {
              this.mProvider = new AccessibilityNodeProviderApi19(this);
          } else if (Build.VERSION.SDK_INT >= 16) {
              this.mProvider = new AccessibilityNodeProviderApi16(this);
          } else {
              this.mProvider = null;
          }
      }
  
      public AccessibilityNodeProviderCompat(Object provider) {
          this.mProvider = provider;
      }
  
      public void addExtraDataToAccessibilityNodeInfo(int virtualViewId, AccessibilityNodeInfoCompat info, String extraDataKey, Bundle arguments) {
      }
  
      public AccessibilityNodeInfoCompat createAccessibilityNodeInfo(int virtualViewId) {
          return null;
      }
  
      public List<AccessibilityNodeInfoCompat> findAccessibilityNodeInfosByText(String text, int virtualViewId) {
          return null;
      }
  
      public AccessibilityNodeInfoCompat findFocus(int focus) {
          return null;
      }
  
      public Object getProvider() {
          return this.mProvider;
      }
  
      public boolean performAction(int virtualViewId, int action, Bundle arguments) {
          return false;
      }
  }
  