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.java170 final Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in hasLauncherIntent() local
171 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in hasLauncherIntent()
172 intentToResolve.setPackage(packageName); in hasLauncherIntent()
174 mPackageManager.queryIntentActivities(intentToResolve, PACKAGE_QUERY_FLAGS); in hasLauncherIntent()
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/
DAppLaunch.java521 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in createMappings() local
522 intentToResolve.addCategory(hasLeanback(getInstrumentation().getContext()) ? in createMappings()
525 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
526 resolveLoop(ris, intentToResolve, pm); in createMappings()
528 intentToResolve = new Intent(WEARABLE_ACTION_GOOGLE); in createMappings()
529 ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
530 resolveLoop(ris, intentToResolve, pm); in createMappings()
533 private void resolveLoop(List<ResolveInfo> ris, Intent intentToResolve, PackageManager pm) { in resolveLoop() argument
538 Intent startIntent = new Intent(intentToResolve); in resolveLoop()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java161 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in createMappings() local
162 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in createMappings()
163 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createMappings()
171 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.java234 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLaunchIntentForPackage() local
235 intentToResolve.addCategory(Intent.CATEGORY_INFO); in getLaunchIntentForPackage()
236 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
237 List<ResolveInfo> ris = queryIntentActivities(intentToResolve, 0); in getLaunchIntentForPackage()
242 intentToResolve.removeCategory(Intent.CATEGORY_INFO); in getLaunchIntentForPackage()
243 intentToResolve.addCategory(Intent.CATEGORY_LAUNCHER); in getLaunchIntentForPackage()
244 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
245 ris = queryIntentActivities(intentToResolve, 0); in getLaunchIntentForPackage()
250 Intent intent = new Intent(intentToResolve); in getLaunchIntentForPackage()
269 Intent intentToResolve = new Intent(Intent.ACTION_MAIN); in getLaunchIntentForPackageAndCategory() local
[all …]