Commit Graph

63474 Commits

Author SHA1 Message Date
Philip P. Moltmann
19f8283a01 Merge "Don't check apex when granting priv permission unless needed" into rvc-dev 2020-03-28 01:19:17 +00:00
Evan Rosky
36703fbaa3 Merge "Fix crash on devices that don't support multiwindow" into rvc-dev 2020-03-28 00:40:49 +00:00
Kevin Chyn
f825133d01 Merge "Send "early canceled" to privileged clients" into rvc-dev 2020-03-28 00:05:59 +00:00
TreeHugger Robot
0e6240f8b9 Merge "Respect app-ops permission in FileIntegrityService" into rvc-dev 2020-03-27 23:52:59 +00:00
Mady Mellor
b68f9f985f Merge "Make bubble flag removals from notification delegate (sysui) sticky" into rvc-dev 2020-03-27 22:33:57 +00:00
Alex Buynytskyy
437fd07a1f Merge "v4 digest tree streaming" into rvc-dev 2020-03-27 22:26:01 +00:00
Ytai Ben-tsvi
db11409edc Merge "Gracefully handle module death in SoundTriggerMiddlewareValidation" into rvc-dev 2020-03-27 22:25:54 +00:00
Kevin Chyn
0a45b662b0 Send "early canceled" to privileged clients
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
2020-03-27 14:44:08 -07:00
TreeHugger Robot
ed508bb1dc Merge "Send ACTION_PENDING_INCIDENT_REPORTS_CHANGED broadcast with flags" into rvc-dev 2020-03-27 19:43:08 +00:00
Jorim Jaggi
c6690dd46b Merge "Fix bubble transition hanging issues" into rvc-dev 2020-03-27 19:28:30 +00:00
Hongwei Wang
37c91d5ef5 Merge "Start PiP dismiss from SysUI via TaskOrganizer" into rvc-dev 2020-03-27 19:27:08 +00:00
Galia Peycheva
66b1dfe6aa Merge "Change TYPE_DREAM logic to use ACTIVITY_TYPE_DREAM" into rvc-dev 2020-03-27 18:34:49 +00:00
Cody Kesting
bb2144e4c9 Merge "Restrict VPN Diagnostics callbacks to underlying networks." into rvc-dev 2020-03-27 18:22:20 +00:00
Kelly Rossmoyer
41806b2498 Merge "Revert "Fix input infos are inconsistent between WMS and InputFlinger (1/2)"" into rvc-dev 2020-03-27 17:34:49 +00:00
Alex Buynytskyy
06970b9338 v4 digest tree streaming
Framework part. Preparation for adb.

Bug: b/152050621
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest
Test: adb install --incremental megacity.apk
Change-Id: I41838c3ded5c4dc1efcc1ad91930864bd7e6d8d4
2020-03-27 17:05:07 +00:00
Rob Carr
428309a918 Merge "TaskOrganizer: Wait for apps to draw." into rvc-dev 2020-03-27 16:57:03 +00:00
Victor Hsieh
b07f4854b5 Respect app-ops permission in FileIntegrityService
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
2020-03-27 09:23:41 -07:00
TreeHugger Robot
6ae19bbdc2 Merge "Differentiate the default route with the device route" into rvc-dev 2020-03-27 15:50:55 +00:00
Gavin Corkery
da41b0a238 Merge "Preserve failure history when calling startObservingHealth" into rvc-dev 2020-03-27 15:46:12 +00:00
Julia Reynolds
210deda3ef Merge "Limit toasts posted by system" into rvc-dev 2020-03-27 14:36:22 +00:00
Michael Wright
f51b6aa53a Merge "Make vibrator effect queries an @IntDef." into rvc-dev 2020-03-27 13:29:18 +00:00
Paul Chang
9fc4c15318 Send ACTION_PENDING_INCIDENT_REPORTS_CHANGED broadcast with flags
- 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
2020-03-27 20:37:52 +08:00
Galia Peycheva
70b55719db Change TYPE_DREAM logic to use ACTIVITY_TYPE_DREAM
Bug: 151750434

Test: m && flash && check that dream starts normally

