Use Robolectric for tests so that we don't have to deploy to a device
emulator. TestHandler is not available in Robolectric tests, so this CL
includes a substitute.
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: atest <all moved tests>
Bug: b/399743032
Change-Id: I95721d9b90376374da7011e42c70e474b494e992
This saves tests from interacting with DisplayManager completely,
simplifies the Injector API, and makes mocking that API easier. This
addresses the first difficulty I had in converting our tests to
Robolectric.
Bug: b/399743032
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: verify disabled and enabled displays appear correctly in display list fragment
Test: atest ExternalDisplayPreferenceFragmentTest.java
Test: atest ExternalDisplayUpdaterTest.java
Test: atest ResolutionPreferenceFragmentTest.java
Change-Id: Id43d2f108f3e85e6596eb2271b1de6b1afd2338f
We used to dismiss the dialog and then re-show to update the dialog
content. This change is to update the content in place by findViewById.
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I565d465c5c7d8aaef2a96f5d5f0cb70232a1d7cc
If an instance of the activity already exists at the top of the current task, the system routes the intent to that instance through a call to its onNewIntent() method, rather than creating a new instance of the activity.
So we need manually trigger the handling logic in onNewIntent to refresh
the dialogs.
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: Iccb0ef649ee60cb97f7557943760f854d31ccc80
- Avoid to validate the SSID when scanning a QR code
Bug: 399791242
Flag: EXEMPT bugfix
Test: Manual testing
atest SettingsUnitTests:AddNetworkFragmentTest
Change-Id: I91f010f8708490e397d762c96401569fc13601dd
The UI flicker is because preference change is notified twice after
onActivityResult calls setBoolean: 1) Catalyst framework registers a
common listener on each preference's storage to update UI when
preference value is changed. 2) The PhoneStateListener in
AirplaneModeStorage. Remove the second listener fixes the issue.
NO_IFTTT=Catalyst only
Fix: 395774878
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: I9f93faf1da87d52a82d9019361b17b4b500d79fe
This aligns these accessibility system feature settings pages with other
similar pages, allowing an external caller to launch this page by
sending an intent.
Similar to other accessibility system settings neither page is protected
by a permission since these settings provide no avenue for abuse.
Bug: 388304424
Test: adb shell am start -W -a android.settings.MAGNIFICATION_SETTINGS;
Observe that the Magnification Settings page is opened.
Test: adb shell am start -W -a android.settings.FLASH_NOTIFICATIONS_SETTINGS;
Observe that the Flash Notifications Settings page is opened.
Flag: EXEMPT low risk manifest change
Change-Id: Ibe9e1031f30416c5f3fcfb7ae2fe76e8dcd45714
Bug: 384635437
Test: manual test with talkback on on settings device unlock
Flag: EXEMPT for a11y big fix
Change-Id: Ie9edd41dca8274cd69700d2a5dfc7b5fe5a7be8e
on Connected devices page during audio sharing.
We have moved the handling to sysui via settingslib
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I29dd105f9317f78d8d8dacbb3da72e745286e105