Commit Graph

3116 Commits

Author SHA1 Message Date
TreeHugger Robot
b87ff78c30 Merge "Replace Banner with App Title Text" 2019-02-23 08:44:18 +00:00
TreeHugger Robot
6b12d79925 Merge "Remove feature flag for contextual home." 2019-02-23 03:07:19 +00:00
TreeHugger Robot
962cbf424c Merge "Update BT pairing dialog" 2019-02-23 01:38:21 +00:00
Fan Zhang
4df9bfaa3e Remove feature flag for contextual home.
Fixes: 118444000
Test: rebuild
Change-Id: I4b42e22bd93c2d79bacbd40b28912b4e6808325a
2019-02-22 15:40:49 -08:00
jackqdyulei
27f62fda12 Update BT pairing dialog
1. Remove hardcoded color
2. Add taskAffinity for activity

Fixes: 124953564
Fixes: 124958778
Test: Manual
Change-Id: Id57fadc02e3c4fa3683632c0ad6a451117b732f1
2019-02-22 15:40:04 -08:00
Fan Zhang
261d4f521b Merge "Add fancy animation for IA fragment" 2019-02-22 22:51:18 +00:00
Lei Yu
c4eec885ee Merge "Fix alignment of wifi dialog" 2019-02-22 19:21:24 +00:00
Kevin Chyn
cb93eb69f0 Merge "Add placeholder animation for face enrolling" 2019-02-22 09:21:53 +00:00
Mill Chen
23452861e5 Add fancy animation for IA fragment
The animation of IA fragment is very choppy on expanding or collapsing
conditionals. So adding LayoutTransition for IA fragment makes the
animation more smoothly.

Bug: 123536786
Bug: 123537499
Test: visual, robotests
Change-Id: I731db8556ac392c9ab98bd292498ccf6c87295fb
2019-02-22 16:56:14 +08:00
TreeHugger Robot
1a7de076ca Merge "Add progress bar for Wi-Fi DPP handshaking" 2019-02-22 05:31:33 +00:00
Kevin Chyn
823feff4df Add placeholder animation for face enrolling
Bug: 111548033

Test: Builds
Change-Id: I0c8af1c24cc7c11f9d2c2a98b23d11b21b63547e
2019-02-21 20:07:45 -08:00
Arc Wang
8826721803 Add progress bar for Wi-Fi DPP handshaking
Bug: 124127483
Test: manual test
Change-Id: I1c3da5bab98da57ca8cf10509f339e99b01ebdbf
2019-02-22 11:42:08 +08:00
TreeHugger Robot
a1dce5d6d5 Merge "Remove all reference to settings_side_margin." 2019-02-22 03:28:20 +00:00
jackqdyulei
7db8faf714 Fix alignment of wifi dialog
Use Start/End instead of Left/Right

Fixes: 124672866
Test: Manual
Change-Id: Ib75634b751f41e4999e4f8e3ffb014c191c517f0
2019-02-21 13:25:21 -08:00
Doris Ling
c5a1b4f666 Remove all reference to settings_side_margin.
- since the overlay of the value for bigger screen has been removed,
the side margin is now always 0dp. Remove this dimen value and all
reference to it.

Fixes: 124526984
Test: rebuild and visual
Change-Id: I68ff42513a379111042cab9b34594822544e246e
2019-02-21 10:18:00 -08:00
TreeHugger Robot
fcd91ccbe6 Merge "Enlarge the touch area of the avatar" 2019-02-21 17:38:15 +00:00
Sunny Shao
c8786408e5 Enlarge the touch area of the avatar
Use the padding to enlarge touch area.

Fixes: 124797089
Test: manual
Change-Id: Ief2296f015f021ca4d7e4cba0ca14ac0eada972b
2019-02-21 16:45:39 +08:00
Arc Wang
7bdcadbe72 Handle different error codes in DPP
Show error message for corresponding Wi-Fi DPP error code. And

1. To update error message only from each fragment,
   remove some callbacks which calls from fragment to activity.
2. After clicking 'Share Wi-Fi' button, hide it before Wi-Fi DPP handshake completes.
3. Show 'Done' button for some error codes.
4. Use ViewModel to call startEasyConnectAsConfiguratorInitiator and
   startEasyConnectAsEnrolleeInitiator because a lifecycle object
   does not receive an Executor callback after configurator change.
5. In WifiDppQrCodeScannerFragment, show an error message for 10s instead of 2s
   since new added error messages may carry more information.
6. Show a different error message for enrollee handshake success but Wi-Fi
   connection fail case.
7. stop camera when scanned a Wi-Fi DPP QR code for enrollee.
8. In QR code scanner fragment, support to show error message after
    configuration change.

Bug: 124247872
Bug: 124491247
Test: manual test
      atest WifiQrCodeTest
      atest WifiDppConfiguratorActivityTest
      atest WifiDppEnrolleeActivityTest
      atest WifiDppQrCodeGeneratorFragmentTest
      atest WifiDppQrCodeScannerFragmentTest
      atest WifiNetworkListFragmentTest
      atest WifiDppChooseSavedWifiNetworkFragmentTest

