Commit Graph

19952 Commits

Author SHA1 Message Date
TreeHugger Robot
e8e9d7c628 Merge "Expose Intents to Instant Apps" 2017-03-20 19:47:47 +00:00
Selim Cinek
7f424c79f9 Merge changes from topic 'revert_dozing'
* changes:
  Revert "NotificationWrappers: Factor out doze treatment"
  Revert "AOD: Use color filter to invert icons for AOD"
2017-03-20 19:35:29 +00:00
Chad Brubaker
291df4fc0c Expose Intents to Instant Apps
This exposes Intents used by Android widgets to Instant Apps.

The following Intents are exposed:
Intent.ACTION_TIME_TICK
Intent.ACTION_DATE_CHANGED
Intent.ACTION_TIMEZONE_CHANGED
Intent.ACTION_TIME_CHANGED
Intent.ACTION_CONFIGURATION_CHANGED
Intent.ACTION_LOCALE_CHANGED
Intent.ACTION_SCREEN_OFF
Intent.ACTION_SCREEN_ON
Intent.ACTION_USER_PRESENT

Bug: 33350280
Test: Manually verified that broadcasts are received.
Change-Id: Ife94f594c1ff30f2625a57e1cc69f36cc00d1f34
2017-03-20 11:08:04 -07:00
Selim Cinek
934027a430 Revert "NotificationWrappers: Factor out doze treatment"
Bug: 36430936
This reverts commit edfb65bbc4.

Change-Id: I85f67d2f703bdc1bb8f2bedc19eacb5320b3c1d3
2017-03-20 17:46:02 +00:00
Selim Cinek
30d9bad767 Revert "AOD: Use color filter to invert icons for AOD"
Bug: 36430936
This reverts commit cc95775297.

Change-Id: I1aa4a05d0bc823e02338693e1bf20786dd2ac019
2017-03-20 17:43:50 +00:00
Jorim Jaggi
7c8e0918a1 Merge "Remove thumbnail cache" 2017-03-20 17:19:11 +00:00
TreeHugger Robot
6388efb405 Merge "Inline Notification Controls to full spec" 2017-03-20 16:24:50 +00:00
Jean-Michel Trivi
0a637ecd1b NotificationPlayer: fix typo in log
Test: n/a
Change-Id: I585f6ad39ef6dc0a93651deae6ca50051f732a1b
2017-03-20 08:47:58 -07:00
Jean-Michel Trivi
3e09b3c3fe Merge "NotificationPlayer: fix error listener, sync in playback thread" 2017-03-20 15:39:11 +00:00
Geoffrey Pitsch
d0856f00c7 Inline Notification Controls to full spec
Based off redline spec
Support bundled notifications when long-press on summary
Hide banned text when sent from the default channel

Test: runtest systemui
Change-Id: I9315b4dc12cafbdf37ba9896879bfbe23c8d6921
2017-03-20 10:42:23 -04:00
TreeHugger Robot
aa5be5d156 Merge changes Ic359aaee,Id7aba066
* changes:
  AOD: Use color filter to invert icons for AOD
  NotificationWrappers: Factor out doze treatment
2017-03-18 00:05:18 +00:00
Adrian Roos
cc95775297 AOD: Use color filter to invert icons for AOD
Fixes an issue where the AOD icons where of different
brightness because they were converted to grayscale and
then inverted. Now we just set the appropriate color filter
instead.

Change-Id: Ic359aaee2e19274670f44c5b7380c636ee26e559
Test: Open AOD, observe that the icons are colored solid white (like the clock) instead of gray.
Fixes: 35850204
2017-03-17 15:28:01 -07:00
Adrian Roos
edfb65bbc4 NotificationWrappers: Factor out doze treatment
Bug: 35850204
Test: receive a notification group, observe that the group icon is correctly inverted on ambient display.
Change-Id: Id7aba066eb1683705fdc2c008e657bd819ddd31d
2017-03-17 15:28:01 -07:00
TreeHugger Robot
57efc93f08 Merge "QS: Revert change to when user switcher is shown" 2017-03-17 20:22:40 +00:00
Jason Monk
84caab7bdb QS: Revert change to when user switcher is shown
Its making it inconsistently show up on the lock screen. Until
final behavior is decided, revert to old behavior.

Change-Id: Ifc69f2d5b527cc9ce5a174b16b8b605db26fc35b
Fixes: 36141544
Test: visual
2017-03-17 14:49:47 -04:00
TreeHugger Robot
6e4075bde6 Merge "Adding enabled state for remote actions." 2017-03-17 17:51:45 +00:00
Jorim Jaggi
c4fa9aadc8 Remove thumbnail cache
We don't need it anymore in the new infrastructure, and only makes
the code hard to read.

