Searched refs:autoMode (Results 1 – 8 of 8) 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()672 boolean setNightDisplayAutoMode(int autoMode) { in setNightDisplayAutoMode() argument674 return mCdm.setNightDisplayAutoMode(autoMode); in setNightDisplayAutoMode()
37 boolean setNightDisplayAutoMode(int autoMode); in setNightDisplayAutoMode() argument
144 default void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
50 final int autoMode = manager.getNightDisplayAutoMode(); in getAutoModeSummary() local51 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) { in getAutoModeSummary()59 } else if (autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) { in getAutoModeSummary()
117 final int autoMode = mColorDisplayManager.getNightDisplayAutoMode(); in updateStateInternal() local119 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) { in updateStateInternal()
133 public void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
499 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() local826 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 …]
329 public void onAutoModeChanged(int autoMode) {330 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME331 || autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) {