Commit Graph

13105 Commits

Author SHA1 Message Date
Winson Chung
2c02bd1cf0 Merge "Disable fetching of thumbnails when using snapshots." 2017-02-14 23:11:05 +00:00
TreeHugger Robot
e4a2476ea9 Merge "Fix status bar showing on lock screen on boot" 2017-02-14 22:34:22 +00:00
TreeHugger Robot
291c9078e6 Merge "Percentage text now sits alongside the battery icon." 2017-02-14 21:55:38 +00:00
TreeHugger Robot
bafbc762cc Merge "Fixed an issue where children dissappeared the wrong way" 2017-02-14 21:48:29 +00:00
TreeHugger Robot
ffc9c74013 Merge "The transformhelper now also transforms gone views" 2017-02-14 21:19:22 +00:00
TreeHugger Robot
8b39573f15 Merge "Heads-up notifications of increased height behave better" 2017-02-14 21:07:22 +00:00
Jason Monk
1e5ba5d087 Fix status bar showing on lock screen on boot
Fix dispatching of disables through StatusBar.

Change-Id: Iee5e5d8cdf64f06b28986ff599aa3479c712980f
Fixes: 35200453
Test: visual
2017-02-14 15:48:57 -05:00
Robin Lee
6f8f019571 Merge "Redact GridTaskViewThumbnail" 2017-02-14 20:28:39 +00:00
Dan Sandler
055bb61426 Percentage text now sits alongside the battery icon.
The old embedded percentage (introduced in change I6a3e7409) is hard
to read at status bar size, so we now draw it in a separate TextView to
the left (start) of the battery gauge. (The embedded code remains so
that it can be used by other places where the battery is drawn larger.)

The old system setting "status_bar_show_battery_percent" is still used
to control whether this percentage is shown, but note that it now
applies only to BatteryMeterView (i.e., the status bar) and not other
usages of BatteryMeterDrawable.

Bug: 32539932
Test: (manual) adb shell settings put system status_bar_show_battery_percent 1
Change-Id: Id298dba544f594b11269539284a2e8042fd4780b
2017-02-14 14:47:28 -05:00
TreeHugger Robot
7776844d77 Merge "SysUiLeaks: Turn leak reporting because of known leak" 2017-02-14 19:16:53 +00:00
Robin Lee
3cb867326a Merge "Theme work lock activity with the task primaryColor" 2017-02-14 18:38:14 +00:00
Robin Lee
7e9a26fb18 Redact GridTaskViewThumbnail
This inherits from TaskViewThumbnail but has its own drawing logic that
skips work redaction for locked users. This is required by CTS Verifier,
so it needs to be done here as well.

Test: visual, instructions --
Test: (1) set up work profile on ryu with a password
Test: (2) turn screen off and on again
Test: (3) go to recents, verify work apps redacted with correct color
Test: (4) open a work app, unlock, go back to recents, verify work apps
Test:     are not redacted any more.
Bug: 34836435
Change-Id: I2239fe4c035332a9c9b93d2d2b1c354f204358a8
2017-02-14 18:28:25 +00:00
Manu Cornet
ca170752d8 Merge "2D Recents: Fix a glitch during task relayout after a dismiss" into nyc-mr2-dev am: f47658f120
am: ec42e34422

Change-Id: Ifc42633a2d1b9250e7b5183338687a907e53035c
2017-02-14 18:21:27 +00:00
Peeyush Agarwal
1ea19d3463 Merge "Fix KeyboardShortcuts show" 2017-02-14 17:10:02 +00:00
Adrian Roos
fb2bb3f099 SysUiLeaks: Turn leak reporting because of known leak
Test: use device for a while, observe that no notifications are posted
Bug: 35345376
Change-Id: I8814cb540f4d8d840312e29fce4a28fee317e787
2017-02-14 17:44:15 +01:00
Manu Cornet
ec42e34422 Merge "2D Recents: Fix a glitch during task relayout after a dismiss" into nyc-mr2-dev
am: f47658f120

