Commit Graph

2474 Commits

Author SHA1 Message Date
Jason Chang
cffaef122b (2) Update new intent action ACTION_ONE_HANDED_SETTINGS in Settings
AndroidManifest to support long-pressed action for One-handed mode
tile

Update new intent action ACTION_ONE_HANDED_SETTINGS in Settings
AndroidManifest for Settings$OneHandedSettingsActivity.

Bug: 201743873
Bug: 202132480
Bug: 207381742

Test: manually test long-pressed on One-handed mode QS tile
Change-Id: Id3882c62b6531a2a8c03378025cbda03efbb8c7c
2021-11-23 17:48:55 +08:00
TreeHugger Robot
0b911cf91c Merge "Fix ACTION_ONE_HANDED_SETTINGS breaks CTS IntentTest" 2021-11-19 09:53:15 +00:00
Bill Lin
4d0cc7a1e3 Fix ACTION_ONE_HANDED_SETTINGS breaks CTS IntentTest
The CTS test will check new added intent is expected or not
android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents

If the new added intent should belong to allow list,
we should add it into
cts/tests/signature/intent-check/DynamicConfig.xml

However, in One handed mode case, I think it's make
sense to define in settings provider
frameworks/base/core/java/android/provider/Settings.java

Test: atest android.signature.cts.intent.IntentTest
Fixes: 206824091
Fixes: 206989400
Change-Id: Ic32a65ee113df603a0adbfa3e52f1a48386ad899
2021-11-19 15:43:55 +08:00
Jason Chiu
bb46bb79bf Disable animations of deep link homepages to reduce the shortcut flicker
Bug: 203744424
Test: manual
Change-Id: I7806d732be99425e98db615474bdd83e42dc072e
2021-11-19 12:44:41 +08:00
Jason Chiu
ed406e779c Merge "Start deep link page synchronously in SettingsActivity" into sc-v2-dev am: b4d3278a45 am: e7a681748e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16263226

Change-Id: I937db64f2c4ab9dfb82637bc7c775c05c4383fb6
2021-11-18 20:26:23 +00:00
Jason Hsu
ab4e03b75d Merge "Provide ability to link to Color Inversion page via Intent" into sc-v2-dev am: 0a8f978357 am: 105bca800a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16013675

Change-Id: Ie658368403f9564a4a5580e55e22ec5862fe6f2d
2021-11-18 20:25:17 +00:00
Jason Chiu
e7a681748e Merge "Start deep link page synchronously in SettingsActivity" into sc-v2-dev am: b4d3278a45
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16263226

Change-Id: Id203bbb5f0d0e0c345494c111ad8c0c296b8e6e5
2021-11-18 19:48:02 +00:00
Jason Hsu
105bca800a Merge "Provide ability to link to Color Inversion page via Intent" into sc-v2-dev am: 0a8f978357
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16013675

Change-Id: Ia9b87f0a221574c54d65700da9f046b301b7d3b5
2021-11-18 19:46:47 +00:00
Jason Chiu
b4d3278a45 Merge "Start deep link page synchronously in SettingsActivity" into sc-v2-dev 2021-11-18 09:34:20 +00:00
Jason Hsu
0a8f978357 Merge "Provide ability to link to Color Inversion page via Intent" into sc-v2-dev 2021-11-18 06:33:55 +00:00
Jason Chiu
a3b21cf017 Start deep link page synchronously in SettingsActivity
- Use a synchronous API to make SettingsActivity start deep link intent
  in onCreate
- Change SettingsHomepageActivity from an alias to a real activity
- Clean up redundant codes

Fix: 206585572
Test: Manual, robotest build pass
Change-Id: Idf42c026f593bb5801a13cae250d1523030b7092
2021-11-18 12:20:08 +08:00
Jason Chang
a40471e4bf Merge "(3/n) Handling long-pressed action for One-handed mode Quick Settings tile" 2021-11-17 23:38:03 +00:00
TreeHugger Robot
69df012025 Merge "Fix the CtsVerifier issue" into sc-v2-dev am: 0d96dc50b5 am: e837096e38
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16241533

Change-Id: Id31d0aa8a6a50ca8d4b7c997b06ee86b19e0866e
2021-11-17 09:25:32 +00:00
TreeHugger Robot
e837096e38 Merge "Fix the CtsVerifier issue" into sc-v2-dev am: 0d96dc50b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16241533

