Commit Graph

117615 Commits

Author SHA1 Message Date
Arc Wang
812c7d7953 Merge "[Activity embedding] Fix unexpected finished 2nd layer problem" 2022-10-31 05:50:14 +00:00
Arc Wang
31eec49217 [Activity embedding] Fix unexpected finished 2nd layer problem
If Settings is started on an existing task, the existing SplitPairRule
may cause an unexpected app finish while navigating back from the
2nd layer page.

This change resets SplitPairRule in onCreate().

Bug: 247080168
Test: make RunSettingsRoboTests ROBOTEST_FILTER=SettingsHomepageActivityTest
      manual
      1. Settings app -> 'Connexted device'.
      2. Launch Settings app again from Settings icon in quick Settings.
      3. Start a 3rd layer from 'Network & internet'
      4. Click back and see if the 2nd lay shows.
Change-Id: I262327cc49c3a4434a183eb00ac57f47fa598f70
2022-10-31 05:48:45 +00:00
Chaohui Wang
5396d8a129 Merge "No show AppButtons for system modules" 2022-10-31 05:08:02 +00:00
lbill
526d5c692d Request hiding IME before starting next activity transition
Since legacy hideSoftInputFromWindow() for IME hiding animation
will be scheduled on the focus app's UI thread, so if activity
transition has running the animation on UI thread, the
IME hiding animation will be delayed until the animation finish.

Make sure calling WindowInsetsController#hide(ime()) before starting
activity transition to prevent flicker issue.

Bug: 204732064
Test: adb shell am start -a android.settings.BIOMETRIC_ENROLL
Test: SUW set/confirm pin and move to setup fingerprint(back and forth)
Test: make -j RunSettingsRoboTests

Change-Id: I33278dd5c993c0bc299ebd065011e5d18c7242e0
2022-10-31 03:16:14 +00:00
Zekan Qian
4c1b702c4f Add Context in SpaEnvironment
Bug: 244122804
Test: manual - build Settings
Change-Id: I92b0e69a880d280776ab7f482aad3e06c72c3c03
2022-10-31 09:56:56 +08:00
Zoey Chen
77e38838a4 Merge "[Settings] Do not creat multiple database" 2022-10-30 13:17:25 +00:00
Lucas Silva
11a5067ee5 Update the "When to dream" settings am: 47d84b41ac am: 0e7f4d87ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20302008

Change-Id: Id60e4ff240602ef42905a5af46f0ac77bde17f9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 21:07:21 +00:00
Lucas Silva
0e7f4d87ce Update the "When to dream" settings am: 47d84b41ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20302008

Change-Id: Id0ae8f8af81ab9cea7e61b1050e077afbe51a1f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 20:34:09 +00:00
Lucas Silva
47d84b41ac Update the "When to dream" settings
For devices which don't support dreaming on battery, we can offer
simpler options since the device must always be charging for
screensavers to appear. Therefore there are only two options:

1. While charging
2. While docked and charging

Test: flashed and verified on device
Test: make -j64 RunSettingsRoboTests
Fixes: 226187572
Change-Id: I6ed24cda8874f2fb941f6cfded9ed97ed78a3cb6
2022-10-28 13:07:36 -04:00
Bill Yi
850a4cd234 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 4f45cf9218
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20308749

Change-Id: Ic4321544fcae15da097964057516047f4b6dd604
2022-10-28 14:33:26 +00:00
Bill Yi
3497fdef60 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: da6968cf02
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20308751

Change-Id: I395f8bdb35ed6a4afd1a47b7698720d153bee540
2022-10-28 14:33:00 +00:00
Chaohui Wang
85cb46094c Merge "Add AppSettingsPreference for Spa" 2022-10-28 12:53:12 +00:00
Chaohui Wang
5a89763503 Merge "Add AppDataUsagePreference for Spa" 2022-10-28 12:52:57 +00:00
Stanley Wang
a84b388272 Merge "Send pre-index intent when developer options changed" into tm-qpr-dev am: 18dd9b2307 am: 1be259b75a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20307418

Change-Id: Id6588b0b654300b72639354cc4fa5eb60a517b0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 12:16:21 +00:00
Stanley Wang
24d6e67a89 Merge "Send pre-index intent at Settings first started" into tm-qpr-dev am: 5ba309c5ad am: cf38fb9701
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20307417

Change-Id: Ia53d120a2e96760f60ed42fdebd706605a15c19a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 12:16:19 +00:00
Stanley Wang
a56e2eb706 Add new api for search pre-index am: 22d1cdb3bf am: 9f7094e47e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20307416

Change-Id: I17d9477ad63c38c1cece30b9c029bc43d68cb363
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 12:16:12 +00:00
Stanley Wang
1be259b75a Merge "Send pre-index intent when developer options changed" into tm-qpr-dev am: 18dd9b2307
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20307418

