This is in order to align the location indicator with the list of recent
accesses shown in Settings.
Bug: 191503437
Test: manual
Change-Id: I7aaa65390567ca644e7137de15c558cdcdb29935
Android T introduced a new requirement that apps registering for
non-system broadcasts via Context#registerReceiver must specify a flag
indicating whether the receiver should be exported. This flag was
added to the receiver in WorkModePreferenceController, but this broke
a test since the signature of the registerReceiver method was changed.
This commit updates the signature of the method in the test to also
expect an int parameter for the flags.
Fixes: 214906107
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WorkModePreferenceControllerTest
Change-Id: I17061ab24ed3ec3def4062fe461803ad88bce9c8
The broken test is because the activityInfo has no package name.
Set a random package name to fix it.
Test: run robo test
Fix: 214945263
Change-Id: I5ae5a0021f1473e6eadbad5f6e1f22840a44d592
Refactor SettingsContentObserver and rename it to
AccessibilitySettingsContentObserver. Besides, we register it to observe
follow typing feature preference value.
The reasons behind refactor:
1. We change callback signature due to the consistency for register it
by preference key, not by Uri.
2. We refactor the default preference key to a seperate method. Since
the default value is related to accessibility, we rename it with
accessibility prefix.
3. We can register different callback for difference collections of
preference keys.
Default preference keys: They existed in the previous constructor.
1. Settings.Secure.ACCESSIBILITY_ENABLED
2. Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES
Bug: 194668976
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
AccessibilitySettingsTest
AccessibilitySettingsContentObserverTest
AccessibilityShortcutPreferenceFragmentTest
MagnificationFollowTypingPreferenceControllerTest
ToggleFeaturePreferenceFragmentTest
ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: Iafd27e044ebe2536ae7ae55c1c80af54f7f0f822
This re-lands commit fd54fc34c6.
Add primary switch that updates the VIBRATE_ON user setting. Update all settings in this page to be disabled when this main toggle is
off.
Bug: 30028435
Test: VibrationMainSwitchPreferenceControllerTest
Reason for revert: Re-landing change with fixed tests
Change-Id: If9219e3d81dd698f47219c80cac10b079b63e45d
UserManager interface changed, we need to handle it in ShadowUserManager
Bug: 204031530
Change-Id: Ieef930a5aff91f331d580752d3ebce9a4b500d27
Test: robotest
This reverts commit 6225be70dd.
Reason for revert: Enable ignored test cases of com.android.settings.development.graphicsdriver
UserManager interface changed, we need to handle it in ShadowUserManager
Change-Id: Id49dbe262cd378f65ffeaf1c75f6631eb7cd508b
UserManager interface changed, we need to handle it in ShadowUserManager
Bug: 215047320
Change-Id: Ia58825a9115b51477291c0ecacec8e3b56163b3c
Test: robotest
UserManager interface changed, we need to handle it in ShadowUserManager
Bug: 215046294
Change-Id: I4a32bf89c412b6f1b02e9d3b99117b905ebcff38
Test: robotest
UserManager interface changed, we need to handle it in ShadowUserManager
Bug: 215071960
Change-Id: Ieacda685f0160e5ab1f3a35a3f9f6aade403e39a
Test: robotest
- Create new preview preference.
1) It will be integrated with TextReadingPreferenceFragment, and sub
previews layouts like app launchers, conversation messages, and mail
content.
Bug: 211503117
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER=TextReadingPreviewPreferenceTest
Change-Id: I2d82d58438ee3f96c5a8dbb1809a0d6bdf3a00a2
initializingSwitchDoesNotTriggerView initializes mController
with a mSwitchBar which has already addOnSwitchChangeListener,
it will trigger onSwitchChangedon (and a dialog breaks the test)
of a mController initialized at setUp().
This change initializes a new mSwitchBar for the test.
Bug: 214907475
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AutomaticStorageManagerSwitchBarControllerTest
Change-Id: Iefe56387c56ca6b1c2520c050467d130182ccfdc
Add primary switch that updates the VIBRATE_ON user setting.
Update all settings in this page to be disabled when this main toggle is
off.
Bug: 30028435
Test: VibrationMainSwitchPreferenceControllerTest
Change-Id: I752ca3b914c46678a1347034c5b6cf24fd40cc13
- Security team add new interface to Context.registerReceiver() with a
third parameter.
- The new interface might have some issues in the test environment.
- Spy the registerReceiver() and unregisterReceiver() to avoid
unexpected issues.
Bug: 214938188
Test: manual test
make RunSettingsRoboTests
ROBOTEST_FILTER=WifiPrimarySwitchPreferenceControllerTest
Change-Id: I5bf9fc860a3de99145bc7535ba57cb514b403966
The available dreams will now be shown in a grid, with a preview button
at the bottom.
Screenshot (white placeholder image used):
http://screen/6pe6EoACPoQN8TZ.pnghttp://screen/4nR6Wg5pN7pL6Wb.png
Phone (single column layout):
http://screen/4WFqzZR8Yf9H3VZ.png
Colors and margins will be finalized once final mocks are done.
Bug: 207681076
Bug: 214250590
Test: locally on device
Change-Id: Ie68bdc60e74e72dc3c3cee3f1ffd40f5613109b9
Introduce toggles and sliders to configure the alarm and media
vibrations in the "Vibration & haptics" settings app.
Also update the multiple intensities configuration flag into a integer,
where the device can specify how many distinct levels are supported.
Follow existing implementation to map the intensities to higher setting
values.
Bug: 198346559
Bug: 207477604
Test: [Alarm|Media]Vibration[Intensity|Toggle]PreferenceControllerTest
Change-Id: Ie3d570b72ba1229e613ecf0c45fac81233529e32
- The ShadowWifiManager class is not working as expected
- The getSystemService(WifiManager.class) return null when testing
- Use Mockito class instead of Shadow class
Bug: 214906101
Bug: 214938188
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=AllInOneTetherSettingsTest
make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherSettingsTest
Change-Id: Ic54af8524fbff1b6ac916ca8e1bcac52f413663a