Commit Graph

2657 Commits

Author SHA1 Message Date
Ned Burns
64b8497772 Merge "Merge "Free up memory in the ZigZagClassifierTest." into qt-dev am: 0031e00da6 am: 95980038f2" into qt-r1-dev-plus-aosp
am: dfcabbce31

Change-Id: Iad170e9a26d987559f0c438b7909d907e787e416
2019-06-21 11:17:51 -07:00
Ned Burns
15088332a2 Merge "Free up memory in the ZigZagClassifierTest." into qt-dev am: 0031e00da6
am: 95980038f2

Change-Id: I2033b31e05e39e845a6b4d5f213cd1ccc5596b54
2019-06-21 11:03:39 -07:00
Ned Burns
95980038f2 Merge "Free up memory in the ZigZagClassifierTest." into qt-dev
am: 0031e00da6

Change-Id: I41258c461f513924563049d553457c58b192abae
2019-06-21 10:59:52 -07:00
Robert Snoeberger
c96503773c Merge "Handle case that settings string is JSON" into qt-r1-dev am: 6060068d5a
am: be57a19313

Change-Id: I2a4db0e323272f36c1d8d1b9f50238ca0aa073f0
2019-06-21 10:43:48 -07:00
Robert Snoeberger
be57a19313 Merge "Handle case that settings string is JSON" into qt-r1-dev
am: 6060068d5a

Change-Id: I3386b08801beb7356edb37c5485b29188d8a7c3f
2019-06-21 10:07:18 -07:00
TreeHugger Robot
6060068d5a Merge "Handle case that settings string is JSON" into qt-r1-dev 2019-06-21 16:30:38 +00:00
Dave Mankoff
a90fe0a8c3 Free up memory in the ZigZagClassifierTest.
Test: atest SystemUITests
Bug: 135715570
Change-Id: Iddfcf8cc107254c397769b2b3c5251270ec0a3bd
2019-06-21 12:00:59 -04:00
Ned Burns
1e2efdee9f Merge "Add main thread and reentrant asserts to chase down crashes" into qt-dev am: 4d39c4a7d7 am: e7ace65916
am: 7f1ed33ab9

Change-Id: Ia035a3156a1d782aaf2ee4bae5681a04df917255
2019-06-20 17:50:28 -07:00
Selim Cinek
7ef9d3e33c Merge changes Ia64238f3,I45056904 into qt-r1-dev am: a7719614c6
am: ca60a444f1

Change-Id: Iaaec50eebdafe274c4000d2aac07bb739766153c
2019-06-20 17:45:23 -07:00
Ned Burns
7f1ed33ab9 Merge "Add main thread and reentrant asserts to chase down crashes" into qt-dev am: 4d39c4a7d7
am: e7ace65916

Change-Id: I27635277c6ca2be0215c49766b60171cc770ef41
2019-06-20 17:20:38 -07:00
Ned Burns
e7ace65916 Merge "Add main thread and reentrant asserts to chase down crashes" into qt-dev
am: 4d39c4a7d7

Change-Id: I39c037dd0b53d93c3a88eaa18e7bee26a12cb47a
2019-06-20 17:14:36 -07:00
Selim Cinek
ca60a444f1 Merge changes Ia64238f3,I45056904 into qt-r1-dev
am: a7719614c6

Change-Id: Ifaae76be4b927e16df3d96df9f4480424b2b0fe2
2019-06-20 17:14:32 -07:00
Selim Cinek
a7719614c6 Merge changes Ia64238f3,I45056904 into qt-r1-dev
* changes:
  Fixed an issue about notification icons on AOD
  Animating the notifications now when they disappear
2019-06-20 23:16:54 +00:00
Fabian Kozynski
770a6156f0 Merge "Safeguard against no tiles in QS" into qt-dev am: 60aabc40a2 am: d4202413af
am: f967481a12

Change-Id: I8d70cf931dfbf23ebe9fd0e57d52b9be03d51617
2019-06-20 16:15:23 -07:00
TreeHugger Robot
4d39c4a7d7 Merge "Add main thread and reentrant asserts to chase down crashes" into qt-dev 2019-06-20 23:11:33 +00:00
Fabian Kozynski
f967481a12 Merge "Safeguard against no tiles in QS" into qt-dev am: 60aabc40a2
am: d4202413af