Change-Id: I664be0dd3e1f2e6cf2d7dc94613b0efcaf6887a9
2017-02-14 15:30:21 +00:00
TreeHugger Robot
9031554c25 Merge "AOD: show AOD1 instead of AOD2 on double tap" 2017-02-14 12:28:35 +00:00
Ricky Wai
89c376ed66 Merge "Change "Long pressing work mode in quick settings" to managed profile settings" 2017-02-14 11:14:12 +00:00
TreeHugger Robot
171ef98df6 Merge "Fix interaction w/ work profile & last chosen" 2017-02-14 01:24:19 +00:00
Winson Chung
f88baf8b17 Disable fetching of thumbnails when using snapshots.
- We don't keep the snapshots on the SysUI side so this is just a wasted
  call to load them (the rest of the metadata can still be prefetched
  though).

Test: Launch new tasks and ensure that we aren't fetching task snapshots
      without entering overview.

Change-Id: I1fe01a162f15e4f75b333e7e1bbe32d07e5d0b8d
2017-02-13 16:11:40 -08:00
Hakan Seyalioglu
13405c5529 Fix interaction w/ work profile & last chosen
bug: 34677697
Test: New unit tests added
Change-Id: Ibb5c804c16a758ff041ce7165fda561d903b5f31
2017-02-13 15:24:58 -08:00
Robin Lee
3c82d3d5bf Theme work lock activity with the task primaryColor
This involves adding another system RPC, getTaskDescription(taskId)
gated on MANAGE_ACTIVITY_STACKS permission.

Bug: 31001762
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/WorkLockActivityTest.java
Change-Id: Ieb996f7fab5bc79737df570e35733551118118d3
2017-02-13 23:22:34 +00:00
Geoffrey Pitsch
33366c31a3 Merge "Fix reference to old string in Inline controls." 2017-02-13 22:17:57 +00:00
Geoffrey Pitsch
1f7fb1a30c Fix reference to old string in Inline controls.
Test: runtest systemui
Change-Id: Idddba349f38fb08415b4206538f43ab1cccdc34f
2017-02-13 16:57:40 -05:00
Selim Cinek
ef8c225704 Fixed an issue where children dissappeared the wrong way
Because we were comparing relative to absolute positions,
we need to calculate the next view the right way.

Test: add children in group, remove the last / middle one
Fixes: 35193074
Change-Id: I415a978b84d528ded402b99b872769b98aa49ec0
2017-02-13 13:51:40 -08:00
Selim Cinek
00708abfe6 The transformhelper now also transforms gone views
Because a notification's views could change from GONE
to VISIBLE without notifying the transformhelper, we're
now adding the transformed views even if they are gone
at the resolution time.
This fixes a bug where the Time would fade in / out
properly.

This also fixes another bug where the time could remain
invisible.

Test: add notification group without any header text and observe smooth fading when expanding group
Change-Id: I1d6b0126df1550a71baa2e7729bdf9664b934b02
Fixes: 35127160
2017-02-13 13:51:39 -08:00
Selim Cinek
87ed69bd6b Heads-up notifications of increased height behave better
In the shade, the heads-up version when their height is
increased now behave better and the notification shows more
then a single message as well.

Test: add heads-up for messaging style notification while shade is expanded
Bug: 34469375
Change-Id: Ia3475eec5b4474aae950ef0eb84afb28689245ae
2017-02-13 13:51:37 -08:00
Winson Chung
4de191dc1b Merge "Adding PipManager dumps." 2017-02-13 20:40:35 +00:00
Selim Cinek
2698d1d1e8 Merge changes Ie3736d80,I52444f4e
* changes:
  Improved collapsed messaging notifications
  Fixed a bug where the heads-up couldn't time out
2017-02-13 20:37:48 +00:00
Selim Cinek
b7d23750f7 Merge "Moved the scrolling logic away from the onDraw" 2017-02-13 20:36:46 +00:00
Winson Chung
29a786590f Adding PipManager dumps.
Test: adb shell dumpsys activity service com.android.systemui
Change-Id: Id647833f1b4dcb6226517c058d17d1812f022671
2017-02-13 10:23:04 -08:00
Geoffrey Pitsch
7c4f39b856 Merge "Updated Inline Notification Controls" 2017-02-13 17:47:33 +00:00
Adrian Roos
b2a872906c AOD: show AOD1 instead of AOD2 on double tap
Bug: 30876804
Test: Have a notification showing, turn off screen, double-tap to Ambient Display, observe that device shows only the time and notification icon, not the expanded notification
Change-Id: Ic9b9fc392b67b0411588c1287cdf61ca2397990d
2017-02-13 16:58:14 +00:00
Adrian Roos
4f2b3fe0a1 Merge "SysUiLeaks: Add GarbageMonitor" 2017-02-13 15:06:15 +00:00
Adrian Roos
9125068a99 SysUiLeaks: Add GarbageMonitor
Adds a service for monitoring the amount of tracked garbage.
If it exceeds reasonable levels, a notification with a leak
report is posted.

