/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 | RunningServices.java | 32 import android.content.pm.ApplicationInfo; 33 import android.content.pm.PackageInfo; 34 import android.content.pm.PackageItemInfo; 35 import android.content.pm.PackageManager; 36 import android.content.pm.ServiceInfo; 190 void ensureLabel(PackageManager pm) { in ensureLabel() argument 196 ApplicationInfo ai = pm.getApplicationInfo(mProcessName, 0); in ensureLabel() 198 mDisplayLabel = ai.loadLabel(pm); in ensureLabel() 208 String[] pkgs = pm.getPackagesForUid(mUid); in ensureLabel() 213 ApplicationInfo ai = pm.getApplicationInfo(pkgs[0], 0); in ensureLabel() [all …]
|
D | TextToSpeechSettings.java | 28 import android.content.pm.ActivityInfo; 29 import android.content.pm.PackageManager; 30 import android.content.pm.ResolveInfo; 193 PackageManager pm = getPackageManager(); in checkVoiceData() local 196 List<ResolveInfo> resolveInfos = pm.queryIntentActivities(intent, 0); in checkVoiceData() 213 PackageManager pm = getPackageManager(); in installVoiceData() local 217 List<ResolveInfo> resolveInfos = pm.queryIntentActivities(intent, 0); in installVoiceData()
|
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()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
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 | InstallAppProgress.java | 23 import android.content.pm.ApplicationInfo; 24 import android.content.pm.IPackageInstallObserver; 25 import android.content.pm.PackageInfo; 26 import android.content.pm.PackageManager; 27 import android.content.pm.PackageManager.NameNotFoundException; 136 PackageManager pm = getPackageManager(); in initView() local 138 PackageInfo pi = pm.getPackageInfo(mAppInfo.packageName, in initView() 177 pm.installPackage(mPackageURI, observer, installFlags, installerPackageName); in initView()
|
/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; 614 PackageManager pm = getPackageManager(); in getQuickNameIconForUid() local 615 final Drawable defaultActivityIcon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid() 616 String[] packages = pm.getPackagesForUid(uid); in getQuickNameIconForUid() 617 icon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid() 641 PackageManager pm = getPackageManager(); in getNameIcon() local 643 final Drawable defaultActivityIcon = pm.getDefaultActivityIcon(); in getNameIcon() [all …]
|
/packages/apps/Email/src/com/android/email/ |
D | Email.java | 30 import android.content.pm.PackageManager; 169 PackageManager pm = context.getPackageManager(); in setServicesEnabled() local 170 … if (!enabled && pm.getComponentEnabledSetting(new ComponentName(context, MailService.class)) == in setServicesEnabled() 178 pm.setComponentEnabledSetting( in setServicesEnabled() 183 pm.setComponentEnabledSetting( in setServicesEnabled() 188 pm.setComponentEnabledSetting( in setServicesEnabled() 193 pm.setComponentEnabledSetting( in setServicesEnabled() 198 … if (enabled && pm.getComponentEnabledSetting(new ComponentName(context, MailService.class)) == in setServicesEnabled()
|
/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/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; 124 PackageManager pm = getPackageManager(); in populateSearchEnginePreference() local 131 pm.getActivityInfo(webSearchComponent, 0); in populateSearchEnginePreference() 137 pm.getActivityInfo(webSearchComponent, 0); in populateSearchEnginePreference() 150 matchedInfo.activityInfo.loadLabel(pm).toString(); in populateSearchEnginePreference() 163 PackageManager pm = getPackageManager(); in findWebSearchSettingsActivity() local 165 List<ResolveInfo> activitiesWithWebSearchSettings = pm.queryIntentActivities(intent, 0); in findWebSearchSettingsActivity()
|
D | ClickLogger.java | 21 import android.content.pm.PackageManager; 22 import android.content.pm.ProviderInfo; 131 PackageManager pm = context.getPackageManager(); in getClickLogger() local 133 pm.resolveContentProvider(ClickLoggerContract.LOG_AUHTORITY, 0); in getClickLogger() 141 if (pm.checkPermission(ClickLoggerContract.PERMISSION_RECEIVE_GLOBALSEARCH_LOG, in getClickLogger()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | ExternalSource.java | 24 import android.content.pm.PackageManager; 25 import android.content.pm.ResolveInfo; 96 final PackageManager pm = context.getPackageManager(); in inflate() local 98 final List<ResolveInfo> matches = pm.queryIntentServices(syncAdapter, in inflate() 101 final XmlResourceParser parser = info.serviceInfo.loadXmlMetaData(pm, in inflate()
|
D | ContactsSource.java | 25 import android.content.pm.PackageManager; 121 final PackageManager pm = context.getPackageManager(); in getDisplayLabel() local 122 return pm.getText(this.summaryResPackageName, this.titleRes, null); in getDisplayLabel() 132 final PackageManager pm = context.getPackageManager(); in getDisplayIcon() local 133 return pm.getDrawable(this.summaryResPackageName, this.iconRes, null); in getDisplayIcon()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | DataStatus.java | 20 import android.content.pm.PackageManager; 99 final PackageManager pm = context.getPackageManager(); in getTimestampLabel() local 110 final CharSequence labelClause = validLabel ? pm.getText(mResPackage, mLabelRes, in getTimestampLabel() 129 final PackageManager pm = context.getPackageManager(); in getIcon() local 135 return validIcon ? pm.getDrawable(mResPackage, mIconRes, null) : null; in getIcon()
|
/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/AlarmClock/src/com/android/alarmclock/ |
D | AlarmAlertWakeLock.java | 36 PowerManager pm = in acquireCpuWakeLock() local 39 sCpuWakeLock = pm.newWakeLock( in acquireCpuWakeLock()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmAlertWakeLock.java | 36 PowerManager pm = in acquireCpuWakeLock() local 39 sCpuWakeLock = pm.newWakeLock( in acquireCpuWakeLock()
|
/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/wallpapers/MagicSmoke/res/raw/ |
D | clouds.rs | 133 int pm = State->mPreMul; 148 if (pm) newpix = premul(newpix, newalpha); 154 if (pm) newpix = premul(newpix, newalpha); 179 if (pm) newpix = premul(newpix, alpha); 203 if (pm) newpix = premul(newpix, newalpha); 209 if (pm) newpix = premul(newpix, newalpha);
|
/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/Launcher2/src/com/android/launcher2/ |
D | ActivityPicker.java | 27 import android.content.pm.PackageManager; 28 import android.content.pm.ResolveInfo; 29 import android.content.pm.PackageManager.NameNotFoundException; 230 Item(Context context, PackageManager pm, ResolveInfo resolveInfo) { in Item() argument 231 label = resolveInfo.loadLabel(pm); in Item() 236 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)); in Item()
|