Commit Graph

3437 Commits

Author SHA1 Message Date
Yi-Ling Chuang
84acc5666d Update the layout of contextual card dismissal view
- Swap the two buttons.
- Alter margins.

Bug: 113783548
Test: visual
Change-Id: I1d491d0bccb206331789e031310f0adfd34671fd
2019-01-14 16:42:01 +08:00
Naina Nalluri
d1b57f62d8 Add switch to enable/disable cbrs
Add switch to enable or disable cbrs
based on whether it is supported or not

Bug: 121291721
Test: Tested enable/disable of the setting on device

Change-Id: Ia79b177966412b2128a6d9cab3549d704253d7b5
2019-01-11 19:29:49 +00:00
jackqdyulei
6da5e32bd8 Add CardPreference in battery settings page
This is MatrialCardView styled preference that only support
icon, title and summary.

Bug: 119618813
Test: RunSettingsRoboTests
Change-Id: Ibbf9eb2a01c8ee0579e1553ead6e43e96531c92a
2019-01-11 11:00:03 -08:00
jackqdyulei
35209f6e6c Update height of SliceView
So it can display 6 items at most, not 4 items

Bug: 120803703
Test: Manual
Change-Id: Id34398903d0f81bebee3e02c024d21ad2e68578f
2019-01-11 10:55:59 -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
43bb34e15c Merge "Rename prefix from suw to sud" 2019-01-10 06:56:20 +00:00
Arc Wang
7a14f706e1 Merge "Add more Wi-Fi DPP UI features." 2019-01-10 02:07:31 +00:00
TreeHugger Robot
6498d8f621 Merge "use android:textAppearanceListItem to replace Preference subhead" 2019-01-09 17:58:44 +00:00
TreeHugger Robot
c0fb9deff2 Merge "Update the layout of half width suggestion cards." 2019-01-09 11:40:24 +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
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
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
tmfang
5c1d3e96a1 Make filter appear floating in ManagerApplication.
Using new layouts to make filter component appear
floating on top of the page.

The layouts contain the NestedScollView and AppBarLayout.
The NestedScrollView was given a layout_behavior which
defined the behavior of AppBarLayout.

Test: visual
Change-Id: Ia76104f80c6b60ac6c8f5937ebface8e9a7238b5
Fixes: 121148001
2019-01-07 19:23:35 +08:00
TreeHugger Robot
fca9d221a3 Merge "Centerize contents of contextual cards and remove white space." 2019-01-04 09:26:28 +00:00
Arc Wang
ad9874e14e Merge "Add more Wi-Fi DPP UI features." 2019-01-04 08:55:53 +00:00
Yi-Ling Chuang
1f320fa346 Centerize contents of contextual cards and remove white space.
Decrease the minHeight of the two buttons in the dismissal view and have
the contents centered.

Change-Id: I806e8ccae88e693dc222a13940597fd33684ee70
Fixes: 120086509
Test: visual
2019-01-04 15:43:58 +08:00
Arc Wang
c8cd5d3834 Add more Wi-Fi DPP UI features.
1. Update strings and icons.
2. Add more UI features in WifiDppAddDeviceFragment &
   WifiDppChooseSavedWifiNetworkFragment.

Bug: 118794978
Test: manual test
Change-Id: I2bee3f66732a1083fb13c113695899272e98c23e
2019-01-04 12:17:02 +08:00
TreeHugger Robot
f07a7bd684 Merge changes from topic "status_bar_80%_white"
* changes:
  Fine tune items position of homepage
  Make status bar become 80% of white in homepage.
2019-01-04 03:08:44 +00:00
pastychang
79614823cb Rename prefix from suw to sud
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: I44a399b586671c100cb9d85c97effbfb1a379413
2019-01-04 10:46:20 +08:00
jackqdyulei
fd0f48df86 Update battery dashboard based on spec
Following CL will change "battery suggestion" to card layout.