Merged-In: Ic4561cd0594d7a3465454221db256499dd06c145
Change-Id: I58a8795f2801b598be5c958b1a854e8f84f31940
2020-03-27 11:26:44 +00:00
Yurii Zubrytskyi
a7b10f5623 Merge "Dynamic args complete removal." into rvc-dev 2020-03-27 07:23:55 +00:00
Sungsoo Lim
ddf140da12 Differentiate the default route with the device route
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
2020-03-27 15:08:32 +09:00
Sasha Kuznetsov
1caed5cd75 Merge "Move gnss files to server/location/gnss" into rvc-dev 2020-03-27 06:03:00 +00:00
TreeHugger Robot
d6e902438f Merge "Avoid flicker by finishing recents animation with config change" into rvc-dev 2020-03-27 05:31:39 +00:00
TreeHugger Robot
b944db72ad Merge "Check permissions in INetworkManagementService#setIPv6AddrGenMode" into qt-qpr1-dev am: 8e6ee0093b
Change-Id: I3f54679c34d7cca0b1190c7ba406f6c6796eb374
2020-03-27 03:20:25 +00:00
Evan Rosky
b8540a0985 Fix crash on devices that don't support multiwindow
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
2020-03-26 20:01:23 -07:00
Louis Chang
95ef069413 Merge "Looking for occluding activity above" into rvc-dev 2020-03-27 02:58:57 +00:00
Winson Chung
fa6a50484b Merge "Skip excluded MW mode tasks from recents and running tasks" into rvc-dev 2020-03-27 02:37:10 +00:00
Wei Sheng Shih
e71b44a8e5 Merge "Promote keyguardGoingAwayWallpaper check condition." into rvc-dev 2020-03-27 01:23:13 +00:00
Philip P. Moltmann
67655a1448 Don't check apex when granting priv permission unless needed
Bug: 148853593
Test: TH
Change-Id: I9e29a568de967ba0f03a1bb4ce171628e736ac84
2020-03-26 17:22:40 -07:00
Jorim Jaggi
7c579cd034 Fix bubble transition hanging issues
- 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
2020-03-26 23:29:18 +00:00
Alex Buynytskyy
686a537376 Dynamic args complete removal.
Bug: b/150470163
Test: atest PackageManagerShellCommandIncrementalTest PackageManagerShellCommandTest
Change-Id: I122f37f210ef9b8b02d565c34245ebeec26d83b2
2020-03-26 16:28:33 -07:00
Philip P. Moltmann
8df5b601a2 Merge changes from topic "MarkAPKInUpdateApexAsUpdatedSystemApp" into rvc-dev
* changes:
  Do not verify APKs out of updated APEXs
  Caches parsed package info for APEX
2020-03-26 23:08:47 +00:00
TreeHugger Robot
dd8e9d8044 Merge "Tweak command-line verb names" into rvc-dev 2020-03-26 22:43:21 +00:00
Ytai Ben-Tsvi
7b6bb40e6a Gracefully handle module death in SoundTriggerMiddlewareValidation
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
2020-03-26 15:29:07 -07:00
Mady Mellor
13f9bc83f9 Make bubble flag removals from notification delegate (sysui) sticky
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
2020-03-26 15:20:06 -07:00
Todd Kennedy
fb590035e1 Merge "Define permission for installer API v2" into rvc-dev 2020-03-26 21:50:17 +00:00
Michael Wright
8d761db1e4 Make vibrator effect queries an @IntDef.
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
2020-03-26 21:39:17 +00:00
Sasha Kuznetsov
94bb0098bc Move gnss files to server/location/gnss
Test: build and run cuttlefish
Bug: 150810542
Change-Id: I0b83ba5850249e3111b80fcb774dee8121d0a048
Merged-In: I7d966b3e26f1d5e5aadf0085d0d0bfe51b9dfc1a
2020-03-26 20:31:08 +00:00
François Gaffie
051829b895 AudioService: default volume group is not restored
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
2020-03-26 19:23:39 +00:00
Robert Carr
de96c8acce TaskOrganizer: Wait for apps to draw.
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
2020-03-26 12:22:21 -07:00
Eric Laurent
fd99a18c12 Merge "[AudioServer] Fix CTS for volume groups based on non public streams" into rvc-dev 2020-03-26 19:19:27 +00:00
Julia Reynolds
dcb4b0ce1f Limit toasts posted by system
Test: manual
Fixes: 151553170
Change-Id: Ica009d078c02eb9205c55ec8927e78e77c569dc0
2020-03-26 11:24:55 -04:00
Riddle Hsu
72d6dc3b4e Avoid flicker by finishing recents animation with config change
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
2020-03-26 22:40:22 +08:00
Louis Chang
34b6831b82 Looking for occluding activity above
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
2020-03-26 22:34:23 +08:00
TreeHugger Robot
c02e0d8cdf Merge changes I23545586,I0512c71e into rvc-dev
* changes:
  Make LogicalLight @Nullable: part two (internal)
  Make LogicalLight @Nullable: part one (external)
2020-03-26 13:59:08 +00:00
Louis Chang
9a5681d890 Merge "Skip finishing activities while performing behind fullscreen check" into rvc-dev 2020-03-26 13:35:13 +00:00