Commit Graph

63942 Commits

Author SHA1 Message Date
TreeHugger Robot
45e7091f37 Merge "Apply rotation animation to restore rotated activity" into rvc-dev 2020-04-14 01:27:54 +00:00
TreeHugger Robot
159904ef21 Merge "Log more info on StorageManagerService.unlockUserKey()" into rvc-dev 2020-04-14 00:45:36 +00:00
Evan Rosky
71d6e68736 Merge "Make PINNED mode alwaysCreateStack" into rvc-dev 2020-04-14 00:04:06 +00:00
Hongwei Wang
aaa747d223 Merge "Ensure TaskOrganizer works for newly created pinned stack" into rvc-dev 2020-04-14 00:00:49 +00:00
Evan Rosky
688c838ff4 Make PINNED mode alwaysCreateStack
Now that we don't have a re-used pinned stack anymore, this is
how it should be. This also helps CTS align closer to actual
app usage.

Also don't perform transactions on detached containers (but log
an error). This is because CTS triggers various pip events which
fire callbacks after the test tears-down.

Bug: 153201813
Test: PinnedStackTests pass
Change-Id: I57bf4db35f7c05c18a69d2bf39b66ccca07d39f2
2020-04-13 14:22:05 -07:00
Hongwei Wang
e8e32863f4 Ensure TaskOrganizer works for newly created pinned stack
Steps to reproduce the bug:
- Restart the device
- Open Duo app and make a call
- When in call, try entering PiP

Duo application contains multiple activities and we create a new stack
from its top activity when moving it to pinned mode. This newly created
stack does not carry on the existing PictureInPictureParams, nor it is
marked as visible. Therefore, no onTaskAppeared would be sent to the
task organizer.

Also in this change:
- Removed aspectRatio and sourceHintBounds used to be passed into
  RootWindowContainer#moveActivityToPinnedStack, they are used in
  moveActivityToPinnedStack and one should refer to the
  PictureInPictureParams set on ActivityRecord
- Added a null check for existing token when onTaskInfoChanged is
  invoked in PipTaskOrganizer, it should be a fatal error that
  onTaskInfoChanged is called ahead of onTaskAppeared

Bug: 152933995
Test: manually enter/exit PiP mode for Duo app
Test: atest RootActivityContainerTests
Test: atest ActivityRecordTests
Change-Id: Ifa9ad8768ba47ce043b8dd86cadc729931edcb14
2020-04-13 14:09:53 -07:00
TreeHugger Robot
bc65eb2fb6 Merge "Fix moveToBack behavior in organizer-created root tasks" into rvc-dev 2020-04-13 20:59:05 +00:00
Alex Salo
f9551ba4e1 Merge "Fix adaptive_sleep resetting after reboot" into rvc-dev 2020-04-13 20:39:58 +00:00
TreeHugger Robot
de659b3b13 Merge "Only grant visibility of protected broadcasts to system" into rvc-dev 2020-04-13 19:51:19 +00:00
Evan Rosky
36b06cdbc4 Fix moveToBack behavior in organizer-created root tasks
Now, while moving a task and its parents to back, if it
runs into a createdbyorganizer task, it will stop there and
reparent itself into whatever container the home-stack is
in.

Bug: 153081856
Test: added tests to ActivityStackTests
Change-Id: I0be24bd2e753a58bea9bf00724bc4131836b6011
2020-04-13 12:35:20 -07:00
Alex Salo
e0d25ed36f Fix adaptive_sleep resetting after reboot
When device is locked after reboot - packageManager cannot resolve
the service. Instead, rely on the configuration that is provided
at the sign time. SystemServer relies on this as well, so it is
consistent.

