Commit Graph

14521 Commits

Author SHA1 Message Date
Lucas Dupin
1ead7fc753 Scrims should be grey when in-app
Bug: 38164389
Test: runtest -x colorextraction/tests/src/com/google/android/colorextraction/ColorExtractorTest.java
Test: runtest -x tests/src/com/android/systemui/colorextraction/SysuiColorExtractorTests.java
Change-Id: Ifcc04a8562e46b4f65bce0470ccd6c02dffcf377
(cherry picked from commit e1571705e6)
2017-06-14 10:00:16 -07:00
Jason Monk
adfc1ad840 Merge "Fix footer not being hidden in detail panels" into oc-dev
am: 2a0b423cd4

Change-Id: I97266821c07fd307dbe04e5d715792e57bfa9c0d
2017-06-14 13:46:11 +00:00
Jason Monk
2a0b423cd4 Merge "Fix footer not being hidden in detail panels" into oc-dev 2017-06-14 13:37:34 +00:00
Jason Monk
f3ad1dbcfd Merge "Revert Early version of new volume" into oc-dr1-dev 2017-06-14 13:36:45 +00:00
TreeHugger Robot
2306a78963 Merge "Disable StatusBar logs" into oc-dr1-dev 2017-06-14 01:57:57 +00:00
TreeHugger Robot
644f8e8583 Merge "Add plugin hooks to DozeService" into oc-dr1-dev 2017-06-13 23:51:13 +00:00
Lucas Dupin
7ac74d5261 Disable StatusBar logs
Reverted DEBUG flag that was accidentally
set to true.

Test: make
Change-Id: Icb37d7831052f4bb1c3a1e2349f5af5270a9e932
2017-06-13 16:30:15 -07:00
Jason Monk
304f3a74be Merge "Fix sysui depending on slow bt calls" into oc-dev
am: 02d5b79cf6

Change-Id: If250b772445628e26fd73d0c81f31ea89e74f7fa
2017-06-13 21:43:35 +00:00
TreeHugger Robot
70cb08326e Merge "Change SlashDrawable semantics to fix QS crash" into oc-dr1-dev 2017-06-13 21:19:20 +00:00
Jason Monk
b4ec0b90dc Fix footer not being hidden in detail panels
Was causing incorrect accessibility focus

Test: manual
Change-Id: Id487286eb9fa931b73349b0b0dfe772566c10e6d
Fixes: 62568126
2017-06-13 21:16:15 +00:00
Evan Laird
418ffe4a0f Change SlashDrawable semantics to fix QS crash
SlashDrawable wraps a reference to Drawable in order to store the
intended Drawable and optionally draw a slash over it. As such, it
should probably have similar semantics to Drawable, in that it either
exists or doesn't; if you set SlashImageView's drawable to `null`, you'd
expect that the drawable goes away, not that the SlashDrawable's
contained Drawable goes away but the slash stays.

Test: runtest systemui
Change-Id: I34b92716cc60ba5043ab68ae09954f5a5e97e562
Fixes: 62525439
2017-06-13 15:09:21 -04:00
Jason Monk
6b23880298 Revert Early version of new volume
This reverts the volume-related pieces of
commit 16fbd9dd1d.

Test: manual
Change-Id: I346c616697b155361a26ec0ca48e313e4a9353b1
Fixes: 62572865
2017-06-13 14:10:51 -04:00
Mady Mellor
f33a097232 Add plugin hooks to DozeService
- Find out when the dreaming starts / stops
- Request the doze UI to show / hide

Bug: 62534409
Test: manual, have no plugin, check that doze still works as expected (i.e.
      pick up gesture shows it, noti shows it)
