Searched refs:autoMode (Results 1 – 3 of 3) sorted by relevance
150 int autoMode = Secure.getIntForUser(mContext.getContentResolver(), in getAutoMode() local152 if (autoMode == -1) { in getAutoMode()156 autoMode = mContext.getResources().getInteger( in getAutoMode()160 if (autoMode != AUTO_MODE_DISABLED in getAutoMode()161 && autoMode != AUTO_MODE_CUSTOM in getAutoMode()162 && autoMode != AUTO_MODE_TWILIGHT) { in getAutoMode()163 Slog.e(TAG, "Invalid autoMode: " + autoMode); in getAutoMode()164 autoMode = AUTO_MODE_DISABLED; in getAutoMode()167 return autoMode; in getAutoMode()178 public boolean setAutoMode(@AutoMode int autoMode) { in setAutoMode() argument[all …]
139 public void onAutoModeChanged(int autoMode) {140 if (autoMode == NightDisplayController.AUTO_MODE_CUSTOM141 || autoMode == NightDisplayController.AUTO_MODE_TWILIGHT) {
299 public void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument300 Slog.d(TAG, "onAutoModeChanged: autoMode=" + autoMode); in onAutoModeChanged()307 if (autoMode == NightDisplayController.AUTO_MODE_CUSTOM) { in onAutoModeChanged()309 } else if (autoMode == NightDisplayController.AUTO_MODE_TWILIGHT) { in onAutoModeChanged()