Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DQsBatteryModeControllerTest.kt59 controller.getBatteryMode(CENTER_TOP_CUTOUT, QQS_START_FRAME.prevFrameToFraction()) in returnsMODE_ONforQqsWithCenterCutout()
66 assertThat(controller.getBatteryMode(CENTER_TOP_CUTOUT, QS_END_FRAME.nextFrameToFraction())) in returnsMODE_ESTIMATEforQsWithCenterCutout()
75 controller.getBatteryMode(CENTER_TOP_CUTOUT, QQS_START_FRAME.prevFrameToFraction()) in returnsMODE_ONforQqsWithCornerCutout()
84 assertThat(controller.getBatteryMode(CENTER_TOP_CUTOUT, QS_END_FRAME.nextFrameToFraction())) in returnsMODE_ESTIMATEforQsWithCornerCutout()
91 controller.getBatteryMode(CENTER_TOP_CUTOUT, QQS_START_FRAME.nextFrameToFraction()) in returnsNullInBetween()
94 assertThat(controller.getBatteryMode(CENTER_TOP_CUTOUT, QS_END_FRAME.prevFrameToFraction())) in returnsNullInBetween()
DShadeHeaderControllerTest.kt393 whenever(qsBatteryModeController.getBatteryMode(Mockito.same(null), eq(0f))) in <lambda>()
395 whenever(qsBatteryModeController.getBatteryMode(Mockito.same(null), eq(1f))) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DQsBatteryModeController.kt44 fun getBatteryMode(cutout: DisplayCutout?, qsExpandedFraction: Float): Int? = in getBatteryMode() method in com.android.systemui.shade.QsBatteryModeController
DShadeHeaderController.kt453 qsBatteryModeController.getBatteryMode(cutout, qsExpandedFraction)?.let { in <lambda>()