Lines Matching defs:on
11 * distributed under the License is distributed on an "AS IS" BASIS,
40 * the display is done on a separate thread to avoid blocking the looper.
83 // At boot time, we know that the screen is on and the electron beam
86 // Although we set the brightness to full on here, the display power controller
125 * Sets whether the screen is on or off.
127 public void setScreenOn(boolean on) {
128 if (mScreenOn != on) {
130 Slog.d(TAG, "setScreenOn: on=" + on);
133 mScreenOn = on;
140 * Returns true if the screen is on.
173 * Prepares the electron beam to turn on or off.
213 * @param level The level, ranges from 0.0 (full off) to 1.0 (full on).
328 * Updates the state of the screen and backlight asynchronously on a separate thread.
342 public boolean setState(boolean on, int backlight) {
344 if (on != mPendingOn || backlight != mPendingBacklight) {
346 Slog.d(TAG, "Requesting new screen state: on=" + on
350 mPendingOn = on;
377 final boolean on;
382 on = mPendingOn;
383 onChanged = (on != mActualOn);
390 mActualOn = on;
395 Slog.d(TAG, "Updating screen state: on=" + on
398 if (onChanged && on) {
404 if (onChanged && !on) {