Change-Id: Id130215e9ddafac8bc4c68238deda48ce99b4255
2019-02-20 14:28:52 +08:00
TreeHugger Robot
72c33375ff Merge "Visual update: update the icons for suggestions" 2019-02-19 05:53:44 +00:00
TreeHugger Robot
de08e6e901 Merge "Fix janky in App info screen" 2019-02-19 03:48:53 +00:00
Mill Chen
7195800371 Visual update: update the icons for suggestions
- remove blue tint
- add the icons of suggestions for contextual homepage

Bug: 122310542
Test: visual, rebuild
Change-Id: I2bac139669a4218455195aebeba83d1649184895
2019-02-18 18:03:09 +08:00
tmfang
7fb266f30b Fix janky in App info screen
If a Recycle view inside in a NestedScrollView,
The times of calling recyclerView#onCreateViewHolder()
is requal to its data set.

When there are large set of apps need to be shown,
RecyclerView will need to take many time to call
onCreateViewHolder for each item.

So, it causes the screen is janky or freeze UI when page
is loading large data set.

For now, we get rid of NestedScrollView, just use RecycleView
and AppBarLayout to have same bahavior for spinner.

Fixes: 124384314
Fixes: 123036231
Fixes: 122964660
Fixes: 123088178

Test: 1. Select show system in App info screen. Observe whether there
is any janky.
2. Select show system in App info screen, and then change device
orientation. Observer whether there is any janky.
3. Go to Settings > Apps & notifications> Advanced > Special app access >
Select "battery optimization", and then Tap drop down and select "all
apps". Observe whether ther is any janky.

Change-Id: Icd65e91eec3b32476d80cc12e9c4baa71151306a
2019-02-18 17:52:03 +08:00
George Chang
8adb77fd3d Replace Banner with App Title Text
Bug: 123719839
Test: switch different payment
Change-Id: Ica90394bf5d5d0062403f2a0888c56072fdce7ee
2019-02-18 16:38:07 +08:00
TreeHugger Robot
56d2dd2515 Merge "Fix [RTL] Wifi QR Scanner option overlaps wifi Password text" 2019-02-18 04:13:39 +00:00
Arc Wang
07ced72e67 Fix [RTL] Wifi QR Scanner option overlaps wifi Password text
Use android:layout_alignParentStart & android:layout_alignParentEnd
to fix the RTL issue. And refine code of the scanner button.

Bug: 123923904
Test: manual test
Change-Id: I85491b99d22ec303e370422a81a43fc203b695fa
2019-02-15 16:30:17 +08:00
jackqdyulei
e642ae67b9 Adjust layout padding for SlicePreference
To make sure text align to other preferences. This CL also
update related style name.

Bug: 124234686
Test: Manual
Change-Id: I9df8ba15630fce5509a8c8a1cbc17f103fcc6481
2019-02-14 14:29:48 -08:00
Jason Chiu
862bcc7787 Apply new slice attributes to customize layout
Fixes: 114807643
Test: robotest
Change-Id: I6c3975f08268cb831627f63c241428ae4574af1f
2019-02-14 18:16:25 +08:00
TreeHugger Robot
0c4d976b82 Merge "Remove weird background color on stroage donut in dark mode" 2019-02-13 23:47:33 +00:00
Fan Zhang
bcefbf288c Remove weird background color on stroage donut in dark mode
Bug: 124313940
Test: visual
Change-Id: Ie95c98c23bb67570418e49a1c6677d4b6809b5d2
2019-02-13 14:17:47 -08:00
TreeHugger Robot
cd15971f14 Merge "Move horizontal progress bar into SettingsLib." 2019-02-13 13:53:56 +00:00
TreeHugger Robot
d611df7c48 Merge "Misc ui tweaks." 2019-02-13 02:15:54 +00:00
Fan Zhang
07207c0113 Misc ui tweaks.
- Update conditional card layout
  - move action button from right side to bottom.
  - Get rid of the forking between small/big screens.

- Update a few icons

Fixes: 121189136
Fixes: 124315564
Fixes: 124316920

Test: visual
Change-Id: I205d9995a2d7ed06ad9d32f3cea74f2840a28aed
2019-02-12 16:14:21 -08:00
jackqdyulei
8360e0181a Update spec for CardPreference
Make icon and title align to other preference

Bug: 119618813
Test: Manual
Change-Id: I2b088fcfe0b005cde1d79db01806e1919cb131cc
2019-02-11 13:42:41 -08:00
Joel Galenson
ad0e49bd6e Move horizontal progress bar into SettingsLib.
Remove the horizontal progress bar as it is being moved into
SettingsLib.

