MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / wakeUpScreen

Function wakeUpScreen

src/powerSave.cpp:9–22  ·  view source on GitHub ↗

If the device screen is off, turn on, else just refresh sleep timer */

Source from the content-addressed store, hash-verified

7
8/* If the device screen is off, turn on, else just refresh sleep timer */
9bool wakeUpScreen() {
10 previousMillis = launcherMillis();
11 if (isScreenOff) {
12 isScreenOff = false;
13 dimmer = false;
14 getBrightness();
15 return true;
16 } else if (dimmer) {
17 dimmer = false;
18 getBrightness();
19 return true;
20 }
21 return false;
22}
23
24/* Check if it's time to put the device to sleep */
25void checkPowerSaveTime() {

Callers 15

InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85

Calls 2

launcherMillisFunction · 0.85
getBrightnessFunction · 0.85

Tested by

no test coverage detected