Bug: 119618813
Test: Screenshot
Change-Id: If71e5c0e4a4e230358aa0c8aa584028082f31d2e
2019-01-03 12:59:12 -08:00
Nathan Harold
63b1ab12f6 Fix BandMode Dialog Crash on Open due to Style
This sidesteps an error saying that the radio
BandMode activity must inherit from an AppCompat
style. Instead the window is now full-screen and
matches the theme of the RadioInfo menu.

Bug: 117571514
Test: manual - open the activity without a crash and
      verify that the new style change is effective.
Change-Id: I6e49d731e039709db43dfa6531723781e9e48640
2019-01-03 09:51:49 -08:00
Johnson Lu
f0c2cc4466 Merge "Adjust landscape layout of QR code scanner/generator" 2019-01-03 05:49:22 +00:00
TreeHugger Robot
564f4b6c8a Merge "Update Settings text styles to use DeviceDefault." 2019-01-03 04:03:16 +00:00
tmfang
191bde1b75 Fine tune items position of homepage
Since homepage becomes full screen and status bar is 80% of white,
some homepage items are overlappd by status bar.

Enlarge padding size and add a space for fixing this problem.

Test: visual
Bug: 116346521

Change-Id: I7bc9e9a08adafb8fe38bedf527199e4db4424fd0
2019-01-03 11:52:20 +08:00
Johnson Lu
cb36eb394c Adjust landscape layout of QR code scanner/generator
Bug: 118794858
Test: RunSettingsRoboTests
Change-Id: Ifaef7c5fe02abbb377efeb0ab345976ab439aeb0
2019-01-03 11:41:26 +08:00
Beverly
ce380bdeef Use settings gear widget layout
Instead of a custom image view for zen_rule_widget

Test: manual
Change-Id: I9e2bd75a8fa661434cf5e5f6ab65bd21d29c30ed
Fixes: 120913779
2019-01-02 16:37:18 -05:00
Amin Shaikh
a5e8bddc46 Update Settings text styles to use DeviceDefault.
- Replace all TextAppearance.Material styles with the equivalent
TextAppearance.DeviceDefault style
- Reparent Theme.Settings.HomeBase to inherit from Theme.Settings. This
ensures that the correct textAppearance theme attributes are applied
throughout the Settings application.

Bug: 121211932
Test: manually opening Settings and enabling/disabling HotDogOverlay
Change-Id: Ibe4873ed0294de79dbb6aeca464d14c291239c4b
2019-01-02 16:08:19 -05:00
Arc Wang
221b7e0b77 Refine Wi-Fi DPP fragments.
1. WifiDppQrCodeBaseFragment only declairs common UI components between fragments.
2. Initiate UI components in onViewCreated of each View.
3. Remove the only one usage of @NonNull since it should be used consistently
   throughout the class if we want to use it.
4. Use android.R.id for icon/title/summary

Bug: 120645817
Test: atest WifiDppConfiguratorActivityTest
      atest WifiDppEnrolleeActivityTest
      atest WifiDppQrCodeGeneratorFragmentTest
      atest WifiDppQrCodeScannerFragmentTest

Change-Id: I54f99a3072533cec46f0e47753ee0331fecf2ada
2019-01-02 07:13:10 +00:00
Arc Wang
1988fb75c6 Implement Wi-Fi QR code scanner flow.
1. Implements WifiNetworkConfig Wi-Fi connection method
2. Shows error message when the QR code is not valid and hides it after 2s
3. In configurator mode, launchs AddDeviceFragment for a valid QR code
4. In enrollee mode, connects Wi-Fi for a valid QR code

Bug: 118794978
Test: manual test
      atest WifiQrCodetest
      atest WifiDppConfiguratorActivityTest
      atest WifiDppEnrolleeActivityTest
      atest WifiDppQrCodeScannerFragmentTest

