Searched refs:autoMode (Results 1 – 5 of 5) sorted by relevance
262 public boolean setNightDisplayAutoMode(@AutoMode int autoMode) { in setNightDisplayAutoMode() argument263 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() argument583 return mCdm.setNightDisplayAutoMode(autoMode); in setNightDisplayAutoMode()
37 boolean setNightDisplayAutoMode(int autoMode); in setNightDisplayAutoMode() argument
144 default void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
418 private void onNightDisplayAutoModeChanged(int autoMode) { in onNightDisplayAutoModeChanged() argument419 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() argument673 if (getNightDisplayAutoModeInternal() != autoMode) { in setNightDisplayAutoModeInternal()680 Secure.NIGHT_DISPLAY_AUTO_MODE, autoMode, mCurrentUser); in setNightDisplayAutoModeInternal()684 int autoMode = getNightDisplayAutoModeRawInternal(); in getNightDisplayAutoModeInternal() local685 if (autoMode == NOT_SET) { in getNightDisplayAutoModeInternal()686 autoMode = getContext().getResources().getInteger( in getNightDisplayAutoModeInternal()[all …]
180 public void onAutoModeChanged(int autoMode) {181 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME182 || autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) {