Home
last modified time | relevance | path

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

123456

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DAppErrorDialogTest.java26 import android.content.pm.PackageManagerInternal;
55 final PackageManagerInternal pm = mock(PackageManagerInternal.class); in setUpOnce()
57 LocalServices.addService(PackageManagerInternal.class, pm); in setUpOnce()
62 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDownOnce()
DProcessRecordTests.java32 import android.content.pm.PackageManagerInternal;
82 final PackageManagerInternal packageManagerInternal = mock(PackageManagerInternal.class); in setUpOnce()
83 LocalServices.addService(PackageManagerInternal.class, packageManagerInternal); in setUpOnce()
102 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDownOnce()
DOomAdjusterTests.java34 import android.content.pm.PackageManagerInternal;
56 private static PackageManagerInternal sPackageManagerInternal;
96 sPackageManagerInternal = mock(PackageManagerInternal.class); in setUpOnce()
99 LocalServices.addService(PackageManagerInternal.class, sPackageManagerInternal); in setUpOnce()
137 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDownOnce()
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java30 import android.content.pm.PackageManagerInternal;
128 final PackageManagerInternal pm = in getSearchableInfo()
129 LocalServices.getService(PackageManagerInternal.class); in getSearchableInfo()
189 final PackageManagerInternal pm = in getSearchableInfo()
190 LocalServices.getService(PackageManagerInternal.class); in getSearchableInfo()
468 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in createFilterdSearchableInfoList()
484 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in createFilterdResolveInfoList()
500 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in getGlobalSearchActivity()
514 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;
38 @Mock protected PackageManagerInternal mPmi;
62 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setup()
63 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup()
/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()
/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/core/java/com/android/server/pm/
DPackageList.java21 import android.content.pm.PackageManagerInternal;
22 import android.content.pm.PackageManagerInternal.PackageListObserver;
71 LocalServices.getService(PackageManagerInternal.class).removePackageListObserver(this); in close()
DUserSystemPackageInstaller.java24 import android.content.pm.PackageManagerInternal;
213 final PackageManagerInternal pmInt = LocalServices.getService(PackageManagerInternal.class); in installWhitelistedSystemPackages()
327 final PackageManagerInternal pmInt = LocalServices.getService(PackageManagerInternal.class); in getPackagesWhitelistWarnings()
357 final PackageManagerInternal pmInt = LocalServices.getService(PackageManagerInternal.class); in getPackagesWhitelistErrors()
504 final PackageManagerInternal pmInt = LocalServices.getService(PackageManagerInternal.class); in getInstallablePackagesForUserType()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageVerificationStateTest.java20 import android.content.pm.PackageManagerInternal;
227 state.setIntegrityVerificationResult(PackageManagerInternal.INTEGRITY_VERIFICATION_ALLOW); in testAreAllVerificationsComplete_onlyIntegrityCheckPasses()
237 state.setIntegrityVerificationResult(PackageManagerInternal.INTEGRITY_VERIFICATION_ALLOW); in testAreAllVerificationsComplete_bothPasses()
258 state.setIntegrityVerificationResult(PackageManagerInternal.INTEGRITY_VERIFICATION_REJECT); in testAreAllVerificationsComplete_onlyIntegrityCheckFails()
/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;
48 private final PackageManagerInternal mPm;
106 NetworkLogger(DevicePolicyManagerService dpm, PackageManagerInternal pm, int targetUserId) { in NetworkLogger()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayShellCommand.java19 import android.content.pm.PackageManagerInternal;
89 return LocalServices.getService(PackageManagerInternal.class).getPackage(packageNameArg) in getPackageName()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java43 import android.content.pm.PackageManagerInternal;
130 private final PackageManagerInternal mPackageManagerInternal;
142 LocalServices.getService(PackageManagerInternal.class), in create()
152 PackageManagerInternal packageManagerInternal, in AppIntegrityManagerServiceImpl()
291 verificationId, PackageManagerInternal.INTEGRITY_VERIFICATION_ALLOW); in handleIntegrityVerification()
302 verificationId, PackageManagerInternal.INTEGRITY_VERIFICATION_ALLOW); in handleIntegrityVerification()
352 ? PackageManagerInternal.INTEGRITY_VERIFICATION_ALLOW in handleIntegrityVerification()
353 : PackageManagerInternal.INTEGRITY_VERIFICATION_REJECT); in handleIntegrityVerification()
359 verificationId, PackageManagerInternal.INTEGRITY_VERIFICATION_REJECT); in handleIntegrityVerification()
365 verificationId, PackageManagerInternal.INTEGRITY_VERIFICATION_ALLOW); in handleIntegrityVerification()
/frameworks/base/services/core/java/com/android/server/security/
DFileIntegrityService.java24 import android.content.pm.PackageManagerInternal;
88 final PackageManagerInternal packageManager =
89 LocalServices.getService(PackageManagerInternal.class);
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java35 import android.content.pm.PackageManagerInternal;
92 private PackageManagerInternal mMockPmi;
93 private PackageManagerInternal.PackageListObserver mObserver;
134 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
135 mMockPmi = mock(PackageManagerInternal.class); in setUp()
136 LocalServices.addService(PackageManagerInternal.class, mMockPmi); in setUp()
142 final ArgumentCaptor<PackageManagerInternal.PackageListObserver> observerCaptor = in setUp()
143 ArgumentCaptor.forClass(PackageManagerInternal.PackageListObserver.class); in setUp()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java35 import android.content.pm.PackageManagerInternal;
62 private final PackageManagerInternal mPackageManagerInternal;
85 PackageManagerInternal packageManagerInternal, in forBackup()
92 PackageManagerInternal packageManagerInternal, in BackupEligibilityRules()
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/policy/
DPermissionPolicyService.java42 import android.content.pm.PackageManagerInternal;
43 import android.content.pm.PackageManagerInternal.PackageListObserver;
130 final PackageManagerInternal packageManagerInternal = LocalServices.getService( in onStart()
131 PackageManagerInternal.class); in onStart()
398 final PackageManagerInternal packageManagerInternal = in grantOrUpgradeDefaultRuntimePermissionsIfNeeded()
399 LocalServices.getService(PackageManagerInternal.class); in grantOrUpgradeDefaultRuntimePermissionsIfNeeded()
469 final PackageManagerInternal packageManagerInternal = LocalServices.getService( in synchronizePackagePermissionsAndAppOpsForUser()
470 PackageManagerInternal.class); in synchronizePackagePermissionsAndAppOpsForUser()
498 final PackageManagerInternal packageManagerInternal = LocalServices.getService( in synchronizePermissionsAndAppOpsForUser()
499 PackageManagerInternal.class); in synchronizePermissionsAndAppOpsForUser()
[all …]
/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/tests/servicestests/src/com/android/server/uri/
DUriGrantsMockContext.java32 import android.content.pm.PackageManagerInternal;
103 final PackageManagerInternal mPmInternal;
118 mPmInternal = mock(PackageManagerInternal.class); in UriGrantsMockContext()
119 LocalServices.removeServiceForTest(PackageManagerInternal.class); in UriGrantsMockContext()
120 LocalServices.addService(PackageManagerInternal.class, mPmInternal); in UriGrantsMockContext()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java21 import android.content.pm.PackageManagerInternal;
40 PackageManagerInternal pmi) { in signaturesMatch()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DAppChildProcessTest.java32 import android.content.pm.PackageManagerInternal;
70 @Mock private PackageManagerInternal mPackageManagerInt;
114 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
115 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
120 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDown()
/frameworks/base/services/core/java/com/android/server/policy/role/
DRoleServicePlatformHelperImpl.java28 import android.content.pm.PackageManagerInternal;
211 PackageManagerInternal packageManagerInternal = LocalServices.getService( in readFromLegacySettings()
212 PackageManagerInternal.class); in readFromLegacySettings()
300 PackageManagerInternal packageManagerInternal = LocalServices.getService( in computePackageStateHash()
301 PackageManagerInternal.class); in computePackageStateHash()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackManagerServiceImpl.java35 import android.content.pm.PackageManagerInternal;
232 PackageManagerInternal.EXTRA_ENABLE_ROLLBACK_TOKEN, -1); in RollbackManagerServiceImpl()
234 PackageManagerInternal.EXTRA_ENABLE_ROLLBACK_SESSION_ID, -1); in RollbackManagerServiceImpl()
241 int ret = PackageManagerInternal.ENABLE_ROLLBACK_SUCCEEDED; in RollbackManagerServiceImpl()
243 ret = PackageManagerInternal.ENABLE_ROLLBACK_FAILED; in RollbackManagerServiceImpl()
246 PackageManagerInternal pm = LocalServices.getService( in RollbackManagerServiceImpl()
247 PackageManagerInternal.class); in RollbackManagerServiceImpl()
269 PackageManagerInternal.EXTRA_ENABLE_ROLLBACK_SESSION_ID, -1); in RollbackManagerServiceImpl()
876 final PackageManagerInternal pmi = LocalServices.getService(
877 PackageManagerInternal.class);
[all …]

123456