Home
last modified time | relevance | path

Searched refs:FORCED_DAY_MODE (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/display/
DThemeTogglePreferenceController.java46 static final int FORCED_DAY_MODE = 1; field in ThemeTogglePreferenceController
79 getDayButton().setDrawable(getThemeModeIcon(FORCED_DAY_MODE)); in onCreateInternal()
82 setForcedDayNightModeSetting(FORCED_DAY_MODE); in onCreateInternal()
119 boolean checked = getForcedDayNightModeSetting() == FORCED_DAY_MODE; in updateState()
186 case FORCED_DAY_MODE -> getContext().getDrawable(R.drawable.ic_theme_toggle_day_button); in getThemeModeIcon()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/
DThemeTogglePreferenceControllerTest.java19 import static com.android.car.settings.display.ThemeTogglePreferenceController.FORCED_DAY_MODE;
138 FORCED_DAY_MODE); in testRefreshUi_dayMode_dayButtonChecked() local
170 FORCED_DAY_MODE); in testHandlePreferenceChanged_setSensor() local
177 FORCED_DAY_MODE); in testHandlePreferenceChanged_setSensor()
193 assertThat(themeMode).isEqualTo(FORCED_DAY_MODE); in testHandlePreferenceChanged_setDay()
207 FORCED_DAY_MODE); in testHandlePreferenceChanged_setNight()
/packages/services/Car/service/src/com/android/car/
DCarNightService.java53 @IntDef({FORCED_SENSOR_MODE, FORCED_DAY_MODE, FORCED_NIGHT_MODE})
58 public static final int FORCED_DAY_MODE = 1; field in CarNightService
170 case FORCED_DAY_MODE: in forceDayNightModeInternal()
172 mForcedMode = FORCED_DAY_MODE; in forceDayNightModeInternal()
241 : (mForcedMode == FORCED_DAY_MODE ? "day" : "night"))); in dump()
DCarShellCommand.java2896 mode = CarNightService.FORCED_DAY_MODE;
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DThemeToggle.java44 static final int FORCED_DAY_MODE = 1; field in ThemeToggle
60 .addEndItem(createThemeToggleButton(FORCED_DAY_MODE)) in getQCItem()
117 case FORCED_DAY_MODE: in getThemeModeIcon()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarNightServiceTest.java22 import static com.android.car.CarNightService.FORCED_DAY_MODE;
140 int updatedMode = mService.forceDayNightMode(FORCED_DAY_MODE); in forceDayNightMode_setsNightMode()
172 FORCED_DAY_MODE); in forceDayNightMode_withSetting_setsDayMode()