/cts/tests/tests/content/src/android/content/pm/cts/ |
ResolveInfoTest.java | 27 import android.content.pm.ResolveInfo; 32 @TestTargetClass(ResolveInfo.class) 67 method = "ResolveInfo", 79 new ResolveInfo(); 84 ResolveInfo resolveInfo = pm.resolveActivity(intent, 0); 87 assertEquals(expectedLabel, resolveInfo.loadLabel(pm).toString()); 88 assertNotNull(resolveInfo.loadIcon(pm)); 89 assertTrue(resolveInfo.getIconResource() != 0); 90 assertNotNull(resolveInfo.toString()) [all...] |
PackageManagerTest.java | 37 import android.content.pm.ResolveInfo; 124 List<ResolveInfo> listWithDiff = mPackageManager.queryIntentActivityOptions( 129 List<ResolveInfo> listInSame = mPackageManager.queryIntentActivityOptions( 134 List<ResolveInfo> intentActivities = 149 List<ResolveInfo> services = mPackageManager.queryIntentServices(serviceIntent, 156 List<ResolveInfo> broadcastReceivers = new ArrayList<ResolveInfo>(); 172 private void checkActivityInfoName(String expectedName, List<ResolveInfo> resolves) { 175 Iterator<ResolveInfo> infoIterator = resolves.iterator(); 187 private void checkServiceInfoName(String expectedName, List<ResolveInfo> resolves) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
Utils.java | 23 import android.content.pm.ResolveInfo; 64 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); 67 ResolveInfo resolveInfo = list.get(i); 68 if ((resolveInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) 73 resolveInfo.activityInfo.packageName, 74 resolveInfo.activityInfo.name)); 78 preference.setTitle(resolveInfo.loadLabel(pm));
|
VoiceInputOutputSettings.java | 25 import android.content.pm.ResolveInfo; 67 private HashMap<String, ResolveInfo> mAvailableRecognizersMap; 81 mAvailableRecognizersMap = new HashMap<String, ResolveInfo>(); 87 List<ResolveInfo> availableRecognitionServices = getPackageManager().queryIntentServices( 102 ResolveInfo resolveInfo = availableRecognitionServices.get(0); 104 new ComponentName(resolveInfo.serviceInfo.packageName, 105 resolveInfo.serviceInfo.name).flattenToShortString(); 107 mAvailableRecognizersMap.put(recognizerComponent, resolveInfo); 124 private void populateRecognizerPreference(List<ResolveInfo> recognizers) [all...] |
ActivityPicker.java | 30 import android.content.pm.ResolveInfo; 184 List<ResolveInfo> list = packageManager.queryIntentActivities(baseIntent, 186 Collections.sort(list, new ResolveInfo.DisplayNameComparator(packageManager)); 190 ResolveInfo resolveInfo = list.get(i); 191 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)); 232 * {@link ResolveInfo} object. 234 Item(Context context, PackageManager pm, ResolveInfo resolveInfo) { 235 label = resolveInfo.loadLabel(pm) [all...] |
/packages/apps/Tag/src/com/android/apps/tag/record/ |
RecordUtils.java | 27 import android.content.pm.ResolveInfo; 68 List<ResolveInfo> activities = pm.queryIntentActivities(intent, flags); 85 for (ResolveInfo resolveInfo : activities) { 86 if (!resolveInfo.activityInfo.enabled) { 95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, 105 private static View buildActivityView(Activity activity, ResolveInfo resolveInfo, PackageManager pm, 108 ActivityInfo activityInfo = resolveInfo.activityInfo; 110 intent.setAction(resolveInfo.filter.getAction(0)) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
RegisteredComponentCache.java | 29 import android.content.pm.ResolveInfo; 82 public final ResolveInfo resolveInfo; 85 ComponentInfo(ResolveInfo resolveInfo, String[] techs) { 86 this.resolveInfo = resolveInfo; 93 out.append(resolveInfo); 143 List<ResolveInfo> resolveInfos = pm.queryIntentActivities(new Intent(mAction), 145 for (ResolveInfo resolveInfo : resolveInfos) [all...] |
NfcService.java | 41 import android.content.pm.ResolveInfo; [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
IconCache.java | 22 import android.content.pm.ResolveInfo; 89 public void getTitleAndIcon(ApplicationInfo application, ResolveInfo info) { 104 final ResolveInfo resolveInfo = mPackageManager.resolveActivity(intent, 0); 107 if (resolveInfo == null || component == null) { 111 CacheEntry entry = cacheLocked(component, resolveInfo); 116 public Bitmap getIcon(ComponentName component, ResolveInfo resolveInfo) { 118 if (resolveInfo == null || component == null) { 122 CacheEntry entry = cacheLocked(component, resolveInfo); [all...] |
LauncherModel.java | 32 import android.content.pm.ResolveInfo; [all...] |
/packages/apps/Phone/src/com/android/phone/ |
OtaStartupReceiver.java | 23 import android.content.pm.ResolveInfo; 87 ResolveInfo resolveInfo = context.getPackageManager().resolveActivity(intent, 94 Log.v(TAG, "resolvInfo = " + resolveInfo + ", provisioned = " + provisioned 97 return resolveInfo != null && !provisioned && runningSetupWizard;
|
/frameworks/base/core/java/android/app/ |
LauncherActivity.java | 23 import android.content.pm.ResolveInfo; 64 public ResolveInfo resolveInfo; 71 ListItem(PackageManager pm, ResolveInfo resolveInfo, IconResizer resizer) { 72 this.resolveInfo = resolveInfo; 73 label = resolveInfo.loadLabel(pm); 74 ComponentInfo ci = resolveInfo.activityInfo; 75 if (ci == null) ci = resolveInfo.serviceInfo [all...] |
ContextImpl.java | 55 import android.content.pm.ResolveInfo; [all...] |