protected void onDraw(Canvas canvas)
 {
     super.onDraw(canvas);
     if (getBackground() != null)
     {
         if (mShader != null && mShaderMatrix != null)
         {
             int i = mShaderWidth / 2;
             int l = getPositionFromValue(mCurrentValue);
             mShaderMatrix.setTranslate(l - i, 0.0F);
             mShader.setLocalMatrix(mShaderMatrix);
             canvas.drawRect(mEdgeOffset, 0.0F, (float)getWidth() - mEdgeOffset, getHeight(), mLinesPaint);
         }
         canvas.translate(0.0F, mHeightDiff);
         mShadowBottom.draw(canvas);
         canvas.translate(0.0F, -mHeightDiff);
         if (debugPaint != null)
         {
             debugPaint.setColor(-1);
             debugPaint.setAlpha(127);
             canvas.drawLine(mMinX, 0.0F, mMinX, getHeight(), debugPaint);
             canvas.drawLine(mMaxX, 0.0F, mMaxX, getHeight(), debugPaint);
             canvas.drawLine(getWidth() / 2, 0.0F, getWidth() / 2, getHeight(), debugPaint);
         }
         if (mEdgeLeft != null)
         {
             if (!mEdgeLeft.isFinished())
             {
                 int j = canvas.save();
                 canvas.concat(mEdgeMatrixLeft);
                 if (mEdgeLeft.draw(canvas))
                 {
                     postInvalidate();
                 }
                 canvas.restoreToCount(j);
             }
             if (!mEdgeRight.isFinished())
             {
                 int k = canvas.save();
                 canvas.concat(mEdgeMatrixRight);
                 if (mEdgeRight.draw(canvas))
                 {
                     postInvalidate();
                 }
                 canvas.restoreToCount(k);
                 return;
             }
         }
     }
 }
Exemple #2
0
  @Override
  protected void dispatchDraw(Canvas canvas) {
    final int saveCount = canvas.save();

    final Matrix m = mController.getEffectsMatrix();
    if (!m.isIdentity()) canvas.concat(m);

    final float alpha = mController.getEffectsAlpha();
    if (alpha != 1f)
      canvas.saveLayerAlpha(
          0,
          0,
          canvas.getWidth(),
          canvas.getHeight(),
          (int) (255 * alpha),
          Canvas.HAS_ALPHA_LAYER_SAVE_FLAG);

    super.dispatchDraw(canvas);

    final int fadeFactor = mController.getFadeFactor();
    if (fadeFactor > 0f) {
      mFadePaint.setColor(Color.argb(fadeFactor, 0, 0, 0));
      canvas.drawRect(0, 0, getWidth(), getHeight(), mFadePaint);
    }

    canvas.restoreToCount(saveCount);
  }
Exemple #3
0
  private void drawFlippingHalf(Canvas canvas) {
    canvas.save();
    mCamera.save();

    final float degreesFlipped = getDegreesFlipped();

    if (degreesFlipped > 90) {
      canvas.clipRect(isFlippingVertically() ? mTopRect : mLeftRect);
      if (mIsFlippingVertically) {
        mCamera.rotateX(degreesFlipped - 180);
      } else {
        mCamera.rotateY(180 - degreesFlipped);
      }
    } else {
      canvas.clipRect(isFlippingVertically() ? mBottomRect : mRightRect);
      if (mIsFlippingVertically) {
        mCamera.rotateX(degreesFlipped);
      } else {
        mCamera.rotateY(-degreesFlipped);
      }
    }

    mCamera.getMatrix(mMatrix);

    positionMatrix();
    canvas.concat(mMatrix);

    setDrawWithLayer(mCurrentPage.v, true);
    drawChild(canvas, mCurrentPage.v, 0);

    drawFlippingShadeShine(canvas);

    mCamera.restore();
    canvas.restore();
  }
 @Override
 public void draw(Canvas canvas, Paint imagePaint, Paint borderPaint) {
   canvas.save();
   canvas.concat(matrix);
   canvas.drawPath(path, imagePaint);
   canvas.restore();
 }
Exemple #5
0
    public void draw(Canvas canvas) {
      if (matrix != null) {
        canvas.concat(matrix);
      }

      graphics = AndroidGraphics.fromGraphics(canvas, this, graphics);

      final iPlatformComponentPainter cp = componentPainter;

      if (cp == null) {
        super.draw(canvas);
      } else {
        cp.paint(
            graphics,
            getScrollX(),
            getScrollY(),
            getWidth(),
            getHeight(),
            iPlatformPainter.UNKNOWN,
            false);
        super.draw(canvas);
        cp.paint(
            graphics,
            getScrollX(),
            getScrollY(),
            getWidth(),
            getHeight(),
            iPlatformPainter.UNKNOWN,
            true);
      }

      graphics.clear();
    }
Exemple #6
0
 @Override
 public void draw(Canvas canvas, Matrix transformation) {
   canvas.save();
   canvas.concat(transformation);
   drawable.draw(canvas);
   canvas.restore();
 }
  @Override
  protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);

    if (firstTimeLaunched) {
      float scalewidth = (float) viewWidth / (float) imgBackgnd.getWidth();
      float scaleheight = (float) viewHeight / (float) imgBackgnd.getHeight();
      scaleFinal = scaleheight > scalewidth ? scalewidth : scaleheight;

      matrixBackgnd.setScale(scaleFinal, scaleFinal);

      firstTimeLaunched = false;
    }

    // (maxValue-value)*(maxPix-MinPix)/(maxValue-MinValue) + minPix
    float altitudePos = (4000 - value) * (470 - 70) / (4000) + 70;

    canvas.drawBitmap(imgBackgnd, matrixBackgnd, paint);
    canvas.concat(matrixBackgnd);

    float height = ((paint.descent() + paint.ascent()) / 2);

    int center = 70;

    canvas.drawLine(center, altitudePos, center + 15, altitudePos, paint);

    canvas.drawText(value + " m", center + 17, altitudePos - height, paint);

    canvas.drawRect(center, altitudePos, center + 10, 471, paint);
  }
 private void pushTransform(Attributes atts) {
   final String transform = getStringAttr("transform", atts);
   canvas.save();
   if (transform != null) {
     final Matrix matrix = parseTransform(transform);
     canvas.concat(matrix);
   }
 }
 protected final int i(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 168;
     return 168;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.d(paramVarArgs);
     Object localObject2 = c.c(paramVarArgs);
     Paint localPaint1 = c.g(paramVarArgs);
     localPaint1.setFlags(385);
     localPaint1.setStyle(Paint.Style.FILL);
     Paint localPaint2 = c.g(paramVarArgs);
     localPaint2.setFlags(385);
     localPaint2.setStyle(Paint.Style.STROKE);
     localPaint1.setColor(-16777216);
     localPaint2.setStrokeWidth(1.0F);
     localPaint2.setStrokeCap(Paint.Cap.BUTT);
     localPaint2.setStrokeJoin(Paint.Join.MITER);
     localPaint2.setStrokeMiter(4.0F);
     localPaint2.setPathEffect(null);
     c.a(localPaint2, paramVarArgs).setStrokeWidth(1.0F);
     localPaint1 = c.a(localPaint1, paramVarArgs);
     localPaint1.setColor(-9473160);
     localCanvas.save();
     localObject2 = c.a((float[]) localObject2, 1.0F, 0.0F, 51.0F, 0.0F, 1.0F, 39.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject2);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject1 = c.a(localPaint1, paramVarArgs);
     localObject2 = c.h(paramVarArgs);
     ((Path) localObject2).moveTo(31.624044F, 90.34997F);
     ((Path) localObject2)
         .cubicTo(32.383965F, 91.14044F, 33.629753F, 91.13373F, 34.386406F, 90.3389F);
     ((Path) localObject2).cubicTo(34.386406F, 90.3389F, 66.0F, 58.57656F, 66.0F, 33.461914F);
     ((Path) localObject2).cubicTo(66.0F, 14.90092F, 51.225395F, 0.0F, 33.47826F, 0.0F);
     ((Path) localObject2).cubicTo(14.774603F, 0.0F, 0.0F, 14.90092F, 0.0F, 33.461914F);
     ((Path) localObject2).cubicTo(0.0F, 58.57656F, 31.624044F, 90.34997F, 31.624044F, 90.34997F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(33.0F, 44.30819F);
     ((Path) localObject2).cubicTo(39.07513F, 44.30819F, 44.0F, 39.348827F, 44.0F, 33.231144F);
     ((Path) localObject2).cubicTo(44.0F, 27.113459F, 39.07513F, 22.154095F, 33.0F, 22.154095F);
     ((Path) localObject2).cubicTo(26.924868F, 22.154095F, 22.0F, 27.113459F, 22.0F, 33.231144F);
     ((Path) localObject2).cubicTo(22.0F, 39.348827F, 26.924868F, 44.30819F, 33.0F, 44.30819F);
     ((Path) localObject2).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     c.f(paramVarArgs);
   }
 }
