Lines Matching refs:pm
26 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
134 ServiceInfo ri = pm.getServiceInfo(cn, 0); in getActiveDreamName()
136 return ri.loadLabel(pm); in getActiveDreamName()
239 …private static ComponentName getSettingsComponentName(PackageManager pm, ResolveInfo resolveInfo) { in getSettingsComponentName() argument
248 parser = resolveInfo.serviceInfo.loadXmlMetaData(pm, DreamService.DREAM_META_DATA); in getSettingsComponentName()
253 Resources res = pm.getResourcesForApplication(resolveInfo.serviceInfo.applicationInfo); in getSettingsComponentName()