Change-Id: Ia4131b27e4e3622b4e2babfc6ddd43919109b027
2019-06-20 16:05:16 -07:00
Fabian Kozynski
d4202413af Merge "Safeguard against no tiles in QS" into qt-dev
am: 60aabc40a2

Change-Id: Ia491010fffb08f66d2f2f89e6ac9ffb818a71e1b
2019-06-20 15:33:30 -07:00
Fabian Kozynski
b82e0027f5 Merge "Safeguard against no tiles in QS" into qt-dev
am: 60aabc40a2

Change-Id: If5bde9600167a3d508bef5377d31e6d8db2635c2
2019-06-20 15:32:29 -07:00
TreeHugger Robot
60aabc40a2 Merge "Safeguard against no tiles in QS" into qt-dev 2019-06-20 21:42:23 +00:00
Dave Mankoff
fbf0006e6a Merge changes from topic "b111394067-new-falsing-manager" into qt-dev am: acd240fbb3 am: 7fd2154d6d
am: 6fd848c2e3

Change-Id: I5ec41fd9761c2ee706586c45562579e3f430e57d
2019-06-20 14:18:07 -07:00
Dave Mankoff
6fd848c2e3 Merge changes from topic "b111394067-new-falsing-manager" into qt-dev am: acd240fbb3
am: 7fd2154d6d

Change-Id: Ia52bc7d5f3c22e22613fb321a47dd8f83c9387ce
2019-06-20 13:38:33 -07:00
Dave Mankoff
7fd2154d6d Merge changes from topic "b111394067-new-falsing-manager" into qt-dev
am: acd240fbb3

Change-Id: Iddabc77d92830eb79327a2ca7a7bd3f9f2f1a786
2019-06-20 13:07:13 -07:00
Dave Mankoff
4cc68a30de Merge changes from topic "b111394067-new-falsing-manager" into qt-dev
am: acd240fbb3

Change-Id: I83640ae5c6a6681eb33c87a70a629573f189d024
2019-06-20 13:07:12 -07:00
Fabian Kozynski
6ff5c18cb0 Safeguard against no tiles in QS
In PagedTileLayout:
* Make sure that each page displays at least 1 tile (never 0).
* Make sure that there's at least one page (even if it's empty)

In QSTileHost:
* If the new value of sysui_qs_tiles produces no tiles (but it's not set
to empty), set the tile set to the empty default
@string/quick_settings_tiles

Test: adb shell settings put secure sysui_qs_tiles not-a-valid-tile-spec
Test: atest QSTileHostTest
Fixes: 135023694
Fixes: 135677464
Change-Id: I1e5cf4d2688370001ecae87fc0272acecd48af73
2019-06-20 15:54:45 -04:00
Ned Burns
d4a69f7007 Add main thread and reentrant asserts to chase down crashes
We're seeing crashes due to view hierarchy violations that shouldn't be
possible. Adding some guards to make sure we aren't running into
off-thread hierarchy manipulation or re-entrant calls to the update
code.

Test: manual
Bug: 135018709
Change-Id: I4b1f2bd7e3a6f80384486d59b9f56fc3713537cf
2019-06-20 15:40:55 -04:00
Robert Snoeberger
06d2500944 Handle case that settings string is JSON
Settings.Secure string for clock face may be JSON so that it can contain
the timestamp that it was set for logging purposes.

Bug: 134687399
Test: Added SettingsWrapperTest
Change-Id: I50afba479c30029428819c6616ca754db681a2b4
2019-06-20 15:06:28 -04:00
Dave Mankoff
acd240fbb3 Merge changes from topic "b111394067-new-falsing-manager" into qt-dev
* changes:
  Add ZigZagClassifier to the BrightLineFalsingManager.
  Add ProximityClassifier to the BrightLineFalsingManager
  Add DistanceClassifier to the BrightLineFalsingManager
  Add DiagonalClassifier to the BrightLineFalsingManager.
  Add TypeClassifier to the BrightLineFalsingManager.
  Add PointerCountClassifier to the BrightLineFalsingManager.
  Add base class for new falsing manager and classifiers.