Test: Go to recents
Change-Id: I9ec0f7294060c2383963fff6d7cb78c0e68a8415
2017-03-17 17:47:08 +01:00
TreeHugger Robot
837c927213 Merge "Fix up QS edit UI" 2017-03-17 16:11:36 +00:00
TreeHugger Robot
edd694e4bf Merge "Change dependency to standard mockito-target-minus-junit4" 2017-03-17 15:32:07 +00:00
Jason Monk
6f77056666 Fix up QS edit UI
Turns out QS Edit mode didn't like the changes to dual target tiles.
Clean this up a bit.

Test: visual
Change-Id: I158fe8dba6729de102cfc592314ec483a969417d
2017-03-17 10:15:15 -04:00
Paul Duffin
a7773c2fb1 Change dependency to standard mockito-target-minus-junit4
The mockito-updated-target-minus-junit4 target was added because
some tests needed a later version of mockito than was available
through mockito-target-minus-junit4. Since the latter has now
been upgraded to 2.7.13 that is no longer true and so users of
mockito-updated-target-minus-junit4 can be switched to use
mockito-target-minus-junit4 instead.

Bug: 32912773
Test: make checkbuild && runtest systemui
Change-Id: If7e4dd26d7d0e93731856e9739a048c89a835333
2017-03-17 13:52:15 +00:00
Jason Monk
581084123f Protect against hiding while not attached
Change-Id: I44b16d2644c80c737ffc16bf11cc1259e3c3984b
Fixes: 36137783
Test: Edit QS
2017-03-17 09:47:30 -04:00
Jean-Michel Trivi
5cd7d7f7a4 NotificationPlayer: fix error listener, sync in playback thread
The error and completion listeners should be set before
  MediaPlayer.prepare() is called, in case of an error
  during prepare.
Move the sleep to synchronize the playback of the notification
  and the ducking from the MediaPlayer to the playback thread.

Test: play a notification during media playback
Bug: 35855841
Change-Id: I42f01f485f533c1cc84b9d927f0dc594cdb7ec8f
2017-03-16 18:38:50 -07:00
Winson Chung
6b88baf1e8 Adding enabled state for remote actions.
- Actions can specify whether they are enabled (default) or disabled, and
  SystemUI will reflect the state in the PiP actions.

Bug: 36363677
Test: Expand pip with dismissed action
Change-Id: I36994868f82d8ba0fc87947a722d9f20b39425a1
2017-03-16 18:05:30 -07:00
Hyunyoung Song
5d0a358b62 Merge "Add LauncherIcons.AdaptiveIconDrawableWithShadow class to support shadow b/36088922" 2017-03-16 22:51:43 +00:00
TreeHugger Robot
e74f59aef9 Merge "Don't announce state changes in QS" 2017-03-16 22:16:16 +00:00
TreeHugger Robot
321c5a19c7 Merge "Clean up some QS user switcher colors" 2017-03-16 21:48:34 +00:00
TreeHugger Robot
43c43f2d4a Merge "UI updates to dual target tiles" 2017-03-16 21:38:20 +00:00
Hyunyoung Song
547010ff86 Add LauncherIcons.AdaptiveIconDrawableWithShadow class to support shadow
b/36088922

Test: Settings app
This utility class can be used to bake shadow in drawable level in
system ui surfaces such as Settings, Overview and ShareSheet.

Change-Id: Iaec867d9ce5b949380c1e5004b68269d1bbeacd4
2017-03-16 13:51:28 -07:00
TreeHugger Robot
8a03952d86 Merge "Fixing issue with IME not showing after PiP menu is shown." 2017-03-16 20:27:38 +00:00
Selim Cinek
35cb746e1d Merge changes I414b9a5f,I0a08b06b
* changes:
  Fixed a bug where the notifications could get stuck animating
  Better messaging style wrapping
2017-03-16 20:25:02 +00:00
TreeHugger Robot
c8913dac2e Merge "Ensuring that we remove the input consumer after moving expanded PiP" 2017-03-16 18:22:32 +00:00
Winson Chung
d703c63c5f Fixing issue with IME not showing after PiP menu is shown.
- Because the PiP menu activity needs to be always-focusable, it would
  always be found as the input focus target even after the menu is
  animated away.  This CL ensures that main activity window is hidden
  when the menu is also hidden so that we don't prevent the new focused
  app windows from getting focus
- This also allows us to not finish the activity when accessibility is
  enabled as the hidden window will not be reported to accessibility
  services

Bug: 36225602
Test: Expand pip, tap on qsb
Change-Id: Ifa4f47ef25afc0ff73a9206e3c8bc45277d274f6
2017-03-16 11:14:22 -07:00
TreeHugger Robot
6b2cde6bfc Merge "Fix QS editing from lock screen" 2017-03-16 18:08:10 +00:00
TreeHugger Robot
587b60282e Merge "frameworks/base: Add APCT tests to the device-tests suite." 2017-03-16 17:35:12 +00:00
Jason Monk
f12710a545 UI updates to dual target tiles
Have an underline + an arrow to indicate them instead of a divider.

