Commit Graph

49467 Commits

Author SHA1 Message Date
TreeHugger Robot
1bbe4241ee Merge "Fix "Play media to" popup close issue when screen rotate" 2019-01-10 19:43:49 +00:00
Salvador Martinez
cd365b6533 Polish some behaviors of the battery saver schedule screen
This CL removes the line that was showing between the radio
buttons and the seek bar. Additionally it makes it so the seekbar
updates continuously as a user moves it and fixes a visual bug
where it would show 5% regardless of what the user had set it to
when exiting then re-entering the screen.

Test: visual
Change-Id: Icdb9cafe2bdda03d94230d1c8538f4c322b050e9
Fixes: 121388626
Fixes: 121211075
2019-01-10 11:25:48 -08:00
Fan Zhang
1d6918dc51 Update disable app warning text
Change-Id: Iaf4f88c3d5e4ba7b58164ece953947af396f26d4
Fixes: 122609554
Test: visual
2019-01-10 10:48:25 -08:00
Naina Nalluri
06e95d4fff Revert "Developer option to enable CBRS"
This setting is being moved. Not needed
in Developer options anymore.

Bug: 122658022
Test: make a build and check Developer options

This reverts commit 6398841434.

Change-Id: I53c6f5d2ec8f7c844886fdf3d32be2ec06f2b0d1
2019-01-10 10:23:33 -08:00
Alexey Kuzmin
3c51e824eb Split ring and notification vibration settings
Synchronize settings between sound and accessibility menus

Bug: 116172311
Test: See accessibility vibration settings - ring and notification
settings sould be separate. Try changing vibration settings in sound and
accessibility menus - the settings should stay in sync.

Change-Id: I515a7188cdf5a26a229ac8f08c6fcfe98e2f91a0
2019-01-10 14:22:49 +00:00
James Lu
7ce23b578a Fix "Play media to" popup close issue when screen rotate
- Avoid calling getListPreference() in onDialogClose() everytime.
  Due to exception in onDialogClose(). Move preference declaration into if condition.
- Add test case for crash case.

Bug: 119744621
Test: make -j50 RunSettingsRoboTests ROBOTEST_FILTER=UpdatableListPreferenceDialogFragmentTest
Change-Id: Ia20b8289a5863136ea74e02e32b537f6967474e8
2019-01-10 17:09:46 +08:00
Arc Wang
e5d530348c Fix BB due to CL submit timing problem.
Change style naming from Suw to Sud.

Bug: 120805516
Test: NA
Change-Id: Ieac16e5d28cc0e0232774651f0affec37a026888
2019-01-10 09:02:41 +00:00
Pasty Chang
c4e447ce71 Merge "Change to show two footer buttons in SUW lockscreen page." 2019-01-10 07:16:02 +00:00
Stanley Wang
eb735f2909 Merge "Implement the Copyable interface to ImeiInfoPreferenceController" 2019-01-10 07:01:33 +00:00
Pasty Chang
43bb34e15c Merge "Rename prefix from suw to sud" 2019-01-10 06:56:20 +00:00
Arc Wang
b5f945994e Merge changes I6abbfc5d,I1ce1b014
* changes:
  Fix Wi-Fi DPP activity crash after configuration change.
  Implement Wi-Fi DPP flow
2019-01-10 06:04:09 +00:00
tmfang
0e421958aa Change summary of privacy page
Test: visual
Change-Id: I29cc98c8eca619b7883c28317d0e7b4de5fea944
Fixes: 122368436
2019-01-10 13:50:03 +08:00
Sunny Shao
9f08f6c7b5 Merge "Launch view account page when it's available." 2019-01-10 04:55:11 +00:00
Arc Wang
dcf3f2906f Fix Wi-Fi DPP activity crash after configuration change.
Both QR code and Wi-Fi network data may not come from intent.
After configuration change, the null data will crash the activity.

Bug: 120243131
Test: atest WifiDppConfiguratorActivityTest
Change-Id: I6abbfc5d25431789e8ac9f6ee9dfaaef15b2de33
2019-01-10 12:22:56 +08:00
Arc Wang
a7d51370c8 Implement Wi-Fi DPP flow
1. Wi-Fi DPP hanshake fail UI
2. Show Wi-Fi DPP QR code information field on WifiDppAddDeviceFragment if it's available.
3. Click 'Choose Different Network' button will show WifiDppChooseSavedWifiNetworkFragment
4. After QR code scanner scans success, WifiDppConfiguratorActivity caches WifiQrCode instead
   of just a QR code string

Bug: 122429170
Test: manual test
Change-Id: I1ce1b014ff86903b5a7a8f3575cc98eb1079583c
2019-01-10 12:09:58 +08:00
TreeHugger Robot
da947e902e Merge "Add summary for role-based default apps preference." 2019-01-10 04:00:25 +00:00
Stanley Wang
76ab6e9a99 Implement the Copyable interface to ImeiInfoPreferenceController
Copy the IMEI to clipboard for Copyable.

