/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...] |
ResolveInfo_DisplayNameComparatorTest.java | 26 import android.content.pm.ResolveInfo; 27 import android.content.pm.ResolveInfo.DisplayNameComparator; 30 @TestTargetClass(ResolveInfo.DisplayNameComparator.class) 40 args = {android.content.pm.ResolveInfo.class, android.content.pm.ResolveInfo.class} 45 method = "ResolveInfo.DisplayNameComparator", 54 ResolveInfo activityInfo = pm.resolveActivity(intent, 0); 57 ResolveInfo serviceInfo = pm.resolveService(intent, PackageManager.GET_RESOLVED_FILTER);
|
/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...] |
/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...] |
TechListChooserActivity.java | 22 import android.content.pm.ResolveInfo; 42 ArrayList<ResolveInfo> rList = intent.getParcelableArrayListExtra(EXTRA_RESOLVE_INFOS);
|
/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...] |
AllAppsList.java | 24 import android.content.pm.ResolveInfo; 91 final List<ResolveInfo> matches = findActivitiesForPackage(context, packageName); 94 for (ResolveInfo info : matches) { 121 final List<ResolveInfo> matches = findActivitiesForPackage(context, packageName); 141 final ResolveInfo info = matches.get(i); 170 private static List<ResolveInfo> findActivitiesForPackage(Context context, String packageName) { 177 final List<ResolveInfo> apps = packageManager.queryIntentActivities(mainIntent, 0); 178 return apps != null ? apps : new ArrayList<ResolveInfo>(); 184 private static boolean findActivity(List<ResolveInfo> apps, ComponentName component) { 186 for (ResolveInfo info : apps) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
ComponentTest.java | 136 final ResolveInfo info = mPackageManager.resolveActivity(mDisabledActivityIntent, 0); 139 final ResolveInfo info2 = mPackageManager.resolveActivity( 152 final ResolveInfo info = mPackageManager.resolveActivity(mEnabledActivityIntent, 0); 165 final List<ResolveInfo> infoList = 169 final List<ResolveInfo> infoList2 = 173 final ResolveInfo info = infoList2.get(0); 185 final List<ResolveInfo> infoList = 188 final ResolveInfo info = infoList.get(0); 232 final ResolveInfo info = mPackageManager.resolveActivity(mDisabledActivityIntent, 0); 237 final ResolveInfo info2 [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...] |
/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...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
VoiceSearch.java | 24 import android.content.pm.ResolveInfo; 58 private ResolveInfo getResolveInfo() { 60 ResolveInfo ri = mContext.getPackageManager(). 95 ResolveInfo ri = getResolveInfo();
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
LiveWallpaperListActivity.java | 23 import android.content.pm.ResolveInfo; 79 List<ResolveInfo> list = mPackageManager.queryIntentServices( 97 Collections.sort(list, new Comparator<ResolveInfo>() { 104 public int compare(ResolveInfo info1, ResolveInfo info2) { 111 ResolveInfo resolveInfo = list.get(i); 112 ComponentInfo ci = resolveInfo.serviceInfo; 115 info = new WallpaperInfo(this, resolveInfo);
|
/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
BookmarkPicker.java | 25 import android.content.pm.ResolveInfo; 73 * List of ResolveInfo for activities that we can bookmark (either directly 77 private List<ResolveInfo> mResolveList; 158 ArrayList<ResolveInfo> newResolveList = new ArrayList<ResolveInfo>(); 163 new ResolveInfo.DisplayNameComparator(getPackageManager())); 174 final ArrayList<ResolveInfo> newResolveList) { 194 private void fillResolveList(List<ResolveInfo> list) { 214 List<ResolveInfo> resolveList) { 218 ResolveInfo info = resolveList.get(i) [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
ResolverActivity.java | 28 import android.content.pm.ResolveInfo; 70 CharSequence title, Intent[] initialIntents, List<ResolveInfo> rList, 108 CharSequence title, Intent[] initialIntents, List<ResolveInfo> rList, 114 ResolveInfo ri = mAdapter.resolveInfoForPosition(which); 121 protected void onIntentSelected(ResolveInfo ri, Intent intent, boolean alwaysCheck) { 192 ResolveInfo r = mAdapter.mList.get(i).ri; 208 ResolveInfo ri; 214 DisplayResolveInfo(ResolveInfo pri, CharSequence pLabel, 230 Intent[] initialIntents, List<ResolveInfo> rList) { 244 ResolveInfo r0 = rList.get(0) [all...] |
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilitySettingsTest.java | 21 import android.content.pm.ResolveInfo; 36 List<ResolveInfo> resolvedActivities = packageManager.queryIntentActivities(intent,
|
/frameworks/base/core/java/android/content/pm/ |
ResolveInfo.java | 35 public class ResolveInfo implements Parcelable { 51 * The IntentFilter that was matched for this ResolveInfo. 225 public ResolveInfo() { 230 return "ResolveInfo{" 266 public static final Creator<ResolveInfo> CREATOR 267 = new Creator<ResolveInfo>() { 268 public ResolveInfo createFromParcel(Parcel source) { 269 return new ResolveInfo(source); 271 public ResolveInfo[] newArray(int size) { 272 return new ResolveInfo[size] [all...] |
/frameworks/base/core/java/android/accounts/ |
AccountAuthenticatorCache.java | 21 import android.content.pm.ResolveInfo; 79 List<ResolveInfo> resolveInfos = pm.queryIntentServices( 82 for (ResolveInfo resolveInfo: resolveInfos) { 83 android.content.pm.ServiceInfo si = resolveInfo.serviceInfo;
|
/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;
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
InputMethodInfoTest.java | 27 import android.content.pm.ResolveInfo; 108 args = {android.content.Context.class, android.content.pm.ResolveInfo.class} 132 List<ResolveInfo> ris = pm.queryIntentServices(intent, PackageManager.GET_META_DATA); 134 ResolveInfo resolveInfo = ris.get(i); 135 mInputMethodInfo = new InputMethodInfo(mContext, resolveInfo); 136 assertService(resolveInfo.serviceInfo, mInputMethodInfo.getServiceInfo());
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Grid1.java | 21 import android.content.pm.ResolveInfo; 51 private List<ResolveInfo> mApps; 75 ResolveInfo info = mApps.get(position);
|
LayoutAnimation1.java | 23 import android.content.pm.ResolveInfo; 45 private List<ResolveInfo> mApps; 58 ResolveInfo info = mApps.get(position % mApps.size());
|
LayoutAnimation4.java | 23 import android.content.pm.ResolveInfo; 46 private List<ResolveInfo> mApps; 59 ResolveInfo info = mApps.get(position % mApps.size());
|
LayoutAnimation5.java | 23 import android.content.pm.ResolveInfo; 45 private List<ResolveInfo> mApps; 58 ResolveInfo info = mApps.get(position % mApps.size());
|
LayoutAnimation6.java | 23 import android.content.pm.ResolveInfo; 45 private List<ResolveInfo> mApps; 58 ResolveInfo info = mApps.get(position % mApps.size());
|