Home
last modified time | relevance | path

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

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DAutomaticBrightnessControllerTest.java365 mController.switchMode(AUTO_BRIGHTNESS_MODE_IDLE, /* sendUpdate= */ true); in testShortTermModelTimesOut()
375 mController.switchMode(AUTO_BRIGHTNESS_MODE_DEFAULT, /* sendUpdate= */ true); in testShortTermModelTimesOut()
409 mController.switchMode(AUTO_BRIGHTNESS_MODE_IDLE, /* sendUpdate= */ true); in testShortTermModelDoesntTimeOut()
416 mController.switchMode(AUTO_BRIGHTNESS_MODE_DEFAULT, /* sendUpdate= */ true); in testShortTermModelDoesntTimeOut()
447 mController.switchMode(AUTO_BRIGHTNESS_MODE_IDLE, /* sendUpdate= */ true); in testShortTermModelIsRestoredWhenSwitchingWithinTimeout()
461 mController.switchMode(AUTO_BRIGHTNESS_MODE_DEFAULT, /* sendUpdate= */ true); in testShortTermModelIsRestoredWhenSwitchingWithinTimeout()
494 mController.switchMode(AUTO_BRIGHTNESS_MODE_IDLE, /* sendUpdate= */ true); in testShortTermModelNotRestoredAfterTimeout()
508 mController.switchMode(AUTO_BRIGHTNESS_MODE_DEFAULT, /* sendUpdate= */ true); in testShortTermModelNotRestoredAfterTimeout()
538 mController.switchMode(AUTO_BRIGHTNESS_MODE_IDLE, /* sendUpdate= */ true); in testSwitchBetweenModesNoUserInteractions()
549 mController.switchMode(AUTO_BRIGHTNESS_MODE_DEFAULT, /* sendUpdate= */ true); in testSwitchBetweenModesNoUserInteractions()
[all …]
DDisplayPowerControllerTest.java1314 verify(mHolder.automaticBrightnessController).switchMode(AUTO_BRIGHTNESS_MODE_IDLE, in testDwbcCallsHappenOnHandler()
1769 .switchMode(AUTO_BRIGHTNESS_MODE_DOZE, /* sendUpdate= */ false); in testSwitchToDozeAutoBrightnessMode()
1778 .switchMode(AUTO_BRIGHTNESS_MODE_DEFAULT, /* sendUpdate= */ false); in testSwitchToDozeAutoBrightnessMode()
1792 .switchMode(eq(AUTO_BRIGHTNESS_MODE_DOZE), /* sendUpdate= */ anyBoolean()); in testDoesNotSwitchFromIdleToDozeAutoBrightnessMode()
1805 .switchMode(eq(AUTO_BRIGHTNESS_MODE_DOZE), /* sendUpdate= */ anyBoolean()); in testDoesNotSwitchDozeAutoBrightnessModeIfFeatureFlagOff()
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy.java135 switchMode(targetDisplayState, /* sendUpdate= */ false); in setAutoBrightnessState()
490 private void switchMode(int state, boolean sendUpdate) { in switchMode() method in AutomaticBrightnessStrategy
494 mAutomaticBrightnessController.switchMode(Display.isDozeState(state) in switchMode()
/frameworks/base/services/usb/java/com/android/server/usb/hal/port/
DUsbPortHal.java121 public void switchMode(String portName, @HalUsbPortMode int mode, long transactionId); in switchMode() method
DUsbPortHidl.java238 public void switchMode(String portId, @HalUsbPortMode int newMode, long transactionId) { in switchMode() method in UsbPortHidl
DUsbPortAidl.java229 public void switchMode(String portId, @HalUsbPortMode int newMode, long operationID) { in switchMode() method in UsbPortAidl
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategyTest.java278 .switchMode(anyInt(), /* sendUpdate= */ anyBoolean()); in testAutoBrightnessState_modeSwitch()
286 verify(mAutomaticBrightnessController).switchMode( in testAutoBrightnessState_modeSwitch()
295 verify(mAutomaticBrightnessController).switchMode( in testAutoBrightnessState_modeSwitch()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java1175 public void switchMode(@AutomaticBrightnessMode int mode, boolean sendUpdate) {
DDisplayPowerController.java1399 mAutomaticBrightnessController.switchMode(Display.isDozeState(state) in updatePowerStateInternal()
3040 mAutomaticBrightnessController.switchMode(msg.arg1, /* sendUpdate= */ true); in handleMessage()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java660 mUsbPortHal.switchMode(portId, toHalUsbMode(newMode), ++mTransactionId); in setPortRoles()