Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 414) sorted by relevance

12345678910>>...17

/packages/apps/Settings/src/com/android/settings/net/
DUidDetailProvider.java21 import android.content.pm.ApplicationInfo;
22 import android.content.pm.IPackageManager;
23 import android.content.pm.PackageInfo;
24 import android.content.pm.PackageManager;
25 import android.content.pm.PackageManager.NameNotFoundException;
26 import android.content.pm.UserInfo;
106 final PackageManager pm = mContext.getPackageManager(); in buildUidDetail() local
109 detail.label = pm.getNameForUid(uid); in buildUidDetail()
110 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail()
116 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DCrossProfileIntentFiltersHelper.java23 import android.content.pm.PackageManager;
35 public static void setFilters(PackageManager pm, int parentUserId, int managedProfileUserId) { in setFilters() argument
56 pm.addCrossProfileIntentFilter(mimeTypeTelephony, managedProfileUserId, parentUserId, in setFilters()
67 pm.addCrossProfileIntentFilter(callEmergency, managedProfileUserId, parentUserId, in setFilters()
77 pm.addCrossProfileIntentFilter(callVoicemail, managedProfileUserId, parentUserId, in setFilters()
90 pm.addCrossProfileIntentFilter(callDial, managedProfileUserId, parentUserId, 0); in setFilters()
95 pm.addCrossProfileIntentFilter(callButton, managedProfileUserId, parentUserId, 0); in setFilters()
102 pm.addCrossProfileIntentFilter(callDialNoData, managedProfileUserId, parentUserId, in setFilters()
114 pm.addCrossProfileIntentFilter(smsMms, managedProfileUserId, parentUserId, in setFilters()
121 pm.addCrossProfileIntentFilter(mobileNetworkSettings, managedProfileUserId, in setFilters()
[all …]
DManagedProvisioningActivity.java33 import android.content.pm.ApplicationInfo;
34 import android.content.pm.PackageManager;
35 import android.content.pm.ResolveInfo;
36 import android.content.pm.PackageManager.NameNotFoundException;
37 import android.content.pm.UserInfo;
187 PackageManager pm = getPackageManager(); in systemHasManagedProfileFeature() local
188 return pm.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS); in systemHasManagedProfileFeature()
195 PackageManager pm = getPackageManager(); in currentLauncherSupportsManagedProfiles() local
197 = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); in currentLauncherSupportsManagedProfiles()
233 PackageManager pm = getPackageManager(); in setMdmIcon() local
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java27 import android.content.pm.ApplicationInfo;
28 import android.content.pm.PackageInfo;
29 import android.content.pm.PackageItemInfo;
30 import android.content.pm.PackageManager;
31 import android.content.pm.ServiceInfo;
32 import android.content.pm.UserInfo;
377 void ensureLabel(PackageManager pm) { in ensureLabel() argument
383 ApplicationInfo ai = pm.getApplicationInfo(mProcessName, in ensureLabel()
386 mDisplayLabel = ai.loadLabel(pm); in ensureLabel()
396 String[] pkgs = pm.getPackagesForUid(mUid); in ensureLabel()
[all …]
DProcStatsEntry.java19 import android.content.pm.ApplicationInfo;
20 import android.content.pm.PackageInfo;
21 import android.content.pm.PackageManager;
102 public void evaluateTargetPackage(PackageManager pm, ProcessStats stats, in evaluateTargetPackage() argument
157 ApplicationInfo ai = pm.getApplicationInfo(subProcs.get(i).mPackage, 0); in evaluateTargetPackage()
206 public void retrieveUiData(PackageManager pm) { in retrieveUiData() argument
213 mUiTargetApp = pm.getApplicationInfo(mUiPackage, in retrieveUiData()
217 String name = mUiBaseLabel = mUiTargetApp.loadLabel(pm).toString(); in retrieveUiData()
235 String[] packages = pm.getPackagesForUid(mUid); in retrieveUiData()
239 final PackageInfo pi = pm.getPackageInfo(curPkg, in retrieveUiData()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java21 import android.content.pm.ApplicationInfo;
22 import android.content.pm.IPackageManager;
23 import android.content.pm.PackageInfo;
24 import android.content.pm.PackageManager;
25 import android.content.pm.UserInfo;
220 PackageManager pm = context.getPackageManager(); in getQuickNameIconForUid() local
221 String[] packages = pm.getPackagesForUid(uid); in getQuickNameIconForUid()
222 icon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid()
251 PackageManager pm = context.getPackageManager(); in loadNameAndIcon() local
253 final Drawable defaultActivityIcon = pm.getDefaultActivityIcon(); in loadNameAndIcon()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DUninstallerActivity.java28 import android.content.pm.ActivityInfo;
29 import android.content.pm.ApplicationInfo;
30 import android.content.pm.IPackageDeleteObserver2;
31 import android.content.pm.IPackageManager;
32 import android.content.pm.PackageInstaller;
33 import android.content.pm.PackageManager;
34 import android.content.pm.UserInfo;
57 final PackageManager pm = getActivity().getPackageManager(); in onCreateDialog() local
59 final CharSequence appLabel = dialogInfo.appInfo.loadLabel(pm); in onCreateDialog()
67 final CharSequence activityLabel = dialogInfo.activityInfo.loadLabel(pm); in onCreateDialog()
[all …]
DInstallAppProgress.java25 import android.content.pm.ApplicationInfo;
26 import android.content.pm.IPackageInstallObserver;
27 import android.content.pm.ManifestDigest;
28 import android.content.pm.PackageInfo;
29 import android.content.pm.PackageManager;
30 import android.content.pm.PackageManager.NameNotFoundException;
31 import android.content.pm.ResolveInfo;
32 import android.content.pm.VerificationParams;
229 PackageManager pm = getPackageManager();
231 PackageInfo pi = pm.getPackageInfo(mAppInfo.packageName,
[all …]
/packages/apps/Settings/src/com/android/settings/
DDreamBackend.java26 import android.content.pm.PackageManager;
27 import android.content.pm.ResolveInfo;
28 import android.content.pm.PackageManager.NameNotFoundException;
29 import android.content.pm.ServiceInfo;
98 PackageManager pm = mContext.getPackageManager(); in getDreamInfos() local
100 List<ResolveInfo> resolveInfos = pm.queryIntentServices(dreamIntent, in getDreamInfos()
107 dreamInfo.caption = resolveInfo.loadLabel(pm); in getDreamInfos()
108 dreamInfo.icon = resolveInfo.loadIcon(pm); in getDreamInfos()
111 dreamInfo.settingsComponentName = getSettingsComponentName(pm, resolveInfo); in getDreamInfos()
132 PackageManager pm = mContext.getPackageManager(); in getActiveDreamName() local
[all …]
DManagedProfileSetup.java23 import android.content.pm.PackageManager;
24 import android.content.pm.ResolveInfo;
31 import static android.content.pm.PackageManager.GET_ACTIVITIES;
32 import static android.content.pm.PackageManager.GET_META_DATA;
33 import static android.content.pm.PackageManager.GET_RESOLVED_FILTER;
53 final PackageManager pm = context.getPackageManager(); in onReceive() local
55 pm.clearCrossProfileIntentFilters(UserHandle.myUserId()); in onReceive()
63 List<ResolveInfo> resolvedIntents = pm.queryIntentActivities(intent, in onReceive()
73 pm.addCrossProfileIntentFilter(info.filter, UserHandle.myUserId(), in onReceive()
83 pm.setComponentEnabledSetting(settingsComponentName, in onReceive()
DUtils.java32 import android.content.pm.ApplicationInfo;
33 import android.content.pm.PackageInfo;
34 import android.content.pm.PackageManager;
35 import android.content.pm.PackageManager.NameNotFoundException;
36 import android.content.pm.ResolveInfo;
37 import android.content.pm.Signature;
38 import android.content.pm.UserInfo;
161 PackageManager pm = context.getPackageManager(); in updatePreferenceToSpecificActivityOrRemove() local
162 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in updatePreferenceToSpecificActivityOrRemove()
176 preference.setTitle(resolveInfo.loadLabel(pm)); in updatePreferenceToSpecificActivityOrRemove()
[all …]
DWallpaperTypeSettings.java22 import android.content.pm.PackageManager;
23 import android.content.pm.ResolveInfo;
47 final PackageManager pm = getPackageManager(); in populateWallpaperTypes() local
48 final List<ResolveInfo> rList = pm.queryIntentActivities(intent, in populateWallpaperTypes()
60 CharSequence label = info.loadLabel(pm); in populateWallpaperTypes()
74 final PackageManager pm = context.getPackageManager();
75 final List<ResolveInfo> rList = pm.queryIntentActivities(intent,
80 CharSequence label = info.loadLabel(pm);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppLoadingTask.java27 import android.content.pm.ActivityInfo;
28 import android.content.pm.ApplicationInfo;
29 import android.content.pm.IPackageManager;
30 import android.content.pm.PackageInfo;
31 import android.content.pm.PackageItemInfo;
32 import android.content.pm.PackageManager;
33 import android.content.pm.ResolveInfo;
34 import android.content.pm.PackageManager.NameNotFoundException;
413 final PackageManager pm = mPackageManager; in addSystemApps() local
414 List<ResolveInfo> launchableApps = pm.queryIntentActivities(intent, in addSystemApps()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java26 import android.content.pm.ApplicationInfo;
27 import android.content.pm.IPackageManager;
28 import android.content.pm.PackageInfo;
29 import android.content.pm.PackageManager;
30 import android.content.pm.PackageManager.NameNotFoundException;
31 import android.content.pm.ResolveInfo;
464 final PackageManager pm = mPackageManager; in addSystemApps()
465 List<ResolveInfo> launchableApps = pm.queryIntentActivities(intent, in addSystemApps()
476 int enabled = pm.getApplicationEnabledSetting(packageName); in addSystemApps()
489 info.appName = app.activityInfo.applicationInfo.loadLabel(pm); in addSystemApps()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAppList.java27 import android.content.pm.ActivityInfo;
28 import android.content.pm.ApplicationInfo;
29 import android.content.pm.LauncherActivityInfo;
30 import android.content.pm.LauncherApps;
31 import android.content.pm.PackageManager;
32 import android.content.pm.ResolveInfo;
33 import android.content.pm.Signature;
372 public static AppRow loadAppRow(PackageManager pm, ApplicationInfo app, in loadAppRow() argument
378 row.label = app.loadLabel(pm); in loadAppRow()
383 row.icon = app.loadIcon(pm); in loadAppRow()
[all …]
DAppNotificationSettings.java21 import android.content.pm.PackageInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PackageManager.NameNotFoundException;
125 final PackageManager pm = getPackageManager(); in onCreate() local
126 final PackageInfo info = findPackageInfo(pm, pkg, uid); in onCreate()
146 mAppRow = NotificationAppList.loadAppRow(pm, info.applicationInfo, mBackend); in onCreate()
192 if (Utils.isSystemPackage(pm, info)) { in onCreate()
213 private static PackageInfo findPackageInfo(PackageManager pm, String pkg, int uid) { in findPackageInfo() argument
214 final String[] packages = pm.getPackagesForUid(uid); in findPackageInfo()
221 return pm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); in findPackageInfo()
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java27 import android.content.pm.ActivityInfo;
28 import android.content.pm.PackageManager;
29 import android.content.pm.ResolveInfo;
30 import android.content.pm.PackageManager.NameNotFoundException;
147 PackageManager pm; in generateComponentsList() local
150 pm = mContext.createPackageContextAsUser("android", 0, in generateComponentsList()
157 List<ResolveInfo> resolveInfos = pm.queryIntentActivitiesAsUser(new Intent(mAction), in generateComponentsList()
161 parseComponentInfo(pm, resolveInfo, components); in generateComponentsList()
178 void parseComponentInfo(PackageManager pm, ResolveInfo info, in parseComponentInfo() argument
184 parser = ai.loadXmlMetaData(pm, mMetaDataName); in parseComponentInfo()
[all …]
DNfceeAccessControl.java33 import android.content.pm.ApplicationInfo;
34 import android.content.pm.PackageInfo;
35 import android.content.pm.PackageManager;
36 import android.content.pm.Signature;
37 import android.content.pm.PackageManager.NameNotFoundException;
87 PackageManager pm = mContext.getPackageManager(); in check() local
88 String[] pkgs = pm.getPackagesForUid(uid); in check()
131 PackageManager pm = mContext.getPackageManager(); in checkPackageNfceeAccess() local
133 PackageInfo info = pm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); in checkPackageNfceeAccess()
/packages/apps/Tag/src/com/android/apps/tag/record/
DRecordUtils.java25 import android.content.pm.ActivityInfo;
26 import android.content.pm.PackageManager;
27 import android.content.pm.ResolveInfo;
66 PackageManager pm = activity.getPackageManager(); in getViewsForIntent() local
68 List<ResolveInfo> activities = pm.queryIntentActivities(intent, flags); in getViewsForIntent()
75 return buildActivityView(activity, activities.get(0), pm, inflater, parent, listener, in getViewsForIntent()
95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, in getViewsForIntent()
105 …rivate static View buildActivityView(Activity activity, ResolveInfo resolveInfo, PackageManager pm, in buildActivityView() argument
118 icon.setImageDrawable(resolveInfo.loadIcon(pm)); in buildActivityView()
121 text.setText(resolveInfo.loadLabel(pm)); in buildActivityView()
/packages/apps/Settings/src/com/android/settings/location/
DSettingsInjector.java21 import android.content.pm.ApplicationInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.ResolveInfo;
24 import android.content.pm.ServiceInfo;
111 PackageManager pm = mContext.getPackageManager(); in getSettings() local
115 pm.queryIntentServices(intent, PackageManager.GET_META_DATA); in getSettings()
122 InjectedSetting setting = parseServiceInfo(resolveInfo, pm); in getSettings()
147 private static InjectedSetting parseServiceInfo(ResolveInfo service, PackageManager pm) in parseServiceInfo() argument
163 parser = si.loadXmlMetaData(pm, SettingInjectorService.META_DATA_NAME); in parseServiceInfo()
182 Resources res = pm.getResourcesForApplication(ai); in parseServiceInfo()
[all …]
/packages/apps/Settings/tests/src/com/android/settings/
DSettingsHookTests.java25 import android.content.pm.ApplicationInfo;
26 import android.content.pm.PackageManager;
27 import android.content.pm.ResolveInfo;
71 PackageManager pm = context.getPackageManager(); in testSettingsHookTestAppAvailable() local
72 ApplicationInfo applicationInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testSettingsHookTestAppAvailable()
83 PackageManager pm = context.getPackageManager(); in testOperatorIntentFilter() local
85 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in testOperatorIntentFilter()
101 PackageManager pm = context.getPackageManager(); in testManufacturerIntentFilter() local
103 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in testManufacturerIntentFilter()
/packages/apps/Settings/src/com/android/settings/voice/
DVoiceInputHelper.java22 import android.content.pm.PackageManager;
23 import android.content.pm.ResolveInfo;
24 import android.content.pm.ServiceInfo;
60 public BaseInfo(PackageManager pm, ServiceInfo _service, String _settings) { in BaseInfo() argument
66 label = _service.loadLabel(pm); in BaseInfo()
68 appLabel = _service.applicationInfo.loadLabel(pm); in BaseInfo()
80 public InteractionInfo(PackageManager pm, VoiceInteractionServiceInfo _service) { in InteractionInfo() argument
81 super(pm, _service.getServiceInfo(), _service.getSettingsActivity()); in InteractionInfo()
87 public RecognizerInfo(PackageManager pm, ServiceInfo _service, String _settings) { in RecognizerInfo() argument
88 super(pm, _service, _settings); in RecognizerInfo()
/packages/apps/Settings/src/com/android/settings/accounts/
DManageAccountsSettings.java29 import android.content.pm.ActivityInfo;
30 import android.content.pm.ApplicationInfo;
31 import android.content.pm.PackageInfo;
32 import android.content.pm.PackageManager;
33 import android.content.pm.PackageManager.NameNotFoundException;
34 import android.content.pm.ResolveInfo;
431 final PackageManager pm = getActivity().getPackageManager(); in updatePreferenceIntents() local
458 ResolveInfo ri = pm.resolveActivityAsUser(intent, in updatePreferenceIntents()
477 if (isSafeIntent(pm, prefIntent)) { in updatePreferenceIntents()
500 private boolean isSafeIntent(PackageManager pm, Intent intent) { in isSafeIntent() argument
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAppChooserActivity.java32 import android.content.pm.ApplicationInfo;
33 import android.content.pm.PackageManager;
34 import android.content.pm.PackageManager.NameNotFoundException;
108 PackageManager pm = getPackageManager(); in onCreate() local
113 ApplicationInfo info = pm.getApplicationInfo(failedComponent.getPackageName(), 0); in onCreate()
114 applicationLabel = info.loadLabel(pm); in onCreate()
200 PackageManager pm = getPackageManager(); in ListAdapter() local
205 if (label == null) label = service.loadLabel(pm); in ListAdapter()
206 Drawable icon = service.loadIcon(pm); in ListAdapter()
209 banner = service.loadBanner(pm); in ListAdapter()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DDreamInfoAction.java25 import android.content.pm.PackageManager;
26 import android.content.pm.ResolveInfo;
27 import android.content.pm.PackageManager.NameNotFoundException;
75 DreamInfoAction(ResolveInfo resolveInfo, ComponentName activeDream, PackageManager pm) { in DreamInfoAction() argument
76 this(resolveInfo, activeDream, (String) resolveInfo.loadLabel(pm), getDreamComponentName( in DreamInfoAction()
77 resolveInfo), getSettingsComponentName(resolveInfo, pm)); in DreamInfoAction()
149 PackageManager pm) { in getSettingsComponentName() argument
158 parser = resolveInfo.serviceInfo.loadXmlMetaData(pm, DreamService.DREAM_META_DATA); in getSettingsComponentName()
163 Resources res = pm.getResourcesForApplication(resolveInfo.serviceInfo.applicationInfo); in getSettingsComponentName()

12345678910>>...17