The receiving app may not have the needed permissions to see the
screenshot when launched.
Test: builds, boots, no longer logs
Bug: 33275110
Change-Id: I8b9b4fea2f78f37af543a90309cb34994366850b
Refactored functionality of home stack (HOME_STACK_ID) in the code
base to home stack and recents stack (RECENTS_STACK_ID). Also changed
function and variable names from homeStack to homeOrRecentsStack.
Differentiating home and recents stack will allow readablilty and
managing logic between home and recents stacks. For example, for
multi-window minimized dock state, the home and recents stacks can
be set to different rects where the home stack needs to be a fixed
large size while the recents stack is hidden and the dock stack is
animating to be minimized.
Fixes: 32839371
Test: ./run-test android.server.cts and manually tested split and
rotation
Change-Id: I7603359c2dc20e35924664178634eb761e0367a6
* changes:
Fixed the clipTopAmount when transforming into the shelf
Fixed the backgroundclipping with the clipbottom amount
Improved the clipping of notification groups
Fixed a bug with the maximum number of notifications
If the device has a secure lockscreen and the device'
SIM card is removed, lock the device.
Change-Id: I5b0deea8851b38781059732a3cf6fa0a4a00e3ca
Fixes: 30997251
Test: set up lock screen, insert SIM card, unlock phone, remove SIM card, observe that screen is locked
Revert addition of STREAM_ACCESSIBILITY as R.array.volume_stream_titles
needs to contain STREAMS.length entries in all languages,
whereas this had only been done for the default system language.
Test: boot in a different language than en-US
Bug: 33260083
Change-Id: If869c5f913bb42b94eeb3fa2e1b6f575a6f7ca70
Test: Enable config_dead_zone_flash, make sure deadzone gets drawn
on the right side in seascape/landscape/portrait and deadzone is
consuming clicks on the right side.
Change-Id: Icc88967cfa7bf8ba7f6f3b797ca001eba78e5cdc
Fixes: 32870901
With this CL, a disclosure text is shown on the Keyguard screen when
a Device Owner is managing the device.
Bug: 32692748
Test: runtest --path frameworks/base/packages/SystemUI/tests
Change-Id: I7a48df7dc010c39b2db94fcd26b75313a7ceee08
An update to the icons wasn't applied if the shade was currently
collapsing.
We now ensure that the two states are always in sync.
Test: 1) download AndroidBvtTests.apk from data/app from build artefacts
2) adb install -g -r pathToAndroidBvtTests.apk
3) adb shell am instrument -w -e class com.android.androidbvt.SysUINotificationShadeTests#testBundledNotifications com.android.androidbvt/android.support.test.runner.AndroidJUnitRunner
Bug: 32437839
Change-Id: I26c097bdda251b4dfddb6dbf0deee74c30560873
The clipTopAmount shouldn't apply to notifications in the shelf,
since otherwise the background may flicker.
Change-Id: Ifac2b821896eaaeea81e44847579d8ec0ced816d
Test: expand notification, such that the background appears when being gone before, observe no clipping.
Bug: 32437839
The clipping was applied after the minimizing to the height,
but it should have been applied before.
Change-Id: I80140e91dd08505feb8fd2256fb6ff4c7e31a139
Test: Add group, expand it, observe correct clipping of the background on the bottom
Bug: 32437839
Groups now correctly respect the clipBottomAmount and
animations work much better when swiping things away.
Also removed the group measuring logic when expanding,
Since we're now not shrinking the first notification anymore!
This also fixed a bug where a child could be invisible
Test: Add group, swipe children away
Bug: 32437839
Bug: 33203156
Change-Id: I255aa9695086e64eb10c7dccdc6122d8a8572bb5
The shelf size was accounted for twice.
Test: add notifications, observe overflow behavior on lockscreen
Bug: 32437839
Change-Id: I2c372243cbc4fcd9223715f398f3ec233b87f9db
Introduce a new internal flag MATCH_ANY_USER for genuine uses
of searching through all apps on the device.
Some temporary accommodations for Launchers that reach across
to the work profile until we have a new LauncherApps API to do
that officially.
Bug: 31000380
Test: CTS tests added
Change-Id: I2e43dc49d6c2e11814a8f8d1eb07ef557f31af34
The shelf doesn't need to be reinflated but should
reload its properties. Recreating lead to a bunch
of crashes.
Change-Id: I4628e0469f74c1a0201f7b1e6e86d187ad0e548d
Test: Change font size, observe no crash
Fixes: 33189282
Test: Unlock with fingerprint, observe icon
Test: Unlock with fingerprint while collapsing panel, make sure
icon reappears after 800ms.
Change-Id: I8b081445bdaaa68741e4bab57a6f79f6e12f1d54
Fixes: 30507748
* changes:
Improved the transformation to an icon further
Fixed a bug where the last notification could be invisible / faded
Adapted the shelf color when transitioning
Fully removed the bottom stack
Fixed a bug where the first notification was cut off
Fixed a a bug where clear all was invisible
Fixed a flicker when expanding quicksettings on the lockscreen
Added appear and disappear animations for the shelf icons
Implemented a nicer transition when the icons overflow
Added the possibility to animate X and refactoring
Modified heads up experience
Fixed a bug with not-gone notifications
Adapted the animation to the full shade
Fixed the lockscreen positon with a single notificaton
Made heads up work again
Fixed the transformation into the shelf
Used different curve for the icons when expanding
Refactored the stack animation logic
Refactored shelf transformation code to support animations
Improved the transition into the statusbar
Adapted the icon transformation into the shelf
Fixed the appearance of the shelf on the lockscreen
Introduced the Notification shelf
Refactored the viewstates for more modularity
The content now shifts away more and without fading out.
Change-Id: I02b53400a68dc68ef49bc2bd830b51bced5a6ba1
Test: Add notification - test merging behavior
Bug: 32437839
if the last notification was small, it was already fading out in
the resting state.
Test: add a small notification without text and title and have it as
last notification in the shade. Observe that it's not faded out.
Bug: 32437839
Change-Id: I4acd429e363185276fe1f472ecbeddae8f56e45a
The shelf now changes colors correctly when
transitioning between low and high-priority
notifications.
Test: manual, add low-prio notification
Bug: 32437839
Change-Id: Iab51f3f1b1b2f446b1c00c80ecabcc4b00b0064a
Moved the ambient notifications into the shelf
instead of having them behave with their own
physics. Previously the ambient notifications
were stuck in the old world behind the shelf,
but this doesn't make sense anymore.
This also fixed a bug where the notifications were
wrongly positioned on the lockscreen since the shelf
counted as a view that wasn't gone.
Test: add low-priority notifications, observe scrolling
Bug: 32437839
Change-Id: I3921ea9f80a06f1b6330315423b012174269ac8e
When dragging down on the lockscreen, the first notification
would be cut off.
Test: drag down on a single notification on the lockscreen
Bug: 32437839
Change-Id: I4796661e63a94e598e5489377d7ecd67b35e6e88
The notifications flickered open when expanding quicksettings
on the lockscreen.
Test: add notifications (>4) expand quicksettings
Bug: 32437839
Change-Id: I12359ec374b281cb11816c7259c78715aedded43
The icons now animate in and out of the shelf nicer.
Also fixed that the regular animation was played when in the shelf.
Test: Add notifications, observe animation in statusbar
Bug: 32437839
Change-Id: Id003fee1508b8c18a933d38faf93541be21baffd
The overflowing icons are now represented as dots and
animate in and out nicer.
The shelf also animates much nicer from the regular statusbar
size if there are a lot of notifications.
Test: Add a lot of notifications, observe them nicely overflowing into dots
Bug: 32437839
Change-Id: I5906c076bbf5d48cbabdbacfd21234bed55c6caa
A viewstate can now animate its X value.
This also refactors the animation logic such that
an application when an animation is running will
update the existing animation nicely.
Test: manual, observe views animating in X
Bug: 32437839
Change-Id: Ic091d87e530af793281ca3f2b1e9370ff5dac236
For example if user 0 has no lock screen set, but the work user does,
and the "hide all notifications while locked" field is set, we should
hide those notifications because they are supposed to be hidden behind
the work lock screen.
Fix: 32585026
Test: statusbartest/NotificationTestList.java
Change-Id: I29243f683fd4ef2d5fc71a40cd1e37ee29c5679c
VolumePolicy: define two a11y modes: 1/ legacy where
a11y volume aliases to media volume, 2/ a11y where
the a11y volume is independent from any other stream
type volume.
Refactor accessibility service listening to accomodate
communicating to the volume controller when the
a11y service is running.
Make accessibility stream alias conditional on a11y
service running. Reflect the behavior in the
volume controller.
Test: enable Talkback and verify logs in Vol controller
Bug 30448020
Change-Id: I80535ba259a22b6d93e62a7b3ca462a19d4c84b7
This only adds an animation when transitioning into recents. "Out"
animations will come later as they need to be run in parallel with
launching the activity not to introduce any latency.
Test: Open recents on sw600dp device, check recents layout/animations
Bug: 32101881
Change-Id: I367f8e5c106cd06d2a7833c165ecb960a7821ed9
The flag is a bit clunky for most cases, and a method is more
clear.
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardTests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardLockedTests
Test: runtest systemui -c
com.android.systemui.keyguard.DismissCallbackRegistryTest
Bug: 30961403
Bug: 27422134
Change-Id: I39de90c7cfecd99350a74f72cd76418e337f2b79
When dragging down, the shelf is now hidden behind the notification
until it was fully revealed once.
Test: Add heads-up, drag down on it.
Bug: 32437839
Change-Id: I85133855428777a606a3039e26acf53e6e63a3bb
Notifications with a GONE parent broke the whole scrolling model.
The shelf is now always placed at the end instead and the number
of GONE views are measured.
Test: Add a group with a single notification and see that nothing jumps
Bug: 32437839
Change-Id: I27a8c0b46eb8f329f23ad46c3995a19fb839caff