Change-Id: I11618e47e0bab18423f0d89c8daf285d8c14d238
2017-06-13 10:28:40 -07:00
Adrian Roos
25c7a58f33 AOD: Use double tap coordinates to trigger Ambient Indication
Bug: 38386446
Test: Double tap on AOD, verify that it still works. On device that supports double tap coordinates, verify that double tapping on ambient music opens ambient music.
Change-Id: Ic75ba731a980c9598c85927e83d2032f01da4822
(cherry picked from commit 44198f5124)
2017-06-13 16:59:54 +00:00
Jason Monk
9ef03b463c Fix sysui depending on slow bt calls
Move calls to a background thread and cache the results to avoid
slowing down sysui when there are too many bluetooth devices.

Test: runtest systemui
Change-Id: Ica10e86ca6b2783c30ed9de68f1a91dc5cfdf068
Fixes: 38118549
2017-06-13 12:49:55 -04:00
Winson Chung
87997ce838 Merge "Minimal change to ensure events are propagated to the right DividerView." into oc-dev
am: b1cdc17dfb

Change-Id: I987d923b923e289baa76d5155cf6a7fe4d9ece6a
2017-06-13 01:41:18 +00:00
TreeHugger Robot
b1cdc17dfb Merge "Minimal change to ensure events are propagated to the right DividerView." into oc-dev 2017-06-13 01:18:50 +00:00
Wale Ogunwale
5323b2d4cd Merge "Ensure that we use SF Vsync Choreographer for the PiP transition." into oc-dev
am: e1e0db8ca9

Change-Id: I2d854e36c31a8fa1cf74e5c5a536969ee94dc79b
2017-06-13 01:01:51 +00:00
Jorim Jaggi
20eb74681f Merge "Attempted fix for navigation bar flicker" into oc-dev
am: bbd7dfc0a4

Change-Id: I80a618eb59f0479060a69ca4f0be8ac883a8d48d
2017-06-13 00:41:40 +00:00
Jorim Jaggi
c14f46b135 Merge "resolve merge conflicts of 8f1d13300f to oc-dr1-dev" into oc-dr1-dev 2017-06-13 00:21:31 +00:00
Wale Ogunwale
e1e0db8ca9 Merge "Ensure that we use SF Vsync Choreographer for the PiP transition." into oc-dev 2017-06-12 23:51:19 +00:00
Winson Chung
60fa647427 Minimal change to ensure events are propagated to the right DividerView.
- The RecentsDrawnEvent sent when Recents is first drawn can be racey, if
  it is sent before the configuration change in Divider is dispatched, then
  it will be posted for the old DividerView, which prior to ag/2363241 was
  still sending the correct resize calls (the animation is independent of
  the view).  For now, we register the event handler in Divider, and
  instead proxy it to the current view when it is posted.

Bug: 62528361
Test: go/wm-smoke
Test: Play a movie in Play Movies, ensure the activity is resized

Change-Id: I665b0c6af55dea0db1916f5b041589bf72da3baf
2017-06-12 16:10:52 -07:00
Mady Mellor
f3f6ddf7cb Merge "Updates to NotificationMenuRowPlugin so that long press may be captured" into oc-dr1-dev 2017-06-12 21:48:45 +00:00
Jorim Jaggi
ee18e78d81 resolve merge conflicts of 8f1d13300f to oc-dr1-dev
Change-Id: I1a30ba6663041e1ce0a2d347671deb83b1d9d7ff
2017-06-12 13:45:50 -07:00
Jorim Jaggi
e3e0b06a12 Attempted fix for navigation bar flicker
Not 100% sure why it was flickering, but I do know that the
flicker started happening after putting this into a separate
thread, and that with that change it doesn't flicker anymore,
ever.

Adds 0.5ms while unlocking but at this point this is a good trade-
off to make.

Test: Unlock device with FP
Change-Id: I736a3c64d9b63df9d6cdcb7855bde13a19560a83
Fixes: 62380221
2017-06-12 12:21:55 -07:00
Jorim Jaggi
67b29d5d49 Fix wake-and-unlock animation
Since okToDisplay was false when we started the keyguard exit
animation, no animation was applied and we didn't create a
starting window, which lead to flickering. We fix this by
allowing animations from mScreenOnEarly.

Furthermore, we synchronize the navigation bar better with the
rest of the animation.

