Commit Graph

50242 Commits

Author SHA1 Message Date
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
TreeHugger Robot
1d3dbbce85 Merge "Include uid in device admin pref id." 2019-02-26 22:14:56 +00:00
Sunil Ravi
7d0d684339 WiFi: Replace -1 with LINK_SPEED_UNKNOWN constant
Defined constant LINK_SPEED_UNKNOWN = -1 in WiFiInfo for unknown link
speeds. So replacing -1 with this new macro.

Bug: 124302657
Test: Connect STA to AP and verify the link speeds in network details.
Change-Id: Ie21069984adb02420ca55b08a8cb161aaad2b7b3
2019-02-26 13:32:40 -08:00
Fan Zhang
7c261409d2 Make Serial number preference a copyable slice.
Fixes: 73769621
Test: robotests
Change-Id: Ic20d8865bc26c1acc7db74e665f92fe388d62f74
2019-02-26 13:14:03 -08:00
TreeHugger Robot
3329ead489 Merge "Remove NFC Slice jank" 2019-02-26 19:28:58 +00:00
TreeHugger Robot
683bbb5ce9 Merge "Update settings notification ui tests" 2019-02-26 19:15:17 +00:00
TreeHugger Robot
8e32fa1972 Merge "Make PreventRingingSwitch preference clickable" 2019-02-26 19:15:13 +00:00
Evan Laird
35e35622d9 Use ThemedBatteryDrawable in settings
Changed out BatteryMeterDrawable to inherit from ThemedBatteryDrawable
instead of BatteryMeterDrawableBase. Also removed warning text paint
because it seemed unused and simplified the interface.

Bug: 123705805
Test: visual
Change-Id: I30496e3d8881803d9d3d8a316c10387482a8f610
2019-02-26 14:11:58 -05:00
Fan Zhang
71d5e90a6e Include uid in device admin pref id.
Fixes: 124979213
Test: robotests
Change-Id: I50114db79e9b5278bc916fbbba6353c5f19df24f
2019-02-26 10:49:53 -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
Beverly
5588921190 Update settings notification ui tests
Test: atest AppNotificationSettingsTest
Test: atest ZenModeSettingsIntegrationTest
Test: atest ChannelNotificationSettingsTest
Fixes: 126253682
Change-Id: Ie7fc5f177eb418162ecf24b0c4818ee52a8088db
2019-02-26 10:38:53 -05:00
Fabian Kozynski
c2d7bb7965 Merge "Add summary to Notification Assistant picker" 2019-02-26 14:11:56 +00:00
TreeHugger Robot
6f1dd719d7 Merge "Update char limit for "Erase all data?"" 2019-02-26 11:46:08 +00:00
tmfang
826879ed63 Create a preference controller for "App info"
We try to avoid managing too many preferences in a controller.
So, we create another controller to manage all apps info preference.

RecentAppsPreferenceController and AllAppsInfoPreferenceController
share same state of recent apps in order to improve the performance.

Test: visual, robo test
Fixes: 126134996
Change-Id: I1d8a175b213831415797437c64fd9d432864f9d3
2019-02-26 19:34:46 +08: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
Sunny Shao
57a3c8bff7 Handle the IllegalStateException
Handle the attempt to re-open an already-closed object: SQLiteDatabase problem

Bug: 124451874
Test: robotest
Change-Id: I750b2ce98cc2551c80c3bb4f25928e0e5a615cd9
2019-02-26 17:51:17 +08:00
TreeHugger Robot
cabe72cf7b Merge "Improve launch time for Apps & notifications page" 2019-02-26 08:50:20 +00:00
TreeHugger Robot
6dcb6a35c3 Merge "Update strings for Wi-Fi DPP handshake running state" 2019-02-26 07:15:27 +00:00
Joe Onorato
a4819527b7 Merge "Add additional anomaly types." am: 64bf0a791e am: e709ac7a4c
am: d3b25ae1f5

Change-Id: I7a45359cb344f0dee4046e556b599e7646c7fd17
2019-02-25 23:10:52 -08:00
tmfang
ac74050a7c Improve launch time for Apps & notifications page
In original design, we reload usage data at least thrice
for showing recent apps.

For now, we only reload usage data once in constuctor.
And we reload data again when we are calling updateState.

Test: Open App & notifications page, and then I compare the lauch time
with P platform device.
Fixes: 126013076

Change-Id: Ida769f28a4419125e1948e36658686ee55bf51a5
2019-02-26 15:08:22 +08:00
Joe Onorato
d3b25ae1f5 Merge "Add additional anomaly types." am: 64bf0a791e
am: e709ac7a4c

Change-Id: I5b813e1357baae09566285dacb30e44169e9b16d
2019-02-25 23:00:09 -08:00
Joe Onorato
e709ac7a4c Merge "Add additional anomaly types."
am: 64bf0a791e

