Commit Graph

16605 Commits

Author SHA1 Message Date
TreeHugger Robot
d3824aa426 Merge "Fix panel bugs" 2019-02-26 23:40:15 +00:00
Matthew Fritze
db7fe5e5f7 Fix panel bugs
Add unique task affinity so the panel activity
always opens alone. Apparently the launchMode="singleTop" was
insufficient.

Test: manual app
Fixes: 126385021
Fixes: 126386586
Fixes: 126326438
Change-Id: I775e84701d006cfbe0d9ddfff83669b3f8487b33
2019-02-26 14:14:56 -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
6f1dd719d7 Merge "Update char limit for "Erase all data?"" 2019-02-26 11:46:08 +00:00
Mill Chen
e0f77323b5 Update char limit for "Erase all data?"
Increasing the character limit for the "Erase all data?" to 33 chars.

Bug: 122929703
Test: rebuild
Change-Id: I673c22878c1f1cfa2b2dd8f456689be31fb5ff77
2019-02-26 18:10:46 +08:00
TreeHugger Robot
6dcb6a35c3 Merge "Update strings for Wi-Fi DPP handshake running state" 2019-02-26 07:15:27 +00: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
957ce7f7aa Update strings for Wi-Fi DPP handshake running state
Bug: 125987679
Test: manual test
Change-Id: I55eddee5f3c0c28d1be23b5b9d8c0b56280be797
2019-02-25 15:06:16 +08: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
0d8d233a3d Merge "Remove hardcoded Uri to get slice settings" 2019-02-25 02:22:39 +00:00
TreeHugger Robot
74d549fc19 Merge "Fix no result for "Privacy" keyword" 2019-02-23 08:47:15 +00:00
TreeHugger Robot
b87ff78c30 Merge "Replace Banner with App Title Text" 2019-02-23 08:44:18 +00:00
TreeHugger Robot
4e67ad1be4 Merge "Fix crash on AppBarLayout" 2019-02-23 08:31:36 +00:00
tmfang
aa984d58d5 Fix no result for "Privacy" keyword
We can't have same title string at the same time.

Test: search again, and see result.
Fixes: 123775284
Change-Id: I53afa64e723a0b1d6b8fefe0dbded64b7cd8f0de
2019-02-23 13:41:28 +08:00
tmfang
d0fb3ff285 Fix crash on AppBarLayout
We removed some theme attribute in ag/6501484,
so we need to add it back to avoid crash on App info page.

Fixes: 125987673
Test: Build again, and go to "App info" page.
Change-Id: I2fda899ecd2db48c7ace5069ef59a49883200dff
2019-02-23 13:28:00 +08:00
TreeHugger Robot
3921f97467 Merge "Create settings screen for Notification Assistant" 2019-02-23 04:30:23 +00:00
TreeHugger Robot
6b12d79925 Merge "Remove feature flag for contextual home." 2019-02-23 03:07:19 +00:00
TreeHugger Robot
343b0211fe Merge "Add app entities widget for recently opened apps" 2019-02-23 02:15:26 +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
jackqdyulei
c51e5aae59 Remove hardcoded Uri to get slice settings
Now we get it from BluetoothDevice.getMetaData()

Bug: 124121451
Test: RunSettingsRoboTests
Change-Id: Id96480f257b93dd03bb290c954e01cde9dcf30ad
2019-02-22 14:49:30 -08:00
Lei Yu
c4eec885ee Merge "Fix alignment of wifi dialog" 2019-02-22 19:21:24 +00:00
Fabian Kozynski
01b2a635e9 Create settings screen for Notification Assistant
Test: this atest
Test: manual: change assistant and "adb shell dumpsys notification"
Test: manual: verify persistance through reboot (including none)

Fixes:120852765
Change-Id: Ie4516c3339246d66d7b6719ac5dd1d65c4d03b57
2019-02-22 14:05:18 -05:00
Fan Zhang
22e403f01e Merge "Update subTitle of NotificationChannelSlice" 2019-02-22 17:49:00 +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
TreeHugger Robot
179b8b48d3 Merge "Update name of app permissions." 2019-02-22 04:17:52 +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
TreeHugger Robot
193af336bc Merge "Import translations. DO NOT MERGE" 2019-02-22 02:32:31 +00:00
Youming Ye
da9e92c4f7 Merge "Fix issue that the wifi calling text cannot be customized based on sim" 2019-02-22 01:55:59 +00:00
Bill Yi
826f753a86 Import translations. DO NOT MERGE
Change-Id: Ibd2044c3c61557678d3c1dad06570f8df1e5f1b6
Auto-generated-cl: translation import
2019-02-21 15:23:35 -08: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
Joel Galenson
fd71d8bcfc Update name of app permissions.
Bug: 125018087
Test: See new name.
Change-Id: I036fec254bca3c0ce15843375e632fcb359898db
2019-02-21 12:44:15 -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
Yanting Yang
e7f2ec1360 Update subTitle of NotificationChannelSlice
If there are <=3 channels, should not have the "Tap to manage all".

Fixes: 124461104
Test: visual, robotests
Change-Id: Iebb957c65b8ca53f4c5d482041837338b7b3bbf2
2019-02-21 23:57:55 +08: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
tmfang
7de5314676 Add app entities widget for recently opened apps
If there is no recently opened app should be shown,
just show up an "All apps" preference.

If there are some recently opened apps, we show up
result with app entites controller.

- Clean up some useless ui. (category)
- User BasePreferenceController
- Modify test cases.

Test: robotest, visual
Change-Id: I411f61ed32eaaed97921941fd5026f1d65308d00
Fixes: 123538183
2019-02-21 16:23:18 +08:00
TreeHugger Robot
cd1718c9e4 Merge "String change for Permissions Dashboard" 2019-02-21 05:35:44 +00:00
tmfang
0b51ad3139 String change for Permissions Dashboard
Test: visual
Bug: 125018087
Change-Id: I02bd34347eb78531e754295262a1a08b47c6402e
2019-02-21 10:23:05 +08:00