Commit Graph

63760 Commits

Author SHA1 Message Date
TreeHugger Robot
55ace3ebb3 Merge "Fix tasks not resized in split-screen" into rvc-dev 2020-04-07 01:03:12 +00:00
Maciej Zenczykowski
e7d685f488 Merge "Rename the *Nat64Prefix to *Nat64PrefixFromDns." into rvc-dev 2020-04-06 23:58:04 +00:00
Jeff Sharkey
e0c12903db Merge "Additional notification performance improvements." into rvc-dev 2020-04-06 23:35:14 +00:00
Jeff Sharkey
5fae035ac5 Additional notification performance improvements.
The initial design that accepted a Collection<Uri> for notifyChange()
simply looped over the collection once inside the system_server, which
was offered a great initial performance improvement.

However, there were still inefficiencies in how we validated
ContentProvider access, dispatched sync adapter changes, and
invalidated internal caches.  This change optimizes those operations
by performing them only once per (authority, userId) tuple, and by
caching the getProviderPackageName() answer.  Local tests show that
this change roughly doubles the speed.

Before this CL:
    notifyInsert count=50 duration=5958061219ns average=119ms
    notifyUpdate count=50 duration=5696640780ns average=113ms
    notifyDelete count=50 duration=4344581840ns average=86ms

After this CL:
    notifyInsert count=50 duration=3287114546ns average=65ms
    notifyUpdate count=50 duration=3103146196ns average=62ms
    notifyDelete count=50 duration=2033265671ns average=40ms

Bug: 144464323
Test: atest CtsDatabaseTestCases
Test: atest CtsContentTestCases:android.content.cts.ContentResolverTest
Test: atest FrameworksServicesTests:com.android.server.content.ObserverNodeTest
Test: atest com.android.providers.media.client.PerformanceTest#testBulk
Change-Id: Idfda019fcc123ee7118b1856a8ff7332a17b5ef9
2020-04-06 17:34:22 -06:00
Bernardo Rufino
2de79fb6fd Merge "Wire user info and use user context for text toasts" into rvc-dev 2020-04-06 21:59:20 +00:00
Winson Chung
be022550d8 Merge "Revert "Keep task hidden until task appeared"" into rvc-dev 2020-04-06 21:19:57 +00:00
Bernardo Rufino
78f5d83ac8 Wire user info and use user context for text toasts
Text toasts don't currently support multi-user. This CL prepares toasts
for multi-user by wiring the user information from who requested the
toast (in the form of uid) to ToastUI, where text toasts are actually
rendered.

We go only as far as obtaining a new user-specific context for that user
and using that to construct the view. Actual support will come in future
CLs.

Bug: 151414297
Test: atest android.widget.cts29.ToastTest android.widget.cts.ToastTest
      ToastWindowTest ToastUITest NotificationManagerServiceTest
      LegacyToastTest
Change-Id: I8c92453c6a2b73c31f9a41ca9ff463d194d4f44f
2020-04-06 20:20:09 +01:00
TreeHugger Robot
6831d480e8 Merge "Wait for idmap service on current thread" into rvc-dev 2020-04-06 18:49:23 +00:00
Chavi Weingarten
a95d39274f Merge changes Id2b99e6d,I32f5469f,I922e3a56 into rvc-dev
* changes:
  Added test for isAnimating bug
  Override base isAnimating in WindowState
  Ignore specified animation types when checking isAnimating
2020-04-06 18:30:15 +00:00
Chavi Weingarten
ae1c541a6f Merge "Added displayPosition in LogicalDisplay" into rvc-dev 2020-04-06 18:29:05 +00:00
Winson Chung
d2fb07e4f6 Revert "Keep task hidden until task appeared"
This reverts commit cbd8793a44.

Reason for revert: b/153273664
Bug: 153273664

