Home
last modified time | relevance | path

Searched refs:MAX_LEVEL (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DClipDrawable.java57 private static final int MAX_LEVEL = 10000; field in ClipDrawable
165 if (level >= MAX_LEVEL) { in getOpacity()
187 w -= (w - iw) * (MAX_LEVEL - level) / MAX_LEVEL; in draw()
193 h -= (h - ih) * (MAX_LEVEL - level) / MAX_LEVEL; in draw()
DScaleDrawable.java65 private static final int MAX_LEVEL = 10000; field in ScaleDrawable
205 if (opacity == PixelFormat.OPAQUE && d.getLevel() < MAX_LEVEL) { in getOpacity()
230 w -= (int) ((w - iw) * (MAX_LEVEL - level) * mState.mScaleWidth / MAX_LEVEL); in onBoundsChange()
236 h -= (int) ((h - ih) * (MAX_LEVEL - level) * mState.mScaleHeight / MAX_LEVEL); in onBoundsChange()
DRotateDrawable.java55 private static final int MAX_LEVEL = 10000; field in RotateDrawable
313 final float value = level / (float) MAX_LEVEL; in onLevelChange()
/frameworks/support/wear/src/android/support/wear/widget/
DProgressDrawable.java60 private static final int MAX_LEVEL = 10000; field in ProgressDrawable
67 private static final int LEVELS_PER_SEGMENT = MAX_LEVEL / NUMBER_OF_SEGMENTS;
89 mAnimator = ObjectAnimator.ofInt(this, LEVEL, 0, MAX_LEVEL); in ProgressDrawable()
155 level * (1.0f / MAX_LEVEL) * 2 * FULL_CIRCLE + STARTING_ANGLE + correctionAngle, in draw()
/frameworks/base/core/java/android/widget/
DProgressBar.java160 private static final int MAX_LEVEL = 10000; field in ProgressBar
1331 final int level = (int) (progress * MAX_LEVEL); in setVisualProgress()
1799 d.setLevel((int) (scale * MAX_LEVEL)); in drawTrack()