Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/drawable/
DClipDrawable.java60 private static final int MAX_LEVEL = 10000; field in ClipDrawable
169 if (level >= MAX_LEVEL) { in getOpacity()
191 w -= (w - iw) * (MAX_LEVEL - level) / MAX_LEVEL; in draw()
197 h -= (h - ih) * (MAX_LEVEL - level) / MAX_LEVEL; in draw()
DScaleDrawable.java67 private static final int MAX_LEVEL = 10000; field in ScaleDrawable
208 if (opacity == PixelFormat.OPAQUE && d.getLevel() < MAX_LEVEL) { in getOpacity()
233 w -= (int) ((w - iw) * (MAX_LEVEL - level) * mState.mScaleWidth / MAX_LEVEL); in onBoundsChange()
239 h -= (int) ((h - ih) * (MAX_LEVEL - level) * mState.mScaleHeight / MAX_LEVEL); in onBoundsChange()
DRotateDrawable.java56 private static final int MAX_LEVEL = 10000; field in RotateDrawable
315 final float value = level / (float) MAX_LEVEL; in onLevelChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DToggleRangeBehavior.kt42 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL in <lambda>()
157 val max = levelToRangeValue(MAX_LEVEL) in <lambda>()
225 val newLevel = Math.max(MIN_LEVEL, Math.min(MAX_LEVEL, level)) in <lambda>()
236 val isEdge = newLevel == MIN_LEVEL || newLevel == MAX_LEVEL in <lambda>()
286 MIN_LEVEL.toFloat(), MAX_LEVEL.toFloat(), i.toFloat()) in <lambda>()
290 return MathUtils.constrainedMap(MIN_LEVEL.toFloat(), MAX_LEVEL.toFloat(), in <lambda>()
350 val changeAmount = ((MAX_LEVEL - MIN_LEVEL) * ratioDiff).toInt() in <lambda>()
DToggleBehavior.kt27 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL
59 clipLayer.level = MAX_LEVEL in bind()
DTemperatureControlBehavior.kt27 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL in <lambda>()
55 clipLayer.setLevel(if (enabled) MAX_LEVEL else MIN_LEVEL) in <lambda>()
DTouchBehavior.kt27 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL
77 clipLayer.setLevel(if (enabled) MAX_LEVEL else MIN_LEVEL) in bind()
DThumbnailBehavior.kt29 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL
75 clipLayer.setLevel(if (enabled) MAX_LEVEL else MIN_LEVEL) in bind()
DControlViewHolder.kt87 const val MAX_LEVEL = 10000 constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DRoundedCornerProgressDrawable.kt42 private const val MAX_LEVEL = 10000 // Taken from Drawable constant
58 val width = bounds.height() + (bounds.width() - bounds.height()) * level / MAX_LEVEL in onLevelChange()
/frameworks/base/core/java/android/widget/
DProgressBar.java169 private static final int MAX_LEVEL = 10000; field in ProgressBar
1663 final int level = (int) (progress * MAX_LEVEL); in setVisualProgress()
2165 d.setLevel((int) (scale * MAX_LEVEL)); in drawTrack()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt19705 Landroid/graphics/drawable/ClipDrawable;->MAX_LEVEL:I
20239 Landroid/graphics/drawable/RotateDrawable;->MAX_LEVEL:I
20254 Landroid/graphics/drawable/ScaleDrawable;->MAX_LEVEL:I
71991 Landroid/widget/ProgressBar;->MAX_LEVEL:I