Change-Id: I87216a56ee6cd70ccf6af2318ccafec50642161a
2021-11-17 09:15:06 +00:00
TreeHugger Robot
0d96dc50b5 Merge "Fix the CtsVerifier issue" into sc-v2-dev 2021-11-17 08:58:43 +00:00
Tsung-Mao Fang
98b9b3438d USB: move help config flag to FW
Note: This cl is copied from aosp/1785174 since
merge conflict issue.

Move the flag for the indication of the validity of help links
to framework because it is also needed for SystemUI.

config_has_help will be replaced by config_settingsHelpLinksEnabled
in frameworks.

Test: $ adb shell dumpsys usb add-port "matrix" ufp
$ adb shell dumpsys usb set-contaminant-status "matrix" true
Bug: 195448626

Change-Id: Id9b0c196c9a07085c790d5f4366bb1fec635d6b1
2021-11-17 06:47:39 +00:00
SongFerng Wang
f5e2d52f43 Merge "Revert "Device do network scan after user rotates NetworkSelection page"" 2021-11-17 06:24:53 +00:00
SongFerng Wang
14351731fa Merge "Device do network scan after user rotates NetworkSelection page" into sc-v2-dev am: 6b81329fc2 am: df8cc34945
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16259258

Change-Id: I1973f7d7c2aefe5932e916b1c125d3348a437bda
2021-11-17 05:22:07 +00:00
SongFerng Wang
df8cc34945 Merge "Device do network scan after user rotates NetworkSelection page" into sc-v2-dev am: 6b81329fc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16259258

Change-Id: Iea2dd1448309721f3a57cba3c8c04a0dbae6b4a5
2021-11-17 05:06:07 +00:00
SongFerng Wang
6b81329fc2 Merge "Device do network scan after user rotates NetworkSelection page" into sc-v2-dev 2021-11-17 04:56:04 +00:00
Jason Chiu
8c10cb51db Merge "Support highlighting the menu entry for Search results" into sc-v2-dev am: c144f7bb89 am: a6cd1fee05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16234663

Change-Id: I06ab4a8fa73b9faf301bf3af2068b1461e14fdf0
2021-11-16 07:52:14 +00:00
Jason Chiu
a6cd1fee05 Merge "Support highlighting the menu entry for Search results" into sc-v2-dev am: c144f7bb89
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16234663

Change-Id: I95ab4ae7fa4c8217d8dfef8ae1a07976681815ee
2021-11-16 07:40:47 +00:00
bvineeth
5b90dfad34 Typo fix in media settings title variable
Fixed the typo in variable for media settings title, due to which the
title was not being fetched from configuration.

Bug: 199012697
Test: Manual
Change-Id: I256e55a13f2f06ca0b2800ceb01900d5e12d9834
2021-11-16 07:35:18 +00:00
Jason Chiu
c144f7bb89 Merge "Support highlighting the menu entry for Search results" into sc-v2-dev 2021-11-16 07:28:32 +00:00
SongFerng Wang
3c9580d573 Revert "Device do network scan after user rotates NetworkSelection page"
This reverts commit f54ead1f94.

Reason for revert: using another way. ag/16259258

Change-Id: I4ae695237cb3417cb3d08fcbb3354dc649681aab
2021-11-15 04:50:25 +00:00
SongFerngWang
13aadad7fa Device do network scan after user rotates NetworkSelection page
To avoid to do oncreate when device is rotated or the screenSize
changed. Adding the activity's android:configChanges as
"orientation|keyboard|keyboardHidden|screenSize|screenLayout
|smallestScreenSize". (Based on SettingsHomepageActivity's settings
and the smallestScreenSize is for screensize changed on
different display.)

Bug: 204039043
Test: atest AutoSelectPreferenceControllerTest (pass)
atest OpenNetworkSelectPagePreferenceControllerTest (pass)
atest NetworkSelectSettingsTest (pass)

Change-Id: I6aa009fc52a85024a29bf48a3e7d1aadcab067d8
2021-11-15 12:46:34 +08:00
Weng Su
eb70b243f7 Fix the CtsVerifier issue
- The "android.settings.WIFI_SETTINGS" intent-filter needs to be the
first element of the intent-filter in the activity for profile intent
filters

