Skip to content
Commit 37dc1932 authored by Lee Shombert's avatar Lee Shombert
Browse files

Normalize findPreferredActivityNotLocked()

Bug: 187080582

This change modifies PackageManagerService in preparation for moving
findPreferredActivityNotLocked() into Computer.  The synchronized
block in findPreferredActivityNotLocked() is pulled into its own
function to comply with Computer rules.  Two functions that are needed
by findPreferredActivityNotLocked() are made static so they can be
referenced from inside ComputerEngine.  Note that because the
functions can be made static, they do not depend on the PM snapshot.

Some calls from findPreferredActivityNotLocked() that used to be
outside the PM lock are now inside the PM lock.

A few legacy lint errors are corrected.

Test: atest
 * CtsContentTestCases:IntentFilterTest
 * CtsDynamicMimeHostTestCases
 * CtsRoleTestCases
 * FrameworksServicesTests:UserSystemPackageInstallerTest
 * FrameworksServicesTests:PackageManagerSettingsTests
 * FrameworksServicesTests:PackageManagerServiceTest
 * FrameworksServicesTests:AppsFilterTest
 * FrameworksServicesTests:PackageInstallerSessionTest
 * FrameworksServicesTests:ScanTests
 * UserLifecycleTests#startUser
 * UserLifecycleTests#stopUser
 * UserLifecycleTests#switchUser
 * FrameworksServicesTests:WatcherTest
 * android.appsecurity.cts.EphemeralTest
 * android.appsecurity.cts.InstantAppUserTest
Change-Id: Ib977ea97d06a5eaf02080272f25e8f6139406e7d
parent 7113328b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment