472371 Commits

Author SHA1 Message Date
TreeHugger Robot
3fe54949f8 Merge "Exclude flaky tests from presubmit." into rvc-dev 2020-03-25 14:47:51 +00:00
Torne (Richard Coles)
465c5fb2a3 Don't include the data dir in zygote library paths.
When creating a LoadedApk in a zygote context (app zygote or WebView
zygote), don't add the app's data dir to the list of paths the dynamic
linker is allowed to load libraries from, because the linker's attempt
to canonicalize the path causes SELinux access denials. The process
can't access the data directory at all, so cannot load libraries from
there in any case.

Fixes: 149481620
Test: check for avc denials from webview_zygote
Change-Id: I9aceecaf6067e748cc2251782b0f41661cbb35d8
(cherry picked from commit e1579d4d14119e688fa3952d6bbc44ef81f942fe)
2020-03-25 14:24:24 +00:00
Josh Tsuji
040c89290b Merge "Adds SYSUI_STATE_BUBBLES_EXPANDED to QuickStepContract." into rvc-dev 2020-03-25 14:16:48 +00:00
Rubin Xu
8d23b6bebd Clear no_remove_managed_profile retriction when removing test PO
Bug: 149898237
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest
Change-Id: I719ee98c7dda5e256e5c8e45b52888a130d6ff5a
2020-03-25 14:06:35 +00:00
Vladimir Marko
1d0b19f81d Merge "Add permitted_packages to framework-tethering." into rvc-dev 2020-03-25 13:50:51 +00:00
arangelov
c5fb839d31 Hide empty state icon and button in landscape mode.
This is to accommodate for the case when the user
has max font size and max display size. The rest of
the empty state screen won't fit unless we hide the
icon and "Turn on work" button.

Test: manual
Fixes: 149817494
Fixes: 152274446
Change-Id: I95b90461ac36b4bbf6b0e4c4dd223e941d8c75cb
2020-03-25 13:48:10 +00:00
Paul Hu
274cc1c00a [TNU02] Update tethering notification by active data subid
Tethering notification can be customized by different subid. Thus
update notification when active data subid changed.

Bug: 122085773
Bug: 130596698
Test: atest TetheringTests
Change-Id: I799d713326cfbf4dc96c712c6b15ed5a4ac18dd2
Merged-In: I799d713326cfbf4dc96c712c6b15ed5a4ac18dd2
(cherry picked from aosp/1209984)
2020-03-25 13:47:48 +00:00
Anton Hansson
19b40d5beb Merge "Make framework-media stubs use the new defaults" into rvc-dev 2020-03-25 13:45:22 +00:00
TreeHugger Robot
fc099117fc Merge "BluetoothHearingAid System APIs now throw an exception if a null BluetoothDevice is passed in" into rvc-dev 2020-03-25 13:35:10 +00:00
Galia Peycheva
a17d04545b Merge "Make Dream background black" into rvc-dev 2020-03-25 13:34:15 +00:00
TreeHugger Robot
5cb264d9df Merge "Fix calculation of the collapsible height" into rvc-dev 2020-03-25 13:25:56 +00:00
Anton Hansson
3544feedb7 Merge "Make framework-wifi stubs use the new defaults" into rvc-dev 2020-03-25 13:21:40 +00:00
Chalard Jean
09b1ee6077 Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" into rvc-dev 2020-03-25 13:15:46 +00:00
Dave Mankoff
2728fa3c52 Merge changes from topic "b150393918-lock-icon" into rvc-dev
* changes:
  Cache icon drawables.
  Remove injection from LockIcon.
2020-03-25 13:11:58 +00:00
Martijn Coenen
1152370510 Merge "Add (hidden) fixupAppDir() API." into rvc-dev 2020-03-25 12:56:47 +00:00
Anton Hansson
7fe2d29f1b Merge "Remove the tethering hiddenapi whitelist entry" into rvc-dev 2020-03-25 12:42:23 +00:00
Anton Hansson
bc2ea8f88f Merge "Make framework-sdkextensions stubs use the new defaults" into rvc-dev 2020-03-25 12:41:10 +00:00
Joe Huang
a02b54d79c Merge "Use sub specific telephony for emergency supl" into rvc-dev 2020-03-25 12:38:37 +00:00
Dante Russo
61e565b733 Use sub specific telephony for emergency supl
In multi-sim cases, we need to get the sub specific
telephony service in order to get the correct value
from functions getNetworkType and getServiceState
for the active sub instead of the default sub.

