/aosp14/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 60 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()
|
H A D | ScaleDrawable.java | 67 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()
|
H A D | RotateDrawable.java | 56 private static final int MAX_LEVEL = 10000; field in RotateDrawable 315 final float value = level / (float) MAX_LEVEL; in onLevelChange()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
H A D | ToggleRangeBehavior.kt | 42 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL 157 val max = levelToRangeValue(MAX_LEVEL) 225 val newLevel = Math.max(MIN_LEVEL, Math.min(MAX_LEVEL, level)) 236 val isEdge = newLevel == MIN_LEVEL || newLevel == MAX_LEVEL 286 MIN_LEVEL.toFloat(), MAX_LEVEL.toFloat(), i.toFloat()) 290 return MathUtils.constrainedMap(MIN_LEVEL.toFloat(), MAX_LEVEL.toFloat(), 350 val changeAmount = ((MAX_LEVEL - MIN_LEVEL) * ratioDiff).toInt()
|
H A D | ToggleBehavior.kt | 27 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL 59 clipLayer.level = MAX_LEVEL
|
H A D | TemperatureControlBehavior.kt | 27 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL 55 clipLayer.setLevel(if (enabled) MAX_LEVEL else MIN_LEVEL)
|
H A D | TouchBehavior.kt | 27 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL 77 clipLayer.setLevel(if (enabled) MAX_LEVEL else MIN_LEVEL)
|
H A D | ThumbnailBehavior.kt | 29 import com.android.systemui.controls.ui.ControlViewHolder.Companion.MAX_LEVEL 76 clipLayer.setLevel(if (enabled) MAX_LEVEL else MIN_LEVEL)
|
H A D | ControlViewHolder.kt | 88 const val MAX_LEVEL = 10000
|
/aosp14/frameworks/base/location/java/com/android/internal/location/altitude/ |
H A D | S2CellIdUtils.java | 32 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; 153 return MAX_LEVEL; in getLevel() 155 return MAX_LEVEL - (Long.numberOfTrailingZeros(s2CellId) >> 1); in getLevel() 165 return 1L << (2 * (MAX_LEVEL - level)); in getLowestOnBitForLevel() 343 int nbits = (k == 7) ? (MAX_LEVEL - 7 * LOOKUP_BITS) : LOOKUP_BITS; in toIjo() 376 return 1 << (MAX_LEVEL - level); in levelToSizeIj()
|
H A D | GeoidHeightMap.java | 163 int numBitsRightOfMap = 2 * (S2CellIdUtils.MAX_LEVEL - params.mapS2Level) + 1; in mergeByteBufferValues() 219 return (iOrJ >> (S2CellIdUtils.MAX_LEVEL - params.mapS2Level)) % widthOrHeight; in getIndexXOrY()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
H A D | RoundedCornerProgressDrawable.kt | 42 private const val MAX_LEVEL = 10000 // Taken from Drawable 58 val width = bounds.height() + (bounds.width() - bounds.height()) * level / MAX_LEVEL
|
H A D | BrightnessProgressDrawable.kt | 45 private const val MAX_LEVEL = 10000 // Taken from Drawable 63 val width = bounds.width() * level / MAX_LEVEL + thumbOffset
|
/aosp14/frameworks/base/location/java/android/location/altitude/ |
H A D | AltitudeConverter.java | 134 double sizeIj = 1 << (S2CellIdUtils.MAX_LEVEL - params.mapS2Level); in addMslAltitude()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | ProgressBar.java | 169 private static final int MAX_LEVEL = 10000; field in ProgressBar 1667 final int level = (int) (progress * MAX_LEVEL); in setVisualProgress() 2169 d.setLevel((int) (scale * MAX_LEVEL)); in drawTrack()
|
/aosp14/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 16827 Landroid/graphics/drawable/ClipDrawable;->MAX_LEVEL:I 17361 Landroid/graphics/drawable/RotateDrawable;->MAX_LEVEL:I 17376 Landroid/graphics/drawable/ScaleDrawable;->MAX_LEVEL:I 68668 Landroid/widget/ProgressBar;->MAX_LEVEL:I
|