Exemple #10
0
  // synchronized
  static void bitblt(ByteBuffer sScreenBuff, boolean inMAME) {

    if (paused) // locks are expensive
    {
      synchronized (lock2) {
        try {
          if (paused) lock2.wait();
        } catch (InterruptedException e) {
          e.printStackTrace();
        }
      }
    }
    synchronized (lock1) {
      // try {

      screenBuff = sScreenBuff;
      Emulator.inMAME = inMAME;

      if (videoRenderMode == PrefsHelper.PREF_RENDER_GL) {
        // if(mm.getEmuView() instanceof EmulatorViewGL)
        ((EmulatorViewGL) mm.getEmuView()).requestRender();
      } else if (videoRenderMode == PrefsHelper.PREF_RENDER_THREADED) {
        videoT.update();
      } else if (videoRenderMode == PrefsHelper.PREF_RENDER_HW) {
        // mm.getEmuView().setWillNotDraw(false);
        videoT.update();
      } else {
        if (holder == null) return;

        Canvas canvas = holder.lockCanvas();
        sScreenBuff.rewind();
        emuBitmap.copyPixelsFromBuffer(sScreenBuff);
        i++;
        canvas.concat(mtx);
        canvas.drawBitmap(emuBitmap, 0, 0, emuPaint);
        // canvas.drawBitmap(emuBitmap, null, frameRect, emuPaint);
        if (isDebug) {
          canvas.drawText("Normal fps:" + fps + " " + inMAME, 5, 40, debugPaint);
          if (System.currentTimeMillis() - millis >= 1000) {
            fps = i;
            i = 0;
            millis = System.currentTimeMillis();
          }
        }
        holder.unlockCanvasAndPost(canvas);
      }
      /*
      } catch (Throwable t) {
      	Log.getStackTraceString(t);
      }
      */
    }
  }
  @Override
  protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
    viewMatrix = canvas.getMatrix();

    canvas.concat(mapRelView);
    for (PanZoomDisplay display : displays) {
      if (display.isEnabled()) {
        display.draw(canvas);
      }
    }

    canvas.setMatrix(viewMatrix);
  }
  private void drawSun(Canvas canvas) {
    float pixelScale = getPixelScale();

    int imageSize = (int) (300.0f * pixelScale);
    Sprite sprite = StarImageManager.getInstance().getSprite(mStar, imageSize, false);

    mMatrix.reset();
    mMatrix.postTranslate(-(sprite.getWidth() / 2.0f), -(sprite.getHeight() / 2.0f));
    mMatrix.postScale(
        300.0f * pixelScale / sprite.getWidth(), 300.0f * pixelScale / sprite.getHeight());
    canvas.save();
    canvas.concat(mMatrix);
    sprite.draw(canvas);
    canvas.restore();
  }
Exemple #13
0
  @Override
  public void apply(Canvas canvas, String textValue, float x, float y, Paint paint) {

    camera.getMatrix(cameraMatrix);
    camera.save();
    camera.rotateX(rotationX);
    camera.rotateY(rotationY);
    camera.getMatrix(cameraMatrix);

    cameraMatrix.preTranslate(cameraTransXPre, cameraTransYPre);
    cameraMatrix.postTranslate(cameraTransXPost, cameraTransYPost);

    camera.restore();

    canvas.concat(cameraMatrix);
  }
  @Override
  protected void onDraw(Canvas canvas) {
    // 画标签
    canvas.drawBitmap(mLabelBitmap, mViewMatrix, null);
    if (mShowDashBorder) {
      // 画虚线框
      mDashPaint.setPathEffect(getPathEffect());
      canvas.save();
      canvas.concat(mViewMatrix);
      canvas.drawPath(mDashPath, mDashPaint);
      canvas.restore();

      // 画删除按钮:左上角
      canvas.drawBitmap(mDelBitmap, null, mDelDrawRectF, null);

      // 画拖放按钮:右下角
      canvas.drawBitmap(mDragBitmap, null, mDragDrawRectF, null);
    }
  }
  @Override
  protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);

    // 分别绘制四个圆
    canvas.drawCircle(centerX, centerY, radarRadius / 7, mPaintCircle);
    canvas.drawCircle(centerX, centerY, radarRadius / 4, mPaintCircle);
    canvas.drawCircle(centerX, centerY, radarRadius / 3, mPaintCircle);
    canvas.drawCircle(centerX, centerY, 3 * radarRadius / 7, mPaintCircle);

    // 设置颜色渐变从透明到不透明
    //        Shader shader = new SweepGradient(centerX, centerY, Color.TRANSPARENT, tailColor);
    Shader shader =
        new SweepGradient(
            centerX, centerY, Color.parseColor("#00A8D7A7"), Color.parseColor("#ffA8D7A7"));
    mPaintRadar.setShader(shader);
    canvas.concat(matrix);
    canvas.drawCircle(centerX, centerY, 3 * radarRadius / 7, mPaintRadar);
  }
 @Override
 void transform(Canvas canvas, float angle) {
   mCamera.translate(0, 0, mCenterZ);
   if (mOrientation == ScreenScroller.HORIZONTAL) {
     canvas.translate(mScroll + mCenterX, mCenterY);
     canvas.scale(mScale, mScale);
     mCamera.rotateY(angle);
   } else {
     canvas.translate(mCenterX, mScroll + mCenterY);
     canvas.scale(mScale, mScale);
     mCamera.rotateX(-angle);
   }
   if (mInnerRadius != 0) {
     mCamera.translate(0, 0, -mInnerRadius);
   }
   // mCamera.applyToCanvas(canvas);
   mCamera.getMatrix(MATRIX);
   canvas.concat(MATRIX);
   canvas.translate(-mCenterX, -mCenterY);
 }
  @Override
  protected void dispatchDraw(Canvas canvas) {
    final int saveCount = canvas.save();
    canvas.concat(mEffectsController.getEffectsMatrix());
    canvas.saveLayerAlpha(
        0,
        0,
        canvas.getWidth(),
        canvas.getHeight(),
        (int) (255 * mEffectsController.getEffectsAlpha()),
        Canvas.HAS_ALPHA_LAYER_SAVE_FLAG);

    super.dispatchDraw(canvas);

    if (mFadeFactor > 0f) {
      mFadePaint.setColor(Color.argb(mFadeFactor, 0, 0, 0));
      canvas.drawRect(0, 0, getWidth(), getHeight(), mFadePaint);
    }

    canvas.restoreToCount(saveCount);
  }
