Commit Graph

12933 Commits

Author SHA1 Message Date
TreeHugger Robot
1df8f1ea95 Merge "Reverts ag/1803954 and ag/1828349 and left only split custom action" 2017-01-28 01:13:25 +00:00
Matthew Ng
32acecc073 Reverts ag/1803954 and ag/1828349 and left only split custom action
Test: manual - used Talkback
Fixes: 29360763
Change-Id: I50a5fd8fb438cba045ab4e86b4495af8a8fdf8f3
2017-01-27 15:23:45 -08:00
Adrian Roos
c68b34191a Merge "AOD: Fix fallout from new Ambient Display" 2017-01-27 22:14:12 +00:00
TreeHugger Robot
463160177b Merge "SysUI: Fix race condition that is causing test failure" 2017-01-27 20:50:36 +00:00
Adrian Roos
cd4fa97afc Merge "AOD: Fix DirectReply" 2017-01-27 20:50:03 +00:00
TreeHugger Robot
ef92186d45 Merge "Fix broken lock screen affordances" 2017-01-27 20:17:12 +00:00
Adrian Roos
4320e89ffa AOD: Fix DirectReply
Test: Receive notification with RemoteInput on Ambient Display, tap the action with the remote input. Observe that the device wakes up, unlocks and opens the RemoteInput.
Bug: 34500641
Change-Id: Iabb3ca0b33944cdf41c798852ff68cd74489bff4
2017-01-27 11:06:50 -08:00
Jason Monk
809aadf69e SysUI: Fix race condition that is causing test failure
Test: runtest systemui
Change-Id: I7f3bf7bbcc75820231fd59ca20551ac377dea601
2017-01-27 13:46:51 -05:00
Jason Monk
9ef7307324 Fix broken lock screen affordances
The state change callback stopped getting added as part of the
dependency injection refactor, which turns out has a pretty serious
effect on how the buttons work.

Change-Id: Ic2c412248373de80acc581d09e3073f541238e9a
Fixes: 34739383
Test: Click on lock screen mic or camera
2017-01-27 13:34:17 -05:00
Adrian Roos
05d3d00aba AOD: Fix fallout from new Ambient Display
- Double tap on shelf did not wake up phone
- Calculate content height hint after setting new visible type
- Clean up content hint calculation for type ambient

Test: Trigger ambient disply. Observe that clicking on shelf works. Observe that the actions are not cut off.
Change-Id: I494fdd9f75e0fc3243d801f7d8f209eec44d2d84
2017-01-27 10:00:21 -08:00
Adrian Roos
adb520570f Merge "AOD: Prevent KeyguardAffordanceViews from triggering in doze" 2017-01-27 17:12:02 +00:00
TreeHugger Robot
5c7700f8b7 Merge "Create Settings Flags to Disable Scoring UI changes." 2017-01-26 22:07:17 +00:00
TreeHugger Robot
8c6aea6469 Merge "SysUI: Fix typo in NotificationPanelView" 2017-01-26 22:05:22 +00:00
Jason Monk
2a6ea9c2a1 Delete BaseStatusBar
It is a relic of a more complex time, but has passed out of all
knowledge for too long.

Test: manual testing on phones and TV
Change-Id: I62a15d9413ea4bda3ac82bf6f7d22c096e2c1cdc
2017-01-26 15:17:45 -05:00
Mady Mellor
1f2df9afac Merge "Fix crash on density / font change in NotificationGuts.gutsContent" 2017-01-26 20:14:32 +00:00
Sundeep Ghuman
e869d83ea8 Create Settings Flags to Disable Scoring UI changes.
When disabled, this will prevent badges from being shown in the status
bar or wifi picker as well as prevent access points in the picker from
being rearranged based on ranking scores.

Fix missing permission dropped from previous CL to run
NetworkControllerWifiTest and refactored tests to enable new setting.

Bug: 34712533
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java
and runtest --path
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/NetworkControllerWifiTest.java

Change-Id: I79c97f2205ebb70c0f7f5b1f66f7207055e5769b
2017-01-26 12:09:04 -08:00
TreeHugger Robot
ff73dd9c60 Merge "Splitscreen for minimized state that works with resizable launchers" 2017-01-26 20:07:07 +00:00
TreeHugger Robot
1ab054bc37 Merge "Add assistant-provided snooze options to snooze menu" 2017-01-26 20:01:32 +00:00
Mady Mellor
d0baf3c9a6 Fix crash on density / font change in NotificationGuts.gutsContent
There were two issues:

