Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatterySpecs.kt52 fun getFullBatteryHeight(mainBatteryHeight: Float, displayShield: Boolean): Float { in getFullBatteryHeight()
53 return if (!displayShield) { in getFullBatteryHeight()
69 fun getFullBatteryWidth(mainBatteryWidth: Float, displayShield: Boolean): Float { in getFullBatteryWidth()
70 return if (!displayShield) { in getFullBatteryWidth()
86 fun getMainBatteryHeight(fullBatteryHeight: Float, displayShield: Boolean): Float { in getMainBatteryHeight()
87 return if (!displayShield) { in getMainBatteryHeight()
102 fun getMainBatteryWidth(fullBatteryWidth: Float, displayShield: Boolean): Float { in getMainBatteryWidth()
103 return if (!displayShield) { in getMainBatteryWidth()
DAccessorizedBatteryDrawable.kt89 var displayShield: Boolean = false in <lambda>() variable
101 val mainWidth = BatterySpecs.getMainBatteryWidth(b.width().toFloat(), displayShield) in <lambda>()
102 val mainHeight = BatterySpecs.getMainBatteryHeight(b.height().toFloat(), displayShield) in <lambda>()
111 if (displayShield) { in <lambda>()
130 if (displayShield) { in <lambda>()
140 if (displayShield) { in <lambda>()
153 if (displayShield) { in <lambda>()
DBatteryMeterView.java662 boolean displayShield = mDisplayShieldEnabled && mIsBatteryDefender; in scaleBatteryMeterViewsLegacy()
664 BatterySpecs.getFullBatteryHeight(mainBatteryHeight, displayShield); in scaleBatteryMeterViewsLegacy()
666 BatterySpecs.getFullBatteryWidth(mainBatteryWidth, displayShield); in scaleBatteryMeterViewsLegacy()
669 if (displayShield) { in scaleBatteryMeterViewsLegacy()
689 mDrawable.setDisplayShield(displayShield); in scaleBatteryMeterViewsLegacy()
771 String displayShield = mDrawable == null ? null : mDrawable.getDisplayShield() + ""; in dump() local
776 pw.println(" mDrawable.getDisplayShield: " + displayShield); in dump()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DBatterySpecsTest.kt32 val fullHeight = BatterySpecs.getFullBatteryHeight(56f, displayShield = false) in getFullBatteryHeight_shieldFalse_returnsMainHeight()
40 val fullHeight = BatterySpecs.getFullBatteryHeight(mainHeight, displayShield = true) in getFullBatteryHeight_shieldTrue_returnsMainHeightPlusShield()
50 val fullWidth = BatterySpecs.getFullBatteryWidth(33f, displayShield = false) in getFullBatteryWidth_shieldFalse_returnsMainWidth()
59 val fullWidth = BatterySpecs.getFullBatteryWidth(mainWidth, displayShield = true) in getFullBatteryWidth_shieldTrue_returnsMainWidthPlusShield()
68 val mainHeight = BatterySpecs.getMainBatteryHeight(89f, displayShield = false) in getMainBatteryHeight_shieldFalse_returnsFullHeight()
77 val mainHeight = BatterySpecs.getMainBatteryHeight(fullHeight, displayShield = true) in getMainBatteryHeight_shieldTrue_returnsNotFullHeight()
86 val mainWidth = BatterySpecs.getMainBatteryWidth(2345f, displayShield = false) in getMainBatteryWidth_shieldFalse_returnsFullWidth()
95 val mainWidth = BatterySpecs.getMainBatteryWidth(fullWidth, displayShield = true) in getMainBatteryWidth_shieldTrue_returnsNotFullWidth()
DAccessorizedBatteryDrawableTest.kt33 drawable.displayShield = false in intrinsicSize_shieldFalse_isBatterySize()
43 drawable.displayShield = true in intrinsicSize_shieldTrue_isBatteryPlusShieldSize()
DBatteryMeterViewTest.kt275 assertThat(drawable.displayShield).isTrue() in isBatteryDefenderChanged_true_drawableGetsTrue_flagOff()
300 assertThat(drawable.displayShield).isFalse() in isBatteryDefenderChanged_false_drawableGetsFalse_flagOff()
325 assertThat(drawable.displayShield).isFalse() in isBatteryDefenderChanged_true_featureflagOff_drawableGetsFalse_flagOff()