Home
last modified time | relevance | path

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

/aosp12/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.aidl37 boolean setNightDisplayAutoMode(int autoMode); in setNightDisplayAutoMode() argument
H A DNightDisplayListener.java144 default void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
/aosp12/packages/apps/Settings/src/com/android/settings/display/
H A DNightDisplayTimeFormatter.java50 final int autoMode = manager.getNightDisplayAutoMode(); in getAutoModeSummary() local
51 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) { in getAutoModeSummary()
59 } else if (autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) { in getAutoModeSummary()
H A DNightDisplayActivationPreferenceController.java117 final int autoMode = mColorDisplayManager.getNightDisplayAutoMode(); in updateStateInternal() local
119 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) { in updateStateInternal()
H A DNightDisplaySettings.java133 public void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
/aosp12/frameworks/base/services/core/java/com/android/server/display/color/
H A DColorDisplayService.java499 if (autoMode == AUTO_MODE_CUSTOM_TIME) { in onNightDisplayAutoModeChanged()
501 } else if (autoMode == AUTO_MODE_TWILIGHT) { in onNightDisplayAutoModeChanged()
814 if (getNightDisplayAutoModeInternal() != autoMode) { in setNightDisplayAutoModeInternal()
825 int autoMode = getNightDisplayAutoModeRawInternal(); in getNightDisplayAutoModeInternal() local
826 if (autoMode == NOT_SET) { in getNightDisplayAutoModeInternal()
830 if (autoMode != AUTO_MODE_DISABLED in getNightDisplayAutoModeInternal()
831 && autoMode != AUTO_MODE_CUSTOM_TIME in getNightDisplayAutoModeInternal()
832 && autoMode != AUTO_MODE_TWILIGHT) { in getNightDisplayAutoModeInternal()
833 Slog.e(TAG, "Invalid autoMode: " + autoMode); in getNightDisplayAutoModeInternal()
834 autoMode = AUTO_MODE_DISABLED; in getNightDisplayAutoModeInternal()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAutoTileManager.java329 public void onAutoModeChanged(int autoMode) {
330 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME
331 || autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) {