Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DManageExternalStorageDetailsTest.java94 PackageInfo pkgInfo = mock(PackageInfo.class); in onPreferenceChange_enableManageExternalStorage_shouldTriggerAppOpsManager() local
95 pkgInfo.applicationInfo = new ApplicationInfo(); in onPreferenceChange_enableManageExternalStorage_shouldTriggerAppOpsManager()
96 pkgInfo.applicationInfo.uid = mockUid; in onPreferenceChange_enableManageExternalStorage_shouldTriggerAppOpsManager()
98 ReflectionHelpers.setField(mFragment, "mPackageInfo", pkgInfo); in onPreferenceChange_enableManageExternalStorage_shouldTriggerAppOpsManager()
129 PackageInfo pkgInfo = mock(PackageInfo.class); in onPreferenceChange_disableManageExternalStorage_shouldTriggerAppOpsManager() local
130 pkgInfo.applicationInfo = new ApplicationInfo(); in onPreferenceChange_disableManageExternalStorage_shouldTriggerAppOpsManager()
131 pkgInfo.applicationInfo.uid = mockUid; in onPreferenceChange_disableManageExternalStorage_shouldTriggerAppOpsManager()
133 ReflectionHelpers.setField(mFragment, "mPackageInfo", pkgInfo); in onPreferenceChange_disableManageExternalStorage_shouldTriggerAppOpsManager()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/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 …]
DPermissionControllerServiceImpl.java316 PackageInfo pkgInfo = getPkgInfo(pkgName); in onRevokeRuntimePermissions() local
317 if (pkgInfo == null) { in onRevokeRuntimePermissions()
335 AppPermissions appPerms = new AppPermissions(this, pkgInfo, false, true, null); in onRevokeRuntimePermissions()
525 PackageInfo pkgInfo = getPkgInfo(packageName); in onSetRuntimePermissionGrantStateByDeviceAdmin() local
526 if (pkgInfo == null) { in onSetRuntimePermissionGrantStateByDeviceAdmin()
536 AppPermissions app = new AppPermissions(this, pkgInfo, false, true, null); in onSetRuntimePermissionGrantStateByDeviceAdmin()
538 new AutoGrantPermissionsNotifier(this, pkgInfo); 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()
DRuntimePermissionsUpgradeController.kt385 LightPermission(perm.pkgInfo, perm.permInfo, perm.isGrantedIncludingAppOp, in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPermission.kt37 val pkgInfo: LightPackageInfo, constant in com.android.permissioncontroller.permission.model.livedatatypes.LightPermission
45 pkgInfo: LightPackageInfo,
50 this(pkgInfo, permInfo, permState.granted, permState.permFlags, foregroundPerms)
95 !SoftRestrictedPermissionPolicy.shouldShow(pkgInfo, permInfo.name, flags)
/packages/services/Car/service/src/com/android/car/pm/
DCarAppMetadataReader.java65 PackageInfo pkgInfo = in findDistractionOptimizedActivitiesAsUser() local
73 if (pkgInfo == null) { in findDistractionOptimizedActivitiesAsUser()
77 ActivityInfo[] activities = pkgInfo.activities; in findDistractionOptimizedActivitiesAsUser()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java61 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference() local
62 if (pkgInfo != null) { in AppPreference()
63 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.java406 PackageInfo pkgInfo = pref.getPackageInfo(); in onPreferenceClick() local
407 AppDialogFragment.show(this, pkgInfo, pref.getLabel(), false /* editing */, connected); in onPreferenceClick()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppHeaderViewPreferenceController.java82 private void setAppLabelAndIcon(PackageInfo pkgInfo, AppEntry appEntry) { in setAppLabelAndIcon() argument
84 final boolean isInstantApp = AppUtils.isInstant(pkgInfo.applicationInfo); in setAppLabelAndIcon()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DApprovalPreferenceController.java49 public ApprovalPreferenceController setPkgInfo(PackageInfo pkgInfo) { in setPkgInfo() argument
50 mPkgInfo = pkgInfo; in setPkgInfo()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt547 val pkgInfo = group.packageInfo in <lambda>() constant
548 val user = UserHandle.getUserHandleForUid(pkgInfo.uid) in <lambda>()
549 val supportsRuntime = pkgInfo.targetSdkVersion >= Build.VERSION_CODES.M in <lambda>()
550 val isGrantingAllowed = (!pkgInfo.isInstantApp || perm.isInstantPerm) && in <lambda>()
626 return LightPermission(perm.pkgInfo, perm.permInfo, newState, in <lambda>()
824 return LightPermission(perm.pkgInfo, perm.permInfo, newState, in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DIconCache.java262 PackageItemInfo pkgInfo = new PackageItemInfo(shortcutInfo.getPackage()); in getShortcutInfoBadge() local
263 getTitleAndIconForApp(pkgInfo, false); in getShortcutInfoBadge()
264 return pkgInfo.bitmap; in getShortcutInfoBadge()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/
DGrantRevokeTests.kt175 pkgInfo: LightPackageInfo, in createMockPerm()
184 return LightPermission(pkgInfo, permInfo, in createMockPerm()
185 pkgInfo.requestedPermissionsFlags[pkgInfo.requestedPermissions.indexOf(permName)] in createMockPerm()
196 pkgInfo: LightPackageInfo, in createMockGroup()
200 return LightAppPermGroup(pkgInfo, pGi, perms, false, false) in createMockGroup()
/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/Bluetooth/src/com/android/bluetooth/
DUtils.java586 PackageInfo pkgInfo = pm.getPackageInfo(packageName, GET_PERMISSIONS); in hasDisavowedLocationForScan() local
587 for (int i = 0; i < pkgInfo.requestedPermissions.length; i++) { in hasDisavowedLocationForScan()
588 if (pkgInfo.requestedPermissions[i].equals(BLUETOOTH_SCAN)) { in hasDisavowedLocationForScan()
589 return (pkgInfo.requestedPermissionsFlags[i] in hasDisavowedLocationForScan()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java391 ProviderInfo pkgInfo = getProviderInfo(getContext(), in updateAccessoryPref() local
393 if (pkgInfo != null) { in updateAccessoryPref()
394 updateConnectedDevicePref(pkgInfo.packageName, connectedDevicesSlicePreference); in updateAccessoryPref()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java217 final PackageInfo pkgInfo; in buildPackageInfo() local
218 pkgInfo = systemPackageInfoWithPermissions(permissions); in buildPackageInfo()
219 pkgInfo.packageName = packageName; in buildPackageInfo()
220 pkgInfo.applicationInfo.uid = uid; in buildPackageInfo()
221 return pkgInfo; in buildPackageInfo()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityDiagnosticsManagerTest.java237 final PackageInfo pkgInfo = in getCertHashForThisPackage() local
241 final byte[] certHash = md.digest(pkgInfo.signatures[0].toByteArray()); in getCertHashForThisPackage()
/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseMonitor.cpp582 IoOveruseMonitor::UserPackageIoUsage::UserPackageIoUsage(const PackageInfo& pkgInfo, in UserPackageIoUsage() argument
585 packageInfo = pkgInfo; in UserPackageIoUsage()
/packages/apps/SecureElement/src/com/android/se/
DTerminal.java772 PackageInfo pkgInfo = in setUpChannelAccess() local
775 if (mAccessControlEnforcer.checkCarrierPrivilege(pkgInfo, false)) { in setUpChannelAccess()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DBaseActivity.java644 PackageInfo pkgInfo = getPackageManager().getPackageInfo(packageName, in getExcludedAuthorities() local
646 for (ProviderInfo provider: pkgInfo.providers) { in getExcludedAuthorities()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java6813 PackageInfo pkgInfo = packages.get(p); in getPackagesWithCarrierPrivileges() local
6814 if (pkgInfo != null && pkgInfo.packageName != null in getPackagesWithCarrierPrivileges()
6815 && card.getCarrierPrivilegeStatus(pkgInfo) in getPackagesWithCarrierPrivileges()
6817 privilegedPackages.add(pkgInfo.packageName); in getPackagesWithCarrierPrivileges()