ScreenFactors
August 4, 2026 · View on GitHub
//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.core/DimenCache/ScreenFactors
ScreenFactors
internal class ScreenFactors
EN Holds all screen-derived scaling factors in an object padded to exceed two ARM64 cache lines (2 × 64 bytes = 128 bytes), ensuring that writes during updateFactors do not invalidate unrelated reads on sibling CPU cores.
PT Agrupa todos os fatores de escala derivados da tela em um objeto com padding de 128 bytes, prevenindo false sharing entre núcleos durante updateFactors.
constructor()
@JvmField@Volatilevar arMultiplier: Float
@JvmField@Volatilevar aspectRatioMul: Float
@JvmField@Volatilevar density: Float
@JvmField@Volatilevar logNormalizedAr: Float
@JvmField@Volatilevar normalizedAr: Float
@JvmField@Volatilevar scale: Float
@JvmField@Volatilevar smallestWidthDp: Int
Constructors
| Name | Summary |
|---|---|
| ScreenFactors |
Properties
| Name | Summary |
|---|---|
| _p0 | |
| _p1 | |
| _p2 | |
| _p3 | |
| _p4 | |
| _p5 | |
| _p6 | |
| _p7 | |
| arMultiplier | |
| aspectRatioMul | |
| density | |
| logNormalizedAr | |
| normalizedAr | |
| scale | |
| smallestWidthDp |