Home
last modified time | relevance | path

Searched refs:MAX_LEVEL (Results 1 – 16 of 16) 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()
DTouchBehavior.kt27 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL
77 clipLayer.setLevel(if (enabled) MAX_LEVEL else MIN_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>()
DThumbnailBehavior.kt30 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL
79 clipLayer.setLevel(if (enabled) MAX_LEVEL else MIN_LEVEL) in bind()
DControlViewHolder.kt88 const val MAX_LEVEL = 10000 constant
/frameworks/base/location/java/com/android/internal/location/altitude/
DS2CellIdUtils.java32 public static final int MAX_LEVEL = 30; field in S2CellIdUtils
34 private static final int MAX_SIZE = 1 << MAX_LEVEL;
37 private static final int POS_BITS = 2 * MAX_LEVEL + 1;
181 return MAX_LEVEL; in getLevel()
183 return MAX_LEVEL - (Long.numberOfTrailingZeros(s2CellId) >> 1); in getLevel()
193 return 1L << (2 * (MAX_LEVEL - level)); in getLowestOnBitForLevel()
347 int nbits = (k == 7) ? (MAX_LEVEL - 7 * LOOKUP_BITS) : LOOKUP_BITS; in toIjo()
380 return 1 << (MAX_LEVEL - level); in levelToSizeIj()
DGeoidMap.java197 int numBitsRightOfMap = 2 * (S2CellIdUtils.MAX_LEVEL - params.mapS2Level) + 1; in mergeByteBufferValues()
251 return (iOrJ >> (S2CellIdUtils.MAX_LEVEL - params.mapS2Level)) % widthOrHeight; in getIndexXOrY()
/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()
DBrightnessProgressDrawable.kt45 private const val MAX_LEVEL = 10000 // Taken from Drawable constant
63 val width = bounds.width() * level / MAX_LEVEL + thumbOffset in onLevelChange()
/frameworks/base/location/java/android/location/altitude/
DAltitudeConverter.java94 int sizeIj = 1 << (S2CellIdUtils.MAX_LEVEL - geoidHeightParams.mapS2Level); in findMapSquare()
95 int maxIj = 1 << S2CellIdUtils.MAX_LEVEL; in findMapSquare()
177 double sizeIj = 1 << (S2CellIdUtils.MAX_LEVEL - geoidHeightParams.mapS2Level); in addMslAltitude()
/frameworks/base/core/java/android/widget/
DProgressBar.java178 private static final int MAX_LEVEL = 10000; field in ProgressBar
1676 final int level = (int) (progress * MAX_LEVEL); in setVisualProgress()
2178 d.setLevel((int) (scale * MAX_LEVEL)); in drawTrack()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt16827 Landroid/graphics/drawable/ClipDrawable;->MAX_LEVEL:I
17361 Landroid/graphics/drawable/RotateDrawable;->MAX_LEVEL:I
17376 Landroid/graphics/drawable/ScaleDrawable;->MAX_LEVEL:I
68025 Landroid/widget/ProgressBar;->MAX_LEVEL:I