content: package com.google.android.material.transformation;
  
  import android.content.Context;
  import android.os.Build;
  import android.util.AttributeSet;
  import android.view.View;
  import android.view.ViewParent;
  import androidx.coordinatorlayout.widget.CoordinatorLayout;
  import androidx.core.view.ViewCompat;
  import com.google.android.material.R;
  import com.google.android.material.animation.MotionSpec;
  import com.google.android.material.animation.Positioning;
  import com.google.android.material.transformation.FabTransformationBehavior;
  import java.util.HashMap;
  import java.util.Map;
  
  @Deprecated
  public class FabTransformationSheetBehavior extends FabTransformationBehavior {
      private Map<View, Integer> importantForAccessibilityMap;
  
      public FabTransformationSheetBehavior() {
      }
  
      public FabTransformationSheetBehavior(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
  
      private void updateImportantForAccessibility(View sheet, boolean expanded) {
          ViewParent parent = sheet.getParent();
          if (parent instanceof CoordinatorLayout) {
              CoordinatorLayout coordinatorLayout = (CoordinatorLayout) parent;
              int childCount = coordinatorLayout.getChildCount();
              if (Build.VERSION.SDK_INT >= 16 && expanded) {
                  this.importantForAccessibilityMap = new HashMap(childCount);
              }
              for (int i = 0; i < childCount; i++) {
                  View childAt = coordinatorLayout.getChildAt(i);
                  boolean z = (childAt.getLayoutParams() instanceof CoordinatorLayout.LayoutParams) && (((CoordinatorLayout.LayoutParams) childAt.getLayoutParams()).getBehavior() instanceof FabTransformationScrimBehavior);
                  if (childAt != sheet && !z) {
                      if (!expanded) {
                          Map<View, Integer> map = this.importantForAccessibilityMap;
                          if (map != null && map.containsKey(childAt)) {
                              ViewCompat.setImportantForAccessibility(childAt, this.importantForAccessibilityMap.get(childAt).intValue());
                          }
                      } else {
                          if (Build.VERSION.SDK_INT >= 16) {
                              this.importantForAccessibilityMap.put(childAt, Integer.valueOf(childAt.getImportantForAccessibility()));
                          }
                          ViewCompat.setImportantForAccessibility(childAt, 4);
                      }
                  }
              }
              if (!expanded) {
                  this.importantForAccessibilityMap = null;
              }
          }
      }
  
      /* access modifiers changed from: protected */
      public FabTransformationBehavior.FabTransformationSpec onCreateMotionSpec(Context context, boolean expanded) {
          int i = expanded ? R.animator.mtrl_fab_transformation_sheet_expand_spec : R.animator.mtrl_fab_transformation_sheet_collapse_spec;
          FabTransformationBehavior.FabTransformationSpec fabTransformationSpec = new FabTransformationBehavior.FabTransformationSpec();
          fabTransformationSpec.timings = MotionSpec.createFromResource(context, i);
          fabTransformationSpec.positioning = new Positioning(17, 0.0f, 0.0f);
          return fabTransformationSpec;
      }
  
      /* access modifiers changed from: protected */
      public boolean onExpandedStateChange(View dependency, View child, boolean expanded, boolean animated) {
          updateImportantForAccessibility(child, expanded);
          return super.onExpandedStateChange(dependency, child, expanded, animated);
      }
  }
  