content: package androidx.appcompat.widget;
  
  import android.content.Context;
  import android.graphics.Bitmap;
  import android.util.AttributeSet;
  import android.view.View;
  import android.widget.RatingBar;
  import androidx.appcompat.R;
  
  public class AppCompatRatingBar extends RatingBar {
      private final AppCompatProgressBarHelper mAppCompatProgressBarHelper;
  
      public AppCompatRatingBar(Context context) {
          this(context, (AttributeSet) null);
      }
  
      public AppCompatRatingBar(Context context, AttributeSet attrs) {
          this(context, attrs, R.attr.ratingBarStyle);
      }
  
      public AppCompatRatingBar(Context context, AttributeSet attrs, int defStyleAttr) {
          super(context, attrs, defStyleAttr);
          ThemeUtils.checkAppCompatTheme(this, getContext());
          AppCompatProgressBarHelper appCompatProgressBarHelper = new AppCompatProgressBarHelper(this);
          this.mAppCompatProgressBarHelper = appCompatProgressBarHelper;
          appCompatProgressBarHelper.loadFromAttributes(attrs, defStyleAttr);
      }
  
      /* access modifiers changed from: protected */
      public synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
          super.onMeasure(widthMeasureSpec, heightMeasureSpec);
          Bitmap sampleTile = this.mAppCompatProgressBarHelper.getSampleTile();
          if (sampleTile != null) {
              setMeasuredDimension(View.resolveSizeAndState(sampleTile.getWidth() * getNumStars(), widthMeasureSpec, 0), getMeasuredHeight());
          }
      }
  }
  