/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; 58 final PackageManager pm = mContext.getPackageManager(); in getUidDetail() local 61 detail.label = pm.getNameForUid(uid); in getUidDetail() 62 detail.icon = pm.getDefaultActivityIcon(); in getUidDetail() 68 detail.icon = pm.getDefaultActivityIcon(); in getUidDetail() 73 detail.icon = pm.getDefaultActivityIcon(); in getUidDetail() 80 detail.icon = pm.getDefaultActivityIcon(); in getUidDetail() [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/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/src/com/android/settings/ |
D | DreamComponentPreference.java | 27 import android.content.pm.ActivityInfo; 28 import android.content.pm.PackageManager; 29 import android.content.pm.ResolveInfo; 52 private final PackageManager pm; field in DreamComponentPreference 57 pm = getContext().getPackageManager(); in DreamComponentPreference() 68 setSummary(pm.getActivityInfo(cn, 0).loadLabel(pm)); in refreshFromSettings() 84 results = new ArrayList<ResolveInfo>(pm.queryIntentActivities(choosy, 0)); in DreamListAdapter() 108 ((TextView)row.findViewById(R.id.title)).setText(ri.loadLabel(pm)); in getView() 109 ((ImageView)row.findViewById(R.id.icon)).setImageDrawable(ri.loadIcon(pm)); in getView() 130 setSummary(ri.loadLabel(pm)); in onClick()
|
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; 52 private final PackageManager pm; field in DreamTesterPreference 57 pm = getContext().getPackageManager(); in DreamTesterPreference()
|
/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/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/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()
|
D | ContactDirectoryManager.java | 25 import android.content.pm.PackageInfo; 26 import android.content.pm.PackageManager; 27 import android.content.pm.PackageManager.NameNotFoundException; 28 import android.content.pm.ProviderInfo; 105 final PackageManager pm = mContext.getPackageManager(); in scanPackagesByUid() local 106 final String[] callerPackages = pm.getPackagesForUid(callingUid); in scanPackagesByUid() 121 final PackageManager pm = mContext.getPackageManager(); in areTypeResourceIdsValid() local 133 String resourceName = getResourceNameById(pm, packageName, resourceId); in areTypeResourceIdsValid() 150 private String getResourceNameById(PackageManager pm, String packageName, int resourceId) { in getResourceNameById() argument 152 Resources resources = pm.getResourcesForApplication(packageName); in getResourceNameById() [all …]
|
/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() 172 pm.setComponentEnabledSetting( in setServicesEnabled()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 20 import android.content.pm.ActivityInfo; 21 import android.content.pm.ApplicationInfo; 22 import android.content.pm.PackageInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.PackageParser; 99 final PackageManager pm = pContext.getPackageManager(); in initSnippetForInstalledApp() local 102 appInfo.loadLabel(pm), in initSnippetForInstalledApp() 103 appInfo.loadIcon(pm)); in initSnippetForInstalledApp()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | RegisteredComponentCache.java | 27 import android.content.pm.ActivityInfo; 28 import android.content.pm.PackageManager; 29 import android.content.pm.ResolveInfo; 30 import android.content.pm.PackageManager.NameNotFoundException; 141 PackageManager pm = mContext.getPackageManager(); in generateComponentsList() local 143 List<ResolveInfo> resolveInfos = pm.queryIntentActivities(new Intent(mAction), in generateComponentsList() 165 PackageManager pm = mContext.getPackageManager(); in parseComponentInfo() local 169 parser = ai.loadXmlMetaData(pm, mMetaDataName); in parseComponentInfo() 174 parseTechLists(pm.getResourcesForApplication(ai.applicationInfo), ai.packageName, in parseComponentInfo()
|
/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | InputMethodInfoCompatWrapper.java | 19 import android.content.pm.PackageManager; 20 import android.content.pm.ServiceInfo; 61 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 62 return mImi.loadLabel(pm); in loadLabel()
|
/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | DictionaryPackInstallBroadcastReceiver.java | 22 import android.content.pm.PackageInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.ProviderInfo; 57 } catch (android.content.pm.PackageManager.NameNotFoundException e) { in onReceive()
|
/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()
|
/packages/experimental/AndroidVendorSecurityTool/src/com/google/android/googlelogin/ |
D | GoogleAppsVerifier.java | 20 import android.content.pm.PackageInfo; 21 import android.content.pm.PackageManager; 22 import android.content.pm.Signature; 23 import android.content.pm.PackageManager.NameNotFoundException;
|
/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 …]
|