Test: visual
Change-Id: I8fdff53825f9668edd5c527b42410c301f943785
2017-03-16 13:26:13 -04:00
Jason Monk
867428615d Don't announce state changes in QS
These are covered by the accessibility services now that we have
proper accessibility classes attached to everything.

Change-Id: I7a27387cf22503bb460ded72b91889263c01306a
Fixes: 36160031
Test: Toggle flashlight
2017-03-16 12:53:10 -04:00
Jason Monk
44ad61f06e Clean up some QS user switcher colors
Change-Id: Ie6699f3cede075ee22997440c716138402840587
Fixes: 34775035
Test: visual
2017-03-16 12:45:48 -04:00
Jason Monk
78a3d60a5e Fix QS editing from lock screen
QS was getting a callback making it think the lock screen was
being shown and it caused it to hide, make sure we don't hide
when the doing the open animation as we expect that we may be
coming from the lock screen.

Change-Id: I5c35e3f7d02f068ea53c71742945290c137b4551
Fixes: 36048979
Test: Click QS edit on lock screen
2017-03-16 12:12:57 -04:00
TreeHugger Robot
e7f265119d Merge "Fix light status bar transition" 2017-03-16 14:22:56 +00:00
Julia Reynolds
1d97e6a0c1 Remove resource id channel/group name fields
Apps can listen for the LOCALE_CHANGED broadcast to
change names if needed.

Fixes: 35336590
Test: runtest systemui-notification, cts, manual
Change-Id: I62d2778f61e99200692755a6f268828a374837e6
2017-03-16 14:20:28 +00:00
Winson Chung
2824d7c1b3 Ensuring that we remove the input consumer after moving expanded PiP
- We re-enable the input consumer once the user starts dragging the
  expanded PiP to allow the touch handler to take over, but once we
  reset the timer (after showing the menu again), we need to disable
  the input consumer so that the menu can get touches again.

Bug: 36266913
Test: Expand PiP, move, click action
Change-Id: I30ebccd165fd764a9a8de8313659c24ecd12aec0
2017-03-16 02:44:08 +00:00
Casey Burkhardt
98d1dba2ab Merge "Display magnification via the nav bar Accessibility Button" 2017-03-16 00:26:53 +00:00
Selim Cinek
2f6272ec7d Fixed a bug where the notifications could get stuck animating
Notifications could get stuck in the middle of an animation
when the occlusion changed.

Test: launch camera, turn screen off, observe no animation when waking up
Change-Id: I414b9a5f7b01db2f4e2a3198647084f5e2582e8b
Fixes: 34734460
2017-03-15 16:19:10 -07:00
Mady Mellor
da42f4aaa9 Merge "Enables drag to dismiss for PiP and adds a dark scrim when dismissing" 2017-03-15 21:59:04 +00:00
Simran Basi
473a16e492 frameworks/base: Add APCT tests to the device-tests suite.
This CL adds the APCT tests within this project to
a similar suite as CTS known as device-tests.

The current method of running APCT tests in the infrastructure
is unaffected.

Bug: 35882476
Test: `make dist device-tests -j` and local builds of
      continuous_instrumentation_tests & continuous_native_tests

Change-Id: Ifa382fe691842c1cd76897775b9e2a1653449eb5
2017-03-15 14:46:27 -07:00
Casey Burkhardt
74922c63e1 Display magnification via the nav bar Accessibility Button
Adds support for invoking display magnification by first selecting
the Accessibility Button, then touching an area of the screen to
magnify.

Bug: 30960346
Test: Manual
Change-Id: Ifd8a355562f204182e34bd37f71a3637d85cf0e1
2017-03-15 14:12:51 -07:00
Mady Mellor
81d406104a Enables drag to dismiss for PiP and adds a dark scrim when dismissing
- Adds a scrim that fades in as the PiP is dragged past the bottom movement
  bounds.
- Tweaks the values for minimizing the PiP and dismissing the PiP
- Fixes an issue where the PiP could be minimized in the bottom corners
  of the screen

Test: Manual - drag PiP to bottom of screen to dismiss or swipe down on
PiP when it's at the bottom of the screen
Bug: 35358768
Bug: 35358628
Change-Id: Ib4ad5ed7094fef76ea979b46ea7e03d746625d00
2017-03-15 11:00:32 -07:00
TreeHugger Robot
7d754b150f Merge "Fix duplicate status bars once and for all" 2017-03-15 17:07:39 +00:00
TreeHugger Robot
13b13f0816 Merge "Remove qs_footer_dialog_network_logging_icon_alpha" 2017-03-15 15:47:03 +00:00