Commit Graph

35178 Commits

Author SHA1 Message Date
TreeHugger Robot
adcd4f165d Merge "Add inline toggle for Prevent Ringing gesture." 2021-01-12 15:03:32 +00:00
Jeremy Goldman
4efd9e6477 Merge "EuiccOperationSidecar PendingIntent includes Immutable flag." 2021-01-12 12:16:13 +00:00
Jeremy Goldman
1cd42ba295 Merge "MobileDataSlice PendingIntents include an immutable flag" 2021-01-12 12:14:18 +00:00
Jeremy Goldman
5a97ce8a0a Merge "WifiSliceHelper and associated test uses immutable PendingIntent flags" 2021-01-12 12:14:13 +00:00
SongFerng Wang
91c03a3254 Merge "Rephrase the see more button of Internet panel when ProviderModel is enabled" 2021-01-12 12:13:40 +00:00
Jeremy Goldman
9f227b2aaa Merge "SimSelectNotification pending intent include an Immutable flag" 2021-01-12 12:13:30 +00:00
TreeHugger Robot
3180917a1d Merge "Refine the preference layout for homepage" 2021-01-12 09:01:54 +00:00
Jeremy Goldman
ad83060bd9 MobileDataSlice PendingIntents include an immutable flag
Bug: 172209293
Test: atest SettingsUnitTests
Change-Id: Ie71e104ca9ff3dff1d347178381656046d6068d7
2021-01-12 16:52:24 +08:00
Jeremy Goldman
cd669b84bc WifiSliceHelper and associated test uses immutable PendingIntent flags
Bug: 172203646
Bug: 172810495
Test: atest -c WifiSliceHelperTest
Change-Id: Ie4de9517461a56b2328e8506d9eb640914924822
2021-01-12 16:49:36 +08:00
Jeremy Goldman
fb41503ca8 SimSelectNotification pending intent include an Immutable flag
Bug: 172212792
Test: atest SettingsUnitTests
Change-Id: Id40e145eed1d268e8147ad21d9b9147268a20453
2021-01-12 16:46:58 +08:00
Jeremy Goldman
af60e537f4 EuiccOperationSidecar PendingIntent includes Immutable flag.
Bug: 172206956
Test: atest SettingsUnitTests
Change-Id: I8378746660777082d714ace21d9a459775fefc95
2021-01-12 16:45:26 +08:00
SongFerngWang
19cd9506c7 Rephrase the see more button of Internet panel when ProviderModel is enabled
Bug: 176871139
Test: build Test and manaual test(check the UI)
make RunSettingsRoboTests -j ROBOTEST_FILTER=InternetConnectivityPanel
(PASS)

Change-Id: I5e601c6639d979ca776f4bdf7f5e870a0513c7f5
2021-01-12 16:31:41 +08:00
Ben Chung
f27d3c33c4 Merge "Accessibility settings interaction controls category restructure, add tap assistance fragment for related accessibility services." 2021-01-12 04:53:55 +00:00
Yi-Ling Chuang
b058221b62 Add inline toggle for Prevent Ringing gesture.
- Fork sound_settings_v2 for dev.
- Replace Preference with PrimarySwitchPreference for the Prevent
Ringing entry.
- When the toggle is on, only show the status text without the on/off
info.
- Remove unused codes.

Bug: 174964721
Test: robotests
Change-Id: I990f5c778436c8058d4a5953c7f15a9a7eb580d8
2021-01-12 12:48:41 +08:00
Tsung-Mao Fang
6c921e5b6c Refine the preference layout for homepage
Based on the Android S design, we update the layout
for homepage.

The scope covers the layout of preference and icons itself.

- Change the icon size for IA items.
- Change the layout spacing of preference.
- Change the margin or search bar.

Test: See the screen and confirm with UX
Bug: 177213699
Change-Id: I985966fdf39a5989d51991aa3c06ea5fd31e8fe2
2021-01-12 12:42:44 +08:00
TreeHugger Robot
0f81257a5f Merge "Disable toolbar title of screen lock pages" 2021-01-12 02:14:38 +00:00
TreeHugger Robot
b63f537238 Merge changes from topic "settings_collapsing_toolbar"
* changes:
  Disable the title of mobile network
  Add CollapsingToolbarLayout for sub settings
2021-01-12 02:14:38 +00:00
TreeHugger Robot
cbfeb8bf01 Merge "Set a title for personal dictionary" 2021-01-12 02:14:38 +00:00
Hai Zhang
5509b03996 Revert^2 "Expose role API for Settings on RoleManager."
e822aea2e1

Bug: 158736025
Test: atest RcsProvisioningMonitorTest
Change-Id: Ib9e66803d780a93db2bbad34745ce1939954a3f3
2021-01-11 22:54:07 +00:00
Diego Vela
12797dc986 Merge "Revert "Expose role API for Settings on RoleManager."" 2021-01-11 19:30:04 +00:00
Diego Vela
e822aea2e1 Revert "Expose role API for Settings on RoleManager."
Revert submission 13261069-role-settings-api

