content: package android.support.v7.app;
  
  import android.content.Context;
  import android.content.DialogInterface;
  import android.database.Cursor;
  import android.graphics.drawable.Drawable;
  import android.os.Bundle;
  import android.os.Message;
  import android.support.v7.appcompat.R;
  import android.util.TypedValue;
  import android.view.ContextThemeWrapper;
  import android.view.KeyEvent;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.Button;
  import android.widget.ListAdapter;
  import android.widget.ListView;
  
  public class AlertDialog extends AppCompatDialog implements DialogInterface {
    static final int LAYOUT_HINT_NONE = 0;
    
    static final int LAYOUT_HINT_SIDE = 1;
    
    final AlertController mAlert = new AlertController(getContext(), this, getWindow());
    
    protected AlertDialog(Context paramContext) {
      this(paramContext, 0);
    }
    
    protected AlertDialog(Context paramContext, int paramInt) {
      super(paramContext, resolveDialogTheme(paramContext, paramInt));
    }
    
    protected AlertDialog(Context paramContext, boolean paramBoolean, DialogInterface.OnCancelListener paramOnCancelListener) {
      this(paramContext, 0);
      setCancelable(paramBoolean);
      setOnCancelListener(paramOnCancelListener);
    }
    
    static int resolveDialogTheme(Context paramContext, int paramInt) {
      if ((paramInt >>> 24 & 0xFF) >= 1)
        return paramInt; 
      TypedValue typedValue = new TypedValue();
      paramContext.getTheme().resolveAttribute(R.attr.alertDialogTheme, typedValue, true);
      return typedValue.resourceId;
    }
    
    public Button getButton(int paramInt) {
      return this.mAlert.getButton(paramInt);
    }
    
    public ListView getListView() {
      return this.mAlert.getListView();
    }
    
    protected void onCreate(Bundle paramBundle) {
      super.onCreate(paramBundle);
      this.mAlert.installContent();
    }
    
    public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent) {
      return this.mAlert.onKeyDown(paramInt, paramKeyEvent) ? true : super.onKeyDown(paramInt, paramKeyEvent);
    }
    
    public boolean onKeyUp(int paramInt, KeyEvent paramKeyEvent) {
      return this.mAlert.onKeyUp(paramInt, paramKeyEvent) ? true : super.onKeyUp(paramInt, paramKeyEvent);
    }
    
    public void setButton(int paramInt, CharSequence paramCharSequence, DialogInterface.OnClickListener paramOnClickListener) {
      this.mAlert.setButton(paramInt, paramCharSequence, paramOnClickListener, null, null);
    }
    
    public void setButton(int paramInt, CharSequence paramCharSequence, Drawable paramDrawable, DialogInterface.OnClickListener paramOnClickListener) {
      this.mAlert.setButton(paramInt, paramCharSequence, paramOnClickListener, null, paramDrawable);
    }
    
    public void setButton(int paramInt, CharSequence paramCharSequence, Message paramMessage) {
      this.mAlert.setButton(paramInt, paramCharSequence, null, paramMessage, null);
    }
    
    void setButtonPanelLayoutHint(int paramInt) {
      this.mAlert.setButtonPanelLayoutHint(paramInt);
    }
    
    public void setCustomTitle(View paramView) {
      this.mAlert.setCustomTitle(paramView);
    }
    
    public void setIcon(int paramInt) {
      this.mAlert.setIcon(paramInt);
    }
    
    public void setIcon(Drawable paramDrawable) {
      this.mAlert.setIcon(paramDrawable);
    }
    
    public void setIconAttribute(int paramInt) {
      TypedValue typedValue = new TypedValue();
      getContext().getTheme().resolveAttribute(paramInt, typedValue, true);
      this.mAlert.setIcon(typedValue.resourceId);
    }
    
    public void setMessage(CharSequence paramCharSequence) {
      this.mAlert.setMessage(paramCharSequence);
    }
    
    public void setTitle(CharSequence paramCharSequence) {
      super.setTitle(paramCharSequence);
      this.mAlert.setTitle(paramCharSequence);
    }
    
    public void setView(View paramView) {
      this.mAlert.setView(paramView);
    }
    
    public void setView(View paramView, int paramInt1, int paramInt2, int paramInt3, int paramInt4) {
      this.mAlert.setView(paramView, paramInt1, paramInt2, paramInt3, paramInt4);
    }
    
    public static class Builder {
      private final AlertController.AlertParams P;
      
      private final int mTheme;
      
      public Builder(Context param1Context) {
        this(param1Context, AlertDialog.resolveDialogTheme(param1Context, 0));
      }
      
      public Builder(Context param1Context, int param1Int) {
        this.P = new AlertController.AlertParams((Context)new ContextThemeWrapper(param1Context, AlertDialog.resolveDialogTheme(param1Context, param1Int)));
        this.mTheme = param1Int;
      }
      
      public AlertDialog create() {
        AlertDialog alertDialog = new AlertDialog(this.P.mContext, this.mTheme);
        this.P.apply(alertDialog.mAlert);
        alertDialog.setCancelable(this.P.mCancelable);
        if (this.P.mCancelable)
          alertDialog.setCanceledOnTouchOutside(true); 
        alertDialog.setOnCancelListener(this.P.mOnCancelListener);
        alertDialog.setOnDismissListener(this.P.mOnDismissListener);
        if (this.P.mOnKeyListener != null)
          alertDialog.setOnKeyListener(this.P.mOnKeyListener); 
        return alertDialog;
      }
      
      public Context getContext() {
        return this.P.mContext;
      }
      
      public Builder setAdapter(ListAdapter param1ListAdapter, DialogInterface.OnClickListener param1OnClickListener) {
        this.P.mAdapter = param1ListAdapter;
        this.P.mOnClickListener = param1OnClickListener;
        return this;
      }
      
      public Builder setCancelable(boolean param1Boolean) {
        this.P.mCancelable = param1Boolean;
        return this;
      }
      
      public Builder setCursor(Cursor param1Cursor, DialogInterface.OnClickListener param1OnClickListener, String param1String) {
        this.P.mCursor = param1Cursor;
        this.P.mLabelColumn = param1String;
        this.P.mOnClickListener = param1OnClickListener;
        return this;
      }
      
      public Builder setCustomTitle(View param1View) {
        this.P.mCustomTitleView = param1View;
        return this;
      }
      
      public Builder setIcon(int param1Int) {
        this.P.mIconId = param1Int;
        return this;
      }
      
      public Builder setIcon(Drawable param1Drawable) {
        this.P.mIcon = param1Drawable;
        return this;
      }
      
      public Builder setIconAttribute(int param1Int) {
        TypedValue typedValue = new TypedValue();
        this.P.mContext.getTheme().resolveAttribute(param1Int, typedValue, true);
        this.P.mIconId = typedValue.resourceId;
        return this;
      }
      
      @Deprecated
      public Builder setInverseBackgroundForced(boolean param1Boolean) {
        this.P.mForceInverseBackground = param1Boolean;
        return this;
      }
      
      public Builder setItems(int param1Int, DialogInterface.OnClickListener param1OnClickListener) {
        AlertController.AlertParams alertParams = this.P;
        alertParams.mItems = alertParams.mContext.getResources().getTextArray(param1Int);
        this.P.mOnClickListener = param1OnClickListener;
        return this;
      }
      
      public Builder setItems(CharSequence[] param1ArrayOfCharSequence, DialogInterface.OnClickListener param1OnClickListener) {
        this.P.mItems = param1ArrayOfCharSequence;
        this.P.mOnClickListener = param1OnClickListener;
        return this;
      }
      
      public Builder setMessage(int param1Int) {
        AlertController.AlertParams alertParams = this.P;
        alertParams.mMessage = alertParams.mContext.getText(param1Int);
        return this;
      }
      
      public Builder setMessage(CharSequence param1CharSequence) {
        this.P.mMessage = param1CharSequence;
        return this;
      }
      
      public Builder setMultiChoiceItems(int param1Int, boolean[] param1ArrayOfboolean, DialogInterface.OnMultiChoiceClickListener param1OnMultiChoiceClickListener) {
        AlertController.AlertParams alertParams = this.P;
        alertParams.mItems = alertParams.mContext.getResources().getTextArray(param1Int);
        this.P.mOnCheckboxClickListener = param1OnMultiChoiceClickListener;
        this.P.mCheckedItems = param1ArrayOfboolean;
        this.P.mIsMultiChoice = true;
        return this;
      }
      
      public Builder setMultiChoiceItems(Cursor param1Cursor, String param1String1, String param1String2, DialogInterface.OnMultiChoiceClickListener param1OnMultiChoiceClickListener) {
        this.P.mCursor = param1Cursor;
        this.P.mOnCheckboxClickListener = param1OnMultiChoiceClickListener;
        this.P.mIsCheckedColumn = param1String1;
        this.P.mLabelColumn = param1String2;
        this.P.mIsMultiChoice = true;
        return this;
      }
      
      public Builder setMultiChoiceItems(CharSequence[] param1ArrayOfCharSequence, boolean[] param1ArrayOfboolean, DialogInterface.OnMultiChoiceClickListener param1OnMultiChoiceClickListener) {
        this.P.mItems = param1ArrayOfCharSequence;
        this.P.mOnCheckboxClickListener = param1OnMultiChoiceClickListener;
        this.P.mCheckedItems = param1ArrayOfboolean;
        this.P.mIsMultiChoice = true;
        return this;
      }
      
      public Builder setNegativeButton(int param1Int, DialogInterface.OnClickListener param1OnClickListener) {
        AlertController.AlertParams alertParams = this.P;
        alertParams.mNegativeButtonText = alertParams.mContext.getText(param1Int);
        this.P.mNegativeButtonListener = param1OnClickListener;
        return this;
      }
      
      public Builder setNegativeButton(CharSequence param1CharSequence, DialogInterface.OnClickListener param1OnClickListener) {
        this.P.mNegativeButtonText = param1CharSequence;
        this.P.mNegativeButtonListener = param1OnClickListener;
        return this;
      }
      
      public Builder setNegativeButtonIcon(Drawable param1Drawable) {
        this.P.mNegativeButtonIcon = param1Drawable;
        return this;
      }
      
      public Builder setNeutralButton(int param1Int, DialogInterface.OnClickListener param1OnClickListener) {
        AlertController.AlertParams alertParams = this.P;
        alertParams.mNeutralButtonText = alertParams.mContext.getText(param1Int);
        this.P.mNeutralButtonListener = param1OnClickListener;
        return this;
      }
      
      public Builder setNeutralButton(CharSequence param1CharSequence, DialogInterface.OnClickListener param1OnClickListener) {
        this.P.mNeutralButtonText = param1CharSequence;
        this.P.mNeutralButtonListener = param1OnClickListener;
        return this;
      }
      
      public Builder setNeutralButtonIcon(Drawable param1Drawable) {
        this.P.mNeutralButtonIcon = param1Drawable;
        return this;
      }
      
      public Builder setOnCancelListener(DialogInterface.OnCancelListener param1OnCancelListener) {
        this.P.mOnCancelListener = param1OnCancelListener;
        return this;
      }
      
      public Builder setOnDismissListener(DialogInterface.OnDismissListener param1OnDismissListener) {
        this.P.mOnDismissListener = param1OnDismissListener;
        return this;
      }
      
      public Builder setOnItemSelectedListener(AdapterView.OnItemSelectedListener param1OnItemSelectedListener) {
        this.P.mOnItemSelectedListener = param1OnItemSelectedListener;
        return this;
      }
      
      public Builder setOnKeyListener(DialogInterface.OnKeyListener param1OnKeyListener) {
        this.P.mOnKeyListener = param1OnKeyListener;
        return this;
      }
      
      public Builder setPositiveButton(int param1Int, DialogInterface.OnClickListener param1OnClickListener) {
        AlertController.AlertParams alertParams = this.P;
        alertParams.mPositiveButtonText = alertParams.mContext.getText(param1Int);
        this.P.mPositiveButtonListener = param1OnClickListener;
        return this;
      }
      
      public Builder setPositiveButton(CharSequence param1CharSequence, DialogInterface.OnClickListener param1OnClickListener) {
        this.P.mPositiveButtonText = param1CharSequence;
        this.P.mPositiveButtonListener = param1OnClickListener;
        return this;
      }
      
      public Builder setPositiveButtonIcon(Drawable param1Drawable) {
        this.P.mPositiveButtonIcon = param1Drawable;
        return this;
      }
      
      public Builder setRecycleOnMeasureEnabled(boolean param1Boolean) {
        this.P.mRecycleOnMeasure = param1Boolean;
        return this;
      }
      
      public Builder setSingleChoiceItems(int param1Int1, int param1Int2, DialogInterface.OnClickListener param1OnClickListener) {
        AlertController.AlertParams alertParams = this.P;
        alertParams.mItems = alertParams.mContext.getResources().getTextArray(param1Int1);
        this.P.mOnClickListener = param1OnClickListener;
        this.P.mCheckedItem = param1Int2;
        this.P.mIsSingleChoice = true;
        return this;
      }
      
      public Builder setSingleChoiceItems(Cursor param1Cursor, int param1Int, String param1String, DialogInterface.OnClickListener param1OnClickListener) {
        this.P.mCursor = param1Cursor;
        this.P.mOnClickListener = param1OnClickListener;
        this.P.mCheckedItem = param1Int;
        this.P.mLabelColumn = param1String;
        this.P.mIsSingleChoice = true;
        return this;
      }
      
      public Builder setSingleChoiceItems(ListAdapter param1ListAdapter, int param1Int, DialogInterface.OnClickListener param1OnClickListener) {
        this.P.mAdapter = param1ListAdapter;
        this.P.mOnClickListener = param1OnClickListener;
        this.P.mCheckedItem = param1Int;
        this.P.mIsSingleChoice = true;
        return this;
      }
      
      public Builder setSingleChoiceItems(CharSequence[] param1ArrayOfCharSequence, int param1Int, DialogInterface.OnClickListener param1OnClickListener) {
        this.P.mItems = param1ArrayOfCharSequence;
        this.P.mOnClickListener = param1OnClickListener;
        this.P.mCheckedItem = param1Int;
        this.P.mIsSingleChoice = true;
        return this;
      }
      
      public Builder setTitle(int param1Int) {
        AlertController.AlertParams alertParams = this.P;
        alertParams.mTitle = alertParams.mContext.getText(param1Int);
        return this;
      }
      
      public Builder setTitle(CharSequence param1CharSequence) {
        this.P.mTitle = param1CharSequence;
        return this;
      }
      
      public Builder setView(int param1Int) {
        this.P.mView = null;
        this.P.mViewLayoutResId = param1Int;
        this.P.mViewSpacingSpecified = false;
        return this;
      }
      
      public Builder setView(View param1View) {
        this.P.mView = param1View;
        this.P.mViewLayoutResId = 0;
        this.P.mViewSpacingSpecified = false;
        return this;
      }
      
      @Deprecated
      public Builder setView(View param1View, int param1Int1, int param1Int2, int param1Int3, int param1Int4) {
        this.P.mView = param1View;
        this.P.mViewLayoutResId = 0;
        this.P.mViewSpacingSpecified = true;
        this.P.mViewSpacingLeft = param1Int1;
        this.P.mViewSpacingTop = param1Int2;
        this.P.mViewSpacingRight = param1Int3;
        this.P.mViewSpacingBottom = param1Int4;
        return this;
      }
      
      public AlertDialog show() {
        AlertDialog alertDialog = create();
        alertDialog.show();
        return alertDialog;
      }
    }
  }
  
  
  /* Location:              F:\何章易\项目文件夹\项目24\va\classes_merge.jar!\android\support\v7\app\AlertDialog.class
   * Java compiler version: 6 (50.0)
   * JD-Core Version:       1.1.3
   */