Commit Graph

2433 Commits

Author SHA1 Message Date
Joe Bolinger
dde461dc4e Remove portrait flag from handoff activity.
Fix: 206904426
Test: manual (adb root && adb shell am start -n com.android.settings/.biometrics.BiometricHandoffActivity and rotate device)
Change-Id: Ibe61484d88824418f395247e492aba7b9d3c912a
2021-12-01 00:59:57 +00:00
TreeHugger Robot
fb0ca145aa Merge "Fix overlapped problem in SuW two panes mode" into sc-v2-dev am: cd8a01d2fd am: c6bc7a7c4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16332784

Change-Id: I8c1f0b3a19239f85a4f67b53dd703ed7a9d3a625
2021-11-29 06:15:11 +00:00
TreeHugger Robot
c6bc7a7c4b Merge "Fix overlapped problem in SuW two panes mode" into sc-v2-dev am: cd8a01d2fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16332784

Change-Id: Ib37dab22b51da7ec97990230a17b7fe698abee60
2021-11-29 05:59:08 +00:00
Alice Kuo
2d0025761b Handle csip set member automatic pair in Setting am: 629611a43e am: eb412a0614 am: 6097f9b830
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1903834

Change-Id: Icace2cf11100209eaa945971704b3319e9628e75
2021-11-29 03:04:15 +00:00
Alice Kuo
6097f9b830 Handle csip set member automatic pair in Setting am: 629611a43e am: eb412a0614
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1903834

Change-Id: Ibb8140b8af96036750457a6866eb9ba410bc0b84
2021-11-29 02:48:46 +00:00
Alice Kuo
eb412a0614 Handle csip set member automatic pair in Setting am: 629611a43e
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1903834

Change-Id: If9172095a2688a0fbe588ccbae96076e9cf8b133
2021-11-29 02:29:32 +00:00
Sunny Shao
644a2b9bc6 Fix overlapped problem in SuW two panes mode
- The previous preview page will overlap the right pane in RTL language.
- The root cause is the false value of the clipToPadding and
  clipChildren.
- Use the TTheme.DeviceDefault.Settings.

Fixes: 204955818
Test: manual test
Change-Id: I75c7f419cf93ebe9c4e9e3cb24835163a6b01e11
2021-11-26 17:20:50 +08:00
Alice Kuo
629611a43e Handle csip set member automatic pair in Setting
Move the set member handle to setting. SystemUI and Setting have the
individual settingLib instance. If we trigger pairing inside settingLib,
the action would be called twice. SystemUI does not contain the concept
to handle the pair interaction. Setting would take the action to
createBond for CSIP automatically.

Bug: 201758444
Bug: 150670922
Test: Pair the coordinated set devices, and check the set member pairing
would be done automatically without the pairing dialog

Change-Id: Idbdd21a1f15b04cc91cbc2d30a5cb4e9b24174b9
Merged-In: Idbdd21a1f15b04cc91cbc2d30a5cb4e9b24174b9
2021-11-26 13:53:46 +08:00
Vineeth Bhende
f28a1afac9 Merge "Typo fix in media settings title variable" 2021-11-26 05:44:02 +00:00
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