Home
last modified time | relevance | path

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

12

/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/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java50 private final PackageInfo mPackageInfo; field in AppPermissionGroup
196 mPackageInfo = packageInfo; in AppPermissionGroup()
245 mPackageInfo.packageName, in resetReviewRequired()
264 return mPackageInfo; in getApp()
304 if (LocationUtils.isLocationGroupAndProvider(mName, mPackageInfo.packageName)) { in areRuntimePermissionsGranted()
331 final int uid = mPackageInfo.applicationInfo.uid; in grantRuntimePermissions()
362 mPackageManager.grantRuntimePermission(mPackageInfo.packageName, in grantRuntimePermissions()
374 mPackageInfo.packageName, in grantRuntimePermissions()
421 mPackageInfo.packageName, mask, 0, mUserHandle); in grantRuntimePermissions()
438 final int uid = mPackageInfo.applicationInfo.uid; in revokeRuntimePermissions()
[all …]
DAppPermissions.java44 private PackageInfo mPackageInfo; field in AppPermissions
49 mPackageInfo = packageInfo; in AppPermissions()
60 return mPackageInfo; in getPackageInfo()
96 mPackageInfo = mContext.getPackageManager().getPackageInfo( in loadPackageInfo()
97 mPackageInfo.packageName, PackageManager.GET_PERMISSIONS); in loadPackageInfo()
108 if (mPackageInfo.requestedPermissions == null) { in loadPermissionGroups()
114 for (String requestedPerm : mPackageInfo.requestedPermissions) { in loadPermissionGroups()
123 for (String requestedPerm : mPackageInfo.requestedPermissions) { in loadPermissionGroups()
144 mPackageInfo, permission); in addPermissionGroupIfNeeded()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java220 if (mPackageInfo != null) {
221 mSipper = findTargetSipper(batteryHelper, mPackageInfo.applicationInfo.uid);
240 || Utils.isSystemPackage(getContext().getResources(), mPm, mPackageInfo)) { in handleDisableable()
270 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in initUninstallButtons()
277 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in initUninstallButtons()
297 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in initUninstallButtons()
310 enabled = !mPackageInfo.packageName.equals(currentDefaultHome.getPackageName()); in initUninstallButtons()
339 if ((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in initUnintsallButtonForUserApp()
344 } else if (AppUtils.isInstant(mPackageInfo.applicationInfo)) { in initUnintsallButtonForUserApp()
493 if (mPackageInfo == null) { in ensurePackageInfoAvailable()
[all …]
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()
DAppInfoWithHeader.java42 if (mPackageInfo == null) return; in onActivityCreated()
48 .getBadgedIcon(mPackageInfo.applicationInfo)) in onActivityCreated()
49 .setLabel(mPackageInfo.applicationInfo.loadLabel(mPm)) in onActivityCreated()
50 .setSummary(mPackageInfo) in onActivityCreated()
51 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in onActivityCreated()
53 .setUid(mPackageInfo.applicationInfo.uid) in onActivityCreated()
DAppOpsDetails.java59 private PackageInfo mPackageInfo; field in AppOpsDetails
84 mPackageInfo = mPm.getPackageInfo(packageName, in retrieveAppEntry()
89 mPackageInfo = null; in retrieveAppEntry()
96 if (mPackageInfo == null) { in refreshUi()
100 setAppLabelAndIcon(mPackageInfo); in refreshUi()
108 mPackageInfo.applicationInfo.uid, mPackageInfo.packageName); in refreshUi()
DRunningState.java342 PackageItemInfo mPackageInfo; field in RunningState.BaseItem
362 if (mPackageInfo != null) { in loadIcon()
363 Drawable unbadgedIcon = mPackageInfo.loadUnbadgedIcon(state.mPm); in loadIcon()
427 mPackageInfo = ai; in ensureLabel()
444 mPackageInfo = ai; in ensureLabel()
461 mPackageInfo = pi.applicationInfo; in ensureLabel()
474 mPackageInfo = ai; in ensureLabel()
475 mDisplayLabel = mPackageInfo.loadLabel(pm); in ensureLabel()
486 mPackageInfo = ai; in ensureLabel()
516 si.mPackageInfo = si.mServiceInfo.applicationInfo; in updateService()
[all …]
DWriteSettingsDetails.java119 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanWriteSettings()
132 mPackageInfo.applicationInfo.uid, pkgName); in canWriteSettings()
143 mPackageInfo.applicationInfo.uid); in refreshUi()
DAppInfoBase.java73 protected PackageInfo mPackageInfo; field in AppInfoBase
150 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry()
160 mPackageInfo = null; in retrieveAppEntry()
DPictureInPictureDetails.java75 … setEnterPipStateForPackage(getActivity(), mPackageInfo.applicationInfo.uid, mPackageName, in onPreferenceChange()
85 mPackageInfo.applicationInfo.uid, mPackageName); in refreshUi()
DExternalSourcesDetails.java102 mPackageInfo.applicationInfo.uid, mPackageName, in setCanInstallApps()
120 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.java126 mAppOpsManager.setMode(AppOpsManager.OP_GET_USAGE_STATS, mPackageInfo.applicationInfo.uid, in setHasAccess()
141 mPackageInfo.applicationInfo.uid); in refreshUi()
DDrawOverlayDetails.java142 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanDrawOverlay()
157 mPackageInfo.applicationInfo.uid); in refreshUi()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppDialogFragment.java50 private PackageInfo mPackageInfo; field in AppDialogFragment
107 mPackageInfo = args.getParcelable(ARG_PACKAGE); in onCreateDialog()
110 return new AppDialog(getActivity(), this, mPackageInfo, label); in onCreateDialog()
147 mService.setVpnPackageAuthorization(mPackageInfo.packageName, userId, false); in onForget()
150 Log.e(TAG, "Failed to forget authorization of " + mPackageInfo.packageName + in onForget()
165 if (mPackageInfo.packageName.equals(VpnUtils.getConnectedPackage(mService, userId))) { in onDisconnect()
167 mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); in onDisconnect()
170 Log.e(TAG, "Failed to disconnect package " + mPackageInfo.packageName + in onDisconnect()
181 return UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in getUserId()
DAppManagementFragment.java74 private PackageInfo mPackageInfo; field in AppManagementFragment
136 getPrefContext().getString(R.string.vpn_version, mPackageInfo.versionName)); in onResume()
178 AppDialogFragment.show(this, mForgetVpnDialogFragmentListener, mPackageInfo, mVpnLabel, in onForgetVpnClick()
285 mPackageInfo = mPackageManager.getPackageInfo(mPackageName, /* PackageInfoFlags */ 0); in loadInfo()
292 if (mPackageInfo.applicationInfo == null) { in loadInfo()
296 if (!appHasVpnPermission(getContext(), mPackageInfo.applicationInfo)) { in loadInfo()
DAppDialog.java40 private final PackageInfo mPackageInfo; field in AppDialog
47 mPackageInfo = pkgInfo; in AppDialog()
52 return mPackageInfo; in getPackageInfo()
58 setMessage(getContext().getString(R.string.vpn_version, mPackageInfo.versionName)); in onCreate()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAppButtonsPreferenceController.java96 PackageInfo mPackageInfo; field in AppButtonsPreferenceController
216 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick()
345 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry()
354 mPackageInfo = null; in retrieveAppEntry()
357 mPackageInfo = null; in retrieveAppEntry()
368 if ((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in updateUninstallButton()
377 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton()
384 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton()
405 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in updateUninstallButton()
418 enabled = !mPackageInfo.packageName.equals(currentDefaultHome.getPackageName()); in updateUninstallButton()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAppButtonsPreferenceControllerTest.java100 private PackageInfo mPackageInfo; field in AppButtonsPreferenceControllerTest
129 mPackageInfo.packageName = PACKAGE_NAME; in setUp()
130 mPackageInfo.applicationInfo = mAppInfo; in setUp()
134 mController.mPackageInfo = mPackageInfo; in setUp()
150 doReturn(mPackageInfo).when(mPackageManger).getPackageInfo(anyString(), anyInt()); in testRetrieveAppEntry_hasAppEntry_notNull()
155 assertThat(mController.mPackageInfo).isNotNull(); in testRetrieveAppEntry_hasAppEntry_notNull()
162 doReturn(mPackageInfo).when(mPackageManger).getPackageInfo(anyString(), anyInt()); in testRetrieveAppEntry_noAppEntry_null()
167 assertThat(mController.mPackageInfo).isNull(); in testRetrieveAppEntry_noAppEntry_null()
180 assertThat(mController.mPackageInfo).isNull(); in testRetrieveAppEntry_throwException_null()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DAllAppPermissionsFragment.java60 private PackageInfo mPackageInfo; field in AllAppPermissionsFragment
84 mPackageInfo = getActivity().getPackageManager().getPackageInfo(pkg, in onCreate()
90 mAppPermissions = new AppPermissions(getActivity(), mPackageInfo, null, false, in onCreate()
133 ApplicationInfo appInfo = mPackageInfo.applicationInfo; in updateUi()
140 .setData(Uri.fromParts("package", mPackageInfo.packageName, null)); in updateUi()
144 if (mPackageInfo.requestedPermissions != null) { in updateUi()
145 for (int i = 0; i < mPackageInfo.requestedPermissions.length; i++) { in updateUi()
148 perm = pm.getPermissionInfo(mPackageInfo.requestedPermissions[i], 0); in updateUi()
151 + mPackageInfo.requestedPermissions[i], e); in updateUi()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DVerifyPackageTaskTest.java68 @Mock private PackageInfo mPackageInfo; field in VerifyPackageTaskTest
79 mPackageInfo.packageName = TEST_PACKAGE_NAME; in setUp()
80 mPackageInfo.signatures = TEST_SIGNATURES; in setUp()
84 .thenReturn(mPackageInfo); in setUp()
88 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in setUp()
108 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in testMissingDeviceAdminComponent()
192 mPackageInfo.signatures = null; in testSignatureHash_noSignature()
/packages/apps/Settings/tests/robotests/src/com/android/settings/vpn2/
DAppDialogFragmentTest.java42 private PackageInfo mPackageInfo; field in AppDialogFragmentTest
47 mPackageInfo = new PackageInfo(); in setUp()
52 AppDialogFragment.show(mParent, mPackageInfo, "label", false /* manage */, in notManagingOrConnected_shouldNotShow()
60 AppDialogFragment.show(mParent, mPackageInfo, "label", false /* manage */, in notManagingAndConnected_showShow()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailFragment.java58 private PackageInfo mPackageInfo; field in ApplicationDetailFragment
82 mPackageInfo = getPackageInfo(); in onActivityCreated()
118 R.string.application_version_label, mPackageInfo.versionName))); in getLineItems()
149 getResources(), getContext().getPackageManager(), mPackageInfo)) { in updateDisableable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppInfoWithHeaderTest.java134 mPackageInfo = new PackageInfo(); in TestFragment()
135 mPackageInfo.applicationInfo = new ApplicationInfo(); in TestFragment()

12