Change-Id: Ic3a0778e896afd5e3fdbc234a5b3521257222dcd
2020-04-06 18:17:21 +00:00
TreeHugger Robot
6846155403 Merge "DO NOT MERGE Remove permission guard on getTestProviderCurrentRequests()" into rvc-dev 2020-04-06 18:13:27 +00:00
Ytai Ben-tsvi
b42d1a5a0f Merge "Add capture state to soundtrigger_middleware dump" into rvc-dev 2020-04-06 18:13:19 +00:00
Fiona Campbell
b533ef703b Merge "Pass DisplayDeviceConfig to AutomaticBrightness" into rvc-dev 2020-04-06 18:03:51 +00:00
Chris Tate
7f7dff7268 Merge "Revert "Revoke 'always' web handler status when not autoverifying"" into rvc-dev 2020-04-06 16:39:03 +00:00
Lorenzo Colitti
06dcc327c6 Rename the *Nat64Prefix to *Nat64PrefixFromDns.
This just a rename with no functional changes at all. It is
preparation for supporting getting the NAT64 prefix from the
RA.

Bug: 150648313
Test: covered by existing ConnectivityServiceTest and Nat464XlatTest
Merged-In: Ia9a09a708870827b1e4cf068f930fa9542dd116c
Change-Id: Ia9a09a708870827b1e4cf068f930fa9542dd116c
2020-04-06 15:45:14 +00:00
Fiona Campbell
51e6f8ff26 Merge "Remove exclude filter on PowerManger test mapping" into rvc-dev 2020-04-06 14:24:30 +00:00
TreeHugger Robot
672950aa30 Merge "Fix an issue that restricted package is not printed if it has no ... allowed packages." into rvc-dev 2020-04-06 14:19:29 +00:00
Jacky Kao
aa8f5cb671 Merge "Supporting multi-display for takeScreenshot()" into rvc-dev 2020-04-06 09:03:42 +00:00
Artur Satayev
eb354ce78c Merge "Update packages to not depend on maps SDK v1." into rvc-dev 2020-04-06 09:03:32 +00:00
TreeHugger Robot
72c28d8856 Merge "Fix pointer location would be truncated by nav bar" into rvc-dev 2020-04-06 08:45:39 +00:00
Calin Juravle
839dbccf9f Merge changes If274d038,I0788163b,Icdb9ff45,Ib546ed12 into rvc-dev
* changes:
  Ensure that loading packages can be extended
  Allow non-user packages to be kept in the use data list
  Allow PackageDexUsage to record code paths not used by others
  Remove support for PackageDexUsage version 1
2020-04-06 06:40:51 +00:00
TreeHugger Robot
0b74287ba6 Merge "Use display windowing mode if undefined" into rvc-dev 2020-04-06 05:35:59 +00:00
TreeHugger Robot
6bb03f2447 Merge "Do not remove window if IWindow#resized is failed" into rvc-dev 2020-04-06 04:15:49 +00:00
Wei Sheng Shih
418b5e7b8c Merge "Prevent cropHint been overwrite by display size." into rvc-dev 2020-04-06 04:08:13 +00:00
Louis Chang
06107a3617 Fix tasks not resized in split-screen
With 465b1e1, only root tasks are allowed to be organized. Therefore,
the direct children of organized tasks are no longer evaluated as
organized.

Do not set bounds to the children of organized tasks, and just follow
organized tasks to resize accordingly.

Bug: 152619437
Test: drag divider in split-screen
Change-Id: Icf84d3817b8cd506af49e54475f78eb001319d78
2020-04-06 11:55:46 +08:00
Louis Chang
6c5d725867 Use display windowing mode if undefined
A undefined windowing mode prevented from reusing the
candidate task while cold start an activity into
split-screen from Recents.

Use windowing mode from its parent for always-create-stack
check if undefined.

