Commit Graph

8616 Commits

Author SHA1 Message Date
Oli Lan
b8edc67908 Merge "Add rollback parameters when submitting sessions to apexd." 2019-12-16 09:42:15 +00:00
Alex Buynytskyy
247901bb4f Merge "[incremental] Java service and shell command handler" 2019-12-16 06:44:49 +00:00
Etan Cohen
5b4cdd863e Merge "Wificond: transfer implementation to android.net.wifi" 2019-12-14 15:04:14 +00:00
Robin Lee
75ba497beb Merge "Revert submission" 2019-12-14 03:06:25 +00:00
Hansong Zhang
b62b7b724d Revert submission
Based on Forrest run with earlier base build 6069142, the build with this submission failed apct/bluetooth/instrumentation_test

Reason for revert: Break tests
Bug: 146198238
Change-Id: I65060ca389bf3ae1f107552ca828bfc1e7baa7c1
2019-12-13 22:10:01 +00:00
Etan Cohen
73450f2004 Wificond: transfer implementation to android.net.wifi
Move implementation of wificond to frameworks/base (android.net.wifi)
in prepration for making into a public API (which will be a wrapper
around the AIDL).

Bug: 140062898
Test: atest com.android.server.wifi
Test: atest android.net.wifi
Test: associates, soft AP client information received correctly
Change-Id: I3c5ede95d0421a1e00078e0316e9a2e751156f3e
2019-12-13 11:18:54 -08:00
Songchun Fan
f5c894f7ce [incremental] Java service and shell command handler
Renaming:

IIncrementalManager.aidl -> IIncrementalManagerNative.aidl
IIncrementalServiceProxy.aidl -> IIncrementalManager.aidl

Adding implementation of IIncrementalManager.aidl. Also adding
implementation of the shell command handler.

Test: $adb abb incremental help

Change-Id: Ia18fde097f6170f4774552428a2927186ede8389
2019-12-13 09:38:07 -08:00
TreeHugger Robot
b3fa0c77a4 Merge "Return to direct mutation for Provider authority" 2019-12-13 15:32:00 +00:00
TreeHugger Robot
1f7780553f Merge "Fix generatePermissionGroupInfo" 2019-12-13 15:29:39 +00:00
Alan Stokes
ef055fc65c Merge "Pass initiatingPackageName to verifier." 2019-12-13 14:43:17 +00:00
Oli Lan
c72b0bba8c Add rollback parameters when submitting sessions to apexd.
This adds parameters to tell apexd if a session has rollback enabled,
or if it is a rollback. The rollback id is also included.

Previously in StagingManager, rollback was only enabled after the
session was submitted. This ordering is reversed in this change to
allow the rollback id to be retrieved.

For the 'is a rollback' case, a new InstallReason of INSTALL_REASON_ROLLBACK
is added, and the rollback id can be retrieved from RollbackManager.

This is an alternate approach to ag/9826517.

Bug: 141148175
Test: atest CtsRollbackManagerHostTestCases
Test: atest CtsStagedInstallHostTestCases
Change-Id: I560ee4ed6dd82277892a511909378d5a5a8502ff
2019-12-13 14:20:45 +00:00
Galia Peycheva
a4aff1e1df Merge "Add minimal post processing API to framework" 2019-12-13 10:09:00 +00:00
Winson
42af5f4b85 Fix generatePermissionGroupInfo
Missed assigning descriptionRes.

Bug: 146158078

Test: atest android.content.pm.cts.PackageManagerTest

Change-Id: Iea84511e1bc1ddb9f447bb4a035656b71964ae6f
2019-12-12 18:55:15 -08:00
Winson
2160e0fd56 Return to direct mutation for Provider authority
The EffectiveProvider wrapper is incorrect. The fact that ComponentResolver
mutates the Provider instance is a required behavior, otherwise the authority
doesn't get propagated.

This causes queries to fail because the EffectiveProvider thinks the authority
should be null. This change reverts to the original behavior pre-refactor,
directly mutating the ParsedProvider instance.

Fixing this mutation will have to wait for a followup, unfortunately.

Bug: 146072648

Test: run test in linked bug that queries content providers
Test: manual verified failing case

Change-Id: Ief960bec3692d60e823a60734c2196ee6caeff7a
2019-12-12 18:46:10 -08:00
Alan Stokes
9ec973a49f Pass initiatingPackageName to verifier.
The initiating package is the actual package requesting the install,
which is what a package verifier wants. Previously we've passed the
installing package, but this can be overridden by the initiating
package.

Also mark the things needed to test this as @TestApi.

Test: atest PackageVerifierTest (as amended)
Bug: 134746019
Change-Id: I8108b8e21c90ae237afa976ff416ffae97ec08e4
2019-12-12 17:08:53 +00:00
Automerger Merge Worker
d32dc69cd8 Merge "Declare ParceledListSlice as generic type" am: ea1b85a5eb am: c48e579ad8 am: ab24f154e2
Change-Id: I3d630c8c453a9c850e48b535b7b3be157abe06d1
2019-12-12 06:44:18 +00:00
Automerger Merge Worker
ab24f154e2 Merge "Declare ParceledListSlice as generic type" am: ea1b85a5eb am: c48e579ad8
Change-Id: If2de0f0db0c81981e922e96601d20e32b7b4a6d8
2019-12-12 06:24:45 +00:00
Jeongik Cha
ea1b85a5eb Merge "Declare ParceledListSlice as generic type" 2019-12-12 06:00:34 +00:00
Ram Muthiah
637138dd94 Revert "Overlay, actor, and target app visibility handling"
This reverts commit 3f46dbd7a0.