Change-Id: Iebe3695669e87b3109b43becaf869c4b2f9a4b48
2019-02-25 22:48:39 -08:00
TreeHugger Robot
9d741c4f47 Merge "Improve UX of Wi-Fi QR code scanner enrollee flow" 2019-02-26 05:48:56 +00:00
TreeHugger Robot
3189d7b332 Merge "Clean up instrumentation tests" 2019-02-26 04:54:18 +00:00
Xin Li
56f13d5a1e [automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master am: fc53be7b56 -s ours
am: e01bd73441 -s ours
am skip reason: subject contains skip directive

Change-Id: I74345f6fe80643fae680d46fd27d9c1b285e600f
2019-02-25 20:52:25 -08:00
Alexey Kuzmin
6423c4cd51 Update vibrator on/off status from accessibility settings menu
Fix ringing and touch vibration cannot be turned off from accessibility
settings menu.

Bug: 116172311
Fix: 125618621
Test: Open Settings=>Accessibility=>Vibration, change every sub-item and
verify the change can synced with main page, also check the settings can
synced with Sounds.
Test: m -j RunSettingsRoboTests

Change-Id: I7a10bcda17323bce612e199bdf067363b8f9a332
2019-02-26 12:51:49 +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
Xin Li
e01bd73441 [automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master
am: fc53be7b56 -s ours
am skip reason: subject contains skip directive

Change-Id: Ia25b02f0df97306066a4f52687ab55376b8bc3bb
2019-02-25 19:17:55 -08:00
Kiyoung Kim
cf6757a72f Merge "Schematize Crypto state system property" 2019-02-26 01:44:28 +00:00
Arc Wang
827a0fe6ae Merge "Add "Share" button for saved Wi-Fi network" 2019-02-26 01:42:15 +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
Lei Yu
2c1672c482 Merge "Add Bluetooth metadata listenr" 2019-02-26 01:30:13 +00:00
Xin Li
96a0606695 [automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master am: 1994397e6a -s ours
am: d453b1c2ce -s ours
am skip reason: subject contains skip directive

Change-Id: Iabdeddadc01518dfadffc300b0e458496e392fd9
2019-02-25 17:19:35 -08: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
Fan Zhang
e0a722e130 Merge Copyable into Sliceable.
It's only a slice concept. Regular preference copyability is handled in
xml.

Bug: 112427717
Test: rebuild
Change-Id: Iaba7077c320cd03a5963797916a60e0dc80fdbbe
2019-02-25 16:36:04 -08:00
Fan Zhang
0047944c2e Clean up instrumentation tests
- Fixed some important tests
- Deleted some useless tests
- Some tests are still broken, filed bugs for these

Fixes: 124572765
Test: atest
Change-Id: Iac4e6a1fb1dbf9383d91945525df69a651ae77fd
2019-02-25 16:24:35 -08:00
Xin Li
d453b1c2ce [automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
am: 1994397e6a -s ours
am skip reason: subject contains skip directive

Change-Id: I5c40623742c23696457c1fedb742322c634ed1f6
2019-02-25 16:18:26 -08:00
Youming Ye
a83bb0889b [automerger skipped] Merge "Fix issue that the wifi calling text cannot be customized based on sim" am: 5b3ee7afaa am: e3844769e6
am: ecd1998ea0 -s ours
am skip reason: change_id I6b3f6b06c9cc984ee6a68a19ae317b5d1d4e48e2 with SHA1 af5c05392b is in history

Change-Id: I166d407d0d26e4bb3b270308986076a9ab5fecc3
2019-02-25 15:17:28 -08:00
jackqdyulei
344d761e60 Add Bluetooth metadata listenr
If it is updated, we need to refresh UI to display latest information

Fixes: 124455912
Test: RunSettingsRoboTests
Change-Id: I73b03f4931e3c2b0d367bbd2d3b2057b26c84b59
2019-02-25 15:02:10 -08:00
Beverly
986f2ecc55 Make PreventRingingSwitch preference clickable
- Talk back says the preference is clickable

Test: make ROBOTEST_FILTER=PreventRingingSwitchPreferenceControllerTest RunSettingsRoboTests -j40
Bug: 124827588
Change-Id: Ia409bbc6516f6aa11975726691131f1fad1518fd
2019-02-25 16:36:45 -05:00
Youming Ye
ecd1998ea0 Merge "Fix issue that the wifi calling text cannot be customized based on sim" am: 5b3ee7afaa
am: e3844769e6

Change-Id: Id1d2e5e9a061d844ecc69eed35b2c36d61a0a416
2019-02-25 13:08:32 -08:00
TreeHugger Robot
ba9af60132 Merge "Fix invalid style reference in xml" 2019-02-25 21:06:16 +00:00
Fabian Kozynski
d565d7a505 Add summary to Notification Assistant picker
Test: manual
Test: atest
Fixes: 126200103
Change-Id: I9569ca7dd58184242fe740e3db63bd7958042cfb
2019-02-25 15:52:40 -05:00
Fan Zhang
aef472d0ca Merge "Convert android version dialog into a full screen UI" 2019-02-25 20:33:36 +00:00
Treehugger Robot
64bf0a791e Merge "Add additional anomaly types." 2019-02-25 19:53:26 +00:00
Joe Onorato
f51826853b Add additional anomaly types.
Test: Treehugger
Bug: 115540658
Change-Id: I369f5bfadfe10810aa33d4127fb9ce69c9c57e7e
2019-02-25 14:51:10 +00:00
TreeHugger Robot
c4383213cc Merge "Settings UI fix for missing secure lock screen feature." 2019-02-25 11:41:03 +00:00
Lenka Trochtova
bb8e81770b Settings UI fix for missing secure lock screen feature.
Bug: 123737250
Bug: 111072170
Bug: 111071972
Test: manual both with and without the feature flag
Test: make RunSettingsRoboTests

Change-Id: Iacefa95dce85d860633315e074cbf2772691cfdd
2019-02-25 10:18:35 +00:00
Jason Chiu
dcedd4e2e2 WiFi Slice Polish - Searching for WiFi state
1. Change the font color to be secondary
2. Align the left to the AP list title
3. Update the font for Wi-Fi list to be body font - Roboto regular 14dp

Fixes: 124468947
Test: robotest
Change-Id: I9f41925f7e3938bdf3f444b09eab33d6bf479f57
2019-02-25 17:35:16 +08: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