- Redirect the "android.settings.WIFI_SETTINGS" action to Internet
Settings via FRAGMENT_CLASS meta-data

- Add PRIMARY_PROFILE_CONTROLLED meta-data to WifiSettings2Activity

- Remove unnecessary WifiSettings2Activity from Settings.java

Bug: 205258444
Test: manual test
- Long press the Internet Tile in QS for WIFI_SETTINGS action testing
- Use adb command to test the shortcut action
adb shell am start com.android.settings/.Settings\\\$WifiSettings2Activity

Change-Id: I9ac397828edf1083efcf790eb41b3e978ed6bdca
2021-11-12 15:06:05 +00:00
Zoey Chen
29192dbc2d [Settings] 1. Add configChange for WFC Activity to cover the changes of rotation and screen size am: 6cf16b0aa9 am: 2d5641f17b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16145006

Change-Id: Ia5c14ba3bde1a49b4f360bd2444253651e63d305
2021-11-12 08:56:12 +00:00
Zoey Chen
2d5641f17b [Settings] 1. Add configChange for WFC Activity to cover the changes of rotation and screen size am: 6cf16b0aa9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16145006

Change-Id: Idea7f177ee4897c20bd7faf773a34e79976f2376
2021-11-12 08:43:51 +00:00
Zoey Chen
6cf16b0aa9 [Settings] 1. Add configChange for WFC Activity to cover the changes of rotation and screen size
2. register split rule for MobileNetworkActivity

Bug: 204508876
Test: manual
Change-Id: Iff3dae41293e79b274d2928cb51efea46fb45dd4
2021-11-12 15:22:43 +08:00
Xin Li
bf45599d43 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I9ac05f5da437030e1b5db082ddaf7959f82acccd
Change-Id: Iaf8ebc4877a8276672354b45db0dd502c0f71bd3
2021-11-11 16:54:23 +00:00
SongFerng Wang
990b4c4662 Merge "Device do network scan after user rotates NetworkSelection page" 2021-11-11 11:51:24 +00:00
SongFerngWang
d42ff2a86b Device do network scan after user rotates NetworkSelection page
Add the networkSelectSettings fragment into new activity, and set
the activity's android:configChanges as
"orientation|keyboard|keyboardHidden|screenSize|screenLayout
|smallestScreenSize".

Bug: 204039043
Test: atest AutoSelectPreferenceControllerTest (pass)
atest OpenNetworkSelectPagePreferenceControllerTest (pass)
atest NetworkSelectSettingsTest (pass)

Change-Id: Ic933c2294401bc50e105ddcfd2a17886d0bbefc3
Merged-In: Ic933c2294401bc50e105ddcfd2a17886d0bbefc3
2021-11-11 18:16:40 +08:00
SongFerngWang
f54ead1f94 Device do network scan after user rotates NetworkSelection page
Add the networkSelectSettings fragment into new activity, and set
the activity's android:configChanges as
"orientation|keyboard|keyboardHidden|screenSize|screenLayout
|smallestScreenSize".

Bug: 204039043
Test: atest AutoSelectPreferenceControllerTest (pass)
atest OpenNetworkSelectPagePreferenceControllerTest (pass)
atest NetworkSelectSettingsTest (pass)

Change-Id: Ic933c2294401bc50e105ddcfd2a17886d0bbefc3
2021-11-11 18:16:23 +08:00
Jason Chang
d1cf05ce06 (3/n) Handling long-pressed action for One-handed mode Quick Settings
tile

Handling Intent action when long-pressed on One-handed mode Quick
Settings tile .

Bug: 201743873
Bug: 202132480

Test: Manually test
Change-Id: Ib532bd1582fa87bd11c3ec1ee80ad771a78e96d2
2021-11-11 17:09:00 +08:00
Jason Chiu
3af73364ba Support highlighting the menu entry for Search results
1. Add a receiver to monitor the search state
2. Shoe/hide the menu highlight in the listener
3. Highlight the menu entry in SearchResultTrampoline
4. Enable/disable the receiver in SettingsInitialize

