Home
last modified time | relevance | path

Searched refs:homeIntent (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DUtils.java106 Intent homeIntent = new Intent(Intent.ACTION_MAIN); in isHeadlessRemoteDisplayProvider() local
107 homeIntent.addCategory(Intent.CATEGORY_LAUNCHER); in isHeadlessRemoteDisplayProvider()
108 homeIntent.setPackage(packageName); in isHeadlessRemoteDisplayProvider()
110 return pm.queryIntentActivities(homeIntent, 0).isEmpty(); in isHeadlessRemoteDisplayProvider()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivity.java168 final Intent homeIntent = new Intent(Intent.ACTION_MAIN); in goToHomeScreen() local
169 homeIntent.addCategory(Intent.CATEGORY_HOME); in goToHomeScreen()
170 homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in goToHomeScreen()
171 startActivity(homeIntent); in goToHomeScreen()
/frameworks/base/services/core/java/com/android/server/wm/
DRootActivityContainer.java373 Intent homeIntent = null; in startHomeOnDisplay() local
376 homeIntent = mService.getHomeIntent(); in startHomeOnDisplay()
377 aInfo = resolveHomeActivity(userId, homeIntent); in startHomeOnDisplay()
381 homeIntent = info.second; in startHomeOnDisplay()
383 if (aInfo == null || homeIntent == null) { in startHomeOnDisplay()
392 homeIntent.setComponent(new ComponentName(aInfo.applicationInfo.packageName, aInfo.name)); in startHomeOnDisplay()
393 homeIntent.setFlags(homeIntent.getFlags() | FLAG_ACTIVITY_NEW_TASK); in startHomeOnDisplay()
396 homeIntent.putExtra(WindowManagerPolicy.EXTRA_FROM_HOME_KEY, true); in startHomeOnDisplay()
402 mService.getActivityStartController().startHomeActivity(homeIntent, aInfo, myReason, in startHomeOnDisplay()
412 ActivityInfo resolveHomeActivity(int userId, Intent homeIntent) { in resolveHomeActivity() argument
[all …]
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java234 Intent homeIntent = new Intent(Intent.ACTION_MAIN); in returnHome() local
235 homeIntent.addCategory(Intent.CATEGORY_HOME); in returnHome()
236 homeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in returnHome()
238 mContext.startActivity(homeIntent); in returnHome()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java205 Intent homeIntent = new Intent(Intent.ACTION_MAIN); in closeApp() local
206 homeIntent.addCategory(Intent.CATEGORY_HOME); in closeApp()
207 homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK in closeApp()
209 getInstrumentation().getContext().startActivity(homeIntent); in closeApp()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java761 Intent homeIntent = buildHomeIntent(category); in sendConfigurationAndStartDreamOrDockAppLocked() local
762 if (Sandman.shouldStartDockApp(getContext(), homeIntent)) { in sendConfigurationAndStartDreamOrDockAppLocked()
765 null, null, homeIntent, null, null, null, 0, 0, in sendConfigurationAndStartDreamOrDockAppLocked()
770 Slog.e(TAG, "Could not start dock app: " + homeIntent in sendConfigurationAndStartDreamOrDockAppLocked()
774 Slog.e(TAG, "Could not start dock app: " + homeIntent, ex); in sendConfigurationAndStartDreamOrDockAppLocked()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRootActivityContainerTests.java685 final Intent homeIntent = mService.getHomeIntent(); in testResolveSecondaryHomeActivityForced() local
691 refEq(homeIntent)); in testResolveSecondaryHomeActivityForced()
701 refEq(homeIntent)); in testResolveSecondaryHomeActivityForced()
824 final Intent homeIntent = mService.getHomeIntent(); in mockResolveHomeActivity() local
830 refEq(homeIntent)); in mockResolveHomeActivity()
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/
DAppLaunch.java607 Intent homeIntent = new Intent(Intent.ACTION_MAIN); in closeApp() local
608 homeIntent.addCategory(Intent.CATEGORY_HOME); in closeApp()
609 homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK in closeApp()
611 getInstrumentation().getContext().startActivity(homeIntent); in closeApp()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java664 Intent homeIntent = new Intent(Intent.ACTION_MAIN); in startHomeIntent() local
665 homeIntent.addCategory(Intent.CATEGORY_HOME); in startHomeIntent()
666 homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK in startHomeIntent()
668 getInstrumentation().getContext().startActivity(homeIntent); in startHomeIntent()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DDefaultPermissionGrantPolicy.java660 Intent homeIntent = new Intent(Intent.ACTION_MAIN) in grantDefaultSystemHandlerPermissions() local
664 getDefaultSystemHandlerActivityPackage(homeIntent, userId), userId, in grantDefaultSystemHandlerPermissions()
933 Intent homeIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_LAUNCHER); in getHeadlessSyncAdapterPackages() local
936 homeIntent.setPackage(syncAdapterPackageName); in getHeadlessSyncAdapterPackages()
939 homeIntent, DEFAULT_INTENT_QUERY_FLAGS, userId); in getHeadlessSyncAdapterPackages()
/frameworks/base/core/java/android/app/
DWallpaperManager.java1104 Intent homeIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_HOME); in getCropAndSetWallpaperIntent() local
1105 ResolveInfo resolvedHome = packageManager.resolveActivity(homeIntent, in getCropAndSetWallpaperIntent()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java2102 Intent homeIntent = new Intent(Intent.ACTION_MAIN) in resolveNeedsSlowUnlockTransition() local
2104 ResolveInfo resolveInfo = mContext.getPackageManager().resolveActivity(homeIntent, in resolveNeedsSlowUnlockTransition()