Home
last modified time | relevance | path

Searched refs:mPackageInfo (Results 1 – 17 of 17) sorted by relevance

/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java48 private final PackageInfo mPackageInfo; field in AppPermissionGroup
190 mPackageInfo = packageInfo; in AppPermissionGroup()
236 return mPackageInfo; in getApp()
268 if (LocationUtils.isLocationGroupAndProvider(mName, mPackageInfo.packageName)) { in areRuntimePermissionsGranted()
288 final boolean isSharedUser = mPackageInfo.sharedUserId != null; in grantRuntimePermissions()
289 final int uid = mPackageInfo.applicationInfo.uid; in grantRuntimePermissions()
310 mPackageManager.grantRuntimePermission(mPackageInfo.packageName, in grantRuntimePermissions()
322 mPackageInfo.packageName, in grantRuntimePermissions()
358 mPackageInfo.packageName, in grantRuntimePermissions()
376 final boolean isSharedUser = mPackageInfo.sharedUserId != null; in revokeRuntimePermissions()
[all …]
DAppPermissions.java56 private PackageInfo mPackageInfo; field in AppPermissions
61 mPackageInfo = packageInfo; in AppPermissions()
70 return mPackageInfo; in getPackageInfo()
93 mPackageInfo = mContext.getPackageManager().getPackageInfo( in loadPackageInfo()
94 mPackageInfo.packageName, PackageManager.GET_PERMISSIONS); in loadPackageInfo()
105 if (mPackageInfo.requestedPermissions == null) { in loadPermissionGroups()
111 for (String requestedPerm : mPackageInfo.requestedPermissions) { in loadPermissionGroups()
121 mPackageInfo, requestedPerm); in loadPermissionGroups()
131 for (String requestedPerm : mPackageInfo.requestedPermissions) { in loadPermissionGroups()
137 mPackageInfo, requestedPerm); in loadPermissionGroups()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DAppWorkaroundsUtils.java26 private final PackageInfo mPackageInfo; // May be null field in AppWorkaroundsUtils
30 mPackageInfo = packageInfo; in AppWorkaroundsUtils()
40 if (null == mPackageInfo || null == mPackageInfo.applicationInfo) { in isBeforeJellyBean()
43 return mPackageInfo.applicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN; in isBeforeJellyBean()
48 if (null == mPackageInfo || null == mPackageInfo.applicationInfo) { in toString()
53 .append(mPackageInfo.applicationInfo.name) in toString()
55 .append(mPackageInfo.applicationInfo.packageName) in toString()
57 .append(mPackageInfo.applicationInfo.targetSdkVersion); in toString()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppDialogFragment.java48 private PackageInfo mPackageInfo; field in AppDialogFragment
75 mPackageInfo = (PackageInfo) args.getParcelable(ARG_PACKAGE); in onCreateDialog()
78 return new AppDialog(getActivity(), this, mPackageInfo, label); in onCreateDialog()
107 final int userId = UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in onForget()
109 mService.setVpnPackageAuthorization(mPackageInfo.packageName, userId, false); in onForget()
112 Log.e(TAG, "Failed to forget authorization of " + mPackageInfo.packageName + in onForget()
118 final int userId = UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in onDisconnect()
124 if (mPackageInfo.packageName.equals(vpnConfig.user)) { in onDisconnect()
125 mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); in onDisconnect()
128 Log.e(TAG, "Failed to disconnect package " + mPackageInfo.packageName + in onDisconnect()
DAppDialog.java44 private final PackageInfo mPackageInfo; field in AppDialog
51 mPackageInfo = pkgInfo; in AppDialog()
56 return mPackageInfo; in getPackageInfo()
62 setMessage(getContext().getString(R.string.vpn_version, mPackageInfo.versionName)); in onCreate()
/packages/apps/Settings/src/com/android/settings/applications/
DAppPermissions.java42 private final PackageInfo mPackageInfo; field in AppPermissions
46 mPackageInfo = getPackageInfo(packageName); in AppPermissions()
61 if (mPackageInfo != null) { in refresh()
82 if (mPackageInfo.requestedPermissions == null) { in loadPermissionGroups()
87 mPackageInfo.applicationInfo); in loadPermissionGroups()
89 for (int i = 0; i < mPackageInfo.requestedPermissions.length; i++) { in loadPermissionGroups()
90 String requestedPerm = mPackageInfo.requestedPermissions[i]; in loadPermissionGroups()
111 final boolean granted = (mPackageInfo.requestedPermissionsFlags[i] in loadPermissionGroups()
DInstalledAppDetails.java168 || Utils.isSystemPackage(mPm, mPackageInfo)) { in handleDisableable()
193 if ((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in initUninstallButtons()
203 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in initUninstallButtons()
207 if (isProfileOrDeviceOwner(mPackageInfo.packageName)) { in initUninstallButtons()
217 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in initUninstallButtons()
230 enabled = !mPackageInfo.packageName.equals(currentDefaultHome.getPackageName()); in initUninstallButtons()
392 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onPrepareOptionsMenu()
471 if (mPackageInfo == null) { in refreshUi()
495 setAppLabelAndIcon(mPackageInfo); in refreshUi()
661 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) {
[all …]
DAppOpsDetails.java58 private PackageInfo mPackageInfo; field in AppOpsDetails
83 mPackageInfo = mPm.getPackageInfo(packageName, in retrieveAppEntry()
88 mPackageInfo = null; in retrieveAppEntry()
95 if (mPackageInfo == null) { in refreshUi()
99 setAppLabelAndIcon(mPackageInfo); in refreshUi()
107 mPackageInfo.applicationInfo.uid, mPackageInfo.packageName); in refreshUi()
DRunningState.java343 PackageItemInfo mPackageInfo; field in RunningState.BaseItem
363 if (mPackageInfo != null) { in loadIcon()
364 Drawable unbadgedIcon = mPackageInfo.loadUnbadgedIcon(state.mPm); in loadIcon()
428 mPackageInfo = ai; in ensureLabel()
445 mPackageInfo = ai; in ensureLabel()
462 mPackageInfo = pi.applicationInfo; in ensureLabel()
475 mPackageInfo = ai; in ensureLabel()
476 mDisplayLabel = mPackageInfo.loadLabel(pm); in ensureLabel()
487 mPackageInfo = ai; in ensureLabel()
517 si.mPackageInfo = si.mServiceInfo.applicationInfo; in updateService()
[all …]
DAppInfoWithHeader.java42 if (mPackageInfo == null) return; in onActivityCreated()
43 AppHeader.createAppHeader(this, mPackageInfo.applicationInfo.loadIcon(mPm), in onActivityCreated()
44 mPackageInfo.applicationInfo.loadLabel(mPm), getInfoIntent(this, mPackageName), 0); in onActivityCreated()
DDrawOverlayDetails.java125 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanDrawOverlay()
131 mPackageInfo.applicationInfo.uid, pkgName); in canDrawOverlay()
142 mPackageInfo.applicationInfo.uid); in refreshUi()
DAppInfoBase.java60 protected PackageInfo mPackageInfo; field in AppInfoBase
123 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry()
132 mPackageInfo = null; in retrieveAppEntry()
DWriteSettingsDetails.java124 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanWriteSettings()
130 mPackageInfo.applicationInfo.uid, pkgName); in canWriteSettings()
141 mPackageInfo.applicationInfo.uid); in refreshUi()
DRunningProcessesView.java176 if (item.mPackageInfo == null && item instanceof RunningState.MergedItem) { in bind()
182 item.mPackageInfo = ((RunningState.MergedItem)item).mProcess.mPackageInfo; in bind()
DUsageAccessDetails.java122 mAppOpsManager.setMode(AppOpsManager.OP_GET_USAGE_STATS, mPackageInfo.applicationInfo.uid, in setHasAccess()
129 mPackageInfo.applicationInfo.uid); in refreshUi()
DRunningServiceDetails.java186 mAm.killBackgroundProcesses(mActiveItem.mItem.mPackageInfo.packageName); in onClick()
190 mAm.forceStopPackage(mActiveItem.mItem.mPackageInfo.packageName); in onClick()
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DInstallPackageTaskTest.java53 private PackageInfo mPackageInfo; field in InstallPackageTaskTest
66 mPackageInfo = new PackageInfo(); in setUp()
73 mPackageInfo.packageName = TEST_PACKAGE_NAME; in setUp()
74 mPackageInfo.receivers = new ActivityInfo[] {mActivityInfo}; in setUp()
79 thenReturn(mPackageInfo); in setUp()