Home
last modified time | relevance | path

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

/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPersonalAppsSuspensionHelper.java194 final Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in hasLauncherIntent() local
195 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in hasLauncherIntent()
196 intentToResolve.setPackage(packageName); in hasLauncherIntent()
198 mPackageManager.queryIntentActivities(intentToResolve, PACKAGE_QUERY_FLAGS); in hasLauncherIntent()
/frameworks/base/services/core/java/com/android/server/pm/
DResolveIntentHelper.java282 final Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLaunchIntentSenderForPackage() local
283 intentToResolve.addCategory(Intent.CATEGORY_INFO); in getLaunchIntentSenderForPackage()
284 intentToResolve.setPackage(packageName); in getLaunchIntentSenderForPackage()
286 String resolvedType = intentToResolve.resolveTypeIfNeeded(contentResolver); in getLaunchIntentSenderForPackage()
287 List<ResolveInfo> ris = computer.queryIntentActivitiesInternal(intentToResolve, in getLaunchIntentSenderForPackage()
291 intentToResolve.removeCategory(Intent.CATEGORY_INFO); in getLaunchIntentSenderForPackage()
292 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in getLaunchIntentSenderForPackage()
293 intentToResolve.setPackage(packageName); in getLaunchIntentSenderForPackage()
294 resolvedType = intentToResolve.resolveTypeIfNeeded(contentResolver); in getLaunchIntentSenderForPackage()
295 ris = computer.queryIntentActivitiesInternal(intentToResolve, resolvedType, in getLaunchIntentSenderForPackage()
[all …]
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java163 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in createMappings() local
164 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in createMappings()
165 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
173 Intent startIntent = new Intent(intentToResolve); in createMappings()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java1026 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in createMappings() local
1027 intentToResolve.addCategory(hasLeanback(getInstrumentation().getContext()) ? in createMappings()
1030 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
1031 resolveLoop(ris, intentToResolve, pm); in createMappings()
1033 intentToResolve = new Intent(WEARABLE_ACTION_GOOGLE); in createMappings()
1034 ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
1035 resolveLoop(ris, intentToResolve, pm); in createMappings()
1038 private void resolveLoop(List<ResolveInfo> ris, Intent intentToResolve, PackageManager pm) { in resolveLoop() argument
1043 Intent startIntent = new Intent(intentToResolve); in resolveLoop()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java301 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLaunchIntentForPackage() local
302 intentToResolve.addCategory(Intent.CATEGORY_INFO); in getLaunchIntentForPackage()
303 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
304 List<ResolveInfo> ris = queryIntentActivities(intentToResolve, 0); in getLaunchIntentForPackage()
309 intentToResolve.removeCategory(Intent.CATEGORY_INFO); in getLaunchIntentForPackage()
310 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in getLaunchIntentForPackage()
311 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
312 ris = queryIntentActivities(intentToResolve, 0); in getLaunchIntentForPackage()
317 Intent intent = new Intent(intentToResolve); in getLaunchIntentForPackage()
336 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLaunchIntentForPackageAndCategory() local
[all …]