Home
last modified time | relevance | path

Searched refs:autoMode (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/app/
DNightDisplayController.java150 int autoMode = Secure.getIntForUser(mContext.getContentResolver(), in getAutoMode() local
152 if (autoMode == -1) { in getAutoMode()
156 autoMode = mContext.getResources().getInteger( in getAutoMode()
160 if (autoMode != AUTO_MODE_DISABLED in getAutoMode()
161 && autoMode != AUTO_MODE_CUSTOM in getAutoMode()
162 && autoMode != AUTO_MODE_TWILIGHT) { in getAutoMode()
163 Slog.e(TAG, "Invalid autoMode: " + autoMode); in getAutoMode()
164 autoMode = AUTO_MODE_DISABLED; in getAutoMode()
167 return autoMode; in getAutoMode()
178 public boolean setAutoMode(@AutoMode int autoMode) { in setAutoMode() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java139 public void onAutoModeChanged(int autoMode) {
140 if (autoMode == NightDisplayController.AUTO_MODE_CUSTOM
141 || autoMode == NightDisplayController.AUTO_MODE_TWILIGHT) {
/frameworks/base/services/core/java/com/android/server/display/
DNightDisplayService.java299 public void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
300 Slog.d(TAG, "onAutoModeChanged: autoMode=" + autoMode); in onAutoModeChanged()
307 if (autoMode == NightDisplayController.AUTO_MODE_CUSTOM) { in onAutoModeChanged()
309 } else if (autoMode == NightDisplayController.AUTO_MODE_TWILIGHT) { in onAutoModeChanged()