Home
last modified time | relevance | path

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

/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPainting.kt72 var devicePressureMin = 0f; // ideal value variable in com.android.egg.paint.Painting
219 if (touchData.has("min")) devicePressureMin = touchData.getDouble("min").toFloat() in loadDevicePressureData()
221 if (devicePressureMin < 0) devicePressureMin = 0f in loadDevicePressureData()
222 if (devicePressureMax < devicePressureMin) devicePressureMax = devicePressureMin + 1f in loadDevicePressureData()
229 if (pressure < devicePressureMin) devicePressureMin = pressure in adjustPressure()
230 return invlerp(pressure, devicePressureMin, devicePressureMax) in adjustPressure()