Home
last modified time | relevance | path

Searched refs:resolveInfo (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/src/com/android/settings/
DDreamBackend.java103 for (ResolveInfo resolveInfo : resolveInfos) { in getDreamInfos()
104 if (resolveInfo.serviceInfo == null) in getDreamInfos()
107 dreamInfo.caption = resolveInfo.loadLabel(pm); in getDreamInfos()
108 dreamInfo.icon = resolveInfo.loadIcon(pm); in getDreamInfos()
109 dreamInfo.componentName = getDreamComponentName(resolveInfo); in getDreamInfos()
111 dreamInfo.settingsComponentName = getSettingsComponentName(pm, resolveInfo); in getDreamInfos()
233 private static ComponentName getDreamComponentName(ResolveInfo resolveInfo) { in getDreamComponentName() argument
234 if (resolveInfo == null || resolveInfo.serviceInfo == null) in getDreamComponentName()
236 return new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name); in getDreamComponentName()
239 …private static ComponentName getSettingsComponentName(PackageManager pm, ResolveInfo resolveInfo) { in getSettingsComponentName() argument
[all …]
DUtils.java135 ResolveInfo resolveInfo = list.get(i); in updatePreferenceToSpecificActivityOrRemove() local
136 if ((resolveInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in updatePreferenceToSpecificActivityOrRemove()
141 resolveInfo.activityInfo.packageName, in updatePreferenceToSpecificActivityOrRemove()
142 resolveInfo.activityInfo.name)); in updatePreferenceToSpecificActivityOrRemove()
146 preference.setTitle(resolveInfo.loadLabel(pm)); in updatePreferenceToSpecificActivityOrRemove()
197 ResolveInfo resolveInfo = list.get(i); in updatePreferenceToSpecificActivityFromMetaDataOrRemove() local
198 if ((resolveInfo.activityInfo.applicationInfo.flags in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
207 .getResourcesForApplication(resolveInfo.activityInfo.packageName); in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
208 Bundle metaData = resolveInfo.activityInfo.metaData; in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
224 title = resolveInfo.loadLabel(pm).toString(); in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
[all …]
DVoiceInputOutputSettings.java122 ResolveInfo resolveInfo = availableRecognitionServices.get(0); in populateOrRemoveRecognizerPrefs() local
124 new ComponentName(resolveInfo.serviceInfo.packageName, in populateOrRemoveRecognizerPrefs()
125 resolveInfo.serviceInfo.name).flattenToShortString(); in populateOrRemoveRecognizerPrefs()
127 mAvailableRecognizersMap.put(recognizerComponent, resolveInfo); in populateOrRemoveRecognizerPrefs()
164 ResolveInfo resolveInfo = recognizers.get(i); in populateRecognizerPreference() local
166 new ComponentName(resolveInfo.serviceInfo.packageName, in populateRecognizerPreference()
167 resolveInfo.serviceInfo.name).flattenToShortString(); in populateRecognizerPreference()
169 mAvailableRecognizersMap.put(recognizerComponent, resolveInfo); in populateRecognizerPreference()
171 entries[i] = resolveInfo.loadLabel(mFragment.getPackageManager()); in populateRecognizerPreference()
DActivityPicker.java190 ResolveInfo resolveInfo = list.get(i); in putIntentItems() local
191 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)); in putIntentItems()
234 Item(Context context, PackageManager pm, ResolveInfo resolveInfo) { in Item() argument
235 label = resolveInfo.loadLabel(pm); in Item()
236 if (label == null && resolveInfo.activityInfo != null) { in Item()
237 label = resolveInfo.activityInfo.name; in Item()
240 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)); in Item()
241 packageName = resolveInfo.activityInfo.applicationInfo.packageName; in Item()
242 className = resolveInfo.activityInfo.name; in Item()
DAccessibilitySettings.java585 ResolveInfo resolveInfo = installedServiceInfos.get(i).getResolveInfo();
587 resolveInfo.serviceInfo.packageName,
588 resolveInfo.serviceInfo.name);
759 ResolveInfo resolveInfo = serviceInfo.getResolveInfo();
760 if (mComponentName.getPackageName().equals(resolveInfo.serviceInfo.packageName)
761 && mComponentName.getClassName().equals(resolveInfo.serviceInfo.name)) {
DNotificationAccessSettings.java223 ResolveInfo resolveInfo = installedServices.get(i);
224 ServiceInfo info = resolveInfo.serviceInfo;
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java88 public final ResolveInfo resolveInfo; field in RegisteredComponentCache.ComponentInfo
91 ComponentInfo(ResolveInfo resolveInfo, String[] techs) { in ComponentInfo() argument
92 this.resolveInfo = resolveInfo; in ComponentInfo()
99 out.append(resolveInfo); in toString()
159 for (ResolveInfo resolveInfo : resolveInfos) { in generateComponentsList()
161 parseComponentInfo(pm, resolveInfo, components); in generateComponentsList()
163 Log.w(TAG, "Unable to load component info " + resolveInfo.toString(), e); in generateComponentsList()
165 Log.w(TAG, "Unable to load component info " + resolveInfo.toString(), e); in generateComponentsList()
199 ResolveInfo resolveInfo, ArrayList<ComponentInfo> components) in parseTechLists() argument
219 components.add(new ComponentInfo(resolveInfo, techs)); in parseTechLists()
DNfcDispatcher.java431 isComponentEnabled(pm, info.resolveInfo)) { in tryTech()
433 if (!matches.contains(info.resolveInfo)) { in tryTech()
434 matches.add(info.resolveInfo); in tryTech()
/packages/apps/Tag/src/com/android/apps/tag/record/
DRecordUtils.java85 for (ResolveInfo resolveInfo : activities) { in getViewsForIntent()
86 if (!resolveInfo.activityInfo.enabled) { in getViewsForIntent()
95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, in getViewsForIntent()
105 …private static View buildActivityView(Activity activity, ResolveInfo resolveInfo, PackageManager p… in buildActivityView() argument
108 ActivityInfo activityInfo = resolveInfo.activityInfo; in buildActivityView()
110 intent.setAction(resolveInfo.filter.getAction(0)); in buildActivityView()
118 icon.setImageDrawable(resolveInfo.loadIcon(pm)); in buildActivityView()
121 text.setText(resolveInfo.loadLabel(pm)); in buildActivityView()
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallWidgetReceiver.java62 public ResolveInfo resolveInfo; field in InstallWidgetReceiver.WidgetMimeTypeHandlerData
66 resolveInfo = rInfo; in WidgetMimeTypeHandlerData()
141 final ResolveInfo resolveInfo = data.resolveInfo; in getView() local
145 Drawable d = resolveInfo.loadIcon(packageManager); in getView()
150 final CharSequence component = resolveInfo.loadLabel(packageManager); in getView()
DIconCache.java164 final ResolveInfo resolveInfo = mPackageManager.resolveActivity(intent, 0); in getIcon() local
167 if (resolveInfo == null || component == null) { in getIcon()
171 CacheEntry entry = cacheLocked(component, resolveInfo, null); in getIcon()
176 public Bitmap getIcon(ComponentName component, ResolveInfo resolveInfo, in getIcon() argument
179 if (resolveInfo == null || component == null) { in getIcon()
183 CacheEntry entry = cacheLocked(component, resolveInfo, labelCache); in getIcon()
DLauncherModel.java2179 ResolveInfo resolveInfo = null; in getShortcutInfo() local
2189 resolveInfo = i; in getShortcutInfo()
2192 if (resolveInfo == null) { in getShortcutInfo()
2193 resolveInfo = manager.resolveActivity(intent, 0); in getShortcutInfo()
2195 if (resolveInfo != null) { in getShortcutInfo()
2196 icon = mIconCache.getIcon(componentName, resolveInfo, labelCache); in getShortcutInfo()
2212 if (resolveInfo != null) { in getShortcutInfo()
2213 ComponentName key = LauncherModel.getComponentNameFromResolveInfo(resolveInfo); in getShortcutInfo()
2217 info.title = resolveInfo.activityInfo.loadLabel(manager); in getShortcutInfo()
/packages/apps/Settings/tests/src/com/android/settings/
DSettingsHookTests.java91 for (ResolveInfo resolveInfo : list) { in testOperatorIntentFilter()
92 if (resolveInfo.activityInfo.packageName.equals(PACKAGE_NAME)) { in testOperatorIntentFilter()
109 for (ResolveInfo resolveInfo : list) { in testManufacturerIntentFilter()
110 if (resolveInfo.activityInfo.packageName.equals(PACKAGE_NAME)) { in testManufacturerIntentFilter()
/packages/apps/SpareParts/src/com/android/spare_parts/
DSpareParts.java89 ResolveInfo resolveInfo = list.get(i); in updatePreferenceToSpecificActivityOrRemove() local
90 if ((resolveInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in updatePreferenceToSpecificActivityOrRemove()
95 resolveInfo.activityInfo.packageName, in updatePreferenceToSpecificActivityOrRemove()
96 resolveInfo.activityInfo.name)); in updatePreferenceToSpecificActivityOrRemove()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperListAdapter.java175 for (ResolveInfo resolveInfo : list) { in doInBackground()
178 info = new WallpaperInfo(mContext, resolveInfo); in doInBackground()
180 Log.w(LOG_TAG, "Skipping wallpaper " + resolveInfo.serviceInfo, e); in doInBackground()
183 Log.w(LOG_TAG, "Skipping wallpaper " + resolveInfo.serviceInfo, e); in doInBackground()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DMockPackageManager.java45 ResolveInfo resolveInfo = new ResolveInfo(); in createResolveInfo() local
46 resolveInfo.activityInfo = activityInfo; in createResolveInfo()
47 return resolveInfo; in createResolveInfo()
/packages/apps/Phone/src/com/android/phone/
DOtaStartupReceiver.java165 ResolveInfo resolveInfo = context.getPackageManager().resolveActivity(intent, in shouldPostpone() local
172 Log.v(TAG, "resolvInfo = " + resolveInfo + ", provisioned = " + provisioned in shouldPostpone()
175 return resolveInfo != null && !provisioned && runningSetupWizard; in shouldPostpone()
DRespondViaSmsManager.java384 for (ResolveInfo resolveInfo : infos) { in getPackagesWithInstantTextPermission()
385 final ServiceInfo serviceInfo = resolveInfo.serviceInfo; in getPackagesWithInstantTextPermission()
/packages/apps/Browser/src/com/android/browser/
DUrlHandler.java206 for (ResolveInfo resolveInfo : handlers) { in isSpecializedHandlerAvailable()
207 IntentFilter filter = resolveInfo.filter; in isSpecializedHandlerAvailable()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDbModifierWithNotification.java241 for (ResolveInfo resolveInfo : in getBroadcastReceiverComponents()
243 ActivityInfo activityInfo = resolveInfo.activityInfo; in getBroadcastReceiverComponents()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DAccountTypeManager.java734 ResolveInfo resolveInfo = packageManager.resolveActivity(invitableIntent, in findUsableInvitableAccountTypes() local
736 if (resolveInfo == null) { in findUsableInvitableAccountTypes()