2019-06-20 18:05:19 +00:00
Selim Cinek
aade7859be Merge changes I5694a38e,I488f90aa,Ie9644dc8,I8d5b5b53,Ib8a0fa19 into qt-r1-dev am: 2cfa02421b
am: 0f1159df4f

Change-Id: I1b03b76dca5008a0011bb33581cc70c22d9d76f3
2019-06-19 22:50:14 -07:00
Selim Cinek
0f1159df4f Merge changes I5694a38e,I488f90aa,Ie9644dc8,I8d5b5b53,Ib8a0fa19 into qt-r1-dev
am: 2cfa02421b

Change-Id: Ic698ae397c6cfb996922cc853595e55149c10b59
2019-06-19 20:07:11 -07:00
Selim Cinek
2cfa02421b Merge changes I5694a38e,I488f90aa,Ie9644dc8,I8d5b5b53,Ib8a0fa19 into qt-r1-dev
* changes:
  Continued the bypass experience
  Changing the lockscreen layout for the bypass
  Enabling auth to succeed whenever the bouncer is showing
  Enabled dragging down from the lock screen when bypassing
  Made sure huns can show on the lock screen even when awake
2019-06-20 02:04:12 +00:00
Selim Cinek
5dc581aef2 Fixed an issue about notification icons on AOD
Previously this was tied to the removed statusbar setting.
We're making them consistent with the setting of the appearnace
on the lockscreen.

Bug: 135627468
Test: atest SystemUITests
Change-Id: Ia64238f30620d9906aa50c2469121c2653875e8d
2019-06-19 17:34:34 -07:00
Selim Cinek
820ba2d94d Continued the bypass experience
The lock icon now hides as soon as the notifications are showing
to avoid the overlap introduced in the previous CL.
We're also introducing a new listener that one can listen to
for when the notifications are fully hidden.
That same listener is now used to hide and show the aod icons

Bug: 130327302
Change-Id: I5694a38e542b82bf2738d66bdff28d122a9f89e7
2019-06-19 16:13:53 -07:00
Selim Cinek
b0fada6ca0 Changing the lockscreen layout for the bypass
The notifications are now on the top and the user
can drag down to the full shade from there directly.
The quick settings header also comes down while
expanding from the pulse.

Bug: 130327302
Change-Id: I488f90aacd5912eda6f9423dc76862f06230d793
2019-06-19 16:13:53 -07:00
Selim Cinek
b8cc6efc0a Enabled dragging down from the lock screen when bypassing
The pulseExpansionHandler now also works on the lockscreen.
This also delays the bypass when the user is currently
dragging down.

Bug: 134094877
Bug: 130327302
Test: atest SystemUITests
Change-Id: I8d5b5b53e9a68e08933866df6831ecbada41ce43
2019-06-19 16:13:51 -07:00
Dave Mankoff
89ad24688b Add ZigZagClassifier to the BrightLineFalsingManager.
This rejects swipes that wiggle around too much. Swipes
should be mostly straight.

Bug: 111394067
Test: atest SystemUITests
Change-Id: I43aa1cc62abb47ce43423c3c7c8e58c14dc0db03
2019-06-19 13:50:01 -04:00
Dave Mankoff
8bfbe3348e Add ProximityClassifier to the BrightLineFalsingManager
This requires swipes to travel a minimum distance and/or
fling a minimum distance.

Bug: 111394067
Test: atest SystemUITests
Change-Id: Id7586011a30fdcd9dfef7c937f22c33564829307
2019-06-19 13:50:01 -04:00
Dave Mankoff
65b5769c07 Add DistanceClassifier to the BrightLineFalsingManager
This requires swipes to travel a minimum distance and/or
fling a minimum distance.