Bug: 152408408
Test: atest TaskDisplayAreaTests
Test: cold start to enter split-screen
Change-Id: Ie0f5b69c9d09ad517b749827dbf2a5e7297b1075
2020-04-06 10:52:18 +08:00
Minche Li
e56cb5c0fb Merge "Adds system service dump for the fullscreen magnification region" into rvc-dev 2020-04-06 02:12:44 +00:00
Alex Johnston
bb5e6b49a7 Merge "Changed how user restrictions are pushed to UM" into rvc-dev 2020-04-05 21:15:26 +00:00
Andrii Kulian
a48a5a5697 Merge "5/n Add support for multiple task display areas" into rvc-dev 2020-04-05 16:40:16 +00:00
Stanislav Zholnin
03aa32160d Merge "Add AppOpEnum field to represent op_id in RuntimeAppOpAccess atom." into rvc-dev 2020-04-05 13:35:03 +00:00
Stanislav Zholnin
2758c6a056 Merge "Extend sampling to packages targeted below R." into rvc-dev 2020-04-05 13:32:59 +00:00
Winson Chung
17849976da Merge "Keep task hidden until task appeared" into rvc-dev 2020-04-04 18:06:04 +00:00
Artur Satayev
a526b1ee34 Update packages to not depend on maps SDK v1.
The library has been deprecated since circa 2013. It has also been broken on Android Q, i.e. any app that actually attempts to use it at runtime would crash.

Stop shipping the library in R, and ignore any uses-library for the library.

Test: manual, atest
Bug: 148920069
Change-Id: I3d9db099200955204dfdc67c3457f74d759b454e
Merged-In: I3d9db099200955204dfdc67c3457f74d759b454e
Exempt-From-Owner-Approval: +1 by narayan@ on previous patch
(cherry picked from commit 8ce94b1ef2)
2020-04-04 17:19:25 +00:00
Stanislav Zholnin
26141c3fb2 Extend sampling to packages targeted below R.
Test: manual verification
Bug: 143519689
Change-Id: I0fefd46552fa9d8a34ef78161c1a13c60419de26
2020-04-04 06:07:25 +01:00
TreeHugger Robot
43bc020fc0 Merge "Only apply VPN isolation if it's fully routed" into rvc-dev 2020-04-04 03:44:46 +00:00
Winson Chung
cbd8793a44 Keep task hidden until task appeared
- If the task is previously not visible or has no visible children at
  the point when we start controlling it in the task org, hide the task
  until we send taskAppeared to ensure that the task org can reparent
  and show it otherwise we could see a flash of the task.

  This happens mainly from two cases:
  - when starting a new task with a given win mode, we show it and wait
    for first draw before notifying the task org
  - when transitioning into pip from swipe up, the activity is hidden
    and when it requests to enter pip is made visible again

  Since we are hiding the task w/ the pending transaction, we also need
  to defer all task org callbacks until that's applied to ensure proper
  lifecycle of the calls.
- Also skip app transitions for task org tasks for now

Bug: 152809695
Bug: 152134460
Test: Open a bubble, ensure that we don't see the task in fullscreen
      first.  Enter pip, ensure that we don't see flash of the task
      before SysUI can fade it in.
Test: atest PipAnimationControllerTest
Test: atest TaskOrganizerTests
Test: atest SplitScreenTests

Change-Id: If51e98cd007faef35e99acd31b27b20eebbea010
2020-04-03 19:59:05 -07:00
Selim Cinek
822b72843d Merge "Isolating important conversations" into rvc-dev 2020-04-04 00:30:10 +00:00
Mehdi Alizadeh
6991da300f Merge "Wrap ShortcutQuery in a parcelable wrapper object and pass it direcly through aidl." into rvc-dev 2020-04-04 00:23:47 +00:00
Andrii Kulian
3dbef9419f Merge "4/n Add fallback to default task display area" into rvc-dev 2020-04-04 00:04:00 +00:00
TreeHugger Robot
330450c283 Merge "freezer: disable on "am dumpheap <pid>"" into rvc-dev 2020-04-03 23:04:48 +00:00
TreeHugger Robot
fa25797fb1 Merge "Allow Test Harness Mode when secure ADB is disabled" into rvc-dev 2020-04-03 21:39:32 +00:00
chaviw
6103c92a56 Override base isAnimating in WindowState
WindowState overrides the isAnimating call. A new base method was added
to handle specific animation types, but the WindowState class was still
overriding the old isAnimating call. Therefore, the check for insets
provider was not handled.

