Home
last modified time | relevance | path

Searched refs:pkgInfo (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java365 PackageInfo pkgInfo = new PackageInfo(); in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull() local
366 pkgInfo.packageName = PKG_1; in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
368 pkgInfo.applicationInfo = new ApplicationInfo(); in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
369 pkgInfo.applicationInfo.packageName = PKG_1; in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
370 pkgInfo.applicationInfo.flags = PRIVATE_FLAG_SIGNED_WITH_PLATFORM_KEY | FLAG_INSTALLED; in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
373 getShadowPackageManager().addPackage(pkgInfo); in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
374 ShadowApplicationPackageManager.setPackageInfo(pkgInfo); in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
390 PackageInfo pkgInfo = new PackageInfo(); in maybeShowHeadsUp_isSystemApp_returnsNotNull() local
391 pkgInfo.packageName = PKG_1; in maybeShowHeadsUp_isSystemApp_returnsNotNull()
393 pkgInfo.applicationInfo = new ApplicationInfo(); in maybeShowHeadsUp_isSystemApp_returnsNotNull()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DBackupHelper.java227 PackageInfo pkgInfo; in restoreState() local
229 pkgInfo = mContext.getPackageManager().getPackageInfo(pkgState.mPackageName, in restoreState()
236 pkgState.restore(mContext, pkgInfo); in restoreState()
348 PackageInfo pkgInfo = null; in restoreDelayedState() local
350 pkgInfo = mContext.getPackageManager().getPackageInfo(packageName, GET_PERMISSIONS); in restoreDelayedState()
355 if (pkgInfo != null) { in restoreDelayedState()
361 pkgState.restore(mContext, pkgInfo); in restoreDelayedState()
672 @NonNull PackageInfo pkgInfo) { in fromAppPermissions() argument
673 AppPermissions appPerms = new AppPermissions(context, pkgInfo, false, null); in fromAppPermissions()
696 return new BackupPackageState(pkgInfo.packageName, permissionsToRestore); in fromAppPermissions()
[all …]
DRuntimePermissionsUpgradeController.java288 final PackageInfo pkgInfo = apps.get(i); in onUpgradeLocked() local
290 if (!ArrayUtils.contains(pkgInfo.requestedPermissions, in onUpgradeLocked()
296 pkgInfo.applicationInfo.uid) != PackageManager.PERMISSION_GRANTED) { in onUpgradeLocked()
300 final AppPermissionGroup group = AppPermissionGroup.create(context, pkgInfo, in onUpgradeLocked()
311 pkgInfo.applicationInfo.uid, pkgInfo.packageName, in onUpgradeLocked()
DPermissionControllerServiceImpl.java254 PackageInfo pkgInfo = getPkgInfo(pkgName); in onRevokeRuntimePermissions() local
255 if (pkgInfo == null) { in onRevokeRuntimePermissions()
273 AppPermissions appPerms = new AppPermissions(this, pkgInfo, false, true, null); in onRevokeRuntimePermissions()
518 PackageInfo pkgInfo = getPkgInfo(packageName); in onSetRuntimePermissionGrantStateByDeviceAdmin() local
519 if (pkgInfo == null) { in onSetRuntimePermissionGrantStateByDeviceAdmin()
529 AppPermissions app = new AppPermissions(this, pkgInfo, false, true, null); in onSetRuntimePermissionGrantStateByDeviceAdmin()
DLocationAccessCheck.java381 PackageInfo pkgInfo = null; in addLocationNotificationIfNeeded() local
382 while (pkgInfo == null) { in addLocationNotificationIfNeeded()
410 pkgInfo = packageToNotifyFor.getPackageInfo(); in addLocationNotificationIfNeeded()
416 createPermissionReminderChannel(getUserHandleForUid(pkgInfo.applicationInfo.uid)); in addLocationNotificationIfNeeded()
417 createNotificationForLocationUser(pkgInfo); in addLocationNotificationIfNeeded()
/packages/services/Car/service/src/com/android/car/pm/
DCarAppMetadataReader.java61 PackageInfo pkgInfo = in findDistractionOptimizedActivitiesAsUser() local
69 if (pkgInfo == null) { in findDistractionOptimizedActivitiesAsUser()
73 ActivityInfo[] activities = pkgInfo.activities; in findDistractionOptimizedActivitiesAsUser()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java57 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference() local
58 if (pkgInfo != null) { in AppPreference()
59 icon = pkgInfo.applicationInfo.loadIcon(pm); in AppPreference()
DAppDialog.java44 AppDialog(Context context, Listener listener, PackageInfo pkgInfo, String label) { in AppDialog() argument
48 mPackageInfo = pkgInfo; in AppDialog()
DVpnSettings.java396 PackageInfo pkgInfo = pref.getPackageInfo(); in onPreferenceClick() local
397 AppDialogFragment.show(this, pkgInfo, pref.getLabel(), false /* editing */, connected); in onPreferenceClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DAppPreference.java57 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference() local
58 if (pkgInfo != null) { in AppPreference()
59 icon = pkgInfo.applicationInfo.loadIcon(pm); in AppPreference()
DAppDialog.java44 AppDialog(Context context, Listener listener, PackageInfo pkgInfo, String label) { in AppDialog() argument
48 mPackageInfo = pkgInfo; in AppDialog()
DVpnSettings.java397 PackageInfo pkgInfo = pref.getPackageInfo(); in onPreferenceClick() local
398 AppDialogFragment.show(this, pkgInfo, pref.getLabel(), false /* editing */, connected); in onPreferenceClick()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIcons.java183 PackageItemInfo pkgInfo = new PackageItemInfo(badgePkg); in getShortcutInfoBadge() local
184 cache.getTitleAndIconForApp(pkgInfo, false); in getShortcutInfoBadge()
185 return pkgInfo; in getShortcutInfoBadge()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppHeaderViewPreferenceController.java89 private void setAppLabelAndIcon(PackageInfo pkgInfo, AppEntry appEntry) { in setAppLabelAndIcon() argument
91 final boolean isInstantApp = AppUtils.isInstant(pkgInfo.applicationInfo); in setAppLabelAndIcon()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppHeaderViewPreferenceController.java89 private void setAppLabelAndIcon(PackageInfo pkgInfo, AppEntry appEntry) { in setAppLabelAndIcon() argument
91 final boolean isInstantApp = AppUtils.isInstant(pkgInfo.applicationInfo); in setAppLabelAndIcon()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DQsbApplication.java91 PackageInfo pkgInfo = pm.getPackageInfo(getContext().getPackageName(), 0); in getVersionCode() local
92 mVersionCode = pkgInfo.versionCode; in getVersionCode()
/packages/apps/SecureElement/src/com/android/se/
DTerminal.java764 PackageInfo pkgInfo = in setUpChannelAccess() local
767 if (mAccessControlEnforcer.checkCarrierPrivilege(pkgInfo, false)) { in setUpChannelAccess()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DBaseActivity.java579 PackageInfo pkgInfo = getPackageManager().getPackageInfo(packageName, in getExcludedAuthorities() local
581 for (ProviderInfo provider: pkgInfo.providers) { in getExcludedAuthorities()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java5943 PackageInfo pkgInfo = packages.get(p); in getPackagesWithCarrierPrivileges() local
5944 if (pkgInfo != null && pkgInfo.packageName != null in getPackagesWithCarrierPrivileges()
5945 && card.getCarrierPrivilegeStatus(pkgInfo) in getPackagesWithCarrierPrivileges()
5947 privilegedPackages.add(pkgInfo.packageName); in getPackagesWithCarrierPrivileges()