/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/ |
D | PermissionApps.java | 52 private final PackageManager mPm; field in PermissionApps 82 mPm = mContext.getPackageManager(); in PermissionApps() 194 return mPm.getInstalledPackagesAsUser(PackageManager.GET_PERMISSIONS, in getPackageInfos() 198 final PackageInfo packageInfo = mPm.getPackageInfo(mPackageName, in getPackageInfos() 282 label = app.applicationInfo.loadLabel(mPm).toString(); in loadPermissionApps() 319 info = mPm.getPermissionGroupInfo(mGroupName, 0); in loadGroupInfo() 322 PermissionInfo permInfo = mPm.getPermissionInfo(mGroupName, 0); in loadGroupInfo() 334 mLabel = info.loadLabel(mPm); in loadGroupInfo() 335 mFullLabel = info.loadSafeLabel(mPm, 0, in loadGroupInfo() 338 mIcon = info.loadUnbadgedIcon(mPm); in loadGroupInfo() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppLaunchSettings.java | 64 private PackageManager mPm; field in AppLaunchSettings 81 mPm = getActivity().getPackageManager(); in onCreate() 88 … List<IntentFilterVerificationInfo> iviList = mPm.getIntentFilterVerifications(mPackageName); in onCreate() 89 List<IntentFilter> filters = mPm.getAllIntentFilters(mPackageName); in onCreate() 101 List<ResolveInfo> list = mPm.queryIntentActivitiesAsUser(sBrowserIntent, in isBrowserApp() 144 … final int state = mPm.getIntentVerificationStatusAsUser(mPackageName, UserHandle.myUserId()); in buildStateDropDown() 177 final int priorState = mPm.getIntentVerificationStatusAsUser(mPackageName, userId); in updateAppLinkState() 183 boolean success = mPm.updateIntentVerificationStatusAsUser(mPackageName, newState, userId); in updateAppLinkState() 186 final int updatedState = mPm.getIntentVerificationStatusAsUser(mPackageName, userId); in updateAppLinkState() 196 ArraySet<String> result = Utils.getHandledDomains(mPm, packageName); in getEntries()
|
D | ClearDefaultsPreference.java | 52 private PackageManager mPm; field in ClearDefaultsPreference 63 mPm = context.getPackageManager(); in ClearDefaultsPreference() 100 mPm.clearPackagePreferredActivities(mPackageName); in onBindViewHolder() 102 mPm.setDefaultBrowserPackageNameAsUser(null, userId); in onBindViewHolder() 124 boolean autoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, mPackageName) in updateUI() 170 final String defaultBrowser = mPm.getDefaultBrowserPackageNameAsUser(UserHandle.myUserId()); in isDefaultBrowser()
|
D | ApplicationFeatureProviderImpl.java | 45 private final PackageManager mPm; field in ApplicationFeatureProviderImpl 53 mPm = pm; in ApplicationFeatureProviderImpl() 62 new CurrentUserAndManagedProfilePolicyInstalledAppCounter(mContext, mPm, callback); in calculateNumberOfPolicyInstalledApps() 73 new CurrentUserPolicyInstalledAppLister(mPm, mUm, callback); in listPolicyInstalledApps() 82 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions() 94 new CurrentUserAppWithAdminGrantedPermissionsLister(permissions, mPm, mPms, mDpm, in listAppsWithAdminGrantedPermissions()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppLaunchSettings.java | 64 private PackageManager mPm; field in AppLaunchSettings 81 mPm = getActivity().getPackageManager(); in onCreate() 88 … List<IntentFilterVerificationInfo> iviList = mPm.getIntentFilterVerifications(mPackageName); in onCreate() 89 List<IntentFilter> filters = mPm.getAllIntentFilters(mPackageName); in onCreate() 101 List<ResolveInfo> list = mPm.queryIntentActivitiesAsUser(sBrowserIntent, in isBrowserApp() 144 … final int state = mPm.getIntentVerificationStatusAsUser(mPackageName, UserHandle.myUserId()); in buildStateDropDown() 177 final int priorState = mPm.getIntentVerificationStatusAsUser(mPackageName, userId); in updateAppLinkState() 183 boolean success = mPm.updateIntentVerificationStatusAsUser(mPackageName, newState, userId); in updateAppLinkState() 186 final int updatedState = mPm.getIntentVerificationStatusAsUser(mPackageName, userId); in updateAppLinkState() 196 ArraySet<String> result = Utils.getHandledDomains(mPm, packageName); in getEntries()
|
D | ClearDefaultsPreference.java | 52 private PackageManager mPm; field in ClearDefaultsPreference 63 mPm = context.getPackageManager(); in ClearDefaultsPreference() 100 mPm.clearPackagePreferredActivities(mPackageName); in onBindViewHolder() 102 mPm.setDefaultBrowserPackageNameAsUser(null, userId); in onBindViewHolder() 124 boolean autoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, mPackageName) in updateUI() 170 final String defaultBrowser = mPm.getDefaultBrowserPackageNameAsUser(UserHandle.myUserId()); in isDefaultBrowser()
|
D | ApplicationFeatureProviderImpl.java | 45 private final PackageManager mPm; field in ApplicationFeatureProviderImpl 53 mPm = pm; in ApplicationFeatureProviderImpl() 62 new CurrentUserAndManagedProfilePolicyInstalledAppCounter(mContext, mPm, callback); in calculateNumberOfPolicyInstalledApps() 73 new CurrentUserPolicyInstalledAppLister(mPm, mUm, callback); in listPolicyInstalledApps() 82 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions() 94 new CurrentUserAppWithAdminGrantedPermissionsLister(permissions, mPm, mPms, mDpm, in listAppsWithAdminGrantedPermissions()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 109 private final PackageManager mPm; field in AppButtonsPreferenceController 141 mPm = activity.getPackageManager(); in AppButtonsPreferenceController() 149 mAppLaunchIntent = mPm.getLaunchIntentForPackage(mPackageName); in AppButtonsPreferenceController() 250 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in onClick() 279 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleActivityResult() 293 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleDialogClick() 354 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry() 372 mAppLaunchIntent = mPm.getLaunchIntentForPackage(mPackageName); in updateOpenButton() 425 ComponentName currentDefaultHome = mPm.getHomeActivities(homeActivities); in updateUninstallButton() 563 || isSystemPackage(mActivity.getResources(), mPm, mPackageInfo)) { in handleDisableable() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 109 private final PackageManager mPm; field in AppButtonsPreferenceController 141 mPm = activity.getPackageManager(); in AppButtonsPreferenceController() 149 mAppLaunchIntent = mPm.getLaunchIntentForPackage(mPackageName); in AppButtonsPreferenceController() 249 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in onClick() 278 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleActivityResult() 292 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleDialogClick() 353 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry() 371 mAppLaunchIntent = mPm.getLaunchIntentForPackage(mPackageName); in updateOpenButton() 424 ComponentName currentDefaultHome = mPm.getHomeActivities(homeActivities); in updateUninstallButton() 562 || isSystemPackage(mActivity.getResources(), mPm, mPackageInfo)) { in handleDisableable() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
D | ClearDefaultsPreferenceController.java | 47 private final PackageManager mPm; field in ClearDefaultsPreferenceController 54 mPm = context.getPackageManager(); in ClearDefaultsPreferenceController() 64 boolean autoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, getPackageName()) in updateState() 82 mPm.clearPackagePreferredActivities(getPackageName()); in handlePreferenceClicked() 84 mPm.setDefaultBrowserPackageNameAsUser(/* packageName= */ null, userId); in handlePreferenceClicked() 97 String defaultBrowser = mPm.getDefaultBrowserPackageNameAsUser(getCurrentUserId()); in isDefaultBrowser()
|
D | AppLinkStatePreferenceController.java | 43 private final PackageManager mPm; field in AppLinkStatePreferenceController 49 mPm = context.getPackageManager(); in AppLinkStatePreferenceController() 83 int state = mPm.getIntentVerificationStatusAsUser(getPackageName(), in updateState() 99 int priorState = mPm.getIntentVerificationStatusAsUser(getPackageName(), in handlePreferenceChanged() 105 boolean success = mPm.updateIntentVerificationStatusAsUser(getPackageName(), newState, in handlePreferenceChanged() 109 int updatedState = mPm.getIntentVerificationStatusAsUser(getPackageName(), in handlePreferenceChanged()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
D | PrivateVolumeOptionMenuControllerTest.java | 54 private PackageManager mPm; field in PrivateVolumeOptionMenuControllerTest 73 Robolectric.setupActivity(Activity.class), mPrimaryInfo, mPm); in setUp() 85 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mPrimaryInfo); in testMigrateDataIsNotVisibleNormally() 96 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mVolumeInfo); in testMigrateDataIsVisibleWhenExternalVolumeIsPrimary() 106 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mVolumeInfo); in testMigrateDataIsNotVisibleWhenExternalVolumeIsNotMounted() 117 when(mPm.getPrimaryStorageCurrentVolume()).thenReturn(mVolumeInfo); in testMigrateDataGoesToMigrateWizard()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/actions/ |
D | Action.java | 38 protected PackageManager mPm; field in Action 46 mPm = pm; in Action() 69 icon = mPm.getApplicationIcon(packageName); in getAppIcon() 91 appInfo = mPm.getApplicationInfo(packageName, 0); in getAppName() 92 appName = (String) mPm.getApplicationLabel(appInfo); in getAppName()
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 45 private final PackageManager mPm; field in EnterprisePrivacyFeatureProviderImpl 57 mPm = pm; in EnterprisePrivacyFeatureProviderImpl() 184 return mPm.getApplicationInfoAsUser(packageName, 0 /* flags */, MY_USER_ID) in getImeLabelIfOwnerSet() 185 .loadLabel(mPm).toString(); in getImeLabelIfOwnerSet() 250 if (!mPm.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) { in getDeviceOwnerComponent() 284 final List<ResolveInfo> activities = mPm.queryIntentActivities(intent, 0); in getWorkPolicyInfoIntentDO() 308 final List<ResolveInfo> activities = mPm.queryIntentActivitiesAsUser(intent, 0, userId); in getWorkPolicyInfoIntentPO()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | QuickViewIntentBuilderTest.java | 32 private PackageManager mPm; field in QuickViewIntentBuilderTest 40 mPm = TestPackageManager.create(); in setUp() 51 mPm, mRes, TestEnv.FILE_IN_ARCHIVE, mEnv.archiveModel, false); in testSetsNoFeatures_InArchiveDocument() 62 new QuickViewIntentBuilder(mPm, mRes, TestEnv.FILE_JPG, mEnv.model, false); in testSetsFullFeatures_RegularDocument() 82 new QuickViewIntentBuilder(mPm, mRes, TestEnv.FILE_JPG, mEnv.model, true); in testPickerFeatures_RegularDocument()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationSettingsBase.java | 71 protected PackageManager mPm; field in NotificationSettingsBase 102 mPm = getPackageManager(); in onAttach() 115 mUid = mPm.getPackageUid(mPkg, 0); in onAttach() 198 mAppRow = mBackend.loadAppRow(mContext, mPm, mRm, mPkgInfo); in loadAppRow() 227 final List<ResolveInfo> resolveInfos = mPm.queryIntentActivities( in collectConfigActivities() 263 final String[] packages = mPm.getPackagesForUid(uid); in findPackageInfo() 270 return mPm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); in findPackageInfo()
|
D | ZenRuleSelectionDialog.java | 59 private static PackageManager mPm; field in ZenRuleSelectionDialog 80 mPm = mContext.getPackageManager(); in show() 118 ApplicationInfo info = mPm.getApplicationInfo(ri.packageName, 0); in bindType() 129 subtitle.setText(info.loadLabel(mPm)); in bindType() 200 getRuleInfo(mPm, ci); 236 return params[0].loadIcon(mPm); in doInBackground()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/ |
D | ResetAppsHelper.java | 47 private final PackageManager mPm; field in ResetAppsHelper 58 mPm = context.getPackageManager(); in ResetAppsHelper() 112 List<ApplicationInfo> apps = mPm.getInstalledApplications( in onClick() 121 if (mPm.getApplicationEnabledSetting(app.packageName) in onClick() 123 mPm.setApplicationEnabledSetting(app.packageName, in onClick()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationDetailsFragment.java | 93 private PackageManager mPm; field in ApplicationDetailsFragment 131 mPm = context.getPackageManager(); in onAttach() 204 mPackageInfo = mPm.getPackageInfo(mPackageName, in retrieveAppEntry() 274 if (Utils.isSystemPackage(getResources(), mPm, mPackageInfo)) { in shouldDisableUninstallButton() 323 ComponentName currentDefaultHome = mPm.getHomeActivities(homeActivities); in shouldDisableUninstallForHomeApp() 362 int match = mPm.checkSignatures(pkg1, pkg2); in signaturesMatch() 432 mPm.setApplicationEnabledSetting(mPackageName, 449 mPm.setApplicationEnabledSetting(mPackageName,
|
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/ |
D | ResetAppsHelper.java | 48 private final PackageManager mPm; field in ResetAppsHelper 59 mPm = context.getPackageManager(); in ResetAppsHelper() 113 final List<ApplicationInfo> apps = mPm.getInstalledApplications( in onClick() 129 if (mPm.getApplicationEnabledSetting(app.packageName) in onClick() 131 mPm.setApplicationEnabledSetting(app.packageName, in onClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | VirtualKeyboardPreferenceControllerTest.java | 60 private PackageManager mPm; field in VirtualKeyboardPreferenceControllerTest 71 when(mContext.getPackageManager()).thenReturn(mPm); in setUp() 105 when(imis.get(0).loadLabel(mPm)).thenReturn("label"); in updateState_singleIme_setImeLabelToSummary() 125 when(imis.get(0).loadLabel(mPm)).thenReturn(label1); in updateState_multiImeWithMixedLocale_setImeLabelToSummary() 127 when(imis.get(1).loadLabel(mPm)).thenReturn(label2); in updateState_multiImeWithMixedLocale_setImeLabelToSummary()
|
/packages/apps/Settings/src/com/android/settings/applications/managedomainurls/ |
D | DomainAppPreference.java | 36 private final PackageManager mPm; field in DomainAppPreference 43 mPm = context.getPackageManager(); in DomainAppPreference() 69 mPm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getDomainsSummary() 75 final ArraySet<String> result = Utils.getHandledDomains(mPm, packageName); in getDomainsSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenRuleSelectionDialog.java | 59 private static PackageManager mPm; field in ZenRuleSelectionDialog 80 mPm = mContext.getPackageManager(); in show() 118 ApplicationInfo info = mPm.getApplicationInfo(ri.packageName, 0); in bindType() 129 subtitle.setText(info.loadLabel(mPm)); in bindType() 200 getRuleInfo(mPm, ci); 236 return params[0].loadIcon(mPm); in doInBackground()
|
D | NotificationSettingsBase.java | 64 protected PackageManager mPm; field in NotificationSettingsBase 95 mPm = getPackageManager(); in onAttach() 107 mUid = mPm.getPackageUid(mPkg, 0); in onAttach() 191 mAppRow = mBackend.loadAppRow(mContext, mPm, mPkgInfo); in loadAppRow() 220 final List<ResolveInfo> resolveInfos = mPm.queryIntentActivities( in collectConfigActivities() 256 final String[] packages = mPm.getPackagesForUid(uid); in findPackageInfo() 263 return mPm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); in findPackageInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/managedomainurls/ |
D | DomainAppPreference.java | 36 private final PackageManager mPm; field in DomainAppPreference 43 mPm = context.getPackageManager(); in DomainAppPreference() 69 mPm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getDomainsSummary() 75 final ArraySet<String> result = Utils.getHandledDomains(mPm, packageName); in getDomainsSummary()
|