We also need to apply no animation to the status bar window as
we go through performShowLocked because we were waiting for it
to draw.

Test: go/wm-smoke
Test: Wake-and-unlock
Test: Make sure no other regression with screen on experience
Change-Id: I5f264b74cc258e8d7f608978edfb1faa5ead385c
Fixes: 38441599
2017-06-12 11:46:44 -07:00
Mady Mellor
4ab2820e6c Updates to NotificationMenuRowPlugin so that long press may be captured
This will allow the NotificationMenuRow plugin to do something else
rather than showing a menu when the view is long pressed.

- Allow menu to intercept touch events
- If the menu item provided to long press is null, don’t show it
- Also passes the status bar notification when the menu is created
  or updated

Bug: 62534409
Test: manual, have no plugin and long press -> see notification info
      have a plugin that returns null for long press -> nothing happens
Change-Id: I384c5217d5343e990f4c3506eb2477b015705e5c
2017-06-12 18:08:19 +00:00
Winson Chung
4a526c1245 Ensure that we use SF Vsync Choreographer for the PiP transition.
- Move the bounds animation onto the animation thread
- Remove existing code referencing the old sf-vsync choreographer
- Add ability for ValueAnimator subclasses to reference a different
  AnimationHandler, which uses a different FrameCallbackProvider with the
  sf-vsync choreographer in the animations that require it
- Ensure that PiP touch events are batched and sent aligned with the
  sf-vsync
- Move GC onto its own thread to not block other BackgroundThread calls

Bug: 36371375
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: bit FrameworksServicesTests:com.android.server.wm.BoundsAnimationControllerTests
Test: go/wm-smoke

Change-Id: I6a41b35a4e4d4d6dbea82c2673452825fe3ffa58
2017-06-12 10:08:58 -07:00
TreeHugger Robot
e1f9b3f195 Merge "Round the slashes of SlashDrawable" into oc-dr1-dev 2017-06-12 15:42:21 +00:00
Winson Chung
489e22503e Merge "Preemptively create Bitmap from GraphicBuffer" into oc-dev
am: a304564081

Change-Id: I916e692fae56ed79a60d37b471b6e07457d2509d
2017-06-10 04:56:09 +00:00
Winson Chung
a304564081 Merge "Preemptively create Bitmap from GraphicBuffer" into oc-dev 2017-06-10 04:50:16 +00:00
Winson Chung
462497632d Preemptively create Bitmap from GraphicBuffer
- This call moves up the code to create a ThumbnailData from the
  TaskSnapshot to ensure that it is registered with the GC even if there
  is no active TaskView bound to process the event.

Bug: 62360156
Test: Run "bit CtsMediaTestCases:.DecodeAccuracyTest", and ensure that
      the "Lost RAM" is relatively unchanged afterwards

Change-Id: I64af55aa40e80604864e17045798823cc6fee483
2017-06-09 14:39:04 -07:00
Winson Chung
fc926a938e Merge "Removing legacy default thumbnail logic." into oc-dev
am: a0e44e7335

Change-Id: I5bcc319b92c464c28ff4db6c94cf297e786b50d7
2017-06-09 17:56:26 +00:00
Winson Chung
a0e44e7335 Merge "Removing legacy default thumbnail logic." into oc-dev 2017-06-09 17:50:50 +00:00
Jason Monk
8f8b5ac031 Merge "Add notification listener plugin hook" into oc-dr1-dev 2017-06-09 16:57:49 +00:00
Evan Laird
8d2e540854 Round the slashes of SlashDrawable
Draw the slashes vertically as rounded rects, and then rotate them 45
degrees. Rounded-ness is 1dp.

The slash is animated over a period of 350ms.

Test: visual
Bug: 37013523
Change-Id: I25d82041936ed91b77f539005dcfb326bd8cc8c7
2017-06-09 16:37:42 +00:00
Selim Cinek
4ab7b364a5 Merge "Fixed an issue where the notification could stay userlocked" into oc-dev
am: dc66506f0a