Bug: 150115901
Change-Id: Icb2e50500fe567fa1fee14eaaf04f0b308bc6cc6
CRs-fixed: 2616763
2020-03-25 12:37:55 +00:00
Dante Russo
dffe0cee3c Set the Network Specifier on Emergency SUPL
The sub ID of a SIM that the emergency call
was made on needs to be specified while
requesting a SUPL Emergency connection. This
is done by setting the Network Specifier in
the SUPL Emergency connection request so that
connection is made on the correct sub for a
device that can have more that one SIM.

Bug: 150115901
Change-Id: Id0d85125d1aa8c019ecb8f622b604a6eacec7380
CRs-fixed: 2563763
2020-03-25 12:37:05 +00:00
Anton Hansson
7ed187c63e Merge "Add defaults for framework stub libs" into rvc-dev 2020-03-25 12:30:05 +00:00
Ruslan Tkhakokhov
3929da0a54 Add logs to WallpaperManagerService when setting wallpaper
Bug: 151817908
Test: build

Most logs in WallpaperManagerService are under 'DEBUG' flag. This makes
it harder to debug failures to set wallpaper after it has been restored
from a backup. Since setting a wallpaper is an infrequent operation, add
some more logs.

Change-Id: I3cfbec63ccfe64697a177fcb73edd424fb94cb8b
2020-03-25 12:23:37 +00:00
Louis Chang
32a2612034 Merge "Remove use of TaskTile" into rvc-dev 2020-03-25 12:19:08 +00:00
Tiger Huang
2615ccaa62 Merge "Update HideNavInputEventReceiver when nav bar visibility has changed" into rvc-dev 2020-03-25 12:13:27 +00:00
TreeHugger Robot
b04ab6ceb1 Merge "Fix false positive of activity leak in NexusLauncherTests" into rvc-dev 2020-03-25 11:36:11 +00:00
Vladimir Marko
c8ad37247f Add permitted_packages to framework-tethering.
Test: m out/soong/.intermediates/frameworks/base/packages/Tethering/common/TetheringLib/framework-tethering/android_common/package-check.stamp
Bug: 151314205
Change-Id: I248c36b2cf2f5776978c4fd2322d3b73ade309ff
2020-03-25 11:19:36 +00:00
Galia Peycheva
b34292164a Make Dream background black
Bug: 150861483

Test: m && flash && start Clock dream
Change-Id: I7761cd49b5c24449250feeea3985b05f3f281637
2020-03-25 11:49:10 +01:00
Chalard Jean
09c48e4a2d Allow MANAGE_TEST_NETWORKS to register limited agents
This puts in force some restrictions against test networks,
and in exchange relaxes the restrictions around registering
a network agent that provides a test network.
Test networks can only ever have transport TEST, and have
only a few capabilities available to them.

This is useful in particular to test CTS. See aosp/1253423
for first, basic usage of this capability.

Test: IpSecManagerTunnelTest
Test: new CTS aosp/1253423
Bug: 139268426

Change-Id: Ibd162792a7ab02fcbb06130f21a825a386678c05
(cherry picked from commit 2c129e97cca2234ee6dd079a9c07df0c530d8b36)
2020-03-25 10:43:26 +00:00
Galia Peycheva
389580c7da Merge "Create ACTIVITY_TYPE_DREAM" into rvc-dev 2020-03-25 10:23:47 +00:00
JW Wang
37d52ce20b Merge "Fix a flaky test" into rvc-dev 2020-03-25 10:06:50 +00:00
Shu Chen
27daeb0307 Merge "Calculates the slop values per upper/lower line height." into rvc-dev 2020-03-25 09:54:48 +00:00
Tiger Huang
d611a9bb52 Update HideNavInputEventReceiver when nav bar visibility has changed
The visibility of nav bar can be changed when the bar-control-target
is changed or from the client's request without performing layout.
So HideNavInputEventReceiver might not have been updated in some cases
previously. This CL fixes the issue.

Fix: 151308746
Test: Try to reproduce by using the steps in the issue.
Change-Id: I912a005b567b69cc4957866479fa45e07841e5fb
2020-03-25 17:52:17 +08:00
Louis Chang
a009c76580 Remove use of TaskTile
We just have the TaskOrganizer create root task directly

Test: Existing tests pass
Bug: 133381284
Bug: 149429752
Change-Id: Id884cbe8e7d2fdd93e729fcb2793fad4afd59b21
2020-03-25 17:33:50 +08:00
Bernardo Rufino
7afc8b101b Merge "Gate toast block and remove warning" into rvc-dev 2020-03-25 09:32:40 +00:00
Aaron Huang
9c9366b2df Merge "API review: make exception class and Builder final" into rvc-dev 2020-03-25 09:29:33 +00:00
Raff Tsai
ea4db183fe Add SettingSnapshot atom
Bug: 142941011
Test: m Settings
Change-Id: I135a8ee1c0f8527d539c3613425e7e4c082ec099
2020-03-25 17:08:26 +08:00
Eran Messeri
37fc495766 Merge "Remove unnecessary parent restriction check" into rvc-dev 2020-03-25 09:06:56 +00:00
Charles Chen
b3230a3594 Fix false positive of activity leak in NexusLauncherTests
by postponing StrictMode.decrementExpectedActivityCount
and clear Activity reference of ActivityClientRecord

