Home
last modified time | relevance | path

Searched refs:intentToResolve (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java436 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in createMappings() local
437 intentToResolve.addCategory(hasLeanback(getInstrumentation().getContext()) ? in createMappings()
440 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
441 resolveLoop(ris, intentToResolve, pm); in createMappings()
443 intentToResolve = new Intent(WEARABLE_ACTION_GOOGLE); in createMappings()
444 ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
445 resolveLoop(ris, intentToResolve, pm); in createMappings()
448 private void resolveLoop(List<ResolveInfo> ris, Intent intentToResolve, PackageManager pm) { in resolveLoop() argument
453 Intent startIntent = new Intent(intentToResolve); in resolveLoop()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java157 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in createMappings() local
158 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in createMappings()
159 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
167 Intent startIntent = new Intent(intentToResolve); in createMappings()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java199 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLaunchIntentForPackage() local
200 intentToResolve.addCategory(Intent.CATEGORY_INFO); in getLaunchIntentForPackage()
201 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
202 List<ResolveInfo> ris = queryIntentActivities(intentToResolve, 0); in getLaunchIntentForPackage()
207 intentToResolve.removeCategory(Intent.CATEGORY_INFO); in getLaunchIntentForPackage()
208 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in getLaunchIntentForPackage()
209 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
210 ris = queryIntentActivities(intentToResolve, 0); in getLaunchIntentForPackage()
215 Intent intent = new Intent(intentToResolve); in getLaunchIntentForPackage()
225 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLeanbackLaunchIntentForPackage() local
[all …]