Bug: 146018363
Test: Treehugger
2019-12-11 17:37:37 -08:00
TreeHugger Robot
da587dc1ac Merge "rename service name of DataLoaderManagerService" 2019-12-11 20:41:49 +00:00
Donald Chai
85a037afb6 Fix misleading (copy-pasted?) error message
"openRawResource" usually isn't used for drawables.

Bug: 141873128
Change-Id: Ib00467d9df305262bfb9e256b6431705a8b9c907
Tested: N/A
2019-12-11 19:28:12 +00:00
Songchun Fan
7cc2074595 rename service name of DataLoaderManagerService
Test: builds
Change-Id: I72cedf7ef7ef86ed76134706139fe9c6a0556dce
2019-12-11 09:47:49 -08:00
TreeHugger Robot
1f0bc68a61 Merge "Fix Resources.ThemeKey.setTo() to fix memory leak." 2019-12-11 15:41:02 +00:00
TreeHugger Robot
e0f469255d Merge "Fix unexpected process restart of size compat mode" 2019-12-11 15:07:37 +00:00
TreeHugger Robot
30fd66d53d Merge "Fix InstrumentationInfo publicSourceDir" 2019-12-11 01:46:40 +00:00
Winson
22bc5ce7c9 Fix InstrumentationInfo publicSourceDir
Assigned the wrong value, broke tests.

Bug: 145973535

Test: atest com.android.providers.media.scan.ModernMediaScannerTest#testPlaylistWpl succeeds
Change-Id: If222f52b3442cf95c7420056e6e059297584a9a1
2019-12-10 16:02:28 -08:00
Automerger Merge Worker
0dc6acb831 Merge "Remove usage of IccCardConstants hidden APIs" am: b181ba61e2 am: b09b13cf38 am: 19f573a89b
Change-Id: Ic061e0647d108df6fd4837b89555febd5f85b48f
2019-12-10 22:26:47 +00:00
Automerger Merge Worker
19f573a89b Merge "Remove usage of IccCardConstants hidden APIs" am: b181ba61e2 am: b09b13cf38
Change-Id: I5a8974d8cd5d2af70996ec60eae924ddd435c840
2019-12-10 22:10:05 +00:00
Anton Hansson
0bfdf24771 Merge "Hide integrity @IntDefs" 2019-12-10 20:26:54 +00:00
Anton Hansson
57b6af0417 Hide integrity @IntDefs
Typedefs aren't meant to be exposed in the stubs.

Bug: 145982314
Test: m
Change-Id: I95a5040e2a83c21b736c1b79cf0f492076dfe67a
2019-12-10 17:03:34 +00:00
Riddle Hsu
7f704b5248 Fix unexpected process restart of size compat mode
Since hierarchy merged, the difference between full configuration
and resolved override configuration is no longer the same as the
changes of override configuration. It should be more reliable to
explicitly get the change of the requested override configuration
in display.

Also ensure the popup hint window uses the same window type as
its anchor window, so it won't be occluded by activity.

Bug: 139656157
Test: SizeCompatTests#testResetNonVisibleActivity
Change-Id: I146ca1f55227012da58f5e4d6d85e42a41d1f7cb
2019-12-10 23:42:53 +08:00
Winson Chiu
26fea7259f Merge "Overlay, actor, and target app visibility handling" 2019-12-09 23:50:31 +00:00
Alex Buynytskyy
6f5822e5d0 Merge "Additional documentation on transfer statuses." 2019-12-09 22:01:40 +00:00
Alex Buynytskyy
c720d3d1f5 Additional documentation on transfer statuses.
Test: atest PackageManagerShellCommandTest
Bug: b/136132412

Change-Id: Ib43b49ae03bd73eaed34e0293d11d48d825de0b0
2019-12-09 12:37:58 -08:00
Winson
3f46dbd7a0 Overlay, actor, and target app visibility handling
Hooks AppsFilter to support exposing a target and any overlays
targeting it to the actor specified in its overlayable block.

Sacrifices some install-time performance in favor of less memory
usage and easier to follow code by doing a full search/rebuild
on each change.

Benchmarks TBD

Bug: 143096091

Test: atest OverlayReferenceMapperTests

Change-Id: Ic832818b9aa383f1167ca3e69a11b8459fa9db97
2019-12-09 10:46:59 -08:00
Winson
6571c8a461 Critical fixes for AndroidPackage migration
Includes a series of fixes for bugs found during development of tests.
Those tests will be included in another CL. For now, merge the critical
fixes to allow devices to work properly.