Exemple #18
0
  @Override
  public void onDraw(Canvas canvas) {
    if (!mScale) {
      super.onDraw(canvas);
      return;
    }

    Drawable d = getDrawable();
    if (mLayoutChanged) {
      int w1 = d.getIntrinsicWidth();
      int h1 = d.getIntrinsicHeight();
      int w2 = getWidth();
      int h2 = getHeight();

      float scale = (w2 / h2 < w1 / h1) ? (float) h2 / h1 : (float) w2 / w1;
      mMatrix.setScale(scale, scale);
    }

    int saveCount = canvas.save();
    canvas.concat(mMatrix);
    d.draw(canvas);
    canvas.restoreToCount(saveCount);
  }
  @Override
  protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);

    if (mDrawable == null) {
      return; // couldn't resolve the URI
    }

    if (mDrawableWidth == 0 || mDrawableHeight == 0) {
      return; // nothing to draw (empty bounds)
    }

    if (mDrawMatrix == null && mPaddingTop == 0 && mPaddingLeft == 0) {
      mDrawable.draw(canvas);
    } else {
      int saveCount = canvas.getSaveCount();
      canvas.save();

      if (mCropToPadding) {
        final int scrollX = mScrollX;
        final int scrollY = mScrollY;
        canvas.clipRect(
            scrollX + mPaddingLeft,
            scrollY + mPaddingTop,
            scrollX + mRight - mLeft - mPaddingRight,
            scrollY + mBottom - mTop - mPaddingBottom);
      }

      canvas.translate(mPaddingLeft, mPaddingTop);

      if (mDrawMatrix != null) {
        canvas.concat(mDrawMatrix);
      }
      mDrawable.draw(canvas);
      canvas.restoreToCount(saveCount);
    }
  }
 protected final int i(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 168;
     return 168;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.d(paramVarArgs);
     Object localObject2 = c.c(paramVarArgs);
     Paint localPaint1 = c.g(paramVarArgs);
     localPaint1.setFlags(385);
     localPaint1.setStyle(Paint.Style.FILL);
     Paint localPaint2 = c.g(paramVarArgs);
     localPaint2.setFlags(385);
     localPaint2.setStyle(Paint.Style.STROKE);
     localPaint1.setColor(-16777216);
     localPaint2.setStrokeWidth(1.0F);
     localPaint2.setStrokeCap(Paint.Cap.BUTT);
     localPaint2.setStrokeJoin(Paint.Join.MITER);
     localPaint2.setStrokeMiter(4.0F);
     localPaint2.setPathEffect(null);
     c.a(localPaint2, paramVarArgs).setStrokeWidth(1.0F);
     localPaint1 = c.a(localPaint1, paramVarArgs);
     localPaint1.setColor(-14187817);
     localCanvas.save();
     localObject2 = c.a((float[]) localObject2, 1.0F, 0.0F, 37.0F, 0.0F, 1.0F, 39.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject2);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject1 = c.a(localPaint1, paramVarArgs);
     localObject2 = c.h(paramVarArgs);
     ((Path) localObject2).moveTo(72.0767F, 82.22588F);
     ((Path) localObject2).cubicTo(83.53856F, 73.9851F, 91.0F, 60.553818F, 91.0F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(91.0F, 20.319225F, 70.62896F, -3.5527137E-14F, 45.5F, -3.5527137E-14F);
     ((Path) localObject2)
         .cubicTo(
             20.371044F, -3.5527137E-14F, -2.1316282E-14F, 20.319225F, -2.1316282E-14F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(-2.1316282E-14F, 61.038643F, 7.9460006F, 74.84186F, 20.034418F, 83.0F);
     ((Path) localObject2).lineTo(22.1966F, 79.985435F);
     ((Path) localObject2)
         .cubicTo(11.048177F, 72.50055F, 3.7142856F, 59.796688F, 3.7142856F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(3.7142856F, 22.36535F, 22.422388F, 3.7048376F, 45.5F, 3.7048376F);
     ((Path) localObject2)
         .cubicTo(68.577614F, 3.7048376F, 87.28571F, 22.36535F, 87.28571F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(87.28571F, 59.35643F, 80.393036F, 71.722824F, 69.81427F, 79.285F);
     ((Path) localObject2).lineTo(72.0767F, 82.22588F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(66.62715F, 75.14214F);
     ((Path) localObject2).cubicTo(75.9622F, 68.53627F, 82.054F, 57.669865F, 82.054F, 45.38426F);
     ((Path) localObject2).cubicTo(82.054F, 25.247396F, 65.68822F, 8.923243F, 45.5F, 8.923243F);
     ((Path) localObject2)
         .cubicTo(25.311783F, 8.923243F, 8.945999F, 25.247396F, 8.945999F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(8.945999F, 58.04734F, 15.417901F, 69.202675F, 25.242413F, 75.7389F);
     ((Path) localObject2).lineTo(27.490881F, 72.604034F);
     ((Path) localObject2)
         .cubicTo(18.643457F, 66.76842F, 12.807601F, 56.756123F, 12.807601F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(12.807601F, 27.374676F, 27.444487F, 12.7750225F, 45.5F, 12.7750225F);
     ((Path) localObject2)
         .cubicTo(63.55551F, 12.7750225F, 78.1924F, 27.374676F, 78.1924F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(78.1924F, 56.424984F, 72.69147F, 66.184166F, 64.27428F, 72.083694F);
     ((Path) localObject2).lineTo(66.62715F, 75.14214F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(60.846767F, 67.62836F);
     ((Path) localObject2).cubicTo(67.92764F, 62.75864F, 72.5687F, 54.61206F, 72.5687F, 45.38426F);
     ((Path) localObject2).cubicTo(72.5687F, 30.472656F, 60.44963F, 18.384415F, 45.5F, 18.384415F);
     ((Path) localObject2)
         .cubicTo(30.55037F, 18.384415F, 18.4313F, 30.472656F, 18.4313F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(18.4313F, 54.875706F, 23.341345F, 63.22327F, 30.766079F, 68.03768F);
     ((Path) localObject2).lineTo(33.130417F, 64.741264F);
     ((Path) localObject2)
         .cubicTo(26.732042F, 60.664852F, 22.489536F, 53.51874F, 22.489536F, 45.38426F);
     ((Path) localObject2).cubicTo(22.489536F, 32.70826F, 32.79167F, 22.43233F, 45.5F, 22.43233F);
     ((Path) localObject2)
         .cubicTo(58.20833F, 22.43233F, 68.51047F, 32.70826F, 68.51047F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(68.51047F, 53.303806F, 64.48919F, 60.286526F, 58.372215F, 64.41174F);
     ((Path) localObject2).lineTo(60.846767F, 67.62836F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(54.48061F, 59.353138F);
     ((Path) localObject2)
         .cubicTo(59.084618F, 56.40215F, 62.134594F, 51.248478F, 62.134594F, 45.38426F);
     ((Path) localObject2).cubicTo(62.134594F, 36.220596F, 54.68703F, 28.79198F, 45.5F, 28.79198F);
     ((Path) localObject2)
         .cubicTo(36.31297F, 28.79198F, 28.865408F, 36.220596F, 28.865408F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(28.865408F, 51.386845F, 32.06101F, 56.644955F, 36.847862F, 59.558327F);
     ((Path) localObject2).lineTo(38.943947F, 56.635918F);
     ((Path) localObject2)
         .cubicTo(35.06329F, 54.381386F, 32.454987F, 50.18665F, 32.454987F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(32.454987F, 38.198025F, 38.295437F, 32.37243F, 45.5F, 32.37243F);
     ((Path) localObject2)
         .cubicTo(52.704563F, 32.37243F, 58.545013F, 38.198025F, 58.545013F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(58.545013F, 50.091446F, 56.0391F, 54.214832F, 52.285336F, 56.499557F);
     ((Path) localObject2).lineTo(54.48061F, 59.353138F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(49.096928F, 52.35502F);
     ((Path) localObject2)
         .cubicTo(51.627728F, 51.053127F, 53.35822F, 48.42027F, 53.35822F, 45.38426F);
     ((Path) localObject2).cubicTo(53.35822F, 41.055325F, 49.839973F, 37.54603F, 45.5F, 37.54603F);
     ((Path) localObject2)
         .cubicTo(41.160027F, 37.54603F, 37.64178F, 41.055325F, 37.64178F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(37.64178F, 48.452805F, 39.40956F, 51.10951F, 41.984715F, 52.39641F);
     ((Path) localObject2).lineTo(44.138638F, 49.39336F);
     ((Path) localObject2)
         .cubicTo(42.463356F, 48.82757F, 41.257534F, 47.246376F, 41.257534F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(41.257534F, 43.047173F, 43.15695F, 41.152588F, 45.5F, 41.152588F);
     ((Path) localObject2)
         .cubicTo(47.84305F, 41.152588F, 49.742466F, 43.047173F, 49.742466F, 45.38426F);
     ((Path) localObject2)
         .cubicTo(49.742466F, 47.258987F, 48.520252F, 48.848984F, 46.82725F, 49.40472F);
     ((Path) localObject2).lineTo(49.096928F, 52.35502F);
     ((Path) localObject2).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     c.f(paramVarArgs);
   }
 }
 protected final int i(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 108;
     return 108;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.d(paramVarArgs);
     Object localObject3 = c.c(paramVarArgs);
     Object localObject2 = c.g(paramVarArgs);
     ((Paint) localObject2).setFlags(385);
     ((Paint) localObject2).setStyle(Paint.Style.FILL);
     Paint localPaint = c.g(paramVarArgs);
     localPaint.setFlags(385);
     localPaint.setStyle(Paint.Style.STROKE);
     ((Paint) localObject2).setColor(-16777216);
     localPaint.setStrokeWidth(1.0F);
     localPaint.setStrokeCap(Paint.Cap.BUTT);
     localPaint.setStrokeJoin(Paint.Join.MITER);
     localPaint.setStrokeMiter(4.0F);
     localPaint.setPathEffect(null);
     c.a(localPaint, paramVarArgs).setStrokeWidth(1.0F);
     localCanvas.save();
     localObject2 = c.a((Paint) localObject2, paramVarArgs);
     ((Paint) localObject2).setColor(-12632257);
     localObject3 = c.a((float[]) localObject3, 1.0F, 0.0F, 22.0F, 0.0F, 1.0F, 25.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject3);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject1 = c.a((Paint) localObject2, paramVarArgs);
     localObject3 = c.h(paramVarArgs);
     ((Path) localObject3).moveTo(43.01F, 0.01F);
     ((Path) localObject3).cubicTo(50.34F, 6.18F, 57.67F, 12.34F, 65.0F, 18.5F);
     ((Path) localObject3).cubicTo(57.67F, 24.67F, 50.34F, 30.83F, 43.01F, 36.99F);
     ((Path) localObject3).cubicTo(43.0F, 33.32F, 43.0F, 29.64F, 43.0F, 25.97F);
     ((Path) localObject3).cubicTo(36.32F, 26.17F, 29.09F, 26.33F, 23.36F, 30.22F);
     ((Path) localObject3).cubicTo(19.21F, 33.0F, 17.04F, 37.67F, 14.94F, 42.01F);
     ((Path) localObject3).cubicTo(15.22F, 31.95F, 18.09F, 20.86F, 26.63F, 14.65F);
     ((Path) localObject3).cubicTo(31.27F, 11.04F, 37.36F, 10.73F, 43.0F, 11.02F);
     ((Path) localObject3).cubicTo(42.99F, 7.35F, 43.0F, 3.68F, 43.01F, 0.01F);
     ((Path) localObject3).lineTo(43.01F, 0.01F);
     ((Path) localObject3).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject3, 2);
     localCanvas.drawPath((Path) localObject3, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.save();
     localObject1 = c.a((Paint) localObject2, paramVarArgs);
     localObject2 = c.h(paramVarArgs);
     ((Path) localObject2).moveTo(1.01F, 13.9F);
     ((Path) localObject2).cubicTo(0.71F, 12.13F, 1.86F, 9.97F, 3.86F, 10.06F);
     ((Path) localObject2).cubicTo(9.23F, 9.86F, 14.62F, 10.09F, 20.0F, 9.98F);
     ((Path) localObject2).cubicTo(17.97F, 12.06F, 16.28F, 14.44F, 14.88F, 16.99F);
     ((Path) localObject2).cubicTo(12.59F, 17.01F, 10.29F, 17.0F, 8.0F, 17.0F);
     ((Path) localObject2).lineTo(8.0F, 51.0F);
     ((Path) localObject2).lineTo(54.0F, 51.0F);
     ((Path) localObject2).lineTo(54.0F, 37.59F);
     ((Path) localObject2).cubicTo(56.34F, 35.63F, 58.66F, 33.65F, 61.0F, 31.69F);
     ((Path) localObject2).cubicTo(60.94F, 39.5F, 61.11F, 47.31F, 60.93F, 55.12F);
     ((Path) localObject2).cubicTo(61.01F, 57.09F, 58.92F, 58.3F, 57.14F, 57.99F);
     ((Path) localObject2).cubicTo(39.7F, 58.0F, 22.26F, 58.01F, 4.83F, 57.99F);
     ((Path) localObject2).cubicTo(3.07F, 58.29F, 0.95F, 57.08F, 1.06F, 55.12F);
     ((Path) localObject2).cubicTo(0.92F, 41.38F, 1.03F, 27.64F, 1.01F, 13.9F);
     ((Path) localObject2).lineTo(1.01F, 13.9F);
     ((Path) localObject2).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     c.f(paramVarArgs);
   }
 }
Exemple #22
0
 protected final int h(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 96;
     return 96;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.e(paramVarArgs);
     Object localObject2 = c.d(paramVarArgs);
     Paint localPaint1 = c.h(paramVarArgs);
     localPaint1.setFlags(385);
     localPaint1.setStyle(Paint.Style.FILL);
     Paint localPaint2 = c.h(paramVarArgs);
     localPaint2.setFlags(385);
     localPaint2.setStyle(Paint.Style.STROKE);
     localPaint1.setColor(-16777216);
     localPaint2.setStrokeWidth(1.0F);
     localPaint2.setStrokeCap(Paint.Cap.BUTT);
     localPaint2.setStrokeJoin(Paint.Join.MITER);
     localPaint2.setStrokeMiter(4.0F);
     localPaint2.setPathEffect(null);
     Paint localPaint3 = c.a(localPaint2, paramVarArgs);
     localPaint3.set(localPaint2);
     localPaint3.setStrokeWidth(1.0F);
     localCanvas.save();
     localPaint2 = c.a(localPaint1, paramVarArgs);
     localPaint2.set(localPaint1);
     localPaint2.setColor(-1);
     localObject2 = c.a((float[]) localObject2, 1.0F, 0.0F, 16.0F, 0.0F, 1.0F, 19.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject2);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject1 = c.a(localPaint2, paramVarArgs);
     ((Paint) localObject1).set(localPaint2);
     localObject2 = c.i(paramVarArgs);
     ((Path) localObject2).moveTo(7.0F, 11.0F);
     ((Path) localObject2).cubicTo(18.022842F, -1.5691655F, 38.109734F, -3.4442992F, 51.0F, 6.0F);
     ((Path) localObject2).cubicTo(57.19578F, 9.892214F, 61.859707F, 15.868576F, 63.0F, 23.0F);
     ((Path) localObject2).cubicTo(65.37266F, 31.4011F, 62.53027F, 40.786797F, 56.0F, 47.0F);
     ((Path) localObject2).cubicTo(46.767014F, 57.08141F, 30.80359F, 59.658463F, 18.0F, 54.0F);
     ((Path) localObject2).cubicTo(13.649165F, 52.00752F, 9.035285F, 55.466988F, 4.0F, 56.0F);
     ((Path) localObject2).cubicTo(4.9118176F, 52.609165F, 6.3830547F, 49.620983F, 6.0F, 46.0F);
     ((Path) localObject2).cubicTo(5.041927F, 43.40396F, 2.8000417F, 40.85699F, 2.0F, 38.0F);
     ((Path) localObject2).cubicTo(-1.8939054F, 28.623497F, 0.3179545F, 17.643435F, 7.0F, 11.0F);
     ((Path) localObject2).lineTo(7.0F, 11.0F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(12.0F, 25.0F);
     ((Path) localObject2).cubicTo(9.865875F, 26.304083F, 9.149957F, 30.017578F, 11.0F, 32.0F);
     ((Path) localObject2).cubicTo(13.243798F, 34.098343F, 17.448557F, 32.84351F, 18.0F, 30.0F);
     ((Path) localObject2).cubicTo(18.62831F, 26.732563F, 15.159636F, 24.018854F, 12.0F, 25.0F);
     ((Path) localObject2).lineTo(12.0F, 25.0F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(30.0F, 25.0F);
     ((Path) localObject2).cubicTo(27.562128F, 26.335243F, 27.09499F, 30.759026F, 30.0F, 32.0F);
     ((Path) localObject2).cubicTo(32.18272F, 34.112537F, 36.14323F, 32.135086F, 36.0F, 29.0F);
     ((Path) localObject2).cubicTo(36.194004F, 26.263891F, 32.954514F, 24.194704F, 30.0F, 25.0F);
     ((Path) localObject2).lineTo(30.0F, 25.0F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(48.0F, 25.0F);
     ((Path) localObject2).cubicTo(45.873405F, 26.274252F, 45.137405F, 30.01835F, 47.0F, 32.0F);
     ((Path) localObject2).cubicTo(49.23077F, 34.08891F, 53.414875F, 32.85448F, 54.0F, 30.0F);
     ((Path) localObject2).cubicTo(54.63482F, 26.774145F, 51.20688F, 24.040035F, 48.0F, 25.0F);
     ((Path) localObject2).lineTo(48.0F, 25.0F);
     ((Path) localObject2).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     c.g(paramVarArgs);
   }
 }
 protected final int i(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 641;
     return 224;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.d(paramVarArgs);
     Object localObject3 = c.c(paramVarArgs);
     Object localObject2 = c.g(paramVarArgs);
     ((Paint) localObject2).setFlags(385);
     ((Paint) localObject2).setStyle(Paint.Style.FILL);
     Paint localPaint = c.g(paramVarArgs);
     localPaint.setFlags(385);
     localPaint.setStyle(Paint.Style.STROKE);
     ((Paint) localObject2).setColor(-16777216);
     localPaint.setStrokeWidth(1.0F);
     localPaint.setStrokeCap(Paint.Cap.BUTT);
     localPaint.setStrokeJoin(Paint.Join.MITER);
     localPaint.setStrokeMiter(4.0F);
     localPaint.setPathEffect(null);
     c.a(localPaint, paramVarArgs).setStrokeWidth(1.0F);
     localCanvas.save();
     localObject2 = c.a((Paint) localObject2, paramVarArgs);
     ((Paint) localObject2).setColor(-4934476);
     localObject3 = c.a((float[]) localObject3, 1.0F, 0.0F, -43.0F, 0.0F, 1.0F, -363.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject3);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject3 = c.a((float[]) localObject3, 1.0F, 0.0F, 43.0F, 0.0F, 1.0F, 347.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject3);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject3 = c.a((float[]) localObject3, 1.0F, 0.0F, 0.0F, 0.0F, 1.0F, 15.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject3);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localPaint = c.a((Paint) localObject2, paramVarArgs);
     Path localPath = c.h(paramVarArgs);
     localPath.moveTo(491.8881F, 224.8092F);
     localPath.lineTo(498.2307F, 222.9777F);
     localPath.cubicTo(477.1635F, 149.9817F, 409.3254F, 99.0F, 333.267F, 99.0F);
     localPath.cubicTo(257.2053F, 99.0F, 189.3705F, 149.985F, 168.3F, 222.9876F);
     localPath.lineTo(174.6426F, 224.8158F);
     localPath.cubicTo(179.7048F, 207.2664F, 187.5819F, 191.0436F, 197.6898F, 176.5731F);
     localPath.cubicTo(207.5733F, 180.9225F, 219.1464F, 184.7307F, 232.0197F, 187.9152F);
     localPath.cubicTo(227.9079F, 198.9702F, 224.565F, 210.7908F, 222.1626F, 223.2747F);
     localPath.lineTo(228.6471F, 224.5221F);
     localPath.cubicTo(231.033F, 212.1141F, 234.366F, 200.3826F, 238.4745F, 189.453F);
     localPath.cubicTo(265.3233F, 195.4755F, 297.0627F, 198.891F, 329.967F, 199.1088F);
     localPath.lineTo(329.967F, 223.905F);
     localPath.lineTo(336.567F, 223.905F);
     localPath.lineTo(336.567F, 199.1088F);
     localPath.cubicTo(369.468F, 198.891F, 401.2107F, 195.4755F, 428.0595F, 189.453F);
     localPath.cubicTo(432.168F, 200.3826F, 435.501F, 212.1141F, 437.8869F, 224.5221F);
     localPath.lineTo(444.3714F, 223.2747F);
     localPath.cubicTo(441.969F, 210.7908F, 438.6261F, 198.9702F, 434.5143F, 187.9152F);
     localPath.cubicTo(447.3876F, 184.7307F, 458.9607F, 180.9225F, 468.8442F, 176.5731F);
     localPath.cubicTo(478.9521F, 191.0403F, 486.8259F, 207.2631F, 491.8881F, 224.8092F);
     localPath.lineTo(491.8881F, 224.8092F);
     localPath.close();
     localPath.moveTo(415.6878F, 127.8288F);
     localPath.cubicTo(410.8467F, 129.2082F, 405.8901F, 130.4622F, 400.8246F, 131.5875F);
     localPath.cubicTo(393.1818F, 123.4035F, 384.879F, 116.5857F, 376.0779F, 111.3387F);
     localPath.cubicTo(390.0204F, 115.1238F, 403.3326F, 120.681F, 415.6878F, 127.8288F);
     localPath.lineTo(415.6878F, 127.8288F);
     localPath.close();
     localPath.moveTo(329.967F, 138.6957F);
     localPath.cubicTo(310.4145F, 138.5043F, 291.2712F, 136.6299F, 273.2796F, 133.1583F);
     localPath.cubicTo(289.8324F, 116.5494F, 309.3717F, 106.6626F, 329.967F, 105.7023F);
     localPath.lineTo(329.967F, 138.6957F);
     localPath.lineTo(329.967F, 138.6957F);
     localPath.close();
     localPath.moveTo(336.567F, 105.7023F);
     localPath.cubicTo(357.1656F, 106.6626F, 376.7082F, 116.5527F, 393.2643F, 133.1682F);
     localPath.cubicTo(375.276F, 136.6398F, 356.1294F, 138.5043F, 336.567F, 138.6957F);
     localPath.lineTo(336.567F, 105.7023F);
     localPath.lineTo(336.567F, 105.7023F);
     localPath.close();
     localPath.moveTo(265.7028F, 131.5974F);
     localPath.cubicTo(260.634F, 130.4721F, 255.6972F, 129.2016F, 250.8627F, 127.8189F);
     localPath.cubicTo(263.2113F, 120.6744F, 276.5202F, 115.1205F, 290.4561F, 111.3387F);
     localPath.cubicTo(281.6517F, 116.589F, 273.3423F, 123.4101F, 265.7028F, 131.5974F);
     localPath.lineTo(265.7028F, 131.5974F);
     localPath.close();
     localPath.moveTo(201.6762F, 171.1149F);
     localPath.cubicTo(213.2592F, 155.9019F, 227.3997F, 142.8504F, 243.3288F, 132.4719F);
     localPath.cubicTo(248.9586F, 134.2275F, 254.7666F, 135.8082F, 260.7264F, 137.214F);
     localPath.cubicTo(250.3677F, 149.6088F, 241.4412F, 164.6436F, 234.4386F, 181.7244F);
     localPath.cubicTo(222.1989F, 178.7346F, 211.1571F, 175.1739F, 201.6762F, 171.1149F);
     localPath.lineTo(201.6762F, 171.1149F);
     localPath.close();
     localPath.moveTo(240.9231F, 183.249F);
     localPath.cubicTo(248.1039F, 165.9636F, 257.3076F, 150.9123F, 267.9666F, 138.798F);
     localPath.cubicTo(287.5422F, 142.8702F, 308.5203F, 145.0878F, 329.967F, 145.2957F);
     localPath.lineTo(329.967F, 192.5088F);
     localPath.cubicTo(297.9141F, 192.2943F, 267.0492F, 189.0174F, 240.9231F, 183.249F);
     localPath.lineTo(240.9231F, 183.249F);
     localPath.close();
     localPath.moveTo(336.567F, 192.5088F);
     localPath.lineTo(336.567F, 145.2924F);
     localPath.cubicTo(358.0302F, 145.0878F, 378.9951F, 142.8702F, 398.5674F, 138.798F);
     localPath.cubicTo(409.2264F, 150.9123F, 418.4301F, 165.9603F, 425.6109F, 183.2457F);
     localPath.cubicTo(399.4815F, 189.0174F, 368.6199F, 192.2943F, 336.567F, 192.5088F);
     localPath.lineTo(336.567F, 192.5088F);
     localPath.close();
     localPath.moveTo(432.0954F, 181.7244F);
     localPath.cubicTo(425.0928F, 164.6502F, 416.1729F, 149.6187F, 405.8175F, 137.2272F);
     localPath.cubicTo(411.774F, 135.8214F, 417.5589F, 134.2176F, 423.192F, 132.462F);
     localPath.cubicTo(439.1277F, 142.8405F, 453.2715F, 155.8986F, 464.8578F, 171.1149F);
     localPath.cubicTo(455.3769F, 175.1739F, 444.3351F, 178.7346F, 432.0954F, 181.7244F);
     localPath.lineTo(432.0954F, 181.7244F);
     localPath.close();
     WeChatSVGRenderC2Java.setFillType(localPath, 2);
     localCanvas.drawPath(localPath, localPaint);
     localCanvas.restore();
     localCanvas.save();
     localPaint = c.a((Paint) localObject2, paramVarArgs);
     localPath = c.h(paramVarArgs);
     localPath.moveTo(34.1F, 67.542984F);
     localPath.cubicTo(37.867435F, 67.542984F, 40.9209F, 64.45843F, 40.9209F, 60.649837F);
     localPath.cubicTo(40.9209F, 56.843513F, 37.867435F, 53.75669F, 34.1F, 53.75669F);
     localPath.cubicTo(30.33481F, 53.75669F, 27.281347F, 56.843513F, 27.281347F, 60.649837F);
     localPath.cubicTo(27.281347F, 64.45843F, 30.33481F, 67.542984F, 34.1F, 67.542984F);
     localPath.moveTo(68.20225F, 67.542984F);
     localPath.cubicTo(71.96744F, 67.542984F, 75.0209F, 64.45843F, 75.0209F, 60.649837F);
     localPath.cubicTo(75.0209F, 56.843513F, 71.96744F, 53.75669F, 68.20225F, 53.75669F);
     localPath.cubicTo(64.43481F, 53.75669F, 61.381348F, 56.843513F, 61.381348F, 60.649837F);
     localPath.cubicTo(61.381348F, 64.45843F, 64.43481F, 67.542984F, 68.20225F, 67.542984F);
     localPath.moveTo(17.674164F, 107.0089F);
     localPath.cubicTo(6.890499F, 99.108F, -8.526513E-14F, 87.4212F, -8.526513E-14F, 74.44067F);
     localPath.cubicTo(-8.526513E-14F, 50.640366F, 22.900974F, 31.35F, 51.15F, 31.35F);
     localPath.cubicTo(79.399025F, 31.35F, 102.3F, 50.640366F, 102.3F, 74.44067F);
     localPath.cubicTo(102.3F, 98.23643F, 79.399025F, 117.52906F, 51.15F, 117.52906F);
     localPath.cubicTo(45.314743F, 117.52906F, 39.679306F, 116.68472F, 34.454742F, 115.16628F);
     localPath.cubicTo(33.97876F, 115.02102F, 33.47359F, 114.93931F, 32.950462F, 114.93931F);
     localPath.cubicTo(31.96931F, 114.93931F, 31.075724F, 115.24118F, 30.233776F, 115.73371F);
     localPath.lineTo(19.039242F, 122.26824F);
     localPath.cubicTo(18.724915F, 122.44982F, 18.421814F, 122.59054F, 18.051355F, 122.59054F);
     localPath.cubicTo(17.11062F, 122.59054F, 16.347254F, 121.81883F, 16.347254F, 120.86782F);
     localPath.cubicTo(16.347254F, 120.44112F, 16.515644F, 120.014404F, 16.621168F, 119.60812F);
     localPath.cubicTo(16.68628F, 119.363F, 18.064827F, 114.16306F, 18.926981F, 110.91509F);
     localPath.cubicTo(19.02577F, 110.54967F, 19.106598F, 110.19786F, 19.106598F, 109.81654F);
     localPath.cubicTo(19.106598F, 108.65899F, 18.540808F, 107.63307F, 17.674164F, 107.0089F);
     WeChatSVGRenderC2Java.setFillType(localPath, 2);
     localCanvas.drawPath(localPath, localPaint);
     localCanvas.restore();
     localCanvas.save();
     localPaint = c.a((Paint) localObject2, paramVarArgs);
     localObject3 =
         c.a(
             (float[]) localObject3,
             -0.9659258F,
             0.25881904F,
             1166.2971F,
             0.25881904F,
             0.9659258F,
             -153.54593F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject3);
     localCanvas.concat((Matrix) localObject1);
     localPath = c.h(paramVarArgs);
     localPath.moveTo(594.1839F, 90.56611F);
     localPath.cubicTo(603.446F, 99.828224F, 612.222F, 104.172485F, 615.46735F, 103.91808F);
     localPath.cubicTo(618.71277F, 103.66369F, 626.7947F, 98.105736F, 630.61F, 98.17971F);
     localPath.cubicTo(632.44366F, 98.21526F, 644.4262F, 106.319046F, 645.8767F, 107.255974F);
     localPath.cubicTo(647.32715F, 108.19291F, 648.67206F, 109.28735F, 648.4192F, 110.67228F);
     localPath.cubicTo(648.1663F, 112.0572F, 642.90015F, 127.312065F, 629.45557F, 125.199615F);
     localPath.cubicTo(616.01105F, 123.087166F, 597.26746F, 108.59371F, 586.5869F, 98.16311F);
     localPath.lineTo(594.1839F, 90.56611F);
     localPath.lineTo(594.1839F, 90.56611F);
     localPath.close();
     localPath.moveTo(594.1839F, 90.56611F);
     localPath.cubicTo(584.92175F, 81.30399F, 580.5775F, 72.52803F, 580.8319F, 69.28264F);
     localPath.cubicTo(581.0863F, 66.037254F, 586.6443F, 57.95533F, 586.5703F, 54.140003F);
     localPath.cubicTo(586.5347F, 52.306324F, 578.43097F, 40.323803F, 577.494F, 38.873318F);
     localPath.cubicTo(576.55707F, 37.422832F, 575.46265F, 36.07791F, 574.0777F, 36.330803F);
     localPath.cubicTo(572.6928F, 36.583694F, 557.4379F, 41.849873F, 559.55035F, 55.294426F);
     localPath.cubicTo(561.66284F, 68.738976F, 576.1563F, 87.48256F, 586.5869F, 98.16311F);
     localPath.lineTo(594.1839F, 90.56611F);
     localPath.lineTo(594.1839F, 90.56611F);
     localPath.close();
     WeChatSVGRenderC2Java.setFillType(localPath, 2);
     localCanvas.drawPath(localPath, localPaint);
     localCanvas.restore();
     localCanvas.save();
     localObject3 = c.a((float[]) localObject3, -1.0F, 0.0F, 539.55F, 0.0F, 1.0F, 0.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject3);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject1 = c.a((Paint) localObject2, paramVarArgs);
     localObject3 = c.h(paramVarArgs);
     ((Path) localObject3).moveTo(391.6935F, 52.4931F);
     ((Path) localObject3).cubicTo(387.9414F, 50.2557F, 383.9913F, 48.0579F, 379.9587F, 45.9591F);
     ((Path) localObject3).lineTo(383.0046F, 40.1016F);
     ((Path) localObject3).cubicTo(387.1494F, 42.2598F, 391.2117F, 44.5236F, 395.0727F, 46.8237F);
     ((Path) localObject3).lineTo(391.6935F, 52.4931F);
     ((Path) localObject3).lineTo(391.6935F, 52.4931F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(39.1281F, 41.5866F);
     ((Path) localObject3).lineTo(36.3066F, 35.6202F);
     ((Path) localObject3).cubicTo(40.3656F, 33.6996F, 44.6094F, 31.8219F, 48.9093F, 30.0366F);
     ((Path) localObject3).lineTo(51.4371F, 36.1317F);
     ((Path) localObject3).cubicTo(47.2329F, 37.8741F, 43.0947F, 39.7122F, 39.1281F, 41.5866F);
     ((Path) localObject3).lineTo(39.1281F, 41.5866F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(367.8675F, 40.062F);
     ((Path) localObject3).cubicTo(363.8646F, 38.2338F, 359.6967F, 36.4518F, 355.4826F, 34.7655F);
     ((Path) localObject3).lineTo(357.9378F, 28.6374F);
     ((Path) localObject3).cubicTo(362.2476F, 30.3666F, 366.5112F, 32.1882F, 370.6065F, 34.0593F);
     ((Path) localObject3).lineTo(367.8675F, 40.062F);
     ((Path) localObject3).lineTo(367.8675F, 40.062F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(64.0002F, 31.2444F);
     ((Path) localObject3).lineTo(61.743F, 25.0437F);
     ((Path) localObject3).cubicTo(65.9769F, 23.5026F, 70.356F, 22.0077F, 74.7615F, 20.6052F);
     ((Path) localObject3).lineTo(76.7679F, 26.8917F);
     ((Path) localObject3).cubicTo(72.4482F, 28.2678F, 68.1516F, 29.733F, 64.0002F, 31.2444F);
     ((Path) localObject3).lineTo(64.0002F, 31.2444F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(342.8535F, 30.0234F);
     ((Path) localObject3).cubicTo(338.7087F, 28.5615F, 334.3956F, 27.1458F, 330.0429F, 25.806F);
     ((Path) localObject3).lineTo(331.9833F, 19.4964F);
     ((Path) localObject3).cubicTo(336.4185F, 20.8626F, 340.8141F, 22.308F, 345.048F, 23.7963F);
     ((Path) localObject3).lineTo(342.8535F, 30.0234F);
     ((Path) localObject3).lineTo(342.8535F, 30.0234F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(89.7072F, 23.0373F);
     ((Path) localObject3).lineTo(87.9384F, 16.6782F);
     ((Path) localObject3).cubicTo(92.2911F, 15.4737F, 96.7692F, 14.3187F, 101.2506F, 13.2462F);
     ((Path) localObject3).lineTo(102.7818F, 19.6647F);
     ((Path) localObject3).cubicTo(98.3796F, 20.7174F, 93.9807F, 21.8526F, 89.7072F, 23.0373F);
     ((Path) localObject3).lineTo(89.7072F, 23.0373F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(317.064F, 22.0869F);
     ((Path) localObject3).cubicTo(312.7674F, 20.9418F, 308.3553F, 19.8495F, 303.9498F, 18.8397F);
     ((Path) localObject3).lineTo(305.4282F, 12.408F);
     ((Path) localObject3).cubicTo(309.903F, 13.431F, 314.391F, 14.5431F, 318.7668F, 15.7113F);
     ((Path) localObject3).lineTo(317.064F, 22.0869F);
     ((Path) localObject3).lineTo(317.064F, 22.0869F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(115.9818F, 16.7541F);
     ((Path) localObject3).lineTo(114.6651F, 10.2861F);
     ((Path) localObject3).cubicTo(119.1168F, 9.3852F, 123.6609F, 8.5404F, 128.1687F, 7.7748F);
     ((Path) localObject3).lineTo(129.2709F, 14.2824F);
     ((Path) localObject3).cubicTo(124.8291F, 15.0348F, 120.3609F, 15.8664F, 115.9818F, 16.7541F);
     ((Path) localObject3).lineTo(115.9818F, 16.7541F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(290.7267F, 16.0479F);
     ((Path) localObject3).cubicTo(286.3707F, 15.2031F, 281.8926F, 14.4111F, 277.4145F, 13.695F);
     ((Path) localObject3).lineTo(278.4606F, 7.1775F);
     ((Path) localObject3).cubicTo(283.008F, 7.9068F, 287.5587F, 8.712F, 291.9807F, 9.57F);
     ((Path) localObject3).lineTo(290.7267F, 16.0479F);
     ((Path) localObject3).lineTo(290.7267F, 16.0479F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(142.6326F, 12.2397F);
     ((Path) localObject3).lineTo(141.735F, 5.7024F);
     ((Path) localObject3).cubicTo(146.2329F, 5.0853F, 150.777F, 4.5375F, 155.3607F, 4.0491F);
     ((Path) localObject3).lineTo(156.057F, 10.6128F);
     ((Path) localObject3).cubicTo(151.536F, 11.0913F, 147.0645F, 11.6358F, 142.6326F, 12.2397F);
     ((Path) localObject3).lineTo(142.6326F, 12.2397F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(264.0363F, 11.7645F);
     ((Path) localObject3).cubicTo(259.6011F, 11.1969F, 255.1197F, 10.6887F, 250.5954F, 10.2465F);
     ((Path) localObject3).lineTo(251.2356F, 3.6795F);
     ((Path) localObject3).cubicTo(255.8259F, 4.125F, 260.3733F, 4.6398F, 264.8745F, 5.2206F);
     ((Path) localObject3).lineTo(264.0363F, 11.7645F);
     ((Path) localObject3).lineTo(264.0363F, 11.7645F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(169.5276F, 9.3918F);
     ((Path) localObject3).lineTo(169.026F, 2.8116F);
     ((Path) localObject3).cubicTo(173.5536F, 2.4651F, 178.1208F, 2.1879F, 182.7177F, 1.9734F);
     ((Path) localObject3).lineTo(183.0279F, 8.5668F);
     ((Path) localObject3).cubicTo(178.4937F, 8.778F, 173.9925F, 9.0519F, 169.5276F, 9.3918F);
     ((Path) localObject3).lineTo(169.5276F, 9.3918F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(237.1182F, 9.1311F);
     ((Path) localObject3).cubicTo(232.65F, 8.8275F, 228.1455F, 8.5866F, 223.608F, 8.4084F);
     ((Path) localObject3).lineTo(223.8654F, 1.815F);
     ((Path) localObject3).cubicTo(228.4656F, 1.9932F, 233.0361F, 2.2374F, 237.567F, 2.5476F);
     ((Path) localObject3).lineTo(237.1182F, 9.1311F);
     ((Path) localObject3).lineTo(237.1182F, 9.1311F);
     ((Path) localObject3).close();
     ((Path) localObject3).moveTo(196.5447F, 8.1279F);
     ((Path) localObject3).lineTo(196.4259F, 1.5279F);
     ((Path) localObject3).cubicTo(199.3134F, 1.4784F, 202.1085F, 1.4223F, 205.1346F, 1.452F);
     ((Path) localObject3).cubicTo(206.8077F, 1.452F, 208.4775F, 1.4619F, 210.1506F, 1.4784F);
     ((Path) localObject3).lineTo(210.078F, 8.0784F);
     ((Path) localObject3).cubicTo(208.3488F, 8.0586F, 206.6856F, 8.0619F, 204.8772F, 8.052F);
     ((Path) localObject3).cubicTo(202.0854F, 8.052F, 199.3068F, 8.0784F, 196.5447F, 8.1279F);
     ((Path) localObject3).lineTo(196.5447F, 8.1279F);
     ((Path) localObject3).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject3, 2);
     localCanvas.drawPath((Path) localObject3, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.save();
     localObject1 = c.a((Paint) localObject2, paramVarArgs);
     localObject2 = c.h(paramVarArgs);
     ((Path) localObject2).moveTo(37.2009F, 54.5655F);
     ((Path) localObject2).lineTo(24.0669F, 45.5433F);
     ((Path) localObject2).lineTo(21.4467F, 29.8254F);
     ((Path) localObject2).lineTo(0.0F, 60.8652F);
     ((Path) localObject2).lineTo(37.2009F, 54.5655F);
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     localCanvas.restore();
     localCanvas.restore();
     localCanvas.restore();
     c.f(paramVarArgs);
   }
 }
 protected final int i(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 60;
     return 54;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.d(paramVarArgs);
     Object localObject2 = c.c(paramVarArgs);
     Paint localPaint1 = c.g(paramVarArgs);
     localPaint1.setFlags(385);
     localPaint1.setStyle(Paint.Style.FILL);
     Paint localPaint2 = c.g(paramVarArgs);
     localPaint2.setFlags(385);
     localPaint2.setStyle(Paint.Style.STROKE);
     localPaint1.setColor(-16777216);
     localPaint2.setStrokeWidth(1.0F);
     localPaint2.setStrokeCap(Paint.Cap.BUTT);
     localPaint2.setStrokeJoin(Paint.Join.MITER);
     localPaint2.setStrokeMiter(4.0F);
     localPaint2.setPathEffect(null);
     c.a(localPaint2, paramVarArgs).setStrokeWidth(1.0F);
     localCanvas.save();
     localPaint1 = c.a(localPaint1, paramVarArgs);
     localPaint1.setColor(-1357238);
     localObject2 = c.a((float[]) localObject2, 1.0F, 0.0F, 4.0F, 0.0F, 1.0F, 2.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject2);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject1 = c.a(localPaint1, paramVarArgs);
     localObject2 = c.h(paramVarArgs);
     ((Path) localObject2).moveTo(6.1010113F, 2.057324F);
     ((Path) localObject2)
         .cubicTo(12.419818F, -2.0276875F, 21.226343F, 0.35939744F, 26.002764F, 5.80275F);
     ((Path) localObject2)
         .cubicTo(29.913458F, 1.4081168F, 36.07305F, -0.88907796F, 41.88436F, 0.33942184F);
     ((Path) localObject2)
         .cubicTo(46.15329F, 1.198373F, 49.516685F, 4.71408F, 50.899857F, 8.769128F);
     ((Path) localObject2)
         .cubicTo(52.929836F, 14.562054F, 52.034256F, 21.104065F, 49.168404F, 26.457527F);
     ((Path) localObject2)
         .cubicTo(44.093456F, 36.205624F, 35.60536F, 43.86627F, 26.002764F, 49.0F);
     ((Path) localObject2)
         .cubicTo(15.315523F, 43.22705F, 5.722878F, 34.327915F, 1.2648852F, 22.801992F);
     ((Path) localObject2)
         .cubicTo(-1.1929812F, 15.840492F, -0.31730413F, 6.591787F, 6.1010113F, 2.057324F);
     ((Path) localObject2).lineTo(6.1010113F, 2.057324F);
     ((Path) localObject2).lineTo(6.1010113F, 2.057324F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(6.614176F, 11.27121F);
     ((Path) localObject2)
         .cubicTo(5.3116097F, 15.999485F, 6.10707F, 21.24757F, 8.751974F, 25.366068F);
     ((Path) localObject2)
         .cubicTo(13.007686F, 32.263554F, 19.450912F, 37.44166F, 26.003513F, 42.0F);
     ((Path) localObject2)
         .cubicTo(31.064629F, 38.52127F, 35.90699F, 34.642685F, 39.924065F, 29.96439F);
     ((Path) localObject2)
         .cubicTo(43.255054F, 26.065813F, 46.138596F, 21.297552F, 45.979504F, 15.979492F);
     ((Path) localObject2)
         .cubicTo(46.198254F, 12.1209F, 44.686882F, 7.2526755F, 40.441113F, 6.3430076F);
     ((Path) localObject2)
         .cubicTo(34.624313F, 4.603642F, 30.24928F, 9.891713F, 26.003513F, 12.950597F);
     ((Path) localObject2)
         .cubicTo(21.837292F, 9.991676F, 17.651184F, 4.8135653F, 11.963644F, 6.2630367F);
     ((Path) localObject2)
         .cubicTo(9.358513F, 6.6728873F, 7.3300896F, 8.782118F, 6.614176F, 11.27121F);
     ((Path) localObject2).lineTo(6.614176F, 11.27121F);
     ((Path) localObject2).lineTo(6.614176F, 11.27121F);
     ((Path) localObject2).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     c.f(paramVarArgs);
   }
 }
  private void drawPlanets(Canvas canvas) {
    for (int i = 0; i < mPlanetInfos.length; i++) {
      canvas.drawCircle(0, 0, mPlanetInfos[i].distanceFromSun, mPlanetPaint);
    }

    PlanetImageManager pim = PlanetImageManager.getInstance();

    for (int i = 0; i < mPlanetInfos.length; i++) {
      final PlanetInfo planetInfo = mPlanetInfos[i];

      Sprite sprite = pim.getSprite(planetInfo.planet);
      mMatrix.reset();
      mMatrix.postTranslate(-(sprite.getWidth() / 2.0f), -(sprite.getHeight() / 2.0f));
      mMatrix.postScale(
          100.0f * getPixelScale() / sprite.getWidth(),
          100.0f * getPixelScale() / sprite.getHeight());
      mMatrix.postTranslate((float) planetInfo.centre.x, (float) planetInfo.centre.y);
      canvas.save();
      canvas.concat(mMatrix);
      sprite.draw(canvas);
      canvas.restore();

      if (planetInfo.buildings != null) {
        int j = 0;
        float angleOffset = (float) (Math.PI / 4.0) * (planetInfo.buildings.size() - 1) / 2.0f;
        for (Building building : planetInfo.buildings) {
          BuildingDesign design = building.getDesign();
          Sprite buildingSprite = SpriteManager.i.getSprite(design.getSpriteName());

          Vector2 pt = Vector2.pool.borrow().reset(0, -30.0f);
          pt.rotate(angleOffset - (float) (Math.PI / 4.0) * j);

          mMatrix.reset();
          mMatrix.postTranslate(
              -(buildingSprite.getWidth() / 2.0f), -(buildingSprite.getHeight() / 2.0f));
          mMatrix.postScale(
              20.0f * getPixelScale() / buildingSprite.getWidth(),
              20.0f * getPixelScale() / buildingSprite.getHeight());
          mMatrix.postTranslate(
              (float) (planetInfo.centre.x + (pt.x * getPixelScale())),
              (float) (planetInfo.centre.y + (pt.y * getPixelScale())));

          canvas.save();
          canvas.concat(mMatrix);
          buildingSprite.draw(canvas);
          canvas.restore();

          j++;
        }
      }

      if (planetInfo.colony != null) {
        Empire empire = EmpireManager.i.getEmpire(planetInfo.colony.getEmpireID());
        if (empire != null) {
          Bitmap shield = EmpireShieldManager.i.getShield(mContext, empire);
          if (shield != null) {
            mMatrix.reset();
            mMatrix.postTranslate(-shield.getWidth() / 2.0f, -shield.getHeight() / 2.0f);
            mMatrix.postScale(
                20.0f * getPixelScale() / shield.getWidth(),
                20.0f * getPixelScale() / shield.getHeight());
            mMatrix.postTranslate(
                (float) planetInfo.centre.x,
                (float) planetInfo.centre.y + (30.0f * getPixelScale()));
            canvas.drawBitmap(shield, mMatrix, mPlanetPaint);
          }
        }
      }
    }
  }
 protected final int i(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 60;
     return 60;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.d(paramVarArgs);
     float[] arrayOfFloat = c.c(paramVarArgs);
     Object localObject2 = c.g(paramVarArgs);
     ((Paint) localObject2).setFlags(385);
     ((Paint) localObject2).setStyle(Paint.Style.FILL);
     Paint localPaint = c.g(paramVarArgs);
     localPaint.setFlags(385);
     localPaint.setStyle(Paint.Style.STROKE);
     ((Paint) localObject2).setColor(-16777216);
     localPaint.setStrokeWidth(1.0F);
     localPaint.setStrokeCap(Paint.Cap.BUTT);
     localPaint.setStrokeJoin(Paint.Join.MITER);
     localPaint.setStrokeMiter(4.0F);
     localPaint.setPathEffect(null);
     c.a(localPaint, paramVarArgs).setStrokeWidth(1.0F);
     localCanvas.save();
     localObject2 = c.a((Paint) localObject2, paramVarArgs);
     ((Paint) localObject2).setColor(-12206054);
     arrayOfFloat = c.a(arrayOfFloat, 1.0F, 0.0F, -324.0F, 0.0F, 1.0F, -132.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues(arrayOfFloat);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     arrayOfFloat = c.a(arrayOfFloat, 1.0F, 0.0F, 0.0F, 0.0F, 1.0F, -3.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues(arrayOfFloat);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     arrayOfFloat = c.a(arrayOfFloat, 1.0F, 0.0F, 330.0F, 0.0F, 1.0F, 141.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues(arrayOfFloat);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject1 = c.a((Paint) localObject2, paramVarArgs);
     localObject2 = c.h(paramVarArgs);
     ((Path) localObject2).moveTo(0.0F, 6.0063868F);
     ((Path) localObject2).cubicTo(0.0F, 2.6891508F, 2.6835413F, 0.0F, 6.0063868F, 0.0F);
     ((Path) localObject2).lineTo(41.993614F, 0.0F);
     ((Path) localObject2).cubicTo(45.31085F, 0.0F, 48.0F, 2.6835413F, 48.0F, 6.0063868F);
     ((Path) localObject2).lineTo(48.0F, 41.993614F);
     ((Path) localObject2).cubicTo(48.0F, 45.31085F, 45.31646F, 48.0F, 41.993614F, 48.0F);
     ((Path) localObject2).lineTo(6.0063868F, 48.0F);
     ((Path) localObject2).cubicTo(2.6891508F, 48.0F, 0.0F, 45.31646F, 0.0F, 41.993614F);
     ((Path) localObject2).lineTo(0.0F, 6.0063868F);
     ((Path) localObject2).lineTo(0.0F, 6.0063868F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(6.0F, 26.576923F);
     ((Path) localObject2).lineTo(10.2F, 22.538462F);
     ((Path) localObject2).lineTo(19.0F, 30.923077F);
     ((Path) localObject2).lineTo(37.8F, 13.0F);
     ((Path) localObject2).lineTo(42.0F, 17.038462F);
     ((Path) localObject2).lineTo(19.0F, 39.0F);
     ((Path) localObject2).lineTo(6.0F, 26.576923F);
     ((Path) localObject2).lineTo(6.0F, 26.576923F);
     ((Path) localObject2).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     localCanvas.restore();
     localCanvas.restore();
     c.f(paramVarArgs);
   }
 }
 protected final int i(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 60;
     return 60;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.d(paramVarArgs);
     Object localObject2 = c.c(paramVarArgs);
     Paint localPaint1 = c.g(paramVarArgs);
     localPaint1.setFlags(385);
     localPaint1.setStyle(Paint.Style.FILL);
     Paint localPaint2 = c.g(paramVarArgs);
     localPaint2.setFlags(385);
     localPaint2.setStyle(Paint.Style.STROKE);
     localPaint1.setColor(-16777216);
     localPaint2.setStrokeWidth(1.0F);
     localPaint2.setStrokeCap(Paint.Cap.BUTT);
     localPaint2.setStrokeJoin(Paint.Join.MITER);
     localPaint2.setStrokeMiter(4.0F);
     localPaint2.setPathEffect(null);
     c.a(localPaint2, paramVarArgs).setStrokeWidth(1.0F);
     localCanvas.save();
     localPaint1 = c.a(localPaint1, paramVarArgs);
     localPaint1.setColor(-3487030);
     localObject2 = c.a((float[]) localObject2, 1.0F, 0.0F, 2.0F, 0.0F, 1.0F, 2.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject2);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.save();
     localObject1 = c.a(localPaint1, paramVarArgs);
     localObject2 = c.h(paramVarArgs);
     ((Path) localObject2).moveTo(20.01F, 18.99F);
     ((Path) localObject2).cubicTo(22.68F, 12.67F, 25.33F, 6.34F, 28.0F, 0.02F);
     ((Path) localObject2).cubicTo(30.67F, 6.34F, 33.33F, 12.67F, 36.0F, 18.99F);
     ((Path) localObject2).cubicTo(42.66F, 19.7F, 49.32F, 20.31F, 55.98F, 21.01F);
     ((Path) localObject2).cubicTo(51.33F, 26.03F, 46.64F, 31.0F, 42.0F, 36.02F);
     ((Path) localObject2).cubicTo(43.34F, 42.68F, 44.66F, 49.33F, 46.0F, 55.99F);
     ((Path) localObject2).cubicTo(39.98F, 52.68F, 34.01F, 49.31F, 27.99F, 46.01F);
     ((Path) localObject2).cubicTo(22.32F, 49.34F, 16.66F, 52.67F, 10.99F, 56.0F);
     ((Path) localObject2).cubicTo(12.34F, 49.34F, 13.66F, 42.68F, 15.0F, 36.02F);
     ((Path) localObject2).cubicTo(10.03F, 31.0F, 5.0F, 26.03F, 0.02F, 21.01F);
     ((Path) localObject2).cubicTo(6.68F, 20.31F, 13.35F, 19.7F, 20.01F, 18.99F);
     ((Path) localObject2).lineTo(20.01F, 18.99F);
     ((Path) localObject2).close();
     ((Path) localObject2).moveTo(14.0F, 22.0F);
     ((Path) localObject2).lineTo(14.0F, 24.0F);
     ((Path) localObject2).cubicTo(20.66F, 24.01F, 27.33F, 23.99F, 33.99F, 24.0F);
     ((Path) localObject2).cubicTo(28.01F, 29.34F, 22.0F, 34.65F, 16.02F, 40.0F);
     ((Path) localObject2).lineTo(40.0F, 40.0F);
     ((Path) localObject2).lineTo(40.0F, 38.0F);
     ((Path) localObject2).cubicTo(34.67F, 37.99F, 29.35F, 38.01F, 24.02F, 37.99F);
     ((Path) localObject2).cubicTo(30.0F, 32.65F, 36.01F, 27.34F, 42.0F, 22.0F);
     ((Path) localObject2).lineTo(14.0F, 22.0F);
     ((Path) localObject2).lineTo(14.0F, 22.0F);
     ((Path) localObject2).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     c.f(paramVarArgs);
   }
 }
Exemple #28
0
  @SuppressLint("WrongCall") // Suppress the warning since this does not refer to Android's onDraw()
  @Override
  public void onDraw(Canvas canvas) {
    if (bridge.bitmap != null) {
      // draw the bitmap
      bridge.onDraw();

      // draw the bridge bitmap if it exists
      canvas.drawBitmap(bridge.bitmap, 0, 0, paint);

      // also draw cursor if visible
      if (bridge.buffer.isCursorVisible()) {
        int cursorColumn = bridge.buffer.getCursorColumn();
        final int cursorRow = bridge.buffer.getCursorRow();

        final int columns = bridge.buffer.getColumns();

        if (cursorColumn == columns) cursorColumn = columns - 1;

        if (cursorColumn < 0 || cursorRow < 0) return;

        int currentAttribute = bridge.buffer.getAttributes(cursorColumn, cursorRow);
        boolean onWideCharacter = (currentAttribute & VDUBuffer.FULLWIDTH) != 0;

        int x = cursorColumn * bridge.charWidth;
        int y =
            (bridge.buffer.getCursorRow() + bridge.buffer.screenBase - bridge.buffer.windowBase)
                * bridge.charHeight;

        // Save the current clip and translation
        canvas.save();

        canvas.translate(x, y);
        canvas.clipRect(0, 0, bridge.charWidth * (onWideCharacter ? 2 : 1), bridge.charHeight);
        canvas.drawPaint(cursorPaint);

        final int deadKey = bridge.getKeyHandler().getDeadKey();
        if (deadKey != 0) {
          canvas.drawText(new char[] {(char) deadKey}, 0, 1, 0, 0, cursorStrokePaint);
        }

        // Make sure we scale our decorations to the correct size.
        canvas.concat(scaleMatrix);

        int metaState = bridge.getKeyHandler().getMetaState();

        if ((metaState & TerminalKeyListener.OUR_SHIFT_ON) != 0)
          canvas.drawPath(shiftCursor, cursorStrokePaint);
        else if ((metaState & TerminalKeyListener.OUR_SHIFT_LOCK) != 0)
          canvas.drawPath(shiftCursor, cursorPaint);

        if ((metaState & TerminalKeyListener.OUR_ALT_ON) != 0)
          canvas.drawPath(altCursor, cursorStrokePaint);
        else if ((metaState & TerminalKeyListener.OUR_ALT_LOCK) != 0)
          canvas.drawPath(altCursor, cursorPaint);

        if ((metaState & TerminalKeyListener.OUR_CTRL_ON) != 0)
          canvas.drawPath(ctrlCursor, cursorStrokePaint);
        else if ((metaState & TerminalKeyListener.OUR_CTRL_LOCK) != 0)
          canvas.drawPath(ctrlCursor, cursorPaint);

        // Restore previous clip region
        canvas.restore();
      }

      // draw any highlighted area
      if (bridge.isSelectingForCopy()) {
        SelectionArea area = bridge.getSelectionArea();
        canvas.save(Canvas.CLIP_SAVE_FLAG);
        canvas.clipRect(
            area.getLeft() * bridge.charWidth,
            area.getTop() * bridge.charHeight,
            (area.getRight() + 1) * bridge.charWidth,
            (area.getBottom() + 1) * bridge.charHeight);
        canvas.drawPaint(cursorPaint);
        canvas.restore();
      }
    }
  }
 protected final int i(int paramInt, Object... paramVarArgs) {
   switch (paramInt) {
   }
   for (; ; ) {
     return 0;
     return 96;
     return 96;
     Canvas localCanvas = (Canvas) paramVarArgs[0];
     paramVarArgs = (Looper) paramVarArgs[1];
     Object localObject1 = c.d(paramVarArgs);
     Object localObject3 = c.c(paramVarArgs);
     Object localObject2 = c.g(paramVarArgs);
     ((Paint) localObject2).setFlags(385);
     ((Paint) localObject2).setStyle(Paint.Style.FILL);
     Paint localPaint = c.g(paramVarArgs);
     localPaint.setFlags(385);
     localPaint.setStyle(Paint.Style.STROKE);
     ((Paint) localObject2).setColor(-16777216);
     localPaint.setStrokeWidth(1.0F);
     localPaint.setStrokeCap(Paint.Cap.BUTT);
     localPaint.setStrokeJoin(Paint.Join.MITER);
     localPaint.setStrokeMiter(4.0F);
     localPaint.setPathEffect(null);
     c.a(localPaint, paramVarArgs).setStrokeWidth(1.0F);
     localCanvas.save();
     localObject2 = c.a((Paint) localObject2, paramVarArgs);
     ((Paint) localObject2).setColor(-8355712);
     localObject3 = c.a((float[]) localObject3, 1.0F, 0.0F, 15.0F, 0.0F, 1.0F, 18.0F);
     ((Matrix) localObject1).reset();
     ((Matrix) localObject1).setValues((float[]) localObject3);
     localCanvas.concat((Matrix) localObject1);
     localCanvas.saveLayerAlpha(null, 128, 4);
     localCanvas.save();
     localObject1 = c.a((Paint) localObject2, paramVarArgs);
     localObject3 = c.h(paramVarArgs);
     ((Path) localObject3).moveTo(45.0F, -3.5527137E-15F);
     ((Path) localObject3).cubicTo(52.34879F, 6.1744103F, 59.68439F, 12.328806F, 67.0F, 19.0F);
     ((Path) localObject3).cubicTo(59.704376F, 24.717655F, 52.3388F, 30.832024F, 45.0F, 37.0F);
     ((Path) localObject3).cubicTo(45.003197F, 33.33381F, 45.023186F, 29.661186F, 45.0F, 26.0F);
     ((Path) localObject3).cubicTo(38.3272F, 26.168692F, 31.08155F, 26.34882F, 25.0F, 30.0F);
     ((Path) localObject3).cubicTo(21.237457F, 33.02359F, 19.078753F, 37.666904F, 17.0F, 42.0F);
     ((Path) localObject3).cubicTo(17.209873F, 31.952824F, 20.138117F, 20.87491F, 29.0F, 15.0F);
     ((Path) localObject3).cubicTo(33.270237F, 11.037884F, 39.36658F, 10.717655F, 45.0F, 11.0F);
     ((Path) localObject3)
         .cubicTo(45.023186F, 7.345247F, 45.003197F, 3.6726234F, 45.0F, -3.5527137E-15F);
     ((Path) localObject3).lineTo(45.0F, -3.5527137E-15F);
     ((Path) localObject3).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject3, 2);
     localCanvas.drawPath((Path) localObject3, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.save();
     localObject1 = c.a((Paint) localObject2, paramVarArgs);
     localObject2 = c.h(paramVarArgs);
     ((Path) localObject2).moveTo(-3.5527137E-15F, 15.0F);
     ((Path) localObject2).cubicTo(-0.25992802F, 13.123616F, 0.9487858F, 10.94681F, 3.0F, 11.0F);
     ((Path) localObject2).cubicTo(8.960261F, 10.916854F, 14.983851F, 11.076619F, 21.0F, 11.0F);
     ((Path) localObject2).cubicTo(19.209354F, 13.133601F, 17.690971F, 15.480158F, 16.0F, 18.0F);
     ((Path) localObject2).cubicTo(13.345594F, 18.00645F, 10.198943F, 18.00645F, 7.0F, 18.0F);
     ((Path) localObject2).cubicTo(7.0423017F, 29.31985F, 7.0423017F, 40.63325F, 7.0F, 52.0F);
     ((Path) localObject2).cubicTo(22.356007F, 51.956635F, 37.669712F, 51.956635F, 53.0F, 52.0F);
     ((Path) localObject2).cubicTo(53.003395F, 48.002438F, 52.983418F, 44.058224F, 53.0F, 40.0F);
     ((Path) localObject2).cubicTo(55.32093F, 38.126926F, 57.658443F, 36.1698F, 60.0F, 34.0F);
     ((Path) localObject2).cubicTo(59.92603F, 41.49199F, 60.085857F, 48.79128F, 60.0F, 56.0F);
     ((Path) localObject2).cubicTo(59.985966F, 58.057682F, 57.85823F, 59.275894F, 56.0F, 59.0F);
     ((Path) localObject2).cubicTo(38.348988F, 58.916424F, 20.617857F, 59.016273F, 3.0F, 59.0F);
     ((Path) localObject2)
         .cubicTo(0.89883894F, 58.996304F, -0.25992802F, 56.779556F, -3.5527137E-15F, 55.0F);
     ((Path) localObject2)
         .cubicTo(0.049742464F, 41.64177F, 0.039753094F, 28.271389F, -3.5527137E-15F, 15.0F);
     ((Path) localObject2).lineTo(-3.5527137E-15F, 15.0F);
     ((Path) localObject2).close();
     WeChatSVGRenderC2Java.setFillType((Path) localObject2, 2);
     localCanvas.drawPath((Path) localObject2, (Paint) localObject1);
     localCanvas.restore();
     localCanvas.restore();
     localCanvas.restore();
     c.f(paramVarArgs);
   }
 }
 @Override
 protected void onDraw(Canvas canvas) {
   super.onDraw(canvas);
   canvas.clipRect(clipTransform.clip, Region.Op.REPLACE);
   canvas.concat(clipTransform.renderToViewTransform);
 }