Home
last modified time | relevance | path

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

12345678910

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionMigrationHelperImpl.java20 import android.content.pm.PackageManagerInternal;
44 PackageManagerInternal packageManagerInternal = in hasLegacyPermission()
45 LocalServices.getService(PackageManagerInternal.class); in hasLegacyPermission()
56 PackageManagerInternal mPackageManagerInternal = in getLegacyPermissions()
57 LocalServices.getService(PackageManagerInternal.class); in getLegacyPermissions()
67 PackageManagerInternal mPackageManagerInternal = in getLegacyPermissionTrees()
68 LocalServices.getService(PackageManagerInternal.class); in getLegacyPermissionTrees()
91 PackageManagerInternal mPackageManagerInternal = in getLegacyPermissionStates()
92 LocalServices.getService(PackageManagerInternal.class); in getLegacyPermissionStates()
135 PackageManagerInternal packageManagerInternal = in getLegacyPermissionStateVersion()
[all …]
/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;
85 final PackageManagerInternal packageManagerInternal = mock(PackageManagerInternal.class); in setUpOnce()
86 LocalServices.addService(PackageManagerInternal.class, packageManagerInternal); in setUpOnce()
105 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDownOnce()
DOomAdjusterTests.java34 import android.content.pm.PackageManagerInternal;
56 private static PackageManagerInternal sPackageManagerInternal;
68 sPackageManagerInternal = mock(PackageManagerInternal.class); in setUpOnce()
71 LocalServices.addService(PackageManagerInternal.class, sPackageManagerInternal); in setUpOnce()
117 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDownOnce()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/
DPackageUtilsTest.java26 import android.content.pm.PackageManagerInternal;
68 PackageManagerInternal pm = mock(PackageManagerInternal.class); in isAllowlisted_true()
92 PackageManagerInternal pm = mock(PackageManagerInternal.class); in isAllowlisted_package_disallowed()
116 PackageManagerInternal pm = mock(PackageManagerInternal.class); in isAllowlisted_signature_mismatch()
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java30 import android.content.pm.PackageManagerInternal;
135 final PackageManagerInternal pm = in getSearchableInfo()
136 LocalServices.getService(PackageManagerInternal.class); in getSearchableInfo()
199 final PackageManagerInternal pm = in getSearchableInfo()
200 LocalServices.getService(PackageManagerInternal.class); in getSearchableInfo()
512 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in createFilterdSearchableInfoList()
528 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in createFilterdResolveInfoList()
544 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in getGlobalSearchActivity()
558 final PackageManagerInternal pm = LocalServices.getService(PackageManagerInternal.class); in getWebSearchActivity()
/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;
215 final PackageManagerInternal pmInt = LocalServices.getService(PackageManagerInternal.class); in installWhitelistedSystemPackages()
348 final PackageManagerInternal pmInt = LocalServices.getService(PackageManagerInternal.class); in getPackagesWhitelistWarnings()
379 final PackageManagerInternal pmInt = LocalServices.getService(PackageManagerInternal.class); in getPackagesWhitelistErrors()
527 final PackageManagerInternal pmInt = LocalServices.getService(PackageManagerInternal.class); in getInstallablePackagesForUserType()
/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/tests/uiservicestests/src/com/android/server/
DUiServiceTestCase.java24 import android.content.pm.PackageManagerInternal;
43 @Mock protected PackageManagerInternal mPmi;
77 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setup()
78 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
DSmallAreaDetectionControllerTest.java28 import android.content.pm.PackageManagerInternal;
54 private PackageManagerInternal mMockPackageManagerInternal;
73 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setup()
74 LocalServices.addService(PackageManagerInternal.class, mMockPackageManagerInternal); in setup()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPreferredComponentTest.java30 import android.content.pm.PackageManagerInternal;
53 private PackageManagerInternal mMockPackageManagerInternal;
57 mMockPackageManagerInternal = mock(PackageManagerInternal.class); in setUp()
58 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
59 LocalServices.addService(PackageManagerInternal.class, mMockPackageManagerInternal); in setUp()
/frameworks/base/services/core/java/com/android/server/media/
DMediaServerUtils.java24 import android.content.pm.PackageManagerInternal;
75 final PackageManagerInternal packageManagerInternal = in enforcePackageName()
76 LocalServices.getService(PackageManagerInternal.class); in enforcePackageName()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java30 import android.content.pm.PackageManagerInternal;
66 private PackageManagerInternal mPackageManagerInternal;
78 () -> LocalServices.removeServiceForTest(PackageManagerInternal.class)
90 when(LocalServices.getService(PackageManagerInternal.class)).thenReturn( in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceTimeoutTest.java40 import android.content.pm.PackageManagerInternal;
85 private PackageManagerInternal mPackageManagerInt;
105 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
106 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
126 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDown()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPackageSuspender.java22 import android.content.pm.PackageManagerInternal;
49 private final PackageManagerInternal mPackageManager;
54 PackageManagerInternal pmi, int userId) { in PackageSuspender()
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/
DSmallAreaDetectionController.java22 import android.content.pm.PackageManagerInternal;
49 private final PackageManagerInternal mPackageManager;
65 mPackageManager = LocalServices.getService(PackageManagerInternal.class); in SmallAreaDetectionController()
154 private final class PackageReceiver implements PackageManagerInternal.PackageListObserver {
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java31 import android.content.pm.PackageManagerInternal;
54 @Mock protected PackageManagerInternal mPackageManagerInternal;
62 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
63 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInternal); in setUp()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DClientController.java21 import android.content.pm.PackageManagerInternal;
46 private final PackageManagerInternal mPackageManagerInternal;
53 ClientController(PackageManagerInternal packageManagerInternal) { in ClientController()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBinaryTransparencyServiceTest.java32 import android.content.pm.PackageManagerInternal;
85 private PackageManagerInternal mPackageManagerInternal;
99 LocalServices.removeServiceForTest(PackageManagerInternal.class); in setUp()
100 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInternal); in setUp()
115 LocalServices.removeServiceForTest(PackageManagerInternal.class); in tearDown()
/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/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java38 import android.content.pm.PackageManagerInternal;
79 private final PackageManagerInternal mPackageManagerInternal;
104 PackageManagerInternal packageManagerInternal, in forBackup()
112 PackageManagerInternal packageManagerInternal, in BackupEligibilityRules()
121 PackageManagerInternal packageManagerInternal, in BackupEligibilityRules()
/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()

12345678910