- Adjusted the height
- Gave the asset a 90% alpha and set it as the background programmatically
Test: manual, have a PIP drag it around, note the gradient appearance
Change-Id: I7bc3262f6813f737da62201cdce6a14046f3e754
Test: Check tuner for items, also try moving PIP around note it doesn't
minimize, also try long drag to dismiss, note it doesn't dismiss
Bug: 37476193
Change-Id: I1ac1abd9c75d40bd84f59dab8aba5cdb98cd59bb
Android Auto does not want notificaitons that have actions to be
expandable. Rather, they should always be in their expanded state. The
only exception to this are grouped notifications, which should be
collasped by default. They also can still be expanded.
Modify the code to allow this to be changed. In addition, modify some of
the animation so that the dividers so not flash when the notification
group is expanding.
There is also a change to bring the header of the notification to the
front so that the child notifications do not overlap it. This is because
in Auto, the app name and icon are not displayed in the header, but the
expand button is still there.
Test: booted on phone and Android Auto headunit.
Bug: 33210494
Change-Id: I0a121a0eaee6159ccea9961721abe92603484a17
These need a bit more work like length control and animations, etc.
but this is a decent start.
Test: visual
Change-Id: I750d777b2b4a19f8c586066712f5a3f7e79befd6
- Better explanations of some strings.
- Fix to use the right package when an item is pressed in
the foreground services dialog.
- Improve java docs on Service.startForeground().
Bug: 37925387
735566 lv - Android - [Source] Context unclear or missing:
Apps running in background
Bug: 37925888
735566 lv - Android - [Source] Context unclear or missing:
Tap for details on battery and data usage
Bug: 37897953
735566 gl - Android - [Source] Context unclear or missing:
LEFT_SIDE, RIGHT_SIDE
Bug: 37943079
Music is dying mid playback
Test: manual
Change-Id: Ied41932c61f59335bd18dfba3fcb13af28a0bddd
Bug: 37249867
Test: Manual test (checked that the notification UI is shown when the
PIP starts, and dismissed when the PIP is closed. The 'DETAILS' and
the 'DISMISS' button in the notification also worked.)
Change-Id: I12e385b51f834991a0115ce5ba7dd98180577adb
...hide themselves
The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user. We ensure they are shown to the user for at least 30 seconds
(configurable). If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.
While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't. By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior. There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.
Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.
Bug: 36891897
Test: manual
Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
Notes:
- Subclasses of KeyguardIndicationController can now provide indication text to be displayed when trust has been granted.
Test: runtest sysui
Bug: 37487319
Change-Id: I030954d51a5c3000c45e465fcd261e4887520aa6
Still needs a bunch of code cleanup, but this will get a version
into the tree for testing.
Test: visual
Bug: 37013646
Change-Id: I29800b57d80ea120c691663392f368c17325ab54
the quick settings panel.
Also, introduce the option to allow the clipping that the panel by
default does to be disabled. This allows the items in the panel to be
swiped beyond the edges of the panel.
Test: booted up on AAE headunit and Angler device.
Change-Id: I8d8f501f98fea5c1c85541099df4ca34d10fc648
Fixes: 37270258
Test: Double tap, make sure device does not wake up to lockscreen, only to ambient display
Change-Id: Iaf0c3bfb5dcf566adae7f37b51c866d92bce7a1d
This is by default turned off and is behind a tuner flag.
Allows the PIP to be dismissed if it is flung towards the bottom center
of the screen and the finger is released within the bottom area of the
screen.
Test: Manual - enable tuner setting, have a PIP, position it at top of
screen, long- fling it towards bottom center of screen, it dismisses.
Bug: 35358628
Change-Id: I2d3d50093f6523c7bb321e0486dab360095a398e
The older implementation didn't scale well with an
increasing number of users, it just kept making the
user pods smaller and smaller. Replace the custom
GridView with a custom ViewPager with a paging
indicator.
Also remove all the text from the screen since we
don't need it anymore.
More changes to follow.
Bug: 36454400
Test: Created more users than can fit on one screen,
booted up and switched between the users.
Change-Id: I6de323fbaa6bc4cefc2bdb73a4c68c4f092a08a6
There are two clippings being changed. The first is the shrinking of the
height when a notification is being scrolled offscreen. This effect is
not noticeable on phones/tablet, where the background is a rectangle.
However, for Android Auto, the background is a rounded rectangle. By
allowing the clipping to be disabled, the notification now appears to
scroll off-screen and not that its height is shrinking.
The second modification is to allow the outline of the notification to
have rounded corners. This allows the outline to clip its contents along
the rounded edges.
Test: booted up on phone and Android Auto headunit
Bug: 33210494
Change-Id: Id41a57c9164cabe554b4c5b4d713e9d3cb805b09
Changes include:
- Allowing the margins between header items to be customized.
- Allow expand button to be laid out at the end of the header view.
- Ensure the media header height can be customized.
- Allow entire header to be clicked to expand the notification rather
than just the notification button.
Also, fix how the color is resolved from the header. It currently checks
the color directly on the expand button. However, this color can simply
be retrieved by the header's getOriginalNotificationColor() method.
Test: booted on phone and Android Auto headunit
Bug: 33210494
Change-Id: I4bb3ff42d23b44de28dc1196799a7c3bda40bbac