1) The mGutsMenuItem wasn’t getting nulled out correctly
2) There was no check for guts != null when seeing if there were
   exposed guts, this meant the bind would happen when there were no
   guts exposed, because mGutsMenuItem wasn’t nulled out correctly, it
   would be out of date / still attached to a parent.

Test: Manually tried:
1) Have notifications that *haven’t* had guts revealed
2) Change screen density

1) Have notifications, reveal some of their guts
2) Change screen density

Bug: 34737513
Change-Id: Iff0a782c9377aec973eb07645e852bc320dbb101
2017-01-26 11:58:56 -08:00
Matthew Ng
e15352e516 Splitscreen for minimized state that works with resizable launchers
If a launcher is resizable, going to minimized mode (dock task and then
press home) would show a cropped height of the task at the top in a
minimized state and the fullscreen stack would show the home launcher
which takes the rest of the remaining height. If the launcher is not
resizable, it will default the original behavior.

To enable this in a launcher, add android:resizeableActivity="true" in
the AndroidManifest.xml in the <application/> tag.

Test: manual - rotating while minimized, minimizing using dragging task
or holding overview nav button, installing resizable launcher with a
non-resizable launcher
Fixes: 32504542
Change-Id: Idf4015b40f9bec81b70f146f0f2d7df8ccfb4cf0
2017-01-26 10:31:50 -08:00
Mady Mellor
754d8226c9 Add assistant-provided snooze options to snooze menu
Test: manual via Assistant app
Change-Id: Ie77181601a20e46774d009c7ecea65e99434ebd3
2017-01-26 18:07:09 +00:00
Mady Mellor
e461db8a7d Merge "Update PIP minimize to edge gesture" 2017-01-26 18:05:44 +00:00
TreeHugger Robot
1838867ee7 Merge "Add separate roaming icon for status bar + QS" 2017-01-26 17:13:03 +00:00
TreeHugger Robot
5841a983e8 Merge "Launch work lock scrim as clear_top not single_top" 2017-01-26 16:41:44 +00:00
Jason Monk
0f0de13c37 Add separate roaming icon for status bar + QS
Now data + roaming will be shown at the same time.

Test: runtest systemui
Bug: 31205845
Change-Id: I8fe167a0909c952ad0824e24e178857df2541554
2017-01-26 10:04:32 -05:00
Mady Mellor
3b10dcd2ca Update PIP minimize to edge gesture
Updates gesture to match prototype:
- If you fling towards the current edge the PIP is on it is minimized
- Dragging far enough to left or right edge minimizes PIP

Test: manual
Change-Id: I56664e16505b461ad37b181cbb89ee4c6e371aa2
2017-01-26 06:47:08 -08:00
TreeHugger Robot
132dffbc83 Merge "Animate starting work challenge from work lock" 2017-01-26 12:49:27 +00:00
TreeHugger Robot
b4c86b6f29 Merge "Notification Channels come to SystemUI's own notifications." 2017-01-26 06:57:17 +00:00
Selim Cinek
21c9a41a52 Merge "Adapt the paddings of colored notifications" 2017-01-26 06:13:17 +00:00
Dan Sandler
8e032e15e6 Notification Channels come to SystemUI's own notifications.
There are five channels at present:
    ALERTS - low battery etc.
    SCREENSHOTS - progress & result
    SECURITY - notifications hidden due to policy
    STORAGE - disk low
    STATUS - basically everything else

The importance for each channel should match the legacy
priority of the notifications it carries.

Bug: 34250937
Test: runtest systemui
Change-Id: I5915ca453258caea63b0d9bd756893db05e8d600
2017-01-25 23:37:06 -05:00
Jason Monk
b922d1f9e6 Merge "Tuner: Allow lockscreen launch targets to be customized" 2017-01-26 03:23:31 +00:00
Jason Monk
9726bcabb4 Merge "Tuner: Nav bar tuner" 2017-01-26 02:23:06 +00:00
TreeHugger Robot
ca19e3278b Merge changes I818e8db9,Ie24468be
* changes:
  Added a new API to colorize notifications
  Modified the interpolators when opening an ambient notification
2017-01-26 02:06:06 +00:00
TreeHugger Robot
feaac67227 Merge "DirectReply: Show historic messages" 2017-01-26 01:43:38 +00:00
Jason Monk
d6fa02f473 Tuner: Allow lockscreen launch targets to be customized
Visuals need SIGNIFICANT WORK. Otherwise seems good.

Test: Manual
Change-Id: I911217aca6dba41bf1b49fc3dd19cbfef443e6bd
2017-01-25 20:05:53 -05:00
Mady Mellor
1bfd08f233 Merge changes from topic 'nmr-plugin'
* changes:
  Add snooze to notification menu row
  Add snooze listener so that a plugin can snooze a notification
  Change NotificationGuts to contain a view
  Rename notification settings icon row / gear to notification menu row
  Create + implement plugin for NotificationSettingsIconRow