Bug: 151176054
Test: manually
Change-Id: Ifc1c078e3d774d63b8aeec2fe6b332305e47847b
2020-04-13 19:30:45 +00:00
Sudheer Shanka
fd1d347f87 Merge "Include reason in the logs when data saver state changes." into rvc-dev 2020-04-13 19:01:29 +00:00
TreeHugger Robot
01f473ab78 Merge "[permission manager] fix permission check logic" into rvc-dev 2020-04-13 18:38:26 +00:00
Evan Severson
d4d8848f29 Merge "Make one-time permission sessions continue over service restarts" into rvc-dev 2020-04-13 18:32:21 +00:00
felipeal
4efe9a88ec Log more info on StorageManagerService.unlockUserKey()
Bug: 153875732
Test: adb logcat

Change-Id: Ib3de8847081b186c99078d9daa7e49e6eadd445d
2020-04-13 10:36:57 -07:00
Sudheer Shanka
90d0243273 Include reason in the logs when data saver state changes.
Bug: 145453007
Test: manual
Change-Id: I27f21aea672e82ab8ded6cfc74820ca2d108a46c
2020-04-13 10:07:39 -07:00
Winson Chung
3908fb22b6 Merge "Send task description changed though task org taskInfoChanged" into rvc-dev 2020-04-13 16:58:07 +00:00
Ytai Ben-tsvi
8ef3e05ccc Merge "Reboot the soundtrigger HAL on failure" into rvc-dev 2020-04-13 16:22:52 +00:00
Riddle Hsu
d16620e828 Apply rotation animation to restore rotated activity
Consider the steps with fixed rotation enabled:
1. Sensor reports landscape and the foreground is a fixed
   portrait activity, so the display is portrait.
2. Launch a rotatable activity so the activity is created
   in landscape. Before the remote rotation completes, the
   display hasn't applied the rotation.
3. Sensor reports portrait and then the remote rotation is
   done. Display is still portrait but the rotatable activity
   has shown as rotated.

To avoid flickering when updating the configuration of the
activity from landscape to portrait, a rotation animation
with customized original rotation is still applied to cover
the change.

Fixes: 151597653
Test: ActivityRecordTests#testActivityOnCancelFixedRotationTransform

Change-Id: Ie897885782aaa1411113bb7fdbac6c4f33fdc0ef
2020-04-13 18:08:36 +08:00
Andrii Kulian
bba1891e80 Merge "7/n Use display area instead of display id in ATM methods" into rvc-dev 2020-04-11 16:33:24 +00:00
TreeHugger Robot
01cc8a3372 Merge "Set transport types to resolver" into rvc-dev 2020-04-11 14:25:27 +00:00
Winson Chung
1df39e2cf6 Send task description changed though task org taskInfoChanged
- This removes the need for a separate task stack listener and aligns
  with other task info change properties
- Also implement equals/hashCode for the token so we can use it in
  containers

Bug: 148977538
Test: atest TaskOrganizerTests

Signed-off-by: Winson Chung <winsonc@google.com>
Change-Id: Ie035e6389fdbdc374c1a4b4a684758efa0cb7a9e
2020-04-11 00:01:05 -07:00
TreeHugger Robot
18b8b2d75e Merge "Fix typo in stack traversal" into rvc-dev 2020-04-11 06:55:29 +00:00
chenbruce
5d95562622 Set transport types to resolver
For a given network, resolver doesn't know what transport types are.
Therefore, when a new network is created or transport types are changed
in a give network, transport types will be updated and sent by calling
setResolverConfiguration(). In the same time, if link properties or
transport types are null, setResolverConfiguration() won't be called.
The original behaviors of setResolverConfiguration() aren't changed.
Only increasing one new behavior that when a given network has transport
type change, calling setResolverConfiguration() directly and resolver
updates the transport types for that given network.

Bug: 143732914
Test: atest FrameworksNetTests
      atest FrameworksNetIntegrationTests
