Home
last modified time | relevance | path

Searched refs:mMockSettings (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioSettingsUnitTest.java60 private MockSettings mMockSettings; field in CarAudioSettingsUnitTest
68 mMockSettings = new MockSettings(session); in onSessionBuilder()
113 .that(mMockSettings.getInt(TEST_GAIN_INDEX_KEY)).isEqualTo(TEST_GAIN_INDEX); in storedVolumeGainIndexForUser_savesValue()
123 .that(mMockSettings.getInt(TEST_MUTE_KEY)).isEqualTo(0); in storeVolumeGroupMuteForUser_withUnMutedState_savesValue()
133 .that(mMockSettings.getInt(TEST_MUTE_KEY)).isEqualTo(1); in storeVolumeGroupMuteForUser_withMutedState_savesValue()
179 mMockSettings.putInt(TEST_GAIN_INDEX_KEY, gainIndexForUser); in setStoredVolumeGainIndexForUser()
183 mMockSettings.putInt(TEST_MUTE_KEY, volumeSetting); in setStoredVolumeMuteForUser()
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()
DCarAudioServiceUnitTest.java483 private MockSettings mMockSettings; field in CarAudioServiceUnitTest
536 mMockSettings = new MockSettings(session); in onSessionBuilder()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/
DCarWifiServiceUnitTest.java89 private MockSettings mMockSettings; field in CarWifiServiceUnitTest
96 mMockSettings = new MockSettings(builder); in onSessionBuilder()
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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DInitialUserSetterTest.java99 private MockSettings mMockSettings; field in InitialUserSetterTest
112 mMockSettings = new MockSettings(session); in onSessionBuilder()
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()
[all …]
DCarUserNoticeServiceTest.java109 private MockSettings mMockSettings; field in CarUserNoticeServiceTest
117 mMockSettings = new MockSettings(session); in onSessionBuilder()
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()
DCarUserServiceTest.java147 private MockSettings mMockSettings; field in CarUserServiceTest
157 mMockSettings = new MockSettings(builder); in onSessionBuilder()
685 assertThat(mMockSettings.getInt(CarSettings.Global.DEFAULT_USER_RESTRICTIONS_SET)) in testInitializeGuestRestrictions_IfNotAlreadySet()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
DInstrumentClusterServiceTest.java87 private MockSettings mMockSettings; field in InstrumentClusterServiceTest
129 mMockSettings = new MockSettings(builder); in onSessionBuilder()
141 mMockSettings.putString(DISABLE_INSTRUMENTATION_SERVICE, "false"); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarNightServiceTest.java80 private MockSettings mMockSettings; field in CarNightServiceTest
87 mMockSettings = new MockSettings(session); in onSessionBuilder()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DScreenOffHandlerUnitTest.java95 private MockSettings mMockSettings; field in ScreenOffHandlerUnitTest
99 mMockSettings = new MockSettings(session); in onSessionBuilder()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DCarTelemetryServiceTest.java101 private MockSettings mMockSettings; field in CarTelemetryServiceTest
124 mMockSettings = new MockSettings(session); in onSessionBuilder()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java217 private MockSettings mMockSettings; field in CarWatchdogServiceUnitTest
240 mMockSettings = new MockSettings(builder); in onSessionBuilder()
DWatchdogPerfHandlerUnitTest.java246 private MockSettings mMockSettings; field in WatchdogPerfHandlerUnitTest
272 mMockSettings = new MockSettings(builder); in onSessionBuilder()