Reason for revert: Might be breaking RcsProvisioningMonitorTest
Bug: 177227549
Test: RcsProvisioningMonitor
Reverted Changes:
Idbd0db119:Expose role API for Settings on RoleManager.
Iafe1d2460:Expose role API for Settings on RoleManager.
I6a3e5a26c:Expose role API for Settings on RoleManager.

Change-Id: Ic48c562e8249ca43e7c594f55d94ba190540be22
2021-01-11 19:11:25 +00:00
joshmccloskey
b9e320c8e7 Add immutability flag to face slice
Fix: 172212761
Test: Verified suggestion icon appears.
Change-Id: Ia17ca67d7d729e0608169c23f9df0c1a9d473c85
2021-01-11 18:28:46 +00:00
Ashwini Oruganti
eb9e2e74cc Merge "Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED." 2021-01-11 18:25:05 +00:00
Fan Zhang
1447ed1fa5 Merge "Add android:order to all emergency setting items" 2021-01-11 16:52:11 +00:00
Mill Chen
82777ba0c0 Disable toolbar title of screen lock pages
After applying collapsing toolbar in the Settings app, the toolbar title
will be shown in every subsetting pages. However some pages in the
security category don't need the title, like set screen lock page and
lock screen page. This CL is to disable these titles through overriding
isToolbarEnabled method.

Bug: 176883575
Test: manual test and visual verified
1) Navigate to Settings -> Security -> Screen lock ->
Pattern/PIN/Password
2) Observe and check if there is a duplicated title.

Change-Id: I6dfa4fbe1b5e2ac3582804ba1e125196f3bdba6c
2021-01-11 18:31:54 +08:00
Mill Chen
82df7e60a1 Disable the title of mobile network
After the collapsing toolbar layout is applied to subsetting pages, the
mobile network page has two title shown currently. One is the activity
title while the other is the collapsing toolbar title To make sure
there will be only one title shown on this page, the activity title will
be removed and we will keep the collapsing toolbar title.

Bug: 176899590
Test: manual test and visual verified
1) Navigate to Settings -> Network & internet -> Mobile network
2) Check if there's only one title in this page

Change-Id: I50e57468c640f1d176fd99dcaafc06ed3fc601dc
2021-01-11 18:31:26 +08:00
Mill Chen
14cfd2f2ca Add CollapsingToolbarLayout for sub settings
Settings app is planning to make toolbar collapsible for next
Android release. This CL is to add a new layout for
CollapsingToolbarLayout in the Settings app and to update the theme
correspondly. This feature will be controlled by feature flag, which
makes Settings app compacitible with the existing layout.

Bug: 174451673
Test: manul test and visual verification
1) Enable the feature and open Settings app
2) Navigate to each sub page and check if toolbar is collapsible

Change-Id: Ibef524bbaa7ae3f0a43db7e40e599f42e009437f
2021-01-11 18:30:20 +08:00
Mill Chen
124f01999c Set a title for personal dictionary
After the collapsing toolbar layout is applied to subsetting pages, the
title of the personal dictionary page won't be shown. This CL is to set
a title for the personal dictionary page.

Bug: 176897229
Test: manual test and visual verified
1) Navigate to Settings -> System -> Languages & input -> Personal
dictionary
2) Enable collapsing toolbar feature
3) Observe and check if the title is shown as normal

Change-Id: I0b6488bc2c8040b275ba0d5348d09aa4bad905d1
2021-01-11 17:59:47 +08:00
Ben Chung
dfe1977044 Accessibility settings interaction controls category restructure, add tap assistance fragment for related accessibility services.
Bug: 174829936
Test: atest TapAssistanceFragmentTest, atest AccessibilitySettingsTest
Change-Id: I39c4eba8ec807248eb11371fab2466cf7d7553ef
2021-01-11 17:21:14 +08:00
Weng Su
062a80f221 Merge "Add Hotspot WPA3 Settings" 2021-01-11 08:46:15 +00:00
PETER LIANG
90c976b8c0 Merge "Add test cases for ToggleAutoclickCustomSeekbarController." 2021-01-11 07:34:21 +00:00
tim peng
ce66cbb502 Merge "Rename MediaOutputSliceConstants to MediaOutputConstants" 2021-01-11 05:08:26 +00:00
Weng Su
b9c865b704 Add Hotspot WPA3 Settings
- Add WPA3 SAE security types
  - "WPA3-Personal"
  - "WPA2/WPA3-Personal"

- Verify valid WPA3 password

- Enable QR code scanner for Hotspot WPA3

- Avoid null point exception when settings keyword searching

- Screenshot
  https://screenshot.googleplex.com/B6u54wh8w35Xnyf
  https://screenshot.googleplex.com/8hWHHUTb6UaS9vB