Change-Id: I6527cde0e177ba08c886576131b35fc769c2bb53
2020-04-11 14:39:59 +08:00
Andrii Kulian
1cb59dd027 7/n Use display area instead of display id in ATM methods
Bug: 152116619
Test: WM CTS and unit tests
Change-Id: I2267fdb7fc0e6e87ab8c3e9794de37947f2a70e7
2020-04-10 18:25:21 -07:00
Yurii Zubrytskyi
207f1d3036 Merge changes I668e8664,Ia44f7e45 into rvc-dev
* changes:
  [incfs] Fix a crash in worker thread calling JNI
  [incfs] Make native library extraction async
2020-04-11 01:24:45 +00:00
Youngjun Kwak
0abf11e202 Merge "Implement AAOS-specific KeyguardViewController and decouple keyguard from statusbar." into rvc-dev 2020-04-11 00:42:04 +00:00
TreeHugger Robot
c3721ac874 Merge "Deprecates the animatingBounds from WM to SysUI" into rvc-dev 2020-04-10 23:13:52 +00:00
Andrii Kulian
5bb053bfe7 Fix typo in stack traversal
Bug: 152116619
Test: RootActivityContainerTests#testRemovingStackOnAppCrash_multipleDisplayAreas
Change-Id: I1672bc0c712c2bfd3f2f87139414da612a039226
2020-04-10 16:01:07 -07:00
kwaky
4ed2e207c5 Implement AAOS-specific KeyguardViewController and decouple keyguard from statusbar.
Bug: 150162295
Bug: 150164054
Test: Manual. Unit Tests Pending.
Change-Id: I66586e15d114eb6da55254f778511bde4fce3154
2020-04-10 15:22:51 -07:00
Ytai Ben-Tsvi
9fac2c86ce Reboot the soundtrigger HAL on failure
... and avoid rebooting system_server.
There is no benefit in rebooting the system_server.

Fixes: 153461865
Test: Tested via a shell command that the sound trigger middleware
      service can indeed reboot the HAL and correctly recover from it
      dying.
Change-Id: Ie476968b6acf97bf701d0e2929e7bd099e19cd56
2020-04-10 14:55:19 -07:00
Evan Severson
3535e8156f Make one-time permission sessions continue over service restarts
When a sticky service crashes and is restarted by the system it should
retain its permission even if granted one-time.
Also make one time permission manager aware of package uninstalls.

Test: atest OneTimePermissionTest
Bug: 151405396
Fixes: 153701894
Change-Id: I7c440394aecf4308ecfe904ff56ffac94f0150ef
2020-04-10 14:23:09 -07:00
Hongwei Wang
3c981f6eb7 Deprecates the animatingBounds from WM to SysUI
PipTouchHandler, similar to other components in SysUI, should be in-sync
with the destination bounds calculated within SysUI rather than WM.

Fixed also the empty movement bounds upon the first call to
PipTouchHandler#onMovementBoundsChanged. Together, this change should
fix the PIP not being lifted on IME show up. PipTouchHandlerTest is
updated correspondingly.

Bug: 153352899
Test: manually enter/exit PiP
Test: atest PipTouchHandlerTest
Change-Id: I2912af2a181b7fb57c6d90751744d46c6b3366d2
2020-04-10 13:47:14 -07:00
TreeHugger Robot
55815db140 Merge "Add /apex to the list of allowed SystemServer paths" into rvc-dev 2020-04-10 19:52:26 +00:00
Yurii Zubrytskyi
da208016d6 [incfs] Make native library extraction async
IncrementalService can create the library files beforehand, but
delay filling in their data. As it takes quite a while in
general (over a second in cases when the phone is busy), it's
better to run the unzipping and filling in a separate thread
and only make sure it finishes before the whole installation
process is complete.
This speeds up the megacity.apk installation by ~250-300ms,
1000-1100ms -> 750-800ms

Bug: 153513507
Test: adb install megacity.apk