Change-Id: I2fbed4ebb333ef8a489dadc24147367754d50384
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 11:19:08 +00:00
Stanley Wang
cf38fb9701 Merge "Send pre-index intent at Settings first started" into tm-qpr-dev am: 5ba309c5ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20307417

Change-Id: I849c03cd70a2e5598d6b95cbaf2b4fcae5316831
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 11:19:05 +00:00
Stanley Wang
9f7094e47e Add new api for search pre-index am: 22d1cdb3bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20307416

Change-Id: I0dc4b69c51ad4aad37ec37e059035564f02ca364
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 11:19:02 +00:00
Zoey Chen
97291ac0ad [Settings] Do not creat multiple database
Bug: 254405469
Test: manual
Change-Id: I96ea77899270439a87569bd1676d38b52dd36650
2022-10-28 11:07:39 +00:00
Bonian Chen
8cde98106c [Settings] Adjust the finish procedure when launching Settings UI
Replace finishFragment() by finish()

Bug: 240515161
Test: local testing
Change-Id: I3d8b9b02998f09122a63f2262817acff3ca84d2e
2022-10-28 10:51:24 +00:00
Stanley Wang
18dd9b2307 Merge "Send pre-index intent when developer options changed" into tm-qpr-dev 2022-10-28 10:42:27 +00:00
Stanley Wang
5ba309c5ad Merge "Send pre-index intent at Settings first started" into tm-qpr-dev 2022-10-28 10:42:27 +00:00
Bonian Chen
95dc65667e [Settings][Back port] configuration for hidding SIM provider UI
Hide SIM provider UI based on configuraion.

Bug: 240515161
Test: test cases and local testing
Merged-In: I1cb83787dc1ac1d61bb6bed6aa9c5e7a3ad6e69b
Change-Id: Ie618485ba5c5fd0223f5c8ba279b3ed418c67e11
2022-10-28 09:50:49 +00:00
Bonian Chen
2b048b22f0 [Settings][Back port] configuration for hidding SIM related UI
Add overriable configuration for hidding SIM related UI.

Bug: 240515161
Test: test cases and local testing
Merged-In: I8d7ddd18861a696830da39f040dfb14b9ed46726
Change-Id: I709a8007362b09dbb1ec1bd5d32c68d23ed0cfa9
2022-10-28 09:49:21 +00:00
Bonian Chen
f6114d3f83 [Settings][Back port] configuration for hidding SIM remove UI
Hide SIM remove UI based on configuraion.

Bug: 240515161
Test: test cases and local testing
Merged-In: Iea40b89733cc75a41f960fecb2ac24177a4cbd3d
Change-Id: I866b2dd566ffa9953f2a83aa3dcb32440390898a
2022-10-28 09:48:46 +00:00
Bonian Chen
0466417c76 [Settings][Back port] configuration for hidding SIM lock UI
Hide SIM lock UI based on configuraion.

Bug: 240515161
Test: test cases and local testing
Merged-In: I870c0b53112db56b7bc80bfd585f6f7b3cf82737
Change-Id: I03861e53c600e2a19c634700360811fbc01b8a60
2022-10-28 09:48:25 +00:00
Bonian Chen
02e4807229 [Settings] configuration for hidding SIM notification UI
Hide SIM notification UI based on configuraion.

Bug: 240515161
Test: test cases and local testing
Merged-In: I07d9ddeb96ca590decf28126ce97fba4c1783304
Change-Id: I7a912a3393694155d29614d325796e08598985bf
2022-10-28 09:47:57 +00:00
Chaohui Wang
56c9bfed08 No show AppButtons for system modules
To try:
1. adb shell am start -n com.android.settings/.spa.SpaActivity
2. Go to Apps -> All apps (Show system) -> Bluetooth

Bug: 236346018
Test: Unit test & Manual with Settings App
Change-Id: Ibdf5f1ec9f69beefe47fb7a046b0192a73e71b27
2022-10-28 15:56:18 +08:00
Chaohui Wang
aafdb3bfbc Add AppSettingsPreference for Spa
This is used in new App Info page.

To try:
1. adb shell am start -n com.android.settings/.spa.SpaActivity
2. Go to Apps -> All apps -> [One App] -> Additional settings in the app

Bug: 236346018
Test: Unit test & Manual with App Info page
Change-Id: I40a175d771c4c0f13986f8c615169c99ce1b0623
2022-10-28 07:41:24 +00:00
Stanley Wang
c0458b8a15 Send pre-index intent when developer options changed
Bug: 244521263
Test: manually test and review UI
Change-Id: I410dcc8ac8a9e131357a3e186e17b0d6363ad247
(cherry picked from commit 0b72d620a3)
2022-10-28 07:34:44 +00:00
Stanley Wang
0a9a9d34a7 Send pre-index intent at Settings first started
Bug: 244521263
Test: manually test and review UI
Change-Id: I654a562b62256fd673f65949dd264f75574444c0
(cherry picked from commit 59446252d7)
2022-10-28 07:33:41 +00:00
Stanley Wang
22d1cdb3bf Add new api for search pre-index
Add sendPreIndexIntent api.