Test: NexusLauncherTests
Fixes: 152657145
Change-Id: I32f5469fa992adb712779a6cb961bd3a1b44a227
2020-04-03 14:34:29 -07:00
chaviw
9177c77262 Ignore specified animation types when checking isAnimating
The check isAnimating is used in a lot of places to determine if the
apps can hide, show, removed, etc. However, we don't always want to
check if any animation is running, just if a specific animation.
This change adds a new method that allows the caller to check if
isAnmating but ignore certain animationTypes.

This is specifically needed for ScreenRotationAnimation refactor to
ensure we can ignore screen rotation animation when checking
isAnimating. Otherwise, screen rotation will block hiding closing apps
if rotation occurs at the same time.

Test: WindowContainerTests
Bug: 152333373
Bug: 149490428
Change-Id: I922e3a5698f5db4dcc819a59ebfde2cd0301d7d2
2020-04-03 14:34:15 -07:00
Curtis Belmonte
f1ef159a7f Merge changes I7dcdef58,Ibba26a57 into rvc-dev
* changes:
  Make BiometricServiceBase more robust to HAL crash
  Fix BiometricServiceBase crash in handleEnumerate
2020-04-03 21:33:58 +00:00
Winson Chung
616fcd819d Merge "Remove the input consumer surfaces when the consumer is disposed" into rvc-dev 2020-04-03 21:32:17 +00:00
chaviw
945f7301f0 Added displayPosition in LogicalDisplay
Allow WindowManager to get display position from DisplayManager. This
will allow display animations to work since we need to know the initial
position of the display to correctly handle animations

Test: LogicalDisplayTest
Bug: 149490428

Change-Id: I5de2495982294ffa0437d8e87a43bf1d2fd0d86a
2020-04-03 13:51:03 -07:00
Marco Ballesio
d1b29e838a freezer: disable on "am dumpheap <pid>"
heapDump() is used to collect process heaps via "am dumpheap <pid>". It is
alternative to "dumpsys meminfo" and would hang if called on a frozen
process. In this patch:

 - disable freezer before the binder transaction to collect heap data
 - install a man-in-the-middle callback to handle completion of
   collection. The new callback will invoke the original one from the client
   and then enable the freezer again.

Change-Id: I43f501a88a7325d1bd2b3d1c6eb4a4d03b97a691
Test: am dumpheap <frozen process pid>
Bug: 151225245
2020-04-03 13:16:38 -07:00
Andrii Kulian
f9df4a8130 5/n Add support for multiple task display areas
Replaces the references to DisplayContent#mTaskContainers field with
iteration over all child task containers where necessary.

This does not change the behavior for the regular non-foldable
devices, since they would normally have only one task display area,
so iterating throught the list is logically equivalent to referencing
it directly.

Bug: 152116619
Test: WM CTS and unit tests
Change-Id: Ibc1b18ad4c06236e944abd49089672105506ec2c
2020-04-03 12:53:09 -07:00
William Hester
ef36a25fb3 Allow Test Harness Mode when secure ADB is disabled
Some builds may not have secure ADB (ro.secure.adb=1) enabled; however,
they should still be able to use Test Harness Mode. This enables those
builds to enable Test Harness Mode even if they're running the baked-in
ADB keys and/or they don't require keys at all.

Bug: 150721793

Change-Id: If095c379f70a6ca7b0cf3be8b30dfa43b85633e3
Merged-In: If095c379f70a6ca7b0cf3be8b30dfa43b85633e3
(cherry picked from commit af45921344)
2020-04-03 19:06:24 +00:00