package io.beid.beidk.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import android.graphics.drawable.NinePatchDrawable; import android.util.AttributeSet; import o.fPZ; import o.nMh; /* loaded from: classes5.dex */ public class JHSquareMaskView extends b { @Override // io.beid.beidk.view.b protected final void aCC_(Canvas canvas) { NinePatchDrawable ninePatchDrawable = (NinePatchDrawable) nMh.getDrawable(getContext(), fPZ.RVV.cameraframe); RectF rectF = new RectF(this.e - ((this.b / 2.0f) - getPaddingLeft()), this.d - ((this.a / 2.0f) - getPaddingTop()), this.e + ((this.b / 2.0f) - getPaddingRight()), this.d + ((this.a / 2.0f) - (getPaddingBottom() + 65))); Rect rect = new Rect(); rectF.roundOut(rect); ninePatchDrawable.setBounds(rect); ninePatchDrawable.draw(canvas); Integer valueOf = Integer.valueOf(Math.round(rect.height() * 0.06006006f)); Paint paint = new Paint(1); paint.setColor(-1); paint.setTextSize(valueOf.intValue()); paint.setTextAlign(Paint.Align.CENTER); int width = canvas.getWidth() / 2; float paddingBottom = (this.d + ((this.a / 2.0f) - (getPaddingBottom() + 65))) - valueOf.intValue(); float f = width; canvas.drawText("P<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", f, paddingBottom - (valueOf.intValue() << 1), paint); canvas.drawText("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", f, paddingBottom, paint); } public JHSquareMaskView(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); } public JHSquareMaskView(Context context, AttributeSet attributeSet) { super(context, attributeSet); } public JHSquareMaskView(Context context) { super(context); } }