Searched refs:autoMode (Results 1 – 11 of 11) sorted by relevance
49 it.autoMode, in tileData()63 autoMode: Int, in availability()70 if (autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) { in availability()76 } else if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) { in availability()
265 public boolean setNightDisplayAutoMode(@AutoMode int autoMode) { in setNightDisplayAutoMode() argument266 if (autoMode != AUTO_MODE_DISABLED in setNightDisplayAutoMode()267 && autoMode != AUTO_MODE_CUSTOM_TIME in setNightDisplayAutoMode()268 && autoMode != AUTO_MODE_TWILIGHT) { in setNightDisplayAutoMode()269 throw new IllegalArgumentException("Invalid autoMode: " + autoMode); in setNightDisplayAutoMode()271 if (mManager.getNightDisplayAutoMode() != autoMode) { in setNightDisplayAutoMode()275 .setSubtype(autoMode)); in setNightDisplayAutoMode()277 return mManager.setNightDisplayAutoMode(autoMode); in setNightDisplayAutoMode()681 boolean setNightDisplayAutoMode(int autoMode) { in setNightDisplayAutoMode() argument683 return mCdm.setNightDisplayAutoMode(autoMode); in setNightDisplayAutoMode()
44 boolean setNightDisplayAutoMode(int autoMode); in setNightDisplayAutoMode() argument
144 default void onAutoModeChanged(int autoMode) { in onAutoModeChanged() argument
83 state.copy(autoMode = event.autoMode) in <lambda>()109 override fun onAutoModeChanged(autoMode: Int) { in <lambda>()110 trySend(NightDisplayChangeEvent.OnAutoModeChanged(autoMode)) in <lambda>()156 suspend fun setNightDisplayAutoMode(autoMode: Int, user: UserHandle) { in <lambda>()158 colorDisplayManagerUserScopedService.forUser(user).nightDisplayAutoMode = autoMode in <lambda>()
63 override fun onAutoModeChanged(autoMode: Int) { in autoAddSignal()65 autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME || in autoAddSignal()66 autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT in autoAddSignal()
104 assertThat(lastState!!.autoMode).isEqualTo(ColorDisplayManager.AUTO_MODE_DISABLED) in nightDisplayState_matchesAutoMode()107 assertThat(lastState!!.autoMode).isEqualTo(ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) in nightDisplayState_matchesAutoMode()117 assertThat(lastState!!.autoMode).isEqualTo(ColorDisplayManager.AUTO_MODE_TWILIGHT) in nightDisplayState_matchesAutoMode()152 assertThat(lastState!!.autoMode).isEqualTo(ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) in nightDisplayState_matchesController_initiallyCustomAutoMode()165 assertThat(lastState!!.autoMode).isEqualTo(ColorDisplayManager.AUTO_MODE_TWILIGHT) in nightDisplayState_matchesController_initiallyTwilightAutoMode()
515 private void onNightDisplayAutoModeChanged(int autoMode) { in onNightDisplayAutoModeChanged() argument516 Slog.d(TAG, "onNightDisplayAutoModeChanged: autoMode=" + autoMode); in onNightDisplayAutoModeChanged()523 if (autoMode == AUTO_MODE_CUSTOM_TIME) { in onNightDisplayAutoModeChanged()525 } else if (autoMode == AUTO_MODE_TWILIGHT) { in onNightDisplayAutoModeChanged()923 private boolean setNightDisplayAutoModeInternal(@AutoMode int autoMode) { in setNightDisplayAutoModeInternal() argument924 if (getNightDisplayAutoModeInternal() != autoMode) { in setNightDisplayAutoModeInternal()931 Secure.NIGHT_DISPLAY_AUTO_MODE, autoMode, mCurrentUser); in setNightDisplayAutoModeInternal()935 int autoMode = getNightDisplayAutoModeRawInternal(); in getNightDisplayAutoModeInternal() local936 if (autoMode == NOT_SET) { in getNightDisplayAutoModeInternal()937 autoMode = getContext().getResources().getInteger( in getNightDisplayAutoModeInternal()[all …]
23 val autoMode: Int = 0, constant in com.android.systemui.accessibility.data.model.NightDisplayState
22 data class OnAutoModeChanged(val autoMode: Int) : NightDisplayChangeEvent constant in com.android.systemui.accessibility.data.model.NightDisplayChangeEvent.OnAutoModeChanged
392 public void onAutoModeChanged(int autoMode) {393 if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME394 || autoMode == ColorDisplayManager.AUTO_MODE_TWILIGHT) {