We need this for some battery features but don't really think it
needs to be a public API.
Test: can call intent, robotests pass
Bug: 129006417
Change-Id: I1362cea392126c72b20a84e1945d7076c5225b33
I changed the API to support passing in a permission.
Test: Click on entry and open its permission toggle screen.
Test: atest RecentLocationAccessPreferenceControllerTest
Change-Id: I0f789c9e2a05f4b5b03efab6a7dcdb218e565b52
Move getActivity() call and fetching of metrics feature provider into
onCreateView rathre than the Constructor of the fragment (where Activity
is not yet created).
Test: manual
Test: existing robotests
Fixes: 128808444
Change-Id: I88586b0ca3ebda60f8933041322541cc5911de68
Add ContextualNotificationChannelSlice to show more clear sub title on
notification slice.
Fixes: 128641319
Test: visual, robotests
Change-Id: I650102f4cde7d8d397c7a501ba9ee76c401ba9db
In some networks, network validation may only get success
result for http probe but fail result for https probe.
For this kind of network, it may still work at some websites
or apps, but user didn't know about that. In order to fix this
issue, we will check if network has partial connectivity and
notify user to make a choice if they want to use this partial
connectivity or not.
Bug: 113450764
Bug: 128489091
Test: 1. Build pass.
2. make -j44 RunSettingsRoboTests
ROBOTEST_FILTER=WifiDetailPreferenceControllerTest
3. Change captive_portal_https_url to https://invalid.com
to simulate partial connectivity.
Change-Id: I0e87f6f2ede173f45a7b6fcf842b4f9a83d8efa1
1) Toggles resources between normal and accessibility enrollment
2) Add footer for more detail text
Fixes: 127514618
Bug: 111548033
Test: Builds
Change-Id: Ib0c47f04abc5ce9abbd8b27ef5782d1874379f16
This CL will replace the SensorPrivacyTile with a new tile that can be
enabled from the developer settings. When this new tile is enabled only
the camera, mic, and sensors controlled by the SensorManager will be
disabled; the location and airplane mode tiles will not be modified.
The user will be notified when this tile is enabled with the sensors
off icon in the status bar.
Fixes: 126618519
Test: Manually verified the Sensors Off tile was available in the QS page
after being enabled from the developer settings.
Change-Id: I028aa1c836b00e6a8d129e46a925d2d2c2d61759
In WifiDppChooseSavedWifiNetworkFragment, it does not show the saved Wi-Fi
network which is not reachable, users may be confused about why their saved
Wi-Fi network not on the list. This change shows saved networks regardless
of signal reachable or not.
Fix WifiDppChooseSavedWifiNetworkFragment UI overlap problem, remove redundant
ScrollView and adjust ConstraintLayout parameters.
Bug: 124129645
Test: manual test
Change-Id: I86637e8722bb8f40a3b995a617dc1e22b2ae324a
It stores the application context in a static class, and will be
destoryed when application stops.
Bug: 124701288
Test: robo
Change-Id: I4678072f3f38ae682be6ba075c85e63c49f8febe
It was persisting to settings secure instead of settings global.
Test: robotests pass
Bug: 128929858
Change-Id: I8c5bcc875d71096e70f1a70ec84e85d46c3abe43
This is a follow up CL to a recent CL [1], which updated text in the
Settings app as follows:
* "Keyboard & inputs" to "Keyboards"
* "Input assistance" to "Tools"
For consystency, this CL updates the header text for the work-profile
specific enties in Languages & input from
Work profile input & assistance
to
Work profile keyboards & tools.
Other than that, there is no user-visible behavior change.
[1]: Idbf1e3a8b0c7116271e424548ef37340199eaea2
5b27d18e38
Bug: 124049901
Fix: 123314089
Test: Manually verified as follows.
1. Build and flash an AOSP build
2. Install Test DPC
3. Open Settings -> System -> Languages & input
4. Make sure that the new category header for work-profile specific
entries is now shown as "Work profile keyboards & tools"
Change-Id: Ib6470debe9be29ec0985cf1e3eb31d232c6b3880
SimSelectNotification used to listen to SIM_STATE_CHANGED from Telephony
and do checkings to decide whether to pop up notification and
SimDialogActivity. The logic needs updated and only Telephony knows it
well. So this change moves the logic into Telephony. SimSelectNotification
only listens to Telephony's decision, brings up notification and trigger
SimDialogActivity.
Bug: 128645056
Test: sanity and manual
Change-Id: I6153e27dd00dd9cdf8682f135eb39f8af3a75608
To improve the accessibility of Settings, we make the height of
collapsing button set to 48dp.
Fixes: 128896511
Test: rebuild
Change-Id: I341196802d6d488a8adb88501901e761bc188f7b
Add new method to get rainbow bt icon and also refactor
AdaptiveHomepageIcon:
1. Rename
2. Add ConstantState
Bug: 126425211
Test: RunSettingsRoboTests
Change-Id: Idb8aaf253d0d9e2ab33d8852f093e6689ebadde4
The framework version header has deviated from supportlib version long
ago, and we shouldn't hack our theme to make this layout work. Instead
we now have a custom layout compatible to settings theme.
Fixes: 128833223
Test: visual
Change-Id: I83087352240de183b0639daf844bd7f90e02056a