Bug: 111394067
Test: atest SystemUITests
Change-Id: Iec90bb73b4108ce803f9247ebc30046e8c1a6a2d
2019-06-19 13:49:55 -04:00
Dave Mankoff
d8efd0d4ed Add DiagonalClassifier to the BrightLineFalsingManager.
This rejects swipes that are too close to 45 degrees.

Bug: 111394067
Test: atest SystemUITests
Change-Id: I45913918e89b965678628e3a6a0431a3db4b085a
2019-06-19 13:45:31 -04:00
Dave Mankoff
fd42bdbb86 Add TypeClassifier to the BrightLineFalsingManager.
This matches an existing falsing classifier that ensure
the general direction of a swipe matches the intended action
(i.e. dismissing a notification should be side to side.)

Bug: 111394067
Test: atest SystemUITests
Change-Id: I861ff0443df6051561991808a760250a68b588fd
2019-06-19 12:48:02 -04:00
Dave Mankoff
7abe135f9e Add PointerCountClassifier to the BrightLineFalsingManager.
False on the lock screen if more than one pointer is detected.

Bug: 111394067
Test: atest SystemUITests
Change-Id: Ibffc78d024644adfcfa2713083b03795a11cecb6
2019-06-19 12:48:02 -04:00
Dave Mankoff
07fb7b7353 Add base class for new falsing manager and classifiers.
This adds no functional changes. It merely adds the framework
for a new FalsingManager.

Change-Id: I7f0e3b1363c847fa1eefa54bf7793508fefd1926
Test: manual.
Bug: 111394067
2019-06-19 12:47:56 -04:00
Ned Burns
a8bb0a51d6 Merge "Reinflate silent notif header on config change" into qt-dev am: 19755ea196 am: 9bca9b861d
am: 3c8812779a

Change-Id: I0d77423d1fd386d1b0d31932e1a4a3d46066bab8
2019-06-17 20:43:15 -07:00
Ned Burns
3c8812779a Merge "Reinflate silent notif header on config change" into qt-dev am: 19755ea196
am: 9bca9b861d

Change-Id: I5467ae21dceda60cdb80f3a644dc58de375e79ac
2019-06-17 20:34:13 -07:00
Ned Burns
88f0517f6f Merge "Reinflate silent notif header on config change" into qt-dev
am: 19755ea196

Change-Id: I432fda7bac40daeee9ef11af8c5035cc5df21f5d
2019-06-17 20:23:02 -07:00
Ned Burns
9bca9b861d Merge "Reinflate silent notif header on config change" into qt-dev
am: 19755ea196

Change-Id: Iaeeade0332a3d41ed4dd9fd9963ba907031104c7
2019-06-17 20:22:59 -07:00
Ned Burns
2c74c2a980 Reinflate silent notif header on config change
Necessary in order to support locale changes.

Test: manual
Fixes: 135170814
Change-Id: Ic5fd09b539860a1119f1a5f1316c4a1f6c46e111
2019-06-17 17:48:48 -04:00
Xiangyu/Malcolm Chen
a87f63ea16 Merge "When data switches during voice call, make sure signal bar updates it." into qt-dev am: 566f3521cd am: 0713dc0738
am: dac0c7f40e

Change-Id: Ie73a765e95c6ffbf722d026c88ec25b79c1358cc
2019-06-14 11:17:08 -07:00
Xiangyu/Malcolm Chen
dac0c7f40e Merge "When data switches during voice call, make sure signal bar updates it." into qt-dev am: 566f3521cd
am: 0713dc0738

Change-Id: I4e898b001ca523996340fd756843358a31add67b
2019-06-14 11:07:22 -07:00
Xiangyu/Malcolm Chen
0713dc0738 Merge "When data switches during voice call, make sure signal bar updates it." into qt-dev
am: 566f3521cd

Change-Id: I8f92611b0758aa5fa718837a5b7eb151359152fb
2019-06-14 11:03:28 -07:00
Xiangyu/Malcolm Chen
94159da522 Merge "When data switches during voice call, make sure signal bar updates it." into qt-dev
am: 566f3521cd

Change-Id: I52f1234f36ad24b6e468e4cd9d2ca1c750cdddd7
2019-06-14 11:03:27 -07:00