Commit Graph

3437 Commits

Author SHA1 Message Date
TreeHugger Robot
b5b61b202b Merge "Alignment of Settings contextual homepage" 2019-03-07 06:07:05 +00:00
TreeHugger Robot
79ba9ad7e8 Merge "Moved left 2dp for the search icon" 2019-03-06 20:06:20 +00:00
Yanting Yang
0cb538bbd0 Animate the expansion/collapse of a slice
Fixes: 123950127
Test: visual
Change-Id: If78bace71b166c484c8f4c358f1007bd2f6ffc89
2019-03-06 19:50:09 +08:00
Jason Chiu
fa62183752 Alignment of Settings contextual homepage
Bug: 127345692
Bug: 126246056
Test: visual
Change-Id: I75e3153de1d6fb9d9b826db70c6cd5703304c04d
2019-03-06 17:28:56 +08:00
Yanting Yang
be15baa155 Merge "Remove dismissal behavior from deferred setup card" 2019-03-06 08:45:32 +00:00
Sunny Shao
6491db8f77 Moved left 2dp for the search icon
Bug: 127345692
Test: manual
Change-Id: I481d7fb46d2108d66a087eee30e7314e22af2314
2019-03-06 14:50:18 +08:00
Ryusuke Sawa
9f7875d547 Support VPN Proxy(2/2)
Adding VPN Proxy settings in advanced option.
 - Proxy host name
 - Proxy port

Bug: 118793208
Test: runtest

Change-Id: I40f3cf049f5822eefc3f9e6ba5dd0bb80c9b3945
2019-03-06 10:38:48 +09:00
Sunny Shao
bb455b8b2d Update the color of the expand icon as accent color
Fixes: 126926489
Test: manual view
Change-Id: I0200e53733ce629686fa6fd53df70809f7cedbb5
2019-03-06 08:59:51 +08:00
Yi-Ling Chuang
76b70687e7 Swap the buttons in the dismissal view.
The affirmative button should be on the right.

Fixes: 126265410
Test: visual
Change-Id: I72ddbacd5ce417cb4271d07c1cfc77e10ccad49a
2019-03-05 17:16:20 +08:00
Yanting Yang
52367e8c65 Remove dismissal behavior from deferred setup card
Deferred setup is not skippable as user will need to review all SUW
screens at least one time.

Fixes: 126225957
Test: visual, robotests
Change-Id: I7b32c2382f459690d3b136cf9faa543d04aa8d3d
2019-03-05 17:08:51 +08:00
Matthew Fritze
cafeaadaa6 UX Fixes for Settings Panels
UI Fixes include:
- Fix height of bottom bar
- Fix start / end padding of See More and Done buttons
- Remove scroll shadow in recycler view
- Consolidate most layout code into a single file, only
separating the distinguished elements into the landscape file.

I cannot fix b/126731930 until a Slice bug is fixed, where the top
padding is applied to the bottom of sliceview instead.

Fixes: 126720235
Fixes: 126720220
Fixes: 126720167
Test: manual inspection & layout inspector

Change-Id: I6e3434aabe221134e7278f92bab34122719c179a
2019-02-28 16:16:10 -08:00
Ng Zhi An
b97bdc38da Disable system alert window permissions on low ram devices
Bug: 63697002
Bug: 117832554
Test: adb am start-activity -a
android.settings.action.MANAGE_OVERLAY_PERMISSION
Change-Id: I44c64001cd07fd4934cdc55f455384cebd5c9cfb
2019-02-26 17:58:43 -08:00
Matthew Fritze
9e50419c75 Remove NFC Slice jank
The NFC Slice would jank on enable and disable, because of the
intent filter it registered with SysUI. The intent filter would
broadcast an update for four states:
1) On
2) Off
3) Turning On
4) Turning off

The first two caused no problems. The third and fourth caused jank,
since when clicked, the switch in the NFC slice would turn on / off
asynchronously - that is, it turned on or off based on the previous
state of the switch, rather than on the actual value of NFC. It does
this to feel fluid in the app in which it is rendered.

From the off state, the order of events is:
1.  Switch clicked
2.  Switch animates on
2.  Background intent is fired to settings to turn on Nfc (happens at
       the same time as animation)
3.  Settings calls the NFC enable API
4.  A broadcast for Turning On is sent
5.  The receiver in SysUI gets the broadcast and forwards it to settings
6.  Settings tells the Slice to make sure it is up to date
7.  The Slice checks for the current value - IMPORTANTLY - which is
        currently off, it is only in the process of being enabled.
8.  The Slice flips back off
9.  Nfc finishes getting enabled in the background
10. The framework pushes the NFC ON broadcast
11. SysUI gets the broadcast, and forwards it to settings
12. Settings tells the slice to update
13. The slice checks again and finds that NFC is on, flipping on.

This CL creates a new background slice worker for NFC and registers
the intent filter there, rather than in SysUI. When the background
worker gets the broadcast, it checks if it is in state 3/4, and if so,
it drops the update silently.

Fixes: 115737701
Test: robotests
Change-Id: I17043828ad3a67a2a5acdf5c75d9cc51ff7e91d0
2019-02-26 08:20:38 -08:00
TreeHugger Robot
2b0611cec4 Merge changes I9f1edb0a,Iaba7077c
* changes:
  Make model & hardware UI full screen.
  Merge Copyable into Sliceable.
2019-02-26 04:00:13 +00:00
Arc Wang
d1d2c029af Merge "Fix [a11y][Qt]Small touch targets in Add network page after running Accessibility scanner" 2019-02-26 01:42:00 +00:00
Fan Zhang
8ae1514299 Make model & hardware UI full screen.
Bug: 112427717
Test: robotests
Change-Id: I9f1edb0ab377aff142b57d86f4fa218b755356b1
2019-02-25 16:36:04 -08:00
TreeHugger Robot
ba9af60132 Merge "Fix invalid style reference in xml" 2019-02-25 21:06:16 +00:00
Fan Zhang
aef472d0ca Merge "Convert android version dialog into a full screen UI" 2019-02-25 20:33:36 +00:00
Arc Wang
3e5a1e63f8 Fix [a11y][Qt]Small touch targets in Add network page after
running Accessibility scanner

Set ImageButton minWidth/minHeight 48dp (min_tap_target_size)

Bug: 125078917
Test: accessbility scanner
Change-Id: I5b96cc476134d48eb503b5a6150406655331c673
2019-02-25 11:07:00 +08:00
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
89cea6b5f2 Convert android version dialog into a full screen UI
Bug: 112427717
Test: robotests
Change-Id: I09c4130c4284670278fa7cab8a21641c663bb365
2019-02-22 16:46:17 -08: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
Ryan Mitchell
03fc6bbedd Fix invalid style reference in xml
AAPT2 does not recognize @android:style/@Widget.Material.Button.Colored.
This change removes the unnecessary '@' symbol.

Bug: 123251200
Test: build success
Change-Id: Ie5ae2a8898602d5776f5b6bf32058b1bf7c668ca
2019-02-19 18:32:43 +00: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