Test: manual run atest com.android.server.pm.parsing with verify all
Test: atest android.content.pm.PackageParserTest
Test: atest com.android.server.pm.PackageParserTest
Test: atest com.android.server.pm.ScanTests

Change-Id: Ic8eb4b0072150f3841fd07f817060549591d4d91
2019-12-09 10:45:02 -08:00
Winson
655a5b9ca3 Revert Revert PackageParser#Package fixes
To separate the changes from the massive commit that reverted the revert,
this commit includes any rebase/merge fixes since the original commit.

Change-Id: I556881a44068d38e6816f445d138f4b4e48d2df0
2019-12-06 18:05:28 -08:00
Jayachandran C
316302c001 Remove usage of IccCardConstants hidden APIs
Expose the string IccCardConstants as system APIs
Use TelephonyManger.SIM_STATE_XXX for remaining

Bug: 145767148
Test: Build
Change-Id: I5711d783be8c8414b8f9d7baa80cb4224bd771aa
2019-12-06 16:06:12 -08:00
Winson
14ff71712c Revert "Revert "Deprecate PackageParser#Package""
This reverts commit 8e18a0ab89.

Exempt-From-Owner-Approval: Revert to re-add approved change

Change-Id: I5b5195470f365a2347cbf444cc0494d119e42ffc
2019-12-06 12:24:05 -08:00
Jeffrey Huang
77db950964 Merge "Rename writeToProto to be dumpDebug" 2019-12-06 18:53:15 +00:00
TreeHugger Robot
4f1d1ca772 Merge "Fix asset loading on ResourcesImpl swap" 2019-12-06 15:38:27 +00:00
Galia Peycheva
ea9457585a Add minimal post processing API to framework
This API allows applications to instruct the connected display to do minimal
post processing on the produced image or video frames. This will switch the
display to a low latency mode (ALLM, Game mode or some other custom
implementation thereof), reducing lag in the final images. Thus, minimal post
processing would greatly enhance performance for gaming and video
conferencing applications. It would not, however, suit applications that
prioritise image quality over performance.

This CL adds 2 public method:
 - Window.setPreferMinimalPostProcessing()
(this can also be set in WindowManager.LayoutParams.preferMinimalPostProcessing)
If minimal post processing is preferred, the connected display will be requested
to go into low latency mode, which reduces image processing, resulting in better
performance for gaming applications. If the Display sink is connected via HDMI,
the device will begin to send infoframes with Auto Low Latency Mode enabled and
Game Content Type. This will switch the connected display to a lower latency
mode (if available).
For more information, see HDMI 2.1 specification.

If the Display sink has an internal connection or uses some other protocol than
HDMI, effects may be similar but implementation-defined.

 - Display.isMinimalPostProcessingPreferred()
Returns true if the connected display supports either Low Latency Mode (ALLM or
some other custom low latency implementation) or Game content type.

Bug: 135116095

Test: make -> flash on ATV OTT device -> open an activity which requests minimal
post processing -> check SurfaceControl logs -> verify correct signals are
passed to native

Change-Id: Id09160ba1513fef4dac979162bcda3bfeaace0e6
2019-12-06 15:20:02 +01:00
Winson
c932ff2100 Fix asset loading on ResourcesImpl swap
The ResourceLoaderManager reference was not being updated and
so any configuration change would drop loaders from the asset
search list.

Also re-enables and updates a test originally designed to catch
this kind of problem.

Test: atest ResourceLoaderChangesTest

Change-Id: I5d9bba2f85c516573d3da0c8f1a97a1d716b3a34
2019-12-05 16:52:13 -08:00
Songchun Fan
4e19d8fda3 Merge "[incremental/installation] new API to add file to session" 2019-12-05 20:56:03 +00:00
Songchun Fan
b7c6d8d861 Merge "[incremental] data loader manager interface" 2019-12-05 20:55:50 +00:00
Jeffrey Huang
cb78285b81 Rename writeToProto to be dumpDebug
We want to eventually migrate some of these APIs to be @SystemApi for mainline modules.
The #dumpDebug name is more appropriate than #writeToProto.

Bug: 142279786
Test: Manual
Change-Id: I60793e91cedf6b720d4ecef6a8484f4fed4ff30f
2019-12-05 11:28:11 -08:00
Alan Stokes
f25c755705 Merge "Add PackageManager#getInstallSourceInfo() to the API." 2019-12-05 15:57:02 +00:00
Songchun Fan
4e758697eb [incremental/installation] new API to add file to session
A new method called addInstallationFile() to add files to an installation session.

Test: builds
Change-Id: Iaf086f5cfbc131428668e37d83e7677f5d5bf586
2019-12-04 18:05:41 -08:00
Songchun Fan
6dd47b58c5 [incremental] data loader manager interface
Checking in the interface for data loader manager and installation
files in android.content.pm.

Copied from branch master-instamatic. TODO to update the code with
latest API design.

Test: builds
Change-Id: Ie87dd8b45dc18f538ddabf87e2899e958133ff04
2019-12-04 11:00:23 -08:00
Treehugger Robot
2b65793cd6 Merge "Merge Android10 QPR1 into AOSP master" 2019-12-03 23:15:02 +00:00