Bug: 205781792
Test: manual, robotest
Change-Id: Ia04901f504172f4f0c7b4b2ea7eda5f3713f676d
2021-11-11 14:33:26 +08:00
Jason Chiu
7b64761bd2 Support Settings deep links highlighting the menu entries
Bug: 203492419
Test: visual
Change-Id: I2249d4779d69bc0934b9c57900b903638ad6700b
Merged-In: I2249d4779d69bc0934b9c57900b903638ad6700b
2021-11-11 02:29:54 +00:00
jasonwshsu
9fcd1f9c1e Provide ability to link to Color Inversion page via Intent
Bug: 202480583
Test: manual test
Change-Id: Ie497a9a391272d857cab87aacbb1184e3fd845b3
2021-11-11 02:23:34 +08:00
Jason Chiu
a3ad3d1abb Support Settings deep links highlighting the menu entries
Fix: 203492419
Test: visual
Change-Id: I2249d4779d69bc0934b9c57900b903638ad6700b
Merged-In: I2249d4779d69bc0934b9c57900b903638ad6700b
2021-11-10 09:09:26 +00:00
Jason Chiu
646a31e80a Support Settings deep links highlighting the menu entries
Fix: 203492419
Test: visual
Change-Id: I2249d4779d69bc0934b9c57900b903638ad6700b
2021-11-10 06:58:21 +00:00
Treehugger Robot
5da069b716 Merge "Add entry point for adaptive brightness settings" am: d3d24b65ac am: f7836dd7bc am: bd105d62e0 am: 38f57dc3d7 am: 9c564e9016
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1698500

Change-Id: I88ef83fad21f1c9bea5ea276614d495e0db0a1da
2021-11-09 08:51:40 +00:00
Treehugger Robot
9c564e9016 Merge "Add entry point for adaptive brightness settings" am: d3d24b65ac am: f7836dd7bc am: bd105d62e0 am: 38f57dc3d7
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1698500

Change-Id: I5df7284a5193b57cb18524a7ae9360fbe64cac26
2021-11-09 08:35:20 +00:00
Treehugger Robot
38f57dc3d7 Merge "Add entry point for adaptive brightness settings" am: d3d24b65ac am: f7836dd7bc am: bd105d62e0
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1698500

Change-Id: I2a2c8d7828b07e519ecb2736f9c1d5d0940fea24
2021-11-09 08:18:41 +00:00
Treehugger Robot
bd105d62e0 Merge "Add entry point for adaptive brightness settings" am: d3d24b65ac am: f7836dd7bc
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1698500

Change-Id: I50db46670b28fe29d5f5c3911ea09fd5b99f1c9d
2021-11-09 08:00:04 +00:00
Jun Ono
89c2c5e9c0 Add entry point for adaptive brightness settings
Test: adb shell am start -a android.settings.ADAPTIVE_BRIGHTNESS_SETTINGS
Bug: 187332145
Change-Id: Ifd81bfb3b0abc3ea10a062cb49fab20f6ef3fdfc
2021-11-05 17:27:41 +00:00
TreeHugger Robot
687dea100f Merge "Fine tune the homepage scrolling behavior" into sc-v2-dev am: 244df10d90 am: 5f87b783af
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16182700

Change-Id: I86a9e4c7c4dd7ba437469c03d80b3e1782eb92c8
2021-11-05 11:55:43 +00:00
TreeHugger Robot
5f87b783af Merge "Fine tune the homepage scrolling behavior" into sc-v2-dev am: 244df10d90
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16182700

Change-Id: Ic2903d78e94cdf49d655b51ce84be85be9a4d634
2021-11-05 11:37:13 +00:00
Jason Chiu
ae5327d4bb Fine tune the homepage scrolling behavior
Scroll to the highlight position before showing homepage.

Bug: 199017944
Bug: 204946469
Test: visual
Change-Id: I11708f42180a3af22855ac7b5f53460f737ed208
2021-11-05 18:21:59 +08:00
Tom Hsu
9c39878c50 Merge "[Settings] Avoid crash from rotation screen." into sc-v2-dev am: 0ad93a95c6 am: acfbe351eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16174733

Change-Id: I0f1676cc4d5501a19bed817a5b554652756ef0d7
2021-11-03 07:52:13 +00:00
Tom Hsu
acfbe351eb Merge "[Settings] Avoid crash from rotation screen." into sc-v2-dev am: 0ad93a95c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16174733

Change-Id: I1ba69fa41b9781be762c45577b6a44546ac4e409
2021-11-03 07:32:45 +00:00