/packages/apps/Settings/src/com/android/settings/net/ |
D | UidDetailProvider.java | 20 import android.content.pm.ApplicationInfo; 21 import android.content.pm.PackageInfo; 22 import android.content.pm.PackageManager; 23 import android.content.pm.PackageManager.NameNotFoundException; 80 final PackageManager pm = mContext.getPackageManager(); in buildUidDetail() local 83 detail.label = pm.getNameForUid(uid); in buildUidDetail() 84 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() 90 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() 94 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() 100 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | DreamComponentPreference.java | 27 import android.content.pm.ActivityInfo; 28 import android.content.pm.ApplicationInfo; 29 import android.content.pm.ComponentInfo; 30 import android.content.pm.PackageManager; 31 import android.content.pm.ResolveInfo; 65 private final PackageManager pm; field in DreamComponentPreference 71 pm = getContext().getPackageManager(); in DreamComponentPreference() 89 setSummary(pm.getActivityInfo(cn, 0).loadLabel(pm)); in refreshFromSettings() 92 setSummary(pm.getServiceInfo(cn, 0).loadLabel(pm)); in refreshFromSettings() 109 sa = pm.getApplicationLabel(aia); [all …]
|
D | WallpaperTypeSettings.java | 22 import android.content.pm.PackageManager; 23 import android.content.pm.ResolveInfo; 42 final PackageManager pm = getPackageManager(); in populateWallpaperTypes() local 43 List<ResolveInfo> rList = pm.queryIntentActivities(intent, in populateWallpaperTypes() 55 CharSequence label = info.loadLabel(pm); in populateWallpaperTypes()
|
D | Utils.java | 22 import android.content.pm.ApplicationInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.PackageManager.NameNotFoundException; 25 import android.content.pm.ResolveInfo; 101 PackageManager pm = context.getPackageManager(); in updatePreferenceToSpecificActivityOrRemove() local 102 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in updatePreferenceToSpecificActivityOrRemove() 116 preference.setTitle(resolveInfo.loadLabel(pm)); in updatePreferenceToSpecificActivityOrRemove() 163 PackageManager pm = context.getPackageManager(); in updatePreferenceToSpecificActivityFromMetaDataOrRemove() local 164 List<ResolveInfo> list = pm.queryIntentActivities(intent, PackageManager.GET_META_DATA); in updatePreferenceToSpecificActivityFromMetaDataOrRemove() 176 Resources res = pm in updatePreferenceToSpecificActivityFromMetaDataOrRemove() [all …]
|
D | DreamTesterPreference.java | 27 import android.content.pm.ActivityInfo; 28 import android.content.pm.PackageManager; 29 import android.content.pm.ResolveInfo; 55 private final PackageManager pm; field in DreamTesterPreference 60 pm = getContext().getPackageManager(); in DreamTesterPreference()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatterySipper.java | 22 import android.content.pm.ApplicationInfo; 23 import android.content.pm.PackageInfo; 24 import android.content.pm.PackageManager; 25 import android.content.pm.PackageManager.NameNotFoundException; 109 PackageManager pm = mContext.getPackageManager(); in getQuickNameIconForUid() local 110 final Drawable defaultActivityIcon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid() 111 String[] packages = pm.getPackagesForUid(uid); in getQuickNameIconForUid() 112 icon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid() 136 PackageManager pm = mContext.getPackageManager(); in getNameIcon() local 138 final Drawable defaultActivityIcon = pm.getDefaultActivityIcon(); in getNameIcon() [all …]
|
/packages/apps/Settings/tests/src/com/android/settings/ |
D | SettingsHookTests.java | 25 import android.content.pm.ActivityInfo; 26 import android.content.pm.ApplicationInfo; 27 import android.content.pm.PackageManager; 28 import android.content.pm.ResolveInfo; 76 PackageManager pm = context.getPackageManager(); in testSettingsHookTestAppAvailable() local 77 ApplicationInfo applicationInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testSettingsHookTestAppAvailable() 88 PackageManager pm = context.getPackageManager(); in testOperatorIntentFilter() local 90 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in testOperatorIntentFilter() 106 PackageManager pm = context.getPackageManager(); in testManufacturerIntentFilter() local 108 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in testManufacturerIntentFilter()
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | RecordUtils.java | 25 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/Launcher2/src/com/android/launcher2/ |
D | ApplicationInfo.java | 21 import android.content.pm.PackageManager; 22 import android.content.pm.PackageManager.NameNotFoundException; 23 import android.content.pm.ResolveInfo; 70 public ApplicationInfo(PackageManager pm, ResolveInfo info, IconCache iconCache, in ApplicationInfo() argument 80 int appFlags = pm.getApplicationInfo(packageName, 0).flags; in ApplicationInfo() 81 if ((appFlags & android.content.pm.ApplicationInfo.FLAG_SYSTEM) == 0) { in ApplicationInfo() 84 if ((appFlags & android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in ApplicationInfo() 88 firstInstallTime = pm.getPackageInfo(packageName, 0).firstInstallTime; in ApplicationInfo()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | TargetApplicationGetter.java | 20 import android.content.pm.ApplicationInfo; 21 import android.content.pm.PackageManager; 54 final PackageManager pm = mContext.getPackageManager(); in doInBackground() local 58 pm.getApplicationInfo(packageName[0], 0 /* flags */); in doInBackground() 61 } catch (android.content.pm.PackageManager.NameNotFoundException e) { in doInBackground()
|
D | DictionaryPackInstallBroadcastReceiver.java | 22 import android.content.pm.PackageInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.ProviderInfo; 59 } catch (android.content.pm.PackageManager.NameNotFoundException e) { in onReceive()
|
/packages/apps/Email/src/com/android/email/ |
D | Email.java | 23 import android.content.pm.PackageManager; 129 PackageManager pm = context.getPackageManager(); in setServicesEnabled() local 130 if (!enabled && pm.getComponentEnabledSetting( in setServicesEnabled() 139 pm.setComponentEnabledSetting( in setServicesEnabled() 144 pm.setComponentEnabledSetting( in setServicesEnabled() 149 pm.setComponentEnabledSetting( in setServicesEnabled() 154 pm.setComponentEnabledSetting( in setServicesEnabled() 159 if (enabled && pm.getComponentEnabledSetting( in setServicesEnabled() 169 pm.setComponentEnabledSetting(new ComponentName(context, WidgetConfiguration.class), in setServicesEnabled()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoPriorityResolver.java | 28 import android.content.pm.PackageInfo; 29 import android.content.pm.PackageManager; 30 import android.content.pm.ServiceInfo; 31 import android.content.pm.PackageManager.NameNotFoundException; 109 final PackageManager pm = mContext.getPackageManager(); in resolvePhotoPriorityFromMetaData() local 111 PackageInfo pi = pm.getPackageInfo(packageName, PackageManager.GET_SERVICES in resolvePhotoPriorityFromMetaData() 115 final XmlResourceParser parser = si.loadXmlMetaData(pm, METADATA_CONTACTS); in resolvePhotoPriorityFromMetaData()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | RegisteredComponentCache.java | 26 import android.content.pm.ActivityInfo; 27 import android.content.pm.PackageManager; 28 import android.content.pm.ResolveInfo; 29 import android.content.pm.PackageManager.NameNotFoundException; 140 PackageManager pm = mContext.getPackageManager(); in generateComponentsList() local 142 List<ResolveInfo> resolveInfos = pm.queryIntentActivities(new Intent(mAction), in generateComponentsList() 164 PackageManager pm = mContext.getPackageManager(); in parseComponentInfo() local 168 parser = ai.loadXmlMetaData(pm, mMetaDataName); in parseComponentInfo() 173 parseTechLists(pm.getResourcesForApplication(ai.applicationInfo), ai.packageName, in parseComponentInfo()
|
D | NfceeAccessControl.java | 33 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/Stk/src/com/android/stk/ |
D | StkAppInstaller.java | 23 import android.content.pm.PackageManager; 44 PackageManager pm = context.getPackageManager(); in setAppState() local 45 if (pm == null) { in setAppState() 55 pm.setComponentEnabledSetting(cName, state, in setAppState()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | LocalizedNameResolver.java | 25 import android.content.pm.PackageInfo; 26 import android.content.pm.PackageManager; 27 import android.content.pm.ServiceInfo; 28 import android.content.pm.PackageManager.NameNotFoundException; 83 final PackageManager pm = context.getPackageManager(); in resolveAllContactsNameFromMetaData() local 85 PackageInfo pi = pm.getPackageInfo(packageName, PackageManager.GET_SERVICES in resolveAllContactsNameFromMetaData() 89 final XmlResourceParser parser = si.loadXmlMetaData(pm, METADATA_CONTACTS); in resolveAllContactsNameFromMetaData()
|
/packages/providers/ApplicationsProvider/tests/src/com/android/providers/applications/ |
D | MockPackageManager.java | 23 import android.content.pm.ActivityInfo; 24 import android.content.pm.ApplicationInfo; 25 import android.content.pm.PackageManager; 26 import android.content.pm.ResolveInfo; 80 public CharSequence loadLabel(PackageManager pm) { in addPackage()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 21 import android.content.pm.ApplicationInfo; 22 import android.content.pm.PackageInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.PackageParser; 98 final PackageManager pm = pContext.getPackageManager(); in initSnippetForInstalledApp() local 101 appInfo.loadLabel(pm), in initSnippetForInstalledApp() 102 appInfo.loadIcon(pm)); in initSnippetForInstalledApp()
|
D | InstallAppProgress.java | 25 import android.content.pm.ApplicationInfo; 26 import android.content.pm.IPackageInstallObserver; 27 import android.content.pm.PackageInfo; 28 import android.content.pm.PackageManager; 29 import android.content.pm.PackageManager.NameNotFoundException; 30 import android.content.pm.ResolveInfo; 216 PackageManager pm = getPackageManager(); 218 PackageInfo pi = pm.getPackageInfo(mAppInfo.packageName, 247 pm.installPackage(mPackageURI, observer, installFlags, installerPackageName);
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserWebViewFactory.java | 19 import android.content.pm.PackageManager; 58 final PackageManager pm = mContext.getPackageManager(); in initWebViewSettings() local 60 pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH) in initWebViewSettings() 61 || pm.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT); in initWebViewSettings()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningState.java | 25 import android.content.pm.ApplicationInfo; 26 import android.content.pm.PackageInfo; 27 import android.content.pm.PackageItemInfo; 28 import android.content.pm.PackageManager; 29 import android.content.pm.ServiceInfo; 281 void ensureLabel(PackageManager pm) { in ensureLabel() argument 287 ApplicationInfo ai = pm.getApplicationInfo(mProcessName, 0); in ensureLabel() 289 mDisplayLabel = ai.loadLabel(pm); in ensureLabel() 299 String[] pkgs = pm.getPackagesForUid(mUid); in ensureLabel() 304 ApplicationInfo ai = pm.getApplicationInfo(pkgs[0], 0); in ensureLabel() [all …]
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
D | WebLatency.java | 21 import android.content.pm.PackageManager; 55 PackageManager pm = getPackageManager(); in getWebSearchComponent() local 56 return webSearchIntent.resolveActivity(pm); in getWebSearchComponent()
|
D | WebConcurrency.java | 21 import android.content.pm.PackageManager; 52 PackageManager pm = getPackageManager(); in getWebSearchComponent() local 53 return webSearchIntent.resolveActivity(pm); in getWebSearchComponent()
|
/packages/apps/Provision/src/com/android/provision/ |
D | DefaultActivity.java | 21 import android.content.pm.PackageManager; 38 PackageManager pm = getPackageManager(); in onCreate() local 40 pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, in onCreate()
|