Change-Id: Ie4731b22df295c60906156d33ea28dad9c084ce4
2019-01-02 07:12:15 +00:00
Mill Chen
637c874dff Merge "Fix distortion in conditional cards" 2018-12-28 03:35:21 +00:00
Johnson Lu
7414543635 Show QR Code picture for WiFi sharing
Bug: 118794858
Test: make RunSettingsRoboTests
Change-Id: Ic5a489840ba59262eb444f02d77bf066889a4220
2018-12-27 09:55:44 +08:00
TreeHugger Robot
3142d56f54 Merge "Clean up styles and aliases" 2018-12-26 10:10:27 +00:00
Mill Chen
d973776112 Fix distortion in conditional cards
When setting device font and display size to largest, conditional cards
will get distorted. The fix is to add a different layout for screens that
have smaller than 360dp available width.

Change-Id: I8b61c9d8a568e79045e4a490aa387c801a57f9a7
Fixes: 119505249
Test: visual
2018-12-26 14:39:22 +08:00
Raff Tsai
f6d42a99d1 Clean up styles and aliases
- Remove unused style
- Remove identical style declaration

Test: Manual, Robolectric
Change-Id: Ia98ed82e6ccd4a25af6abbc66709eda1867581ee
2018-12-26 12:56:48 +08:00
pastychang
5dfdb4ff45 Migrating to new footer button for lockscreen pages.
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: I12d68cd2eaa750eecd2c40e172efd6b6b16a0849
2018-12-26 11:12:46 +08:00
Cn Chen
8428d04677 Merge "Change layout prefix of setupdesign from suw to sud" 2018-12-24 03:52:00 +00:00
pastychang
8d2dc16d7f Change layout prefix of setupdesign from suw to sud
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: Icd24f0336191c4575838cb1b9d131c885304b527
2018-12-24 10:13:54 +08:00
TreeHugger Robot
19ce37648a Merge "Add custom dnd pages for each dnd auto rule" 2018-12-21 21:16:38 +00:00
Pasty Chang
303f694a9f Merge "Migrating to new footer button for storage migrated pages" 2018-12-21 03:27:06 +00:00
Beverly
b9f38af689 Add custom dnd pages for each dnd auto rule
- Fix strings
- Add zen custom settings dialog when custom settings are being applied
Test: make RunSettingsRoboTests -j40
Bug: 111475013
Fixes: 120787133
Fixes: 120796642
Fixes: 120865472
Change-Id: I34d6b4b23d36277e3704416d65e2418418c124e1
2018-12-20 15:06:01 -05:00
pastychang
28fd9b102b Migrating to new footer button for storage migrated pages
Remove unused files storage_wizard_ready.xml and storage_wizard_navigation.xml

Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: Ie3f0023413244dfc2b3f8dddae42977c920e93ac
2018-12-20 22:44:20 +08:00
TreeHugger Robot
9d3eddcb66 Merge "Add new layout for Slice half card" 2018-12-20 08:00:33 +00:00
Pasty Chang
b8af3afff8 Merge "Migrating to new footer button for fingerprint and face enrolling pages." 2018-12-20 07:07:29 +00:00
Mill Chen
3f3823e456 Add new layout for Slice half card
- Extract dismissal view as a layout xml and reuse it in half card
- fixed minor naming convention

This new layout is composed of custom views and the purpose is to
show slice in half width form in contextual homepage.

Bug: 119655434
Test: visual
Change-Id: I224d8bc1b7f95f969f6a134a316bd80b4cd013ee
2018-12-20 14:32:22 +08:00
Matthew Fritze
7fa8e3131d Merge "Move Panel to public API" 2018-12-19 19:21:46 +00:00
pastychang
1b1666855e Migrating to new footer button for fingerprint and face enrolling pages.
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: I89a5e3674b8ba9ec66945c03c9b783664eee214f
2018-12-19 23:24:48 +08:00
Kevin Chyn
ed889a3788 Merge "Add accessibility for Face" 2018-12-19 07:55:04 +00:00
Kevin Chyn
2c8d7757f6 Add accessibility for Face
Bug: 111548033

Test: manual
Change-Id: I6638d471f5c6de76934b90d131a221813a38d2b3
2018-12-18 19:16:16 -08:00