Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/hardware/display/
H A 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()
672 boolean setNightDisplayAutoMode(int autoMode) { in setNightDisplayAutoMode() argument
674 return mCdm.setNightDisplayAutoMode(autoMode); in setNightDisplayAutoMode()
H A DIColorDisplayManager.aidl40 boolean setNightDisplayAutoMode(int autoMode); in setNightDisplayAutoMode() argument
H A DNightDisplayListener.java144 default void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
H A DNightDisplayAutoAddable.kt63 override fun onAutoModeChanged(autoMode: Int) {
65 autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME ||
66 autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT
/aosp14/frameworks/base/services/core/java/com/android/server/display/color/
H A DColorDisplayService.java498 if (autoMode == AUTO_MODE_CUSTOM_TIME) { in onNightDisplayAutoModeChanged()
500 } else if (autoMode == AUTO_MODE_TWILIGHT) { in onNightDisplayAutoModeChanged()
888 if (getNightDisplayAutoModeInternal() != autoMode) { in setNightDisplayAutoModeInternal()
899 int autoMode = getNightDisplayAutoModeRawInternal(); in getNightDisplayAutoModeInternal() local
900 if (autoMode == NOT_SET) { in getNightDisplayAutoModeInternal()
904 if (autoMode != AUTO_MODE_DISABLED in getNightDisplayAutoModeInternal()
905 && autoMode != AUTO_MODE_CUSTOM_TIME in getNightDisplayAutoModeInternal()
906 && autoMode != AUTO_MODE_TWILIGHT) { in getNightDisplayAutoModeInternal()
907 Slog.e(TAG, "Invalid autoMode: " + autoMode); in getNightDisplayAutoModeInternal()
908 autoMode = AUTO_MODE_DISABLED; in getNightDisplayAutoModeInternal()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAutoTileManager.java390 public void onAutoModeChanged(int autoMode) {
391 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME
392 || autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) {