Bug: 244521263
Test: manually test and review UI
Change-Id: Ibbe88eeb114b453886693ecb92ebd8ee287f9581
2022-10-28 07:32:03 +00:00
Chaohui Wang
c972af0ca7 Merge "Add AppBatteryPreference for Spa" 2022-10-28 07:24:53 +00:00
Weng Su
105937d90f Remove "Hotspot" key from settings search if not needed
- Remove "Hotspot" search key from TetherSettings

- Disable page search from WifiTetherSettings

Bug: 243876722
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=TetherSettingsTest
make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherSettingsTest

Change-Id: Ie04027600663321b35d8309c59084f630103e959
2022-10-28 14:34:11 +08:00
TreeHugger Robot
e0cc98d631 Merge "Remove "Always show icon when in vibrate mode"" into tm-qpr-dev am: a82d5e7be2 am: 24dd061bba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20297389

Change-Id: I929baecabdf7e3394289f4fb1046bb53bef7efb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 04:19:32 +00:00
TreeHugger Robot
24dd061bba Merge "Remove "Always show icon when in vibrate mode"" into tm-qpr-dev am: a82d5e7be2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20297389

Change-Id: If301290625468d587bc940eafddeed2b2458c267
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 03:44:02 +00:00
Chaohui Wang
dbead03b6a Add AppBatteryPreference for Spa
This is used in new App Info page.

To try:
1. adb shell am start -n com.android.settings/.spa.SpaActivity
2. Go to Apps -> All apps -> [One App] -> App battery usage

Bug: 236346018
Test: Unit test & Manual with Settings App
Change-Id: I4784e42f230534d8d843ec00de51032baffcb7e2
2022-10-28 11:18:21 +08:00
TreeHugger Robot
a82d5e7be2 Merge "Remove "Always show icon when in vibrate mode"" into tm-qpr-dev 2022-10-28 03:15:21 +00:00
Chaohui Wang
ca7eca1440 Merge "Add AppInstallerInfoPreference for Spa" 2022-10-28 03:08:06 +00:00
Bill Yi
4782603e13 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7c1da86790d644acb454b056365069a2c48e4a61
2022-10-27 19:43:05 -07:00
Bill Yi
9fb3aabc6b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I309400db749a2fe05e1b8877dcb3d2b61e402ce7
2022-10-27 19:39:34 -07:00
Bill Yi
c959a23a41 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If96b4522cd8f8fb0c484fd35a6b96e152e59f70c
2022-10-27 19:36:45 -07:00
Bill Yi
b98f285dbe Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie9904bcc828c39054a635f44e135ae6736ab0be0
2022-10-27 19:35:29 -07:00
Bill Yi
da6968cf02 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie9a020deba61f589a9a40f22048a1bc8919e283d
2022-10-27 19:33:26 -07:00
Bill Yi
4f45cf9218 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If039c9bd8234ea577a74b89b488d523e4246f0f4
2022-10-27 19:30:21 -07:00
Yining Liu
923cdcae41 Fix text in notification settings for apps that do not send notifications am: e899b4c96c am: 7f6b3cc7ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20283152

Change-Id: I3b63362fab7d5c532d231b7db82553fc9a7bde4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 00:23:19 +00:00
Yining Liu
7f6b3cc7ca Fix text in notification settings for apps that do not send notifications am: e899b4c96c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20283152

Change-Id: Ic748f560f9a4767b6c75349506ae569cde1473af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 23:29:27 +00:00
Grace Cheng
0f0f35b2dd Implement SFPS “require screen on to auth”
Creates new setting on SFPS to require screen on before unlocking a
device. Also sets up toggles for this setting at the end of fingerprint
enrollment and on the fingerprint settings page, and adds tests to
verify expected behavior.

Test: make RunSettingsRoboTests ROBOTEST_FILTER=FingerprintSettingsRequireScreenOnToAuthPreferenceControllerTest
Fixes: 249169615
Fixes: 245343077
Fixes: 248530806
Change-Id: Id588796426d071860b3cc2af9ec5798c0027c202
2022-10-27 21:43:55 +00:00
Yining Liu
e899b4c96c Fix text in notification settings for apps that do not send notifications
Added a new string to show for apps apps that target T, but do not declare the POST_NOTIFICATIONS permission in notification settings.

Bug: 229108007
Test: `croot` `make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.notification.app.NotificationsOffPreferenceControllerTest"` and manual: open Settings-Notifications-App Settings, check the text for apps that does not post notifications with toggle disabled. Text should be: "This app does not send notifications" when system language is English.
Change-Id: I9822b6f983e00c5982522099e339d86fae45aefe
2022-10-27 20:19:44 +00:00