Change-Id: Ia2ea2f1b69bdcab2d27a56e89fbfb87b8cc11eed
2017-06-09 04:36:31 +00:00
Selim Cinek
f62145a41a Merge "Fixed a bug where systemui could crash while cloning" into oc-dev
am: b9eb205bd7

Change-Id: I6cd3b23a9adcb20a93b112204154f1e42a7a3c21
2017-06-09 04:30:47 +00:00
Selim Cinek
dc66506f0a Merge "Fixed an issue where the notification could stay userlocked" into oc-dev 2017-06-09 04:25:42 +00:00
Selim Cinek
b9eb205bd7 Merge "Fixed a bug where systemui could crash while cloning" into oc-dev 2017-06-09 04:22:06 +00:00
Adrian Roos
63f23f8dd7 Merge "AOD: Move clock to prevent burn in" into oc-dr1-dev 2017-06-09 00:38:42 +00:00
Jason Monk
98bf8ba30c Add notification listener plugin hook
Allows plugin control over notifications right at the entrance
to sysui and gives them the opportunity to mess with them how
they see fit.

Test: manual
Change-Id: I569bf37138da66d0524acecfa36ceb409f98fbb4
2017-06-08 19:23:11 -04:00
Winson Chung
75ef9b2667 Removing legacy default thumbnail logic.
- With the move to snapshots, we no longer keep a local cache of the
  thumbnails and tasks which have no thumbnails will be handled
  in the snapshot from the system (if it uses FLAG_SECURE) or in
  Recents directly through the task description background color.

  In the case of this bug, the default thumbnail (1x1 white bitmap) was
  incorrectly being applied because the system could not take a snapshot
  of the app due to DRM.

Bug: 62447895
Test: Open any app with DRM, play video, tap Recents

Change-Id: I02e87cf513eb9750b39d54d085b0c19645b7ed52
2017-06-08 13:46:12 -07:00
Selim Cinek
7f09ce1a23 Fixed a bug where systemui could crash while cloning
Because cloning wasn't synchronized, the notification
could become a non-root temporarily which in turn could
lead to a crash.
1. We're now properly synchronizing the cloning, such that
this can't happen anymore
2. We're now only cloning the old statusbar notification lightly
instead of heavily to avoid this altogether

Test: manual, update decoratedcustomview notifications really fast
Change-Id: Ia6525eec64ad9a26956ca2198e20198f55b2173c
Fixes: 62181033
2017-06-08 13:31:26 -07:00
Mady Mellor
b2b3628565 Merge "Ensure the menu items are properly recreated after a density change" into oc-dev
am: f574869c11

Change-Id: I8b98780208ca4e89d249fc7ebd688b868b3fb9be
2017-06-08 20:16:45 +00:00
Winson Chung
b2a93b69a2 Merge "Fix crash when deleting task" into oc-dev
am: c6fa8ee018

Change-Id: I65e242e2f3de857c508c9a7c768ef504121acb25
2017-06-08 20:10:36 +00:00
TreeHugger Robot
f574869c11 Merge "Ensure the menu items are properly recreated after a density change" into oc-dev 2017-06-08 17:39:43 +00:00
Winson Chung
c6fa8ee018 Merge "Fix crash when deleting task" into oc-dev 2017-06-08 17:38:00 +00:00
Jason Monk
d7dab0f36f resolve merge conflicts of a5b457b3bf to oc-dr1-dev
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I2aa49bfdbd2c44684d0edb21b52520fea406e167
2017-06-08 13:00:40 -04:00
Selim Cinek
f8c4add851 Fixed an issue where the notification could stay userlocked
When collapsing the shade while draging down (using fingerprint)
notifications would stay userlocked and would appear in a small
height instead of their regular size.

Test:  runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarWindowViewTest.java
Change-Id: Ibd97a6ce063bc2fcd76f11e010e781a61bd76b5f
Fixes: 36469584
2017-06-08 09:56:42 -07:00