fixes: 150715257
Test: atest NexusLauncherTests
Change-Id: I0f20194fe59b45eb9954efef62a9afbcd2048ad1
2020-03-25 17:02:28 +08:00
TreeHugger Robot
9bbdb759d8 Merge "PackageManager: Restrict some camera intents to MATCH_SYSTEM_ONLY" into rvc-dev 2020-03-25 08:34:12 +00:00
TreeHugger Robot
8b5a3a8529 Merge "Fix the IntentTests test case failed" into rvc-dev 2020-03-25 08:19:03 +00:00
Tej Singh
547f46331c Fix ValueMetricProducer_test on hwasan
TestUseZeroDefaultBaseWithPullFailures was failing on hwasan builds
because the test had a reference to an Interval object that was
deleted. The test tried to get another Interval object and assign it to
the reference. However, what this really did is change the Interval
object that the reference referred to. Since that Interval object had
been deleted, hwasan failed the test.

This fixes the issue. Also clean up some usages of auto to make
the test more readable.

Test: bit statsd_test:* on blueline_hwasan
Bug: 152354576
Change-Id: I392740770715391c727d190b1ed8ba22cc01210f
2020-03-25 08:10:35 +00:00
Shu Chen
afbcf851d3 Calculates the slop values per upper/lower line height.
Also applies the max/min damping range for slop.
The max/min damping range includes lineHeight + slop.
Note: slop must >= zero.

Bug: 150531840
Test: manual & automated tests
  atest FrameworksCoreTests:EditorCursorDragTest
  atest FrameworksCoreTests:TextViewActivityTest

Change-Id: I26cdf69fd2cf7d4514dd2a902ed34c480c9e8781
2020-03-25 15:56:06 +08:00
TreeHugger Robot
ef8205b443 Merge "Additional settings page for apps bypassing dnd" into rvc-dev 2020-03-25 07:55:06 +00:00
Paul Chang
08d78a5942 Merge "Revert "Let bug report shortcut handle the case that bug report handler app is not available"" into rvc-dev 2020-03-25 06:53:57 +00:00
TreeHugger Robot
555ae029b2 Merge "Fix the validation for showing inline suggestion in webview" into rvc-dev 2020-03-25 06:46:17 +00:00
Winson Chung
d4a9abd2de Ensure previous background color is reapplied when showing a SurfaceView
- This prevents a flash of black if we show the surfaceview again
  after it is hidden

Bug: 152134983
Test: Ensure no flash if previous background color was set and it is
      made visible again
Change-Id: I04d0222521c902da6d29e99ccdbd0aa8ad49917e
2020-03-25 06:42:05 +00:00
Aaron Huang
fbb485a4b3 API review: make exception class and Builder final
- InvalidPacketException exception class should be final
- NetworkCapabilities.Builder should be final

Bug: 152203926
Test: atest FrameworksNetTests
Change-Id: If9b799151aff6d41c9bcd8bb86c65a58e46bad73
2020-03-25 13:36:38 +08:00
Louis Chang
dd63da5061 Reuse and reparent one-level root task to another display
A root task was reparented to a newly create root task
on another display while starting an existing activity
onto the display.

Since the original root task is now a child task after
reparented, the task surface size was not updated. So,
part of the surface was cropped and shown black.

Also fix a case where empty display (without any tasks)
was not awaken when stacks were reparented to it.

Bug: 150418176
Test: atest RootActivityContainerTests
Change-Id: I7eba20a973b5fd0fd050fedd06d3d700cb640f62
2020-03-25 05:09:48 +00:00
Tiger Huang
227c665910 Make canBeImeTarget be compatible with legacy behavior
And let IME always extend into the status bar area so that the position
of IME can never affected by status bar. This can prevent flicker during
IME animation.

This CL also makes PerDisplay can restart the animation while the insets
source control is changed during animation.

Fix: 151759336
Test: atest WindowStateTests
Change-Id: Ic2a308e6b7ec39b4b8645751e31addd26ddf3735
2020-03-25 12:59:29 +08:00
Feng Cao
a873cd12c8 Fix the validation for showing inline suggestion in webview
Test: m -j & manual varification
Test: CtsInputMethodTestCases
Test: CtsAutoFillServiceTestCases
Bug: 151846600

Change-Id: I350b199455e77f769915e7d457dbcab31c20134d
2020-03-24 21:56:30 -07:00