Home
last modified time | relevance | path

Searched refs:CarSettings (Results 1 – 25 of 80) sorted by relevance

1234

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarSettingsTest.java22 import android.car.settings.CarSettings;
62 mSettings.put(CarSettings.Global.DEFAULT_USER_RESTRICTIONS_SET, SCOPE_GLOBAL); in loadSettingNames()
63 mSettings.put(CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, SCOPE_GLOBAL); in loadSettingNames()
64 mSettings.put(CarSettings.Global.DISABLE_INSTRUMENTATION_SERVICE, SCOPE_GLOBAL); in loadSettingNames()
65 mSettings.put(CarSettings.Global.ENABLE_USER_SWITCH_DEVELOPER_MESSAGE, SCOPE_GLOBAL); in loadSettingNames()
66 mSettings.put(CarSettings.Global.LAST_ACTIVE_USER_ID, SCOPE_GLOBAL); in loadSettingNames()
67 mSettings.put(CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID, SCOPE_GLOBAL); in loadSettingNames()
68 mSettings.put(CarSettings.Secure.KEY_AUDIO_FOCUS_NAVIGATION_REJECTED_DURING_CALL, in loadSettingNames()
70 mSettings.put(CarSettings.Secure.KEY_AUDIO_PERSIST_VOLUME_GROUP_MUTE_STATES, SCOPE_SECURE); in loadSettingNames()
71 mSettings.put(CarSettings.Secure.KEY_ENABLE_INITIAL_NOTICE_SCREEN_TO_USER, SCOPE_SECURE); in loadSettingNames()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/wm/
DBarControlPolicyTest.java24 import android.car.settings.CarSettings;
67 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in reloadFromSetting_invalidPolicyControlString_doesNotSetFilters()
81 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in reloadFromSetting_validPolicyControlString_setsFilters()
95 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in reloadFromSetting_filtersSet_doesNotSetFiltersAgain()
116 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in getBarVisibilities_immersiveStatusForAppAndMatchingApp_hidesStatusBar()
130 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in getBarVisibilities_immersiveStatusForAppAndNonMatchingApp_showsSystemBars()
144 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in getBarVisibilities_immersiveStatusForAppsAndNonApp_showsSystemBars()
158 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in getBarVisibilities_immersiveFullForAppAndMatchingApp_hidesSystemBars()
172 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in getBarVisibilities_immersiveFullForAppAndNonMatchingApp_showsSystemBars()
186 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in getBarVisibilities_immersiveFullForAppsAndNonApp_showsSystemBars()
DDisplaySystemBarsControllerTest.java24 import android.car.settings.CarSettings;
84 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in onDisplayAdded_loadsBarControlPolicyFilters()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/
DThemeTogglePreferenceControllerTest.java32 import android.car.settings.CarSettings;
103 eq(Settings.Global.getUriFor(CarSettings.Global.FORCED_DAY_NIGHT_MODE)), eq(false), in onStart_registersContentObserver()
121 CarSettings.Global.FORCED_DAY_NIGHT_MODE, in testRefreshUi_sensorMode_sensorButtonChecked()
137 CarSettings.Global.FORCED_DAY_NIGHT_MODE, in testRefreshUi_dayMode_dayButtonChecked()
153 CarSettings.Global.FORCED_DAY_NIGHT_MODE, in testRefreshUi_nightMode_nightButtonChecked()
169 CarSettings.Global.FORCED_DAY_NIGHT_MODE, in testHandlePreferenceChanged_setSensor()
176 CarSettings.Global.FORCED_DAY_NIGHT_MODE, in testHandlePreferenceChanged_setSensor()
184 CarSettings.Global.FORCED_DAY_NIGHT_MODE, in testHandlePreferenceChanged_setDay()
190 CarSettings.Global.FORCED_DAY_NIGHT_MODE, in testHandlePreferenceChanged_setDay()
199 CarSettings.Global.FORCED_DAY_NIGHT_MODE, in testHandlePreferenceChanged_setNight()
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datasources/restricted/
DDisabledAppsDataSource.kt19 import android.car.settings.CarSettings
68 CarSettings.Secure.KEY_PACKAGES_DISABLED_ON_RESOURCE_OVERUSE, in getDisabledApps()
89 CarSettings.Secure.KEY_PACKAGES_DISABLED_ON_RESOURCE_OVERUSE, in getDisabledApps()
99 CarSettings.Secure.KEY_PACKAGES_DISABLED_ON_RESOURCE_OVERUSE in getDisabledApps()
DTosDataSource.kt19 import android.car.settings.CarSettings
20 import android.car.settings.CarSettings.Secure.KEY_UNACCEPTED_TOS_DISABLED_APPS
21 import android.car.settings.CarSettings.Secure.KEY_USER_TOS_ACCEPTED
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/
DCarWifiServiceUnitTest.java33 import android.car.settings.CarSettings;
121 mMockSettings.putString(CarSettings.Global.ENABLE_PERSISTENT_TETHERING, "false"); in setUp()
161 mMockSettings.putString(CarSettings.Global.ENABLE_PERSISTENT_TETHERING, "true"); in testPersistCarSettingOn_userUnlockBeforePowerOn_tetheringOn()
178 mMockSettings.putString(CarSettings.Global.ENABLE_PERSISTENT_TETHERING, "true"); in testPersistCarSettingOn_notOnLast_noTethering()
192 mMockSettings.putString(CarSettings.Global.ENABLE_PERSISTENT_TETHERING, "true"); in testPersistCarSettingOn_tetheringAlreadyEnabled_noTethering()
207 mMockSettings.putString(CarSettings.Global.ENABLE_PERSISTENT_TETHERING, "true"); in testPersistCarSettingOn_powerOnBeforeUserUnlock_tetheringOn()
253 mMockSettings.putString(CarSettings.Global.ENABLE_PERSISTENT_TETHERING, "true"); in testPersistCarSettingChange_withCapability_autoShutdownFalse()
278 eq(Settings.Global.getUriFor(CarSettings.Global.ENABLE_PERSISTENT_TETHERING)), in getSettingsObserver()
/packages/apps/Car/Settings/
DAndroid.bp20 name: "CarSettings-core",
66 name: "CarSettings",
71 "CarSettings-core",
95 // Duplicate of CarSettings which includes testing only resources for Robolectric
114 "CarSettings-core",
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/
DDisplayInputLockTestFragment.java27 import android.car.settings.CarSettings;
123 Uri uri = Settings.Global.getUriFor(CarSettings.Global.DISPLAY_INPUT_LOCK); in onCreateView()
164 CarSettings.Global.DISPLAY_INPUT_LOCK, in requestUpdateDisplayInputLockSetting()
171 CarSettings.Global.DISPLAY_INPUT_LOCK); in getDisplayInputLockSetting()
231 parseDisplayInputLockSettingValue(CarSettings.Global.DISPLAY_INPUT_LOCK, settingValue); in initDisplayInputLockData()
256 parseDisplayInputLockSettingValue(CarSettings.Global.DISPLAY_INPUT_LOCK, settingValue); in updateDisplayInputLockData()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DInitialUserSetterTest.java52 import android.car.settings.CarSettings;
890 assertThat(mMockSettings.getInt(CarSettings.Global.LAST_ACTIVE_USER_ID)) in testGetInitialUser_WithNonExistLastActiveUser_ReturnsLastPersistentUser()
903 assertThat(mMockSettings.getInt(CarSettings.Global.LAST_ACTIVE_USER_ID)) in testGetInitialUser_WithNonExistLastActiveAndPersistentUsers_ReturnsSmallestUser()
905 assertThat(mMockSettings.getInt(CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID)) in testGetInitialUser_WithNonExistLastActiveAndPersistentUsers_ReturnsSmallestUser()
1014 mMockSettings.assertDoesNotContainsKey(CarSettings.Global.LAST_ACTIVE_USER_ID); in testSetLastActiveUser_headlessSystem()
1015 mMockSettings.assertDoesNotContainsKey(CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID); in testSetLastActiveUser_headlessSystem()
1025 assertThat(mMockSettings.getInt(CarSettings.Global.LAST_ACTIVE_USER_ID)) in testSetLastActiveUser_nonHeadlessSystem()
1027 assertThat(mMockSettings.getInt(CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID)) in testSetLastActiveUser_nonHeadlessSystem()
1036 assertThat(mMockSettings.getInt(CarSettings.Global.LAST_ACTIVE_USER_ID)).isEqualTo(42); in testSetLastActiveUser_nonExistingUser()
1037 mMockSettings.assertDoesNotContainsKey(CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID); in testSetLastActiveUser_nonExistingUser()
[all …]
DCarUserNoticeServiceTest.java39 import android.car.settings.CarSettings;
134 mMockSettings.putInt(CarSettings.Secure.KEY_ENABLE_INITIAL_NOTICE_SCREEN_TO_USER, 1); in setUpMocks()
250 mMockSettings.putInt(CarSettings.Secure.KEY_ENABLE_INITIAL_NOTICE_SCREEN_TO_USER, 0); in uiNotShownIfSettingsDisabled()
/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/com/android/car/carlauncher/datasources/restricted/
DDisabledAppsDataSourceImplTest.kt19 import android.car.settings.CarSettings
88 CarSettings.Secure.KEY_PACKAGES_DISABLED_ON_RESOURCE_OVERUSE, in <lambda>()
117 CarSettings.Secure.KEY_PACKAGES_DISABLED_ON_RESOURCE_OVERUSE, in <lambda>()
137 CarSettings.Secure.KEY_PACKAGES_DISABLED_ON_RESOURCE_OVERUSE, in <lambda>()
DTosAppsDataSourceImplTest.kt19 import android.car.settings.CarSettings
20 import android.car.settings.CarSettings.Secure.KEY_USER_TOS_ACCEPTED
149 CarSettings.Secure.KEY_UNACCEPTED_TOS_DISABLED_APPS, in <lambda>()
188 CarSettings.Secure.KEY_UNACCEPTED_TOS_DISABLED_APPS, in <lambda>()
249 CarSettings.Secure.KEY_UNACCEPTED_TOS_DISABLED_APPS, in testGetTosState_tosChangedToNotAccepted_shouldNotUnregisterObserver()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/
DCarDeviceProvisionedControllerImpl.java20 import android.car.settings.CarSettings;
72 CarSettings.Secure.KEY_SETUP_WIZARD_IN_PROGRESS); in CarDeviceProvisionedControllerImpl()
97 CarSettings.Secure.KEY_SETUP_WIZARD_IN_PROGRESS, /* def= */ 0, user) != 0; in isUserSetupInProgress()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioSettings.java19 import android.car.settings.CarSettings;
88 return getSecureIntForUser(CarSettings.Secure.KEY_AUDIO_PERSIST_VOLUME_GROUP_MUTE_STATES, in isPersistVolumeGroupMuteEnabled()
97 CarSettings.Secure.KEY_AUDIO_FOCUS_NAVIGATION_REJECTED_DURING_CALL, in isRejectNavigationOnCallEnabledInSettings()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioSettingsUnitTest.java26 import android.car.settings.CarSettings;
187 mMockSettings.putInt(CarSettings.Secure.KEY_AUDIO_FOCUS_NAVIGATION_REJECTED_DURING_CALL, in setRejectNavigationOnCallSettingsValues()
192 mMockSettings.putInt(CarSettings.Secure.KEY_AUDIO_PERSIST_VOLUME_GROUP_MUTE_STATES, in setPersistVolumeGroupMuteSettingsValues()
DContentObserverFactoryTest.java25 import android.car.settings.CarSettings;
41 CarSettings.Secure.KEY_AUDIO_PERSIST_VOLUME_GROUP_MUTE_STATES);
/packages/services/Car/car-lib/src/android/car/settings/
DCarSettings.java31 public class CarSettings { class
33 private CarSettings() { in CarSettings() method in CarSettings
/packages/apps/Car/Settings/src/com/android/car/settings/display/
DThemeTogglePreferenceController.java19 import static android.car.settings.CarSettings.Global.FORCED_DAY_NIGHT_MODE;
22 import android.car.settings.CarSettings;
50 CarSettings.Global.FORCED_DAY_NIGHT_MODE);
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSettings/
DAndroid.bp21 overrides: ["CarSettings"],
29 "CarSettings-core",
/packages/apps/Car/SystemUI/src/com/android/systemui/wm/
DBarControlPolicy.java19 import android.car.settings.CarSettings;
73 CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, in reloadFromSetting()
100 Settings.Global.getUriFor(CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE), false, in registerContentObserver()
/packages/services/Car/service/src/com/android/car/user/
DInitialUserSetter.java35 import android.car.settings.CarSettings;
730 setUserIdGlobalProperty(CarSettings.Global.LAST_ACTIVE_USER_ID, userId); in setLastActiveUser()
738 setUserIdGlobalProperty(CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID, userId); in setLastActiveUser()
789 int lastActiveUser = getUserIdGlobalProperty(CarSettings.Global.LAST_ACTIVE_USER_ID); in getInitialUser()
794 resetUserIdGlobalProperty(CarSettings.Global.LAST_ACTIVE_USER_ID); in getInitialUser()
797 CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID); in getInitialUser()
803 resetUserIdGlobalProperty(CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID); in getInitialUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarNightServiceTest.java20 import static android.car.settings.CarSettings.Global.FORCED_DAY_NIGHT_MODE;
36 import android.car.settings.CarSettings;
94 Settings.Global.putInt(mContentResolver, CarSettings.Global.FORCED_DAY_NIGHT_MODE, in setUp()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/input/
DDisplayInputSinkController.java28 import android.car.settings.CarSettings;
79 Settings.Global.getUriFor(CarSettings.Global.DISPLAY_INPUT_LOCK);
245 parseDisplayInputLockSettingValue(CarSettings.Global.DISPLAY_INPUT_LOCK, settingValue); in refreshDisplayInputLockSetting()
271 CarSettings.Global.DISPLAY_INPUT_LOCK); in getDisplayInputLockSettingValue()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DUserNoticeDemoUiService.java21 import android.car.settings.CarSettings;
163 CarSettings.Secure.KEY_ENABLE_INITIAL_NOTICE_SCREEN_TO_USER, in createDialog()

1234