The navigation bar dismissal animation caused by "activity finish"
should be invoked in some cases immediately when the user
cancels authentication. Add a "early user cancel" message
for ConfirmDeviceCredentialActivity to subscribe to. This
message is sent immediately when the user invokes a back gesture or
cancels authentication.
Bug: 148273355
Test: Set up work profile with separate password and biometric
Unlock work profile
Lock screen
Open work profile app
Cancel authentication at various states in various ways
Notice no navigation bar jank
Test: atest com.android.systemui.biometrics
Change-Id: I89c5b5e2782339cae15f936268e6e7b8ad4e5359
Previous permission doesn't consider REQUEST_INSTALL_PACKAGES permission
as an app-ops permission.
Bug: 152009905
Test: atest GtsPlayFsiTestCases
Test: remove appops setup from AndroidTest.xml, the same test failed
Change-Id: Icdbf6bb35fe146c5be8a97e29c4c554b3ce91b5d
- Send ACTION_PENDING_INCIDENT_REPORTS_CHANGED broadcast with flags to let the receiver is allowed to run at foreground priority, with a shorter timeout interval.
BUG: 145790713
Test: Flash and reboot and start bugreport, then consent dialog is shown with a shorter timeout interval.
Change-Id: I495ae483854baa07cad6b992059d351a1a41a5fd
Default route denotes the route that will be selected by
SystemMediaRoute2Provider by default. While the device route denotes the
route that is currenctly active among the phone speaker and wired headsets.
Also, some variables and methods are renamed for readability.
Bug: 149796428
Test: pass MR2 tests
Change-Id: I9133bb106ce6b509147e5f837cc30f229a762088
Only initializes split-screen organizer if device supports it.
Also added some graceful degredation for when organizer binding
fails. Needed to clean-up some things for this though since
now unregistering task-organizers needs to work.
Previously, registering one task-org for multiple windowing
modes worked, but unregistering only cleaned-up one windowing-mode.
So this reworks some of the data-structures to support that
use-case.
Bug: 152401027
Test: Use device that doesn't support split-screen multiwindow.
Change-Id: I7d417721b7b51b20b0c054d9a25f62c443837670
- Update display info before changing visibilities such that we
can always start the transition (okToAnimate returns true)
- Make sure to executeAppTransition
Test: Open Bubble above app that has posted bubble
Bug: 151103701
Change-Id: I62e89a38d7dc061cb45b98d2c44cbc4ee009f714
Previously, when the sound trigger module died (typically, when the
HAL process crashed), the SoundTriggerMiddlewareValidation module
would consider the client's attempt to detach() invalid, since it has
not unloaded the models. However, in this case, it is valid to detach
without unloading them.
Furthermore, dumpsys would not reflect the fact that the session is
dead. This is now fixed as well.
Fixes: 152523828
Bug: 152470531
Test: Manually killing audio server after sound models are loaded and
inspection of the logs and dumpsys.
Change-Id: I96c6bcddb25a67ff440c0375b20036d57e5cd837
Have a bit on NotificationRecord that indicates whether the bubble
has been user dismissed (i.e. notif active without FLAG_BUBBLE).
Checking this bit prevents the flag from being clobbered on subsequent
ranking updates.
Adds tests for the extractor applying the flag correctly based on this bit
and tests for ensuring the record state is set correctly in response to
onNotificationBubbleChanged & updates
Test: atest BubbleExtractorTest NotificationManagerServiceTest
Fixes: 152262407
Change-Id: I4bda79bd04f2d08fa3a3849f45d33d899f4c7fde
Rather than tri-state enums, which aren't as clear and easy to
mis-interpret, switch the return values to an explicit tri-state
@IntDef.
Bug: 150958120
Test: atest VibratorTest
Change-Id: I3a5daa4078a21008664ea14d45a5c5284c1224ed
Volume Group with associated stream type does not have their volume
restored after restart / crash even if correctly stored in
Settings DB.
A guard prevents from restoring it. However, when using volume per attributes,
Settings DB is used, so it is safe to restore volumes for all groups.
This CL fixes this issue by removing this guard.
Bug: 136121584
Test: set Music volume & reboot & dumpsys audio
Ensure indexes matches
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I00aa8c17bffca21a128086fbbbeafffc26521a3b
A Task may appear before the windows inside have finished drawing.
Rather than hand the burden to the TaskOrganizer of waiting for a
drawn signal, we simply defer emitting the leash until the draw
signal is received.
Bug: 152134500
Test: TaskOrganizerTests
Change-Id: I776b33fc637ac7f6d4ba2fe60b93cedf75ba19c0
When finishing recents animation, the surface of closing app
will reparent to the original parent, and then the transition
TRANSIT_NONE executes directly that sets the closing app to
invisible and notify the opening app is ready. If the opening
app is in different orientation, DisplayContent#mWaitingForConfig
will be set. So the next round of surface traversal is skipped
and the invisible state hasn't applied to surface that causes
flicker.
With performing surface placement at the end of finishing recents
animation if there still has unfinished layout, that makes sure
any state changes of the window will be updated to its surface.
Also removed unused parameter recoveringMemory.
Bug: 151727009
Test: Enable fixed rotation transform and gesture navigation,
swipe to home from a landscape activity.
Change-Id: I322fe376b0fe79ab58cb12ff99fc9749e00ef0c5
Get activity from top to bottom order starting from boundary
would get activity that is below the one we are comparing.
Looking for occluding activity above this one instead.
Bug: 151304143
Test: start the app and sign in
Change-Id: I05a4b6d65b0de6a362f8ed9c75a12b37146a1653