Home
last modified time | relevance | path

Searched refs:mPm (Results 1 – 25 of 118) sorted by relevance

12345

/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DPermissionApps.java52 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/
DAppLaunchSettings.java64 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()
DClearDefaultsPreference.java52 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()
DApplicationFeatureProviderImpl.java45 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/
DAppLaunchSettings.java64 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()
DClearDefaultsPreference.java52 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()
DApplicationFeatureProviderImpl.java45 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/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java109 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppButtonsPreferenceController.java109 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/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DClearDefaultsPreferenceController.java47 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()
DAppLinkStatePreferenceController.java43 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/
DPrivateVolumeOptionMenuControllerTest.java54 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/
DAction.java38 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/
DEnterprisePrivacyFeatureProviderImpl.java45 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/
DQuickViewIntentBuilderTest.java32 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/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailsFragment.java94 private PackageManager mPm; field in ApplicationDetailsFragment
133 mPm = context.getPackageManager(); in onAttach()
208 mPackageInfo = mPm.getPackageInfo(mPackageName, in retrieveAppEntry()
278 if (Utils.isSystemPackage(getResources(), mPm, mPackageInfo)) { in shouldDisableUninstallButton()
327 ComponentName currentDefaultHome = mPm.getHomeActivities(homeActivities); in shouldDisableUninstallForHomeApp()
366 int match = mPm.checkSignatures(pkg1, pkg2); in signaturesMatch()
453 mPm.setApplicationEnabledSetting(mPackageName,
461 mPm.setApplicationEnabledSetting(mPackageName,
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/
DResetAppsHelper.java47 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/Settings/src/com/android/settings/applications/manageapplications/
DResetAppsHelper.java47 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/Settings/tests/robotests/src/com/android/settings/inputmethod/
DVirtualKeyboardPreferenceControllerTest.java60 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenRuleSelectionDialog.java59 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()
DNotificationSettingsBase.java64 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/apps/Settings/src/com/android/settings/notification/
DZenRuleSelectionDialog.java59 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/apps/Settings/src/com/android/settings/applications/managedomainurls/
DDomainAppPreference.java36 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/applications/managedomainurls/
DDomainAppPreference.java36 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/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java60 private final PackageManager mPm; field in PackageManagerHelper
65 mPm = context.getPackageManager(); in PackageManagerHelper()
112 ResolveInfo target = mPm.resolveActivity(intent, 0); in hasPermissionForActivity()
127 if(mPm.checkPermission(target.activityInfo.permission, srcPackage) != in hasPermissionForActivity()
142 return mPm.getApplicationInfo(srcPackage, 0).targetSdkVersion >= Build.VERSION_CODES.M; in hasPermissionForActivity()

12345