Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/display/
DColorDisplayManager.java262 public boolean setNightDisplayAutoMode(@AutoMode int autoMode) { in setNightDisplayAutoMode() argument
263 if (autoMode != AUTO_MODE_DISABLED in setNightDisplayAutoMode()
264 && autoMode != AUTO_MODE_CUSTOM_TIME in setNightDisplayAutoMode()
265 && autoMode != AUTO_MODE_TWILIGHT) { in setNightDisplayAutoMode()
266 throw new IllegalArgumentException("Invalid autoMode: " + autoMode); in setNightDisplayAutoMode()
268 if (mManager.getNightDisplayAutoMode() != autoMode) { in setNightDisplayAutoMode()
272 .setSubtype(autoMode)); in setNightDisplayAutoMode()
274 return mManager.setNightDisplayAutoMode(autoMode); in setNightDisplayAutoMode()
581 boolean setNightDisplayAutoMode(int autoMode) { in setNightDisplayAutoMode() argument
583 return mCdm.setNightDisplayAutoMode(autoMode); in setNightDisplayAutoMode()
DIColorDisplayManager.aidl37 boolean setNightDisplayAutoMode(int autoMode); in setNightDisplayAutoMode() argument
DNightDisplayListener.java144 default void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java418 private void onNightDisplayAutoModeChanged(int autoMode) { in onNightDisplayAutoModeChanged() argument
419 Slog.d(TAG, "onNightDisplayAutoModeChanged: autoMode=" + autoMode); in onNightDisplayAutoModeChanged()
426 if (autoMode == AUTO_MODE_CUSTOM_TIME) { in onNightDisplayAutoModeChanged()
428 } else if (autoMode == AUTO_MODE_TWILIGHT) { in onNightDisplayAutoModeChanged()
672 private boolean setNightDisplayAutoModeInternal(@AutoMode int autoMode) { in setNightDisplayAutoModeInternal() argument
673 if (getNightDisplayAutoModeInternal() != autoMode) { in setNightDisplayAutoModeInternal()
680 Secure.NIGHT_DISPLAY_AUTO_MODE, autoMode, mCurrentUser); in setNightDisplayAutoModeInternal()
684 int autoMode = getNightDisplayAutoModeRawInternal(); in getNightDisplayAutoModeInternal() local
685 if (autoMode == NOT_SET) { in getNightDisplayAutoModeInternal()
686 autoMode = getContext().getResources().getInteger( in getNightDisplayAutoModeInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java180 public void onAutoModeChanged(int autoMode) {
181 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME
182 || autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) {