Test: runtest systemui
Change-Id: Ib55281f2aac557743b97c46bc616688261c72e9c
2017-02-11 21:57:10 +01:00
Jason Monk
a8e72d463c Merge "Move Keyguard to SystemUI" 2017-02-11 00:37:39 +00:00
Manu Cornet
551e80c34f 2D Recents: Fix a glitch during task relayout after a dismiss
This delays the resizing of the focus frame until all task views
relayout animations have ended.

Bug: 35258018
Test: Took before/after screencasts on local sw600dp device
Change-Id: Ifbf8932f4141bf90a3dfef20b2938d6801383706
2017-02-10 14:42:40 -08:00
Geoffrey Pitsch
df44b606f3 Updated Inline Notification Controls
Removed old xml resources, strings, dimens, etc
Different behavior when sent from the default channel.
Display how many notification categories are used by the app.
Group label when channel is associated with group.
Add package icon.
Fix tap-away-to-save behavior

Test: runtest systemui
Change-Id: Ib41a536a5c4e7c7747a2453eddc3b4b4b99ffa7a
2017-02-10 13:24:54 -05:00
Jason Monk
23f85ec14d Move Keyguard to SystemUI
Test: make
Change-Id: I3abb67e2b022737d2aa0226bb07f3966ad68fff7
2017-02-10 07:45:58 -08:00
Peeyush Agarwal
64f0cae9f4 Fix KeyboardShortcuts show
The keyboard shortcuts should be shown only if they have not been
dismissed already (by using the dismiss method). Check that sInstance is
not null just before displaying the shortcuts popup.

Test: Manual
Bug: 35163857
Change-Id: I17079bc893808c84ccee8e9a6e31130921b7db28
2017-02-10 12:53:09 +00:00
TreeHugger Robot
946346e872 Merge "Fix tinting and sizing of tuner lock screen shortcuts" 2017-02-10 06:36:08 +00:00
Jason Monk
ca2156890a Fix tinting and sizing of tuner lock screen shortcuts
Test: visual
Change-Id: I13f0281d38cd4d73322e9752d9bca36be2412917
2017-02-09 20:25:20 -08:00
Adrian Roos
09c43c8743 Dependency: Make non-class dependencies type-safe
Introduces a new DependencyKey<V> type which allows
referring to non-class dependencies in a type-safe
way. This also improves performance because we no
longer need to perform string comparisons.

Test: runtest systemui
Change-Id: Idc948855a85a1899be41e7f0170c40e73e525024
2017-02-09 21:23:04 +01:00
TreeHugger Robot
34895c404b Merge changes I348c18dc,I0c33d519
* changes:
  SysUiLeaks: Detect leaks in TunerService
  SysUiLeaks: Detect leaks of NotificationData.Entry
2017-02-09 15:45:09 +00:00
TreeHugger Robot
5706614868 Merge "SysUiLeaks: Add LeakDetector" 2017-02-09 14:03:22 +00:00
Adrian Roos
6b2852e03f SysUiLeaks: Detect leaks in TunerService
Bug: 34932615
Test: manual
Change-Id: I348c18dc4e5772637828c1f53f15c84ad4c39485
2017-02-09 10:33:04 +01:00
Adrian Roos
f6d562b83f SysUiLeaks: Detect leaks of NotificationData.Entry
Bug: 34932615
Test: manual
Change-Id: I0c33d5194fe94e99b7bebe3a04a3730e41575080
2017-02-09 10:33:03 +01:00
Adrian Roos
e1e0b483be SysUiLeaks: Add LeakDetector
Bug: 34932615
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
Change-Id: Id4a9cbdaddc83ca3e25923eec33d53b6761c54cb
2017-02-09 10:33:02 +01:00
TreeHugger Robot
47c4c94100 Merge "Work on separating out the status bar management" 2017-02-09 02:48:36 +00:00
TreeHugger Robot
dcd208d167 Merge "Fixing issue with play/pause buttons being inverted." 2017-02-09 02:17:17 +00:00