Home
last modified time | relevance | path

Searched refs:PackageManagerInternal (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java29 import android.content.pm.PackageManagerInternal;
127 final PackageManagerInternal pm = in getSearchableInfo()
128 LocalServices.getService(PackageManagerInternal.class); in getSearchableInfo()
188 final PackageManagerInternal pm = in getSearchableInfo()
189 LocalServices.getService(PackageManagerInternal.class); in getSearchableInfo()
466 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in createFilterdSearchableInfoList()
482 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in createFilterdResolveInfoList()
498 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in getGlobalSearchActivity()
512 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in getWebSearchActivity()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiServiceTestCase.java21 import android.content.pm.PackageManagerInternal;
36 @Mock protected PackageManagerInternal mPmi;
59 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setup()
60 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java30 import android.content.pm.PackageManagerInternal;
69 app, LocalServices.getService(PackageManagerInternal.class), userId); in appIsEligibleForBackup()
74 ApplicationInfo app, PackageManagerInternal packageManager, int userId) { in appIsEligibleForBackup()
151 return appIsDisabled(app, LocalServices.getService(PackageManagerInternal.class), userId); in appIsDisabled()
156 ApplicationInfo app, PackageManagerInternal packageManager, int userId) { in appIsDisabled()
228 PackageManagerInternal pmi) { in signaturesMatch()
DRestoreUtils.java33 import android.content.pm.PackageManagerInternal;
160 PackageManagerInternal pmi = LocalServices.getService( in installApk()
161 PackageManagerInternal.class); in installApk()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java42 import android.content.pm.PackageManagerInternal;
343 final PackageManagerInternal pmInt = in getHiddenAppActivityInfo()
344 LocalServices.getService(PackageManagerInternal.class); in getHiddenAppActivityInfo()
360 final PackageManagerInternal pmi = LocalServices.getService( in shouldHideFromSuggestions()
361 PackageManagerInternal.class); in shouldHideFromSuggestions()
397 final PackageManagerInternal pmInt = in getLauncherActivities()
398 LocalServices.getService(PackageManagerInternal.class); in getLauncherActivities()
446 final PackageManagerInternal pmInt = in shouldShowSyntheticActivity()
447 LocalServices.getService(PackageManagerInternal.class); in shouldShowSyntheticActivity()
464 final PackageManagerInternal pmInt = in hasDefaultEnableLauncherActivity()
[all …]
DCrossProfileAppsServiceImpl.java35 import android.content.pm.PackageManagerInternal;
271 public PackageManagerInternal getPackageManagerInternal() { in getPackageManagerInternal()
272 return LocalServices.getService(PackageManagerInternal.class); in getPackageManagerInternal()
308 PackageManagerInternal getPackageManagerInternal(); in getPackageManagerInternal()
DShortcutPackageInfo.java21 import android.content.pm.PackageManagerInternal;
144 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in canRestoreTo()
DPreferredComponent.java19 import android.content.pm.PackageManagerInternal;
177 …final PackageManagerInternal packageManagerInternal = LocalServices.getService(PackageManagerInter… in PreferredComponent()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobSetTest.java29 import android.content.pm.PackageManagerInternal;
66 final PackageManagerInternal pm = mock(PackageManagerInternal.class); in setUp()
69 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
70 LocalServices.addService(PackageManagerInternal.class, pm); in setUp()
148 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDown()
DJobStoreTest.java18 import android.content.pm.PackageManagerInternal;
78 final PackageManagerInternal pm = mock(PackageManagerInternal.class); in setUp()
81 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
82 LocalServices.addService(PackageManagerInternal.class, pm); in setUp()
/frameworks/base/services/core/java/com/android/server/
DPruneInstantAppsJobService.java25 import android.content.pm.PackageManagerInternal;
52 PackageManagerInternal packageManagerInternal = LocalServices.getService( in onStartJob()
53 PackageManagerInternal.class); in onStartJob()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java36 import android.content.pm.PackageManagerInternal;
87 private PackageManagerInternal mMockPmi;
88 private PackageManagerInternal.PackageListObserver mObserver;
130 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
131 mMockPmi = mock(PackageManagerInternal.class); in setUp()
132 LocalServices.addService(PackageManagerInternal.class, mMockPmi); in setUp()
137 final ArgumentCaptor<PackageManagerInternal.PackageListObserver> observerCaptor = in setUp()
138 ArgumentCaptor.forClass(PackageManagerInternal.PackageListObserver.class); in setUp()
DActivityTestsBase.java55 import android.content.pm.PackageManagerInternal;
456 private PackageManagerInternal mPmInternal;
569 PackageManagerInternal getPackageManagerInternalLocked() { in getPackageManagerInternalLocked()
571 mPmInternal = mock(PackageManagerInternal.class); in getPackageManagerInternalLocked()
648 PackageManagerInternal mockPackageManager = mock(PackageManagerInternal.class); in TestActivityManagerService()
/frameworks/base/core/java/android/content/pm/
DPackageList.java21 import android.content.pm.PackageManagerInternal.PackageListObserver;
70 LocalServices.getService(PackageManagerInternal.class).removePackageListObserver(this); in close()
/frameworks/base/services/core/java/com/android/server/signedconfig/
DSignedConfigService.java25 import android.content.pm.PackageManagerInternal;
57 private final PackageManagerInternal mPacMan;
61 mPacMan = LocalServices.getService(PackageManagerInternal.class); in SignedConfigService()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNetworkLogger.java22 import android.content.pm.PackageManagerInternal;
47 private final PackageManagerInternal mPm;
86 NetworkLogger(DevicePolicyManagerService dpm, PackageManagerInternal pm) { in NetworkLogger()
/frameworks/base/services/core/java/com/android/server/policy/role/
DLegacyRoleResolutionPolicy.java25 import android.content.pm.PackageManagerInternal;
88 PackageManagerInternal packageManagerInternal = LocalServices.getService( in getRoleHolders()
89 PackageManagerInternal.class); in getRoleHolders()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java39 import android.content.pm.PackageManagerInternal;
40 import android.content.pm.PackageManagerInternal.PackageListObserver;
109 final PackageManagerInternal packageManagerInternal = LocalServices.getService( in onStart()
110 PackageManagerInternal.class); in onStart()
276 final PackageManagerInternal packageManagerInternal = LocalServices.getService( in grantOrUpgradeDefaultRuntimePermissionsIfNeeded()
277 PackageManagerInternal.class); in grantOrUpgradeDefaultRuntimePermissionsIfNeeded()
343 final PackageManagerInternal packageManagerInternal = LocalServices.getService( in synchronizePackagePermissionsAndAppOpsForUser()
344 PackageManagerInternal.class); in synchronizePackagePermissionsAndAppOpsForUser()
373 final PackageManagerInternal packageManagerInternal = LocalServices.getService( in synchronizePermissionsAndAppOpsForUser()
374 PackageManagerInternal.class); in synchronizePermissionsAndAppOpsForUser()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java33 import android.content.pm.PackageManagerInternal;
113 doReturn(mock(PackageManagerInternal.class)) in setUp()
114 .when(() -> LocalServices.getService(PackageManagerInternal.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java21 import android.content.pm.PackageManagerInternal;
40 PackageManagerInternal pmi) { in signaturesMatch()
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java39 import android.content.pm.PackageManagerInternal;
156 PackageManagerInternal packageManagerInternal = LocalServices.getService( in RoleManagerService()
157 PackageManagerInternal.class); in RoleManagerService()
281 PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in computeComponentStateHash()
699 private class DefaultBrowserProvider implements PackageManagerInternal.DefaultBrowserProvider {
753 private class DefaultDialerProvider implements PackageManagerInternal.DefaultDialerProvider {
763 private class DefaultHomeProvider implements PackageManagerInternal.DefaultHomeProvider {
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackManagerServiceImpl.java33 import android.content.pm.PackageManagerInternal;
178 PackageManagerInternal.EXTRA_ENABLE_ROLLBACK_TOKEN, -1); in RollbackManagerServiceImpl()
180 PackageManagerInternal.EXTRA_ENABLE_ROLLBACK_INSTALL_FLAGS, 0); in RollbackManagerServiceImpl()
182 PackageManagerInternal.EXTRA_ENABLE_ROLLBACK_USER, 0); in RollbackManagerServiceImpl()
189 int ret = PackageManagerInternal.ENABLE_ROLLBACK_SUCCEEDED; in RollbackManagerServiceImpl()
191 ret = PackageManagerInternal.ENABLE_ROLLBACK_FAILED; in RollbackManagerServiceImpl()
194 PackageManagerInternal pm = LocalServices.getService( in RollbackManagerServiceImpl()
195 PackageManagerInternal.class); in RollbackManagerServiceImpl()
215 PackageManagerInternal.EXTRA_ENABLE_ROLLBACK_TOKEN, -1); in RollbackManagerServiceImpl()
983 final PackageManagerInternal pmi = LocalServices.getService( in snapshotAndRestoreUserData()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsPersister.java21 import android.content.pm.PackageManagerInternal;
106 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in onSystemReady()
307 private class PackageListObserver implements PackageManagerInternal.PackageListObserver {
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java27 import android.content.pm.PackageManagerInternal;
60 private PackageManagerInternal mMockPackageManagerInternal;
64 mMockPackageManagerInternal = mock(PackageManagerInternal.class); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java48 import android.content.pm.PackageManagerInternal;
109 PackageManagerInternal mockPackageManagerInternal = mock(PackageManagerInternal.class); in mockPackageManagerInternalGetApplicationInfo()
113 () -> LocalServices.getService(PackageManagerInternal.class)); in mockPackageManagerInternalGetApplicationInfo()

1234