Change-Id: I3e13bfad8158e4cb4f9fda854661341d4c334e46
Fixes: 73769888
Test: manual and robotests
2019-01-10 04:00:20 +00:00
Kevin Chyn
b8a7e95de2 Merge "Persist token across activity lifecycle" 2019-01-10 03:19:42 +00:00
TreeHugger Robot
be555eddcd Merge changes I2d087f34,Ia2b91315
* changes:
  Filter out unimportant battery tips from slice card.
  Revert "Remove battery saver condition."
2019-01-10 02:31:06 +00:00
Arc Wang
7a14f706e1 Merge "Add more Wi-Fi DPP UI features." 2019-01-10 02:07:31 +00:00
Sunny Shao
7aa9fdd75c Launch view account page when it's available.
- Add to launch the new Contextual Landing Page when user clicks the avatar
  icon and check the matching intent activity exist.
- Use the serialized intent and keeps in config.xml.
- Remove the getAccountSettingsDeeplinkIntent in the AccountFeatureProvider
  which never use again.

Change-Id: I50396af67eb04034572f8c885b4d9aef48a67e9d
Fixes: 122486552
Test: robotest
2019-01-10 09:33:21 +08:00
Yiwei Zhang
a9f902b9c2 Merge "GUP: Display a list of Apps and dialogs" 2019-01-10 00:33:39 +00:00
Fan Zhang
75c143cba9 Filter out unimportant battery tips from slice card.
Change-Id: I2d087f345e44a7dc643715f67c9f516f5541e05e
Fixes: 121115306
Test: robotests
2019-01-09 16:30:45 -08:00
Fan Zhang
0896fa3bee Revert "Remove battery saver condition."
This reverts commit 44b28f4a2b.
Bug: 121115306
Test: robotests

Reason for revert: Change of design

Change-Id: Ia2b9131595d582fd8300367f729fde2b3de81b6e
2019-01-09 15:23:02 -08:00
Hai Zhang
d07b049de1 Add summary for role-based default apps preference.
This change adds summary for role-based default apps preference, based
on what we have now for default apps.

Bug: 110557011
Test: atest RolesPreferenceControllerTest
Change-Id: Ic3dd84dc7ca687ea1de63a856ac3fcf679e1bda9
2019-01-09 14:56:03 -08:00
Kevin Chyn
5652550c84 Persist token across activity lifecycle
Test: token is persisted

Bug: 122372584
Change-Id: Id3221d1a06c48779c743a685a49a70edff6e912c
2019-01-09 14:53:21 -08:00
Quang Luong
d3ba94b332 Added autoscroll to top when clicking on OSU entry
Bug: 118705403
Test: manual, build and click on OSU entry
Change-Id: I78c69e49afc577140b819f2a4e949440a81d63c6
2019-01-09 13:49:55 -08:00
Quang Luong
7f94b17280 Added support for OSU Provider provisioning action on click
Added a call to AccessPoint.startOsuProvisioning() to
onPreferenceTreeClick to open up an OSU provider flow when the user
clicks on an AccessPointPreference pertaining to an OSU provider
AccessPoint.

Bug: 118705403
Test: manual, build and tap on the OSU provider AP.
Change-Id: I3c321c2a6d2336a0cc92a30ae051146d2fc05fb7
2019-01-09 13:49:55 -08:00
Fan Zhang
f57f490aa6 Allow OEM customizing max screen timeout value.
Side fix - update string for select timezone.

Change-Id: Id61128b7dfcc27da8ed07225af3b6bec4e93b512
Fixes: 113346164
Fixes: 121986474
Test: robotest
2019-01-09 11:19:48 -08:00
Yiwei Zhang
83c030f1cd GUP: Display a list of Apps and dialogs
1) Add preference controller for gup dashboard and add list preferences
for each entry of the apps
2) Add gup dashboard page to search index
3) Add comprehensive tests for GupPreferenceController

Bug: 119221883
Test: make RunSettingsRoboTests
Change-Id: Ide4934c0dd3901532723e77e74663e5a7b639026
2019-01-10 02:39:08 +08:00
TreeHugger Robot
6498d8f621 Merge "use android:textAppearanceListItem to replace Preference subhead" 2019-01-09 17:58:44 +00:00
TreeHugger Robot
9881395ccf Merge "Implement an "Advance" button on Privacy page." 2019-01-09 12:18:22 +00:00
TreeHugger Robot
c0fb9deff2 Merge "Update the layout of half width suggestion cards." 2019-01-09 11:40:24 +00:00
TreeHugger Robot
61e0424ab9 Merge "Update the background colour for dismissal view." 2019-01-09 11:21:20 +00:00
Arc Wang
8eda83d071 Add more Wi-Fi DPP UI features.
1. Use ConstraintLayout to fix footer buttons at bottom
2. ScrollViews have all other UI components excepts footer buttons
3. Use style/SuwGlifButton for buttons
4. Fix scan fragment crash when rotating screen

Bug: 118794978
Test: manual test
Change-Id: I509b0156c4835c75da75fb7ac4c82f55a0b506a1
2019-01-09 18:25:31 +08:00
Sunny Shao
1447f2652b use android:textAppearanceListItem to replace Preference subhead
Use android:attr/textAppearanceListItem to replace style/Preference_TextAppearanceMaterialSubhead
in the time_zone_search_item.xml

Bug: 122043378
Test: compilation
Change-Id: I8a19e6aa662b01fd4d8c2a0a139c787438d6d11c
2019-01-09 17:59:07 +08:00
Yi-Ling Chuang
26127c6271 Update the layout of half width suggestion cards.
When switching to the dismissal view, the background color of suggestion
cards that were built as half cards with only 1 line text in it won't
fully cover the whole card. The alignments are not consistent as well.

Make layout_height of ViewFlipper and the main content to be
match_parent.

Change-Id: If345d00d21150e184614029a34e79b3210ec52ff
Fixes: 122559038
Test: visual
2019-01-09 15:12:21 +08:00
tmfang
bb42ce2608 Implement an "Advance" button on Privacy page.
- Also rearrange the order for "show password".

Test: visual
Fixes: 122556325

Change-Id: Iac15baa83a2ba863ad75c0a309a0e4c6deaa522e
2019-01-09 15:05:56 +08:00
Cosmo Hsieh
1cb7e12fab Merge "Implement persisting time for onUserSelectionConnectSuccess." 2019-01-09 02:28:09 +00:00
Johnson Lu
9c092dda62 Merge "Implement Wi-Fi DPP flow" 2019-01-09 01:59:01 +00:00
TreeHugger Robot
532c3d7200 Merge "Make Network & internet v2 feature flag be persistent" 2019-01-09 01:18:21 +00:00
TreeHugger Robot
d7195194e2 Merge "Charging sounds toggle now includes vibration" 2019-01-08 22:34:02 +00:00
Antony Sargent
0a830d4f48 Make Network & internet v2 feature flag be persistent
In ag/5386198 we added a flag to turn on the new features of the network
and internet settings page, but that flag resets to the default value
(currently false) every time you reboot, which is annoying and hostile
for dogfooders. This CL makes the flag persistent.

Bug: 116349402
Test: manual / should be covered by existing tests
Change-Id: I098073e81feb199751e967a9652bec6a6445b95e
2019-01-08 14:17:39 -08:00
Beverly
0b6402ab3a Charging sounds toggle now includes vibration
Add text to indicate the charging sounds toggle also
includes vibration

Test: manual, builds
Bug: 29737261
Change-Id: I55e35ea63b8e80aa5573ef676fdde4b28bc0f654
2019-01-08 09:44:30 -05:00
Console Chen
ce16d7ad63 Adding the ability to customize the subtitle on an unavailable slice
When a slice is depending on some setting and the setting is off,
it shows "depends on another setting".
Add an new attribute for Preference to customize the subtitle when
a slice is unavailable.

Bug: 118399193
Test: Robo test on com.android.settings.slices, com.android.settings.core
Change-Id: I84a8400295b36abb357e5baf98e9be3a8d6ea897
2019-01-08 19:23:04 +08:00
Yi-Ling Chuang
7c91342ffa Update the background colour for dismissal view.
Change-Id: I14cfa176c80581ea8f4de099015e4ff148acf59a
Fixes: 119170360
Test: visual
2019-01-08 18:53:49 +08:00
Johnson Lu
7bdf8b3d37 Implement Wi-Fi DPP flow
1. As DPP configurator initiator.
2. As DPP enrollee initiator.
3. Pass whole DPP url to DPP API due to API cahnged.

Bug: 122331217
Test: manual test
Change-Id: I8005b78b82453badf253dbde8022ff20722b39fd
2019-01-08 13:42:42 +08:00
cosmohsieh
c1854cae9a Implement persisting time for onUserSelectionConnectSuccess.
When onUserSelectionConnectSuccess callbacks, holding a second for user
to be aware of success connection. Then, go to destory network request dialog.

Bug: 117399926
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.NetworkRequestDialogFragmentTest
Change-Id: I12d8fb2e8955cf24ddad43d1fe8b863682b6ae32
2019-01-08 12:08:11 +08:00
Nathan Harold
e5e94b95dc Merge "Fix BandMode Dialog Crash on Open due to Style" am: 7588ef1518 am: 7aacdc2c13
am: c015a1bac0

Change-Id: I5d1f931b9b5a6dae87d4effd20ec91d6f9114989
2019-01-07 17:50:20 -08:00
Nathan Harold
c015a1bac0 Merge "Fix BandMode Dialog Crash on Open due to Style" am: 7588ef1518
am: 7aacdc2c13

Change-Id: I50588e17f07d89daa3a989a72080a4fe695b4729
2019-01-07 17:31:14 -08:00