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.java194 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in createMappings() local
195 intentToResolve.addCategory(hasLeanback(getInstrumentation().getContext()) ? in createMappings()
198 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
199 resolveLoop(ris, intentToResolve, pm); in createMappings()
201 intentToResolve = new Intent(WEARABLE_ACTION_GOOGLE); in createMappings()
202 ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
203 resolveLoop(ris, intentToResolve, pm); in createMappings()
206 private void resolveLoop(List<ResolveInfo> ris, Intent intentToResolve, PackageManager pm) { in resolveLoop() argument
211 Intent startIntent = new Intent(intentToResolve); in resolveLoop()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java158 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in createMappings() local
159 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in createMappings()
160 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
168 Intent startIntent = new Intent(intentToResolve); in createMappings()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java173 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLaunchIntentForPackage() local
174 intentToResolve.addCategory(Intent.CATEGORY_INFO); in getLaunchIntentForPackage()
175 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
176 List<ResolveInfo> ris = queryIntentActivities(intentToResolve, 0); in getLaunchIntentForPackage()
181 intentToResolve.removeCategory(Intent.CATEGORY_INFO); in getLaunchIntentForPackage()
182 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in getLaunchIntentForPackage()
183 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
184 ris = queryIntentActivities(intentToResolve, 0); in getLaunchIntentForPackage()
189 Intent intent = new Intent(intentToResolve); in getLaunchIntentForPackage()
199 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLeanbackLaunchIntentForPackage() local
[all …]