Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/systeminterface/
DSystemInterface.java44 private final DisplayInterface mDisplayInterface; field in SystemInterface
59 mDisplayInterface = displayInterface; in SystemInterface()
70 public DisplayInterface getDisplayInterface() { return mDisplayInterface; } in getDisplayInterface()
132 mDisplayInterface.setDisplayBrightness(brightness); in setDisplayBrightness()
137 mDisplayInterface.setDisplayBrightness(displayId, brightness); in setDisplayBrightness()
142 mDisplayInterface.setDisplayState(displayId, on); in setDisplayState()
147 mDisplayInterface.setAllDisplayState(on); in setAllDisplayState()
153 mDisplayInterface.init(carPowerManagementService, carUserService); in init()
158 mDisplayInterface.startDisplayStateMonitoring(); in startDisplayStateMonitoring()
163 mDisplayInterface.stopDisplayStateMonitoring(); in stopDisplayStateMonitoring()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systeminterface/
DDisplayInterfaceTest.java78 private DisplayInterface.DefaultImpl mDisplayInterface; field in DisplayInterfaceTest
102 mDisplayInterface.startDisplayStateMonitoring(); in testStartDisplayStateMonitoring_perDisplayBrightnessSupported()
115 mDisplayInterface.startDisplayStateMonitoring(); in testStartDisplayStateMonitoring_perDisplayBrightnessNotSupported()
125 mDisplayInterface.startDisplayStateMonitoring(); in testStopDisplayStateMonitoring_perDisplayBrightnessSupported()
126 mDisplayInterface.stopDisplayStateMonitoring(); in testStopDisplayStateMonitoring_perDisplayBrightnessSupported()
136 mDisplayInterface.startDisplayStateMonitoring(); in testStopDisplayStateMonitoring_perDisplayBrightnessNoSupported()
137 mDisplayInterface.stopDisplayStateMonitoring(); in testStopDisplayStateMonitoring_perDisplayBrightnessNoSupported()
148 mDisplayInterface = new DisplayInterface.DefaultImpl(mContext, mWakeLockInterface) { in createDisplayInterface()
157 mDisplayInterface.init(mCarPowerManagementService, mCarUserService); in createDisplayInterface()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java219 private final MockDisplayInterface mDisplayInterface = new MockDisplayInterface(); field in CarPowerManagementServiceUnitTest
279 .withDisplayInterface(mDisplayInterface) in setUp()
327 mDisplayInterface.waitForAllDisplaysOff(WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand()
557 mDisplayInterface.waitForAllDisplaysOff(WAIT_TIMEOUT_MS); in testShutdownImmediately()
607 mDisplayInterface.waitForAllDisplaysOff(WAIT_TIMEOUT_MS); in testEmergencyShutdown()
638 mDisplayInterface.waitForAllDisplaysOff(WAIT_TIMEOUT_MS); in testEmergencyShutdownCancel()
906 mDisplayInterface.waitForAllDisplaysOff(WAIT_TIMEOUT_MS); in testShutdownPostponeAfterSuspend_powerPolicyRefactorFlagDisabled()
918 assertThat(mDisplayInterface.isAnyDisplayEnabled()).isTrue(); in testShutdownPostponeAfterSuspend_powerPolicyRefactorFlagDisabled()
924 mDisplayInterface.waitForAllDisplaysOn(WAIT_TIMEOUT_MS); in testShutdownPostponeAfterSuspend_powerPolicyRefactorFlagDisabled()
947 mDisplayInterface.waitForAllDisplaysOff(WAIT_TIMEOUT_MS); in testShutdownPostponeAfterSuspend_powerPolicyRefactorFlagEnabled()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java112 private final MockDisplayInterface mDisplayInterface = new MockDisplayInterface(); field in CarPowerManagerUnitTest
157 .withDisplayInterface(mDisplayInterface) in setUp()