Bug: 167968488
Test: manual test
- atest WifiTetherSecurityPreferenceControllerTest
- atest WifiUtilsTest

Change-Id: I2992040498f8add107a4cce70a92c1c6ee6ab805
2021-01-10 08:38:39 +00:00
Fan Zhang
78cbca8cbd Add android:order to all emergency setting items
Each item has a gap of 100 to allow external setting injection choose
where to display.

Bug: 175158310
Test: manual
Change-Id: Icf150ad8fc956c3db391251382b08b5155034a8b
2021-01-08 23:56:33 +00:00
Ashwini Oruganti
2f349da025 Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED.
We've been working hard to require PendingIntents explicitly declare
if they allow their contents to be mutated or not, and to finish
landing that work this change applies the new FLAG_MUTABLE_UNAUDITED
flag to all remaining code locations until they can be manually
inspected.

Bug: 160794467
Test: manual
Change-Id: I7b9ef5dcd35187facef1ec424589b81f834f23c0
2021-01-08 13:14:05 -08:00
Joshua Mccloskey
83102ab0a2 Merge "Updated Fingerprint enrollment logging" 2021-01-08 19:11:51 +00:00
TreeHugger Robot
4419633fb1 Merge "Expose role API for Settings on RoleManager." 2021-01-08 18:48:37 +00:00
Jason Hsu
606e8b1f88 Merge "Fix crash when rotating the device on magnification mode dialog" 2021-01-08 13:13:28 +00:00
TreeHugger Robot
1d4857d8dd Merge "Animate the search bar expansion" 2021-01-08 12:51:38 +00:00
Treehugger Robot
4fa8813f8b Merge "Fix too many receivers Exception" am: 2e6cde6b94 am: 8c2b2cc806 am: f83f554a75
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1498417

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I994084cd157a33e74a07525e6dd61229069fbdd7
2021-01-08 10:40:56 +00:00
Treehugger Robot
f83f554a75 Merge "Fix too many receivers Exception" am: 2e6cde6b94 am: 8c2b2cc806
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1498417

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iac11b0261e6c2323558d974e7e81788c54661029
2021-01-08 10:14:26 +00:00
Tsung-Mao Fang
902a3469f0 Animate the search bar expansion
Enable the transition between Settings app and Settings Search

Test: Record the transition video and confirm it.
Fix: 175764903
Change-Id: I95125fba17bbf517feee9a10fd828ff8017f7106
2021-01-08 07:48:54 +00:00
Fan Zhang
80c7251526 Switch to use EmergencyNumberUtils to update e-number.
The backend storage choice is delegated to EmergencyNumberUtils. Using
the utils class abstrats underlying details away from Settings app.

Bug: 177006940
Test: manual
Change-Id: I78c5ef79e141e3609ab9d10e558803457b617911
2021-01-07 22:45:39 -08:00
Treehugger Robot
2e6cde6b94 Merge "Fix too many receivers Exception" 2021-01-08 05:35:46 +00:00
TreeHugger Robot
66363d707f Merge "[Provider Model] Replace WiFi panel to Internet panel" 2021-01-08 03:57:19 +00:00
Julia Reynolds
60633f6253 Merge "Allow notification filtering per listener." 2021-01-08 03:14:52 +00:00
Sarah Chin
613c77f305 Update onSubscriptonOverride listener
Test: atest FrameworksTelephonyTests
Test: atest SubscriptionManagerTest
Bug: 175723642
Change-Id: I9436b414608d7c964185d3d5c3f1f554c65b2c12
2021-01-07 16:38:29 -08:00
TreeHugger Robot
76c649968f Merge "Add a empty page to host Safety/emergency settings" 2021-01-07 22:39:06 +00:00
joshmccloskey
75587638ff Updated Fingerprint enrollment logging
Test: Verified regular fingerprint enrollment correctly logged
enrollment.
Test: Verified that the find fingerprint sensor activity no longer
falsely reports a failed enrollment.
Bug: 175316123

Fingerprint enrollment shows a find sensor screen which makes a call to
FingerprintManager.enroll(), the purpose is to get the user to locate
the sensor. The consequence was that logging built into the framework
was incorrectly logging a failed enrollment after cancellation.

Change-Id: I4777613fe521f04cc97c471e0a1e85e5809d7f06
2021-01-07 13:53:27 -08:00
Fan Zhang
9b1fb77b54 Add a empty page to host Safety/emergency settings
The page will eventually be displayed on settings root. It's currently
disabled to avoid QA/dogfood confusion, as the page is pretty empty at
this point.

Bug: 175158310
Test: manual only. Skipped robolectric because the page is pretty empty.
      Will add more test as we build business logic.
Change-Id: I80f193f6e90b89ab0c37d0f23f7174e4ba86c091
2021-01-07 10:56:32 -08:00