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.java453 private void onNightDisplayAutoModeChanged(int autoMode) { in onNightDisplayAutoModeChanged() argument
454 Slog.d(TAG, "onNightDisplayAutoModeChanged: autoMode=" + autoMode); in onNightDisplayAutoModeChanged()
461 if (autoMode == AUTO_MODE_CUSTOM_TIME) { in onNightDisplayAutoModeChanged()
463 } else if (autoMode == AUTO_MODE_TWILIGHT) { in onNightDisplayAutoModeChanged()
730 private boolean setNightDisplayAutoModeInternal(@AutoMode int autoMode) { in setNightDisplayAutoModeInternal() argument
731 if (getNightDisplayAutoModeInternal() != autoMode) { in setNightDisplayAutoModeInternal()
738 Secure.NIGHT_DISPLAY_AUTO_MODE, autoMode, mCurrentUser); in setNightDisplayAutoModeInternal()
742 int autoMode = getNightDisplayAutoModeRawInternal(); in getNightDisplayAutoModeInternal() local
743 if (autoMode == NOT_SET) { in getNightDisplayAutoModeInternal()
744 autoMode = getContext().getResources().getInteger( in getNightDisplayAutoModeInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java250 public void onAutoModeChanged(int autoMode) {
251 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME
252 || autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) {