/packages/apps/Email/src/com/android/email/ |
D | Email.java | 28 import android.content.pm.PackageManager; 133 PackageManager pm = context.getPackageManager(); in setServicesEnabled() local 134 … if (!enabled && pm.getComponentEnabledSetting(new ComponentName(context, MailService.class)) == in setServicesEnabled() 142 pm.setComponentEnabledSetting( in setServicesEnabled() 147 pm.setComponentEnabledSetting( in setServicesEnabled() 152 pm.setComponentEnabledSetting( in setServicesEnabled() 157 pm.setComponentEnabledSetting( in setServicesEnabled() 162 … if (enabled && pm.getComponentEnabledSetting(new ComponentName(context, MailService.class)) == in setServicesEnabled()
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 21 import android.content.pm.ApplicationInfo; 22 import android.content.pm.PackageManager; 23 import android.content.pm.ResolveInfo; 62 PackageManager pm = context.getPackageManager(); in updatePreferenceToSpecificActivityOrRemove() local 63 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in updatePreferenceToSpecificActivityOrRemove() 77 preference.setTitle(resolveInfo.loadLabel(pm)); in updatePreferenceToSpecificActivityOrRemove()
|
D | TextToSpeechSettings.java | 28 import android.content.pm.ActivityInfo; 29 import android.content.pm.PackageManager; 30 import android.content.pm.ResolveInfo; 226 PackageManager pm = getPackageManager(); in checkVoiceData() local 229 List<ResolveInfo> resolveInfos = pm.queryIntentActivities(intent, 0); in checkVoiceData() 246 PackageManager pm = getPackageManager(); in installVoiceData() local 249 List<ResolveInfo> resolveInfos = pm.queryIntentActivities(intent, 0); in installVoiceData()
|
D | DeviceInfoSettings.java | 20 import android.content.pm.ApplicationInfo; 21 import android.content.pm.PackageManager; 22 import android.content.pm.ResolveInfo;
|
D | ActivityPicker.java | 27 import android.content.pm.PackageManager; 28 import android.content.pm.ResolveInfo; 29 import android.content.pm.PackageManager.NameNotFoundException; 231 Item(Context context, PackageManager pm, ResolveInfo resolveInfo) { in Item() argument 232 label = resolveInfo.loadLabel(pm); in Item() 237 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)); in Item()
|
D | InstalledAppDetails.java | 30 import android.content.pm.ApplicationInfo; 31 import android.content.pm.IPackageDataObserver; 32 import android.content.pm.IPackageDeleteObserver; 33 import android.content.pm.IPackageStatsObserver; 34 import android.content.pm.PackageInfo; 35 import android.content.pm.PackageManager; 36 import android.content.pm.PackageStats; 37 import android.content.pm.PackageManager.NameNotFoundException;
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallAppProgress.java | 22 import android.content.pm.ApplicationInfo; 23 import android.content.pm.IPackageInstallObserver; 24 import android.content.pm.PackageInfo; 25 import android.content.pm.PackageManager; 26 import android.content.pm.PackageManager.NameNotFoundException; 99 PackageManager pm = getPackageManager(); in initView() local 101 PackageInfo pi = pm.getPackageInfo(mAppInfo.packageName, in initView() 115 pm.installPackage(mPackageURI, observer, installFlags, installerPackageName); in initView()
|
D | PackageUtil.java | 25 import android.content.pm.ApplicationInfo; 26 import android.content.pm.PackageInfo; 27 import android.content.pm.PackageManager; 28 import android.content.pm.PackageParser; 29 import android.content.pm.ResolveInfo; 30 import android.content.pm.PackageManager.NameNotFoundException; 96 PackageManager pm = pContext.getPackageManager(); in initSnippetForInstalledApp() local 97 CharSequence label = appInfo.loadLabel(pm); in initSnippetForInstalledApp() 98 Drawable icon = appInfo.loadIcon(pm); in initSnippetForInstalledApp()
|
D | InstallAppConfirmation.java | 23 import android.content.pm.PackageManager; 24 import android.content.pm.PackageParser; 25 import android.content.pm.PermissionInfo; 28 import android.content.pm.ApplicationInfo; 29 import android.content.pm.PackageManager.NameNotFoundException;
|
D | UninstallerActivity.java | 25 import android.content.pm.ApplicationInfo; 26 import android.content.pm.PackageManager; 35 import android.content.pm.PackageManager.NameNotFoundException;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerUsageDetail.java | 23 import android.content.pm.ApplicationInfo; 24 import android.content.pm.PackageInfo; 25 import android.content.pm.PackageManager; 26 import android.content.pm.PackageManager.NameNotFoundException; 139 final PackageManager pm = getPackageManager(); in createDetails() local 140 ApplicationInfo ai = pm.getPackageInfo(iconPackage, 0).applicationInfo; in createDetails() 142 mAppIcon = ai.loadIcon(pm); in createDetails() 247 PackageManager pm = getPackageManager(); in fillControlsSection() local 248 String[] packages = pm.getPackagesForUid(uid); in fillControlsSection() 251 pi = packages != null ? pm.getPackageInfo(packages[0], 0) : null; in fillControlsSection() [all …]
|
D | PowerUsageSummary.java | 21 import android.content.pm.ApplicationInfo; 22 import android.content.pm.PackageInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.PackageManager.NameNotFoundException; 594 PackageManager pm = getPackageManager(); in getQuickNameIconForUid() local 595 final Drawable defaultActivityIcon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid() 596 String[] packages = pm.getPackagesForUid(uid); in getQuickNameIconForUid() 597 icon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid() 619 PackageManager pm = getPackageManager(); in getNameIcon() local 621 final Drawable defaultActivityIcon = pm.getDefaultActivityIcon(); in getNameIcon() [all …]
|
/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/AlarmClock/src/com/android/alarmclock/ |
D | AlarmAlertWakeLock.java | 37 PowerManager pm = in acquireCpuWakeLock() local 40 sCpuWakeLock = pm.newWakeLock( in acquireCpuWakeLock() 53 PowerManager pm = in acquireScreenWakeLock() local 56 sScreenWakeLock = pm.newWakeLock( in acquireScreenWakeLock()
|
/packages/apps/GlobalSearch/src/com/android/globalsearch/ |
D | SearchSettings.java | 26 import android.content.pm.ActivityInfo; 27 import android.content.pm.PackageManager; 28 import android.content.pm.ResolveInfo; 126 PackageManager pm = getPackageManager(); in populateSearchEnginePreference() local 133 pm.getActivityInfo(webSearchComponent, 0); in populateSearchEnginePreference() 139 pm.getActivityInfo(webSearchComponent, 0); in populateSearchEnginePreference() 152 matchedInfo.activityInfo.loadLabel(pm).toString(); in populateSearchEnginePreference() 165 PackageManager pm = getPackageManager(); in findWebSearchSettingsActivity() local 167 List<ResolveInfo> activitiesWithWebSearchSettings = pm.queryIntentActivities(intent, 0); in findWebSearchSettingsActivity()
|
D | SearchableSuggestionSource.java | 24 import android.content.pm.ActivityInfo; 25 import android.content.pm.PackageManager; 26 import android.content.pm.ProviderInfo; 27 import android.content.pm.PackageManager.NameNotFoundException; 552 PackageManager pm = getContext().getPackageManager(); in findLabel() local 557 Resources resources = pm.getResourcesForApplication(mActivityInfo.applicationInfo); in findLabel() 565 label = pm.getApplicationLabel(mActivityInfo.applicationInfo); in findLabel()
|
/packages/providers/ImProvider/src/com/android/providers/im/ |
D | BrandingResources.java | 20 import android.content.pm.PackageManager; 21 import android.content.pm.PackageManager.NameNotFoundException; 67 PackageManager pm = context.getPackageManager(); in BrandingResources() local 70 mPackageRes = pm.getResourcesForApplication(packageName); in BrandingResources()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | SettingsActivity.java | 30 import android.content.pm.PackageManager; 31 import android.content.pm.ResolveInfo; 108 PackageManager pm = getPackageManager(); in updatePreference() local 109 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in updatePreference()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarAppWidgetProvider.java | 26 import android.content.pm.PackageManager; 89 PackageManager pm = context.getPackageManager(); in onEnabled() local 90 pm.setComponentEnabledSetting( in onEnabled() 107 PackageManager pm = context.getPackageManager(); in onDisabled() local 108 pm.setComponentEnabledSetting( in onDisabled()
|
/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
D | BookmarkPicker.java | 23 import android.content.pm.ActivityInfo; 24 import android.content.pm.PackageManager; 25 import android.content.pm.ResolveInfo; 196 PackageManager pm = getPackageManager(); in fillResolveList() local 200 list.addAll(pm.queryIntentActivities(sLaunchIntent, 0)); in fillResolveList() 202 list.addAll(pm.queryIntentActivities(sShortcutIntent, 0)); in fillResolveList()
|
/packages/apps/IM/src/com/android/im/app/ |
D | BrandingResources.java | 26 import android.content.pm.PackageManager; 27 import android.content.pm.PackageManager.NameNotFoundException; 62 PackageManager pm = context.getPackageManager(); in BrandingResources() local 64 mPackageRes = pm.getResourcesForApplication(pluginInfo.mPackageName); in BrandingResources()
|
/packages/apps/Settings/src/com/android/settings/battery_history/ |
D | BatteryHistory.java | 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; 102 private static String getLabel(String packageName, PackageManager pm) { in getLabel() argument 104 ApplicationInfo ai = pm.getApplicationInfo(packageName, 0); in getLabel() 105 CharSequence label = ai.loadLabel(pm); in getLabel() 174 PackageManager pm = getPackageManager(); in getNameForUid() local 175 mPackages = pm.getPackagesForUid(uid); in getNameForUid() 187 mPackageNames[i] = BatteryHistory.getLabel(mPackageNames[i], pm); in getNameForUid() [all …]
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
D | SmsReceiver.java | 67 PowerManager pm = in beginStartingService() local 69 mStartingService = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in beginStartingService()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserDownloadAdapter.java | 24 import android.content.pm.PackageManager; 25 import android.content.pm.ResolveInfo; 87 PackageManager pm = context.getPackageManager(); in bindView() local 88 List<ResolveInfo> list = pm.queryIntentActivities(intent, in bindView() 91 Drawable icon = list.get(0).activityInfo.loadIcon(pm); in bindView()
|
/packages/apps/Launcher/src/com/android/launcher/ |
D | Search.java | 26 import android.content.pm.PackageManager; 27 import android.content.pm.ResolveInfo; 331 PackageManager pm = getContext().getPackageManager(); in configureVoiceSearchButton() local 332 ResolveInfo ri = pm.resolveActivity(mVoiceSearchIntent, in configureVoiceSearchButton()
|