Bug: 123538370
Test: See progress bar in wifi settings screen.
Change-Id: I8fc94b1f3a7a52559cfcf89f3e4a604784ec9995
2019-02-07 08:21:01 -08:00
Edward Savage-Jones
5042c9b41b Add master audio balance setting
This adds an audio balance slider to accessibility allowing the end
user to adjust the audio balance between left and right channels.

Test: Change Balance through Settings, play audio
Bug: 28390736
Change-Id: I70f22d222ea310fd33ebe4f3fb054f44f69d2548
2019-02-05 14:26:28 -08:00
TreeHugger Robot
09c932b2b9 Merge "Add dialog for changing display name for mobile network" 2019-02-01 04:58:45 +00:00
Antony Sargent
e13d04c762 Add dialog for changing display name for mobile network
This CL adds a pencil/edit icon at the top of the mobile network details
page. When clicked, it brings up a dialog that allows the user to set
the display name used for that mobile network - this is most useful in
multi-SIM situations. This dialog also displays the mobile network
operator name and phone number which can help the user keep straight
which one they are renaming.

Bug: 122670283
Test: make RunSettingsRoboTests
Change-Id: Ifd63cfb66ce743bd5ba8a06b52229f06ed56b7bd
2019-01-31 12:54:43 -08:00
Pengquan Meng
7f602c7f67 Add enable/disable DSDS setting switch
This add a switch settings in the Phone Information screen to allow the
user enable/disable the DSDS mode.

Bug: 123088078
Test: build & manual test
Change-Id: Ia3722fb26ce8825820ee96550a1d523da35c7a71
2019-01-30 16:42:02 -08:00
TreeHugger Robot
f660e72009 Merge "Remove empty space in Usage access" 2019-01-30 07:04:25 +00:00
TreeHugger Robot
af6d7b53b4 Merge "Remove cardview wrapper on condition collapse button." 2019-01-30 03:37:42 +00:00
Arc Wang
3dc845a181 Merge "Set Wi-Fi DPP fragment icons." 2019-01-30 02:29:35 +00:00
Fan Zhang
1c15a27c1d Remove cardview wrapper on condition collapse button.
The cardview is adding a strange background color in dark mode

Change-Id: Id205fbd5209e15597157d86d225f8c6c97a2ec5a
Fixes: 123411225
Test: visual
2019-01-29 16:33:53 -08:00
TreeHugger Robot
3a7cbacdcd Merge "Fix padding problem between search bar and homepage cards" 2019-01-29 23:00:18 +00:00
TreeHugger Robot
a0690b3d2e Merge "Add a plus button to the mobile pref on Network & internet page" 2019-01-29 22:08:33 +00:00
Antony Sargent
59adc31773 Add a plus button to the mobile pref on Network & internet page
On the Network & internet page, we have a "Mobile network" pref that in
single-SIM mode leads to a detail page for the current SIM. In multi-SIM
mode it has more complicated behavior (leading either to details about
the current subscription if there is only one, or a list of
subscriptions if more than one).

One of the things we wanted to add was a shortcut to add another eSIM
subscription. So this CL adds a plus button control on the right of the
preference which leads to a flow to add another mobile subscription via
the eSIM manager.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: I38e0031e3bd603e93c45dcb4557750e7bc1b8b5a
2019-01-29 12:27:46 -08:00
tmfang
465ffcd48d Remove empty space in Usage access
When there is no need to show filter component,
we don't need to set an extra padding top.

Test: robotest, visual
Change-Id: Ieaa65ed9785a06f0737aefaf102d0c857002bbdd
Fixes: 123037802
2019-01-29 20:02:49 +08:00
Arc Wang
4ab826ac5b Set Wi-Fi DPP fragment icons.
1. set fragment icon for WifiDppChooseSavedWifiNetworkFragment
2. set fragment icon of success for WifiDppAddDeviceFragment

All Wi-Fi DPP fragment icons are VectorDrawable of instinct size
24dp draw on a 48dp canvas. Except for ic_devices_check_circle_green,
it's a LayerDrawable of different size. I dynamically change ImageView
layout width & height between these 2 different kind of drawable.

Bug: 122982132
Test: manual test
Change-Id: Idab8cd8b0798363e447da00dc6bc68a86498b8be
2019-01-29 17:02:14 +08:00
Yanting Yang
9a87eab259 Merge "Improve UX of Deferred Setup" 2019-01-29 07:51:33 +00:00
Yanting Yang
2784da75a2 Improve UX of Deferred Setup
Change-Id: I3d0735ef1196b04abaef454529664a8daea53967
Bug: 120485678
Test: visual, robotests
2019-01-29 07:43:46 +00:00
Sunny Shao
4ddecb00ef Fix padding problem between search bar and homepage cards
Get the statusbar height dynamically to fix this problem in notch mode.

Change-Id: I4ca0427fc2556f1fb5f868118c5207fdfa035c59
Fixes: 123215804
Test: robotest
2019-01-29 13:56:40 +08:00