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
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
- 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
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
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
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
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
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
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
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
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
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
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