/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | AppWorkaroundsUtils.java | 26 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/ |
D | AppPermissionGroup.java | 50 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 …]
|
D | AppPermissions.java | 44 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/ |
D | InstalledAppDetails.java | 220 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 …]
|
D | AppPermissions.java | 42 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()
|
D | AppInfoWithHeader.java | 42 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()
|
D | AppOpsDetails.java | 59 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()
|
D | RunningState.java | 342 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 …]
|
D | WriteSettingsDetails.java | 119 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanWriteSettings() 132 mPackageInfo.applicationInfo.uid, pkgName); in canWriteSettings() 143 mPackageInfo.applicationInfo.uid); in refreshUi()
|
D | AppInfoBase.java | 73 protected PackageInfo mPackageInfo; field in AppInfoBase 150 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry() 160 mPackageInfo = null; in retrieveAppEntry()
|
D | PictureInPictureDetails.java | 75 … setEnterPipStateForPackage(getActivity(), mPackageInfo.applicationInfo.uid, mPackageName, in onPreferenceChange() 85 mPackageInfo.applicationInfo.uid, mPackageName); in refreshUi()
|
D | ExternalSourcesDetails.java | 102 mPackageInfo.applicationInfo.uid, mPackageName, in setCanInstallApps() 120 mPackageInfo.applicationInfo.uid); in refreshUi()
|
D | RunningProcessesView.java | 176 if (item.mPackageInfo == null && item instanceof RunningState.MergedItem) { in bind() 182 item.mPackageInfo = ((RunningState.MergedItem)item).mProcess.mPackageInfo; in bind()
|
D | UsageAccessDetails.java | 126 mAppOpsManager.setMode(AppOpsManager.OP_GET_USAGE_STATS, mPackageInfo.applicationInfo.uid, in setHasAccess() 141 mPackageInfo.applicationInfo.uid); in refreshUi()
|
D | DrawOverlayDetails.java | 142 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanDrawOverlay() 157 mPackageInfo.applicationInfo.uid); in refreshUi()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppDialogFragment.java | 50 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()
|
D | AppManagementFragment.java | 74 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()
|
D | AppDialog.java | 40 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/ |
D | AppButtonsPreferenceController.java | 96 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/ |
D | AppButtonsPreferenceControllerTest.java | 100 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/ |
D | AllAppPermissionsFragment.java | 60 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/ |
D | VerifyPackageTaskTest.java | 68 @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/ |
D | AppDialogFragmentTest.java | 42 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/ |
D | ApplicationDetailFragment.java | 58 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/ |
D | AppInfoWithHeaderTest.java | 134 mPackageInfo = new PackageInfo(); in TestFragment() 135 mPackageInfo.applicationInfo = new ApplicationInfo(); in TestFragment()
|