2017-01-26 00:49:13 +00:00
Selim Cinek
a7ed2c1aaa Adapt the paddings of colored notifications
Colored notifications don't need spaces in between
them.

Test: existing tests pass
Bug: 34469375
Change-Id: Iebc374aa6349a542aee2fbc0998719174266fa21
2017-01-25 15:31:55 -08:00
Selim Cinek
7b9605b79c Added a new API to colorize notifications
Ongoing notifications can now be colorized.
This will use the color provided as the background
and invert most text colors

Test: runtest -x cts/tests/app/src/android/app/cts/NotificationTest.java
Bug: 34469375
Change-Id: I818e8db96c868d8bcde8f28c253efd581eeccaa2
2017-01-25 15:31:53 -08:00
Selim Cinek
5be6f33996 Modified the interpolators when opening an ambient notification
Change-Id: Ie24468be028fd7c894840e3d1fbf42717ad387a4
Test: add low-priority notification and expand
Bug: 34469375
2017-01-25 15:04:57 -08:00
Adrian Roos
2a31841e3d AOD: Prevent KeyguardAffordanceViews from triggering in doze
Fixes a bug where the the affordances on the keyguard could
be triggered on Ambient Display even though they were invisible.

Fixes: 34707183
Test: Enter Ambient Display, drag from bottom right corner. Nothing should happen.
Change-Id: I2deab6d006b645670038d7f658fb0361618b3a91
2017-01-25 14:50:01 -08:00
Adrian Roos
e31f30e946 SysUI: Fix typo in NotificationPanelView
Test: mmm frameworks/base/packages/SystemUI
Change-Id: I8c792382418ea814cc9e4688e50815b05058809f
2017-01-25 14:48:15 -08:00
Mady Mellor
04d7a0fca0 Add snooze to notification menu row
Moves the snooze plugin code into system UI.
Does not include assistant suggestions.

Test: manual
Change-Id: Ie2c51d65381530c9a72cd8a871efdbf0d63da490
2017-01-25 13:43:09 -08:00
Winson Chung
8779446466 Skip resizing the stack when there is no current bounds.
- When initially calling loadConfigurationsAndApply(), the state is
  set to STATE_NO_PIP when there is no pinned stack.  As of change
  ag/1725150, resizeStack no longer fails silently when there is no
  such stack to resize.  This CL skips the call to resizeStack() when
  the PiP mode is set to STATE_NO_PIP.

Bug: 34692144
Test: Try and launch Fugu
Change-Id: Ic539f4431c2f94e7c10520c383fa49157d1d0631
2017-01-25 21:03:59 +00:00
Mady Mellor
3e6552036e Add snooze listener so that a plugin can snooze a notification
Test: manual
Change-Id: Ieb3c0fcae6d832c3e8f5d1b983c52cf4f2ff6239
2017-01-25 12:34:22 -08:00
Mady Mellor
87d7945f06 Change NotificationGuts to contain a view
NotificationGuts is now given a view to display, the notification
management controls have been moved into their own view.

NotificationGuts is provided a view to show via a MenuItem.

This allows configuration via the NotificationMenuRowProvider Plugin.

Test: manual
Change-Id: I68cb23ea2cada30cc6e930fa8c03e0aa4014dfe2
2017-01-25 12:34:11 -08:00
Mady Mellor
761cde1173 Rename notification settings icon row / gear to notification menu row
Test: manual
Change-Id: I3a84c5ea180bd1e53495c5a44a93fa1982056174
2017-01-25 12:23:36 -08:00
Mady Mellor
43c2cd1a40 Create + implement plugin for NotificationSettingsIconRow
This will allow plugins to supply additional menu options to the
menu "behind" a notification.

This CL does not include behavior for when one of these new menu
items is tapped, this will be added in a separate CL.

Test: manual
Change-Id: I322f9f39d33b043bd23dcbede5dd15e6afa73fc1
2017-01-25 12:23:29 -08:00
Adrian Roos
7b9ed0d8fd DirectReply: Show historic messages
Test: Post notification with MessagingStyle.addHistoricMessage(), verify they show up while direct replying.
Change-Id: I26b801d05305a5251fe0d6fae1fe1c24064105a9
2017-01-25 11:56:32 -08:00
Jason Monk
d5e96800d2 Merge "Fix up the tests (yet again)" 2017-01-25 19:55:37 +00:00
Selim Cinek
6825542381 Merge "Started visual hierarchy for min priority notifications" 2017-01-25 19:53:49 +00:00