Home
last modified time | relevance | path

Searched refs:packageManagerInternal (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/services/permission/java/com/android/server/permission/access/
DAccessCheckingService.kt57 private lateinit var packageManagerInternal: PackageManagerInternal in <lambda>() variable
76 packageManagerInternal = LocalServices.getService(PackageManagerInternal::class.java) in <lambda>()
84 val knownPackages = packageManagerInternal.knownPackages in <lambda>()
159 val knownPackages = packageManagerInternal.knownPackages in <lambda>()
176 val knownPackages = packageManagerInternal.knownPackages in <lambda>()
191 val knownPackages = packageManagerInternal.knownPackages in <lambda>()
207 val knownPackages = packageManagerInternal.knownPackages in <lambda>()
223 val knownPackages = packageManagerInternal.knownPackages in <lambda>()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPackageUtils.java192 PackageManagerInternal packageManagerInternal, @NonNull String packageName) {
193 return isPackageAllowlisted(context, packageManagerInternal, packageName,
201 PackageManagerInternal packageManagerInternal, String packageName) {
202 return isPackageAllowlisted(context, packageManagerInternal, packageName,
207 PackageManagerInternal packageManagerInternal, String packageName,
225 final Signature[] requestingPackageSignatures = packageManagerInternal.getPackage(
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionMigrationHelperImpl.java44 PackageManagerInternal packageManagerInternal = in hasLegacyPermission() local
46 LegacyPermissionSettings legacySettings = packageManagerInternal.getLegacyPermissions(); in hasLegacyPermission()
135 PackageManagerInternal packageManagerInternal = in getLegacyPermissionStateVersion() local
137 int version = packageManagerInternal.getLegacyPermissionsVersion(userId); in getLegacyPermissionStateVersion()
DLegacyPermissionManagerService.java334 final PackageManagerInternal packageManagerInternal = LocalServices.getService( in resetRuntimePermissions() local
339 packageManagerInternal.forEachPackage(pkg -> { in resetRuntimePermissions()
DPermission.java403 @NonNull PackageManagerInternal packageManagerInternal) { in isOverridingSystemPermission() argument
411 var currentPackageState = packageManagerInternal.getPackageStateInternal( in isOverridingSystemPermission()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java104 PackageManagerInternal packageManagerInternal, in forBackup() argument
107 return new BackupEligibilityRules(packageManager, packageManagerInternal, userId, context, in forBackup()
112 PackageManagerInternal packageManagerInternal, in BackupEligibilityRules() argument
116 this(packageManager, packageManagerInternal, userId, context, backupDestination, in BackupEligibilityRules()
121 PackageManagerInternal packageManagerInternal, in BackupEligibilityRules() argument
127 mPackageManagerInternal = packageManagerInternal; in BackupEligibilityRules()
/frameworks/base/services/core/java/com/android/server/
DPruneInstantAppsJobService.java52 PackageManagerInternal packageManagerInternal = LocalServices.getService( in onStartJob() local
54 packageManagerInternal.pruneInstantApps(); in onStartJob()
DSensitiveContentProtectionManagerService.java250 PackageManagerInternal packageManagerInternal, ArraySet<String> exemptedPackages) { in init() argument
258 mPackageManagerInternal = packageManagerInternal; in init()
/frameworks/base/services/core/java/com/android/server/policy/role/
DRoleServicePlatformHelperImpl.java217 PackageManagerInternal packageManagerInternal = LocalServices.getService( in readFromLegacySettings() local
219 String browserPackageName = packageManagerInternal.removeLegacyDefaultBrowserPackageName( in readFromLegacySettings()
306 PackageManagerInternal packageManagerInternal = LocalServices.getService( in computePackageStateHash() local
313 packageManagerInternal.forEachInstalledPackage(pkg -> { in computePackageStateHash()
317 dataOutputStream.writeInt(packageManagerInternal.getApplicationEnabledState( in computePackageStateHash()
327 packageManagerInternal.getEnabledComponents(pkg.getPackageName(), userId); in computePackageStateHash()
335 packageManagerInternal.getDisabledComponents(pkg.getPackageName(), userId); in computePackageStateHash()
/frameworks/base/services/core/java/com/android/server/media/
DMediaServerUtils.java75 final PackageManagerInternal packageManagerInternal = in enforcePackageName() local
77 if (!packageManagerInternal.isSameApp(packageName, uid, UserHandle.getUserId(uid))) { in enforcePackageName()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java226 when(getServices().packageManagerInternal.isAdminSuspendingAnyPackages( in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()
231 verify(getServices().packageManagerInternal, never()) in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()
237 verify(getServices().packageManagerInternal, never()) in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()
260 when(getServices().packageManagerInternal.isAdminSuspendingAnyPackages( in testCompMigration_unsuspendAppsWhenDpcNotRPlus()
266 verify(getServices().packageManagerInternal) in testCompMigration_unsuspendAppsWhenDpcNotRPlus()
DOwnersTest.java132 services.packageManagerInternal, services.activityTaskManagerInternal, in makeOwners()
DMockSystemServices.java108 public final PackageManagerInternal packageManagerInternal; field in MockSystemServices
168 packageManagerInternal = mock(PackageManagerInternal.class); in MockSystemServices()
207 when(packageManagerInternal.getSystemUiServiceComponent()).thenReturn( in MockSystemServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DProcessRecordTests.java85 final PackageManagerInternal packageManagerInternal = mock(PackageManagerInternal.class); in setUpOnce() local
86 LocalServices.addService(PackageManagerInternal.class, packageManagerInternal); in setUpOnce()
88 doReturn(sysUiName).when(packageManagerInternal).getSystemUiServiceComponent(); in setUpOnce()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DClientController.java53 ClientController(PackageManagerInternal packageManagerInternal) { in ClientController() argument
54 mPackageManagerInternal = packageManagerInternal; in ClientController()
DInputMethodUtils.java187 static boolean checkIfPackageBelongsToUid(PackageManagerInternal packageManagerInternal, in checkIfPackageBelongsToUid() argument
191 return packageManagerInternal.isSameApp(packageName, /* flags= */ 0, uid, in checkIfPackageBelongsToUid()
DInputMethodSettings.java629 @NonNull PackageManagerInternal packageManagerInternal, int callingUid) { in getNewAdditionalSubtypeMap() argument
634 if (!InputMethodUtils.checkIfPackageBelongsToUid(packageManagerInternal, callingUid, in getNewAdditionalSubtypeMap()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermissionService.kt118 private lateinit var packageManagerInternal: PackageManagerInternal in <lambda>() variable in com.android.server.permission.access.permission.PermissionService
150 packageManagerInternal = LocalServices.getService(PackageManagerInternal::class.java) in <lambda>()
476 val androidPackage = packageManagerInternal.getPackage(uid) in <lambda>()
480 packageManagerInternal.getPackageStateInternal(androidPackage.packageName) in <lambda>()
735 val callingUidName = packageManagerInternal.getNameForUid(callingUid) in <lambda>()
769 packageManagerInternal in <lambda>()
1288 val callingUidName = packageManagerInternal.getNameForUid(callingUid) in <lambda>()
1330 val targetSdkVersion = packageManagerInternal.getUidTargetSdkVersion(callingUid) in <lambda>()
1345 val packageState = packageManagerInternal.getPackageStateInternal(packageName) in <lambda>()
1352 packageManagerInternal.filterAppAccess(packageName, callingUid, userId, false) in <lambda>()
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/
DBackupRestoreProcessor.java65 @NonNull PackageManagerInternal packageManagerInternal, in BackupRestoreProcessor() argument
71 mPackageManagerInternal = packageManagerInternal; in BackupRestoreProcessor()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java305 final PackageManagerInternal packageManagerInternal = mock(PackageManagerInternal.class);
306 LocalServices.addService(PackageManagerInternal.class, packageManagerInternal);
307 doReturn(false).when(packageManagerInternal).isPermissionsReviewRequired(
309 doReturn(null).when(packageManagerInternal).getDefaultHomeActivity(anyInt());
312 doReturn(systemServiceComponent).when(packageManagerInternal).getSystemUiServiceComponent();
/frameworks/base/services/companion/java/com/android/server/companion/association/
DAssociationRequestsProcessor.java136 @NonNull PackageManagerInternal packageManagerInternal, in AssociationRequestsProcessor() argument
139 mPackageManagerInternal = packageManagerInternal; in AssociationRequestsProcessor()
/frameworks/base/services/core/java/com/android/server/am/
DProcessErrorStateRecord.java580 final PackageManagerInternal packageManagerInternal = mService.getPackageManagerInternal(); in appNotResponding() local
581 if (mApp.info != null && mApp.info.packageName != null && packageManagerInternal != null) { in appNotResponding()
583 packageManagerInternal.getIncrementalStatesInfo( in appNotResponding()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java124 @NonNull PackageManagerInternal packageManagerInternal) { in AccessibilitySecurityPolicy() argument
128 mPackageManagerInternal = packageManagerInternal; in AccessibilitySecurityPolicy()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java88 PackageManagerInternal packageManagerInternal, in Owners() argument
95 mPackageManagerInternal = packageManagerInternal; in Owners()
/frameworks/base/services/core/java/com/android/server/pdb/
DPersistentDataBlockService.java1278 PackageManagerInternal packageManagerInternal = in isUpgradingFromPreVRelease() local
1280 if (packageManagerInternal == null) { in isUpgradingFromPreVRelease()
1285 return packageManagerInternal in isUpgradingFromPreVRelease()

12