Change-Id: Ia44f7e45b9e0abaebdfb6fe5352f9dcf29ab4ece
2020-04-10 12:30:49 -07:00
TreeHugger Robot
03fa01bfa0 Merge "Preserve windows when resizing tasks" into rvc-dev 2020-04-10 18:32:38 +00:00
Paul Chang
53ee852ffc Merge "Handle the case that bug report handler app is not available" into rvc-dev 2020-04-10 17:21:12 +00:00
TreeHugger Robot
e3b4daa804 Merge "Revert "Only use the IME target from IMMS to update the IME control target"" into rvc-dev 2020-04-10 17:20:05 +00:00
TreeHugger Robot
3c5ea9cd82 Merge "Allow caller dismissing split to specify top stack" into rvc-dev 2020-04-10 17:03:39 +00:00
TreeHugger Robot
766aa3a107 Merge "Restore config of associated window when clearing fixed rotation" into rvc-dev 2020-04-10 16:09:14 +00:00
Vishnu Nair
40b4afb004 Preserve windows when resizing tasks
If the activity doesn't handle a configuration change and needs to be
relaunched, preserve the windows to prevent a flicker.

Test: resize in split screen and observe there is no flicker
Fixes: 153583483
Change-Id: Ibe71035da9eb2bd9dca270e7eca8e47afbffcb78
2020-04-10 16:00:00 +00:00
Ryan Mitchell
6cb79cdfb7 Merge changes from topic "invalidate_idmap" into rvc-dev
* changes:
  Fix InstallOverlayTests fail to install overlay
  Test that upgrading target apk invalidates idmap
  Invalidate idmap when target updates
2020-04-10 15:50:15 +00:00
TreeHugger Robot
ce4cd092d9 Merge "MediaRouter: don't scanPackages if unnecessary" into rvc-dev 2020-04-10 15:43:14 +00:00
Tiger Huang
4fbe677f10 Revert "Only use the IME target from IMMS to update the IME control target"
This reverts commit 304db43153.

Reason for revert: This CL broke a test: b/153606760
Bug: 153606760
Change-Id: I6034fad7f88de14518ea9f46bf8774e4b8196926
2020-04-10 15:14:42 +00:00
Riddle Hsu
522029a9f9 Restore config of associated window when clearing fixed rotation
If wallpaper is visible and its target window has fixed rotation
transform, wallpaper token will be associated to share the same
transform. So if the target window cancels the transform, the
associated window, i.e. wallpaper should also be restored to the
original configuration.

Fixes: 153420536
Fixes: 153201558
Test: atest WindowTokenTests#testClearFixedRotationTransform
Change-Id: I75fe8bfadf3b681f2dc33df9c6599a9bbc5769ea
2020-04-10 21:55:45 +08:00
Kyunglyul Hyun
89e2ee9bc7 MediaRouter: don't scanPackages if unnecessary
scanPackages was called whenever it receives a broadcast,
which could be duplicated.
This CL adds a boolean variable (mScanPackagesScheduled) not
to scan packages if it is scheduled.

Bug: 153527463
Test: cts test, atest mediarouertest and check
MediaRouteProvider#onBind, #onUnbind are called
when a new provider is installed.
Confirm # of calls is reduced (3 -> 1).

Change-Id: Iaa423b7d1b2b2a97aebed0001b4077bdf95b1d54
2020-04-10 22:07:54 +09:00
Raff Tsai
5962269af8 Merge "Add SettingsStats puller in StatsPullAtomService" into rvc-dev 2020-04-10 10:08:30 +00:00
Wei Sheng Shih
1a46294fdb Merge "Support addWindow as other user" into rvc-dev 2020-04-10 08:33:12 +00:00
Paul Chang
663fb84eaa Handle the case that bug report handler app is not available
- Let bug report shortcut request bug report when bug report handler app doesn't provide response

BUG: 151595664
Test: Flash and press bug report shortcut, then confirm requesting bug report when bug report handler app doesn't provide response

Change-Id: I5f7129fcdcb617a0993fbfed30553d59d3bd5ab5
2020-04-10 15:07:43 +08:00
Ming-Shin Lu
1c92e1f789 Merge "Trigger onTaskAppeared when a task started from recents becomes ready." into rvc-dev 2020-04-10 05:46:13 +00:00