Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/
DCarNightService.java53 @IntDef({FORCED_SENSOR_MODE, FORCED_DAY_MODE, FORCED_NIGHT_MODE})
57 public static final int FORCED_SENSOR_MODE = 0; field in CarNightService
65 private int mForcedMode = FORCED_SENSOR_MODE;
132 if (mUiModeManager != null && (mForcedMode == FORCED_SENSOR_MODE)) { in setNightModeLocked()
143 FORCED_DAY_NIGHT_MODE, FORCED_SENSOR_MODE); in getForcedDayNightModeSetting()
166 case FORCED_SENSOR_MODE: in forceDayNightModeInternal()
168 mForcedMode = FORCED_SENSOR_MODE; in forceDayNightModeInternal()
207 if (mForcedMode != FORCED_SENSOR_MODE) { in init()
239 writer.println("Forced Mode? " + (mForcedMode == FORCED_SENSOR_MODE in dump()
DCarShellCommand.java2902 mode = CarNightService.FORCED_SENSOR_MODE;
/packages/apps/Car/Settings/src/com/android/car/settings/display/
DThemeTogglePreferenceController.java45 static final int FORCED_SENSOR_MODE = 0; field in ThemeTogglePreferenceController
70 getAutoButton().setDrawable(getThemeModeIcon(FORCED_SENSOR_MODE)); in onCreateInternal()
73 setForcedDayNightModeSetting(FORCED_SENSOR_MODE); in onCreateInternal()
114 boolean checked = getForcedDayNightModeSetting() == FORCED_SENSOR_MODE; in updateState()
175 FORCED_DAY_NIGHT_MODE, FORCED_SENSOR_MODE); in getForcedDayNightModeSetting()
184 case FORCED_SENSOR_MODE -> getContext().getDrawable( in getThemeModeIcon()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DThemeToggle.java43 static final int FORCED_SENSOR_MODE = 0; field in ThemeToggle
59 .addEndItem(createThemeToggleButton(FORCED_SENSOR_MODE)) in getQCItem()
106 FORCED_DAY_NIGHT_MODE, FORCED_SENSOR_MODE); in getForcedDayNightModeSetting()
115 case FORCED_SENSOR_MODE: in getThemeModeIcon()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/
DThemeTogglePreferenceControllerTest.java21 import static com.android.car.settings.display.ThemeTogglePreferenceController.FORCED_SENSOR_MODE;
122 FORCED_SENSOR_MODE); in testRefreshUi_sensorMode_sensorButtonChecked() local
178 assertThat(themeMode).isEqualTo(FORCED_SENSOR_MODE); in testHandlePreferenceChanged_setSensor()
185 FORCED_SENSOR_MODE); in testHandlePreferenceChanged_setDay() local
191 FORCED_SENSOR_MODE); in testHandlePreferenceChanged_setDay()
200 FORCED_SENSOR_MODE); in testHandlePreferenceChanged_setNight() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarNightServiceTest.java24 import static com.android.car.CarNightService.FORCED_SENSOR_MODE;
95 FORCED_SENSOR_MODE); in setUp()