Searched refs:homeIntent (Results 1 – 8 of 8) sorted by relevance
51 Intent homeIntent = new Intent(Intent.ACTION_MAIN); in goHome() local52 homeIntent.addCategory(Intent.CATEGORY_HOME); in goHome()53 homeIntent.addFlags(FLAG_ACTIVITY_NEW_TASK); in goHome()54 TestApis.context().instrumentedContext().startActivity(homeIntent); in goHome()
73 private Intent homeIntent; field in BaseTileServiceTest81 homeIntent = new Intent(Intent.ACTION_MAIN); in setUp()82 homeIntent.addCategory(Intent.CATEGORY_HOME); in setUp()84 mLauncherPackage = mContext.getPackageManager().resolveActivity(homeIntent, in setUp()
97 final Intent homeIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_HOME); in setupTests() local126 homeIntent)); in setupTests()150 homeIntent)); in setupTests()
361 Intent homeIntent = createHomeIntent(category); in sendHomeIntentToDisplay() local362 homeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in sendHomeIntentToDisplay()365 mContext.startActivity(homeIntent, options.toBundle()); in sendHomeIntentToDisplay()
184 Intent homeIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_HOME); in getLauncherPackageName() local186 homeIntent, 0); in getLauncherPackageName()
83 Intent homeIntent = new Intent(Intent.ACTION_MAIN) in testBroadcastNotReceivedForDifferentLauncher() local86 for (ResolveInfo info : mPackageManager.queryIntentActivities(homeIntent, 0)) { in testBroadcastNotReceivedForDifferentLauncher()
1255 final Intent homeIntent = new Intent() in testBgRestrictedForegroundService() local1299 mTargetContext.startActivity(homeIntent); in testBgRestrictedForegroundService()1337 final Intent homeIntent = new Intent(); in testCantSaveStateLaunchAndBackground() local1338 homeIntent.setAction(Intent.ACTION_MAIN); in testCantSaveStateLaunchAndBackground()1339 homeIntent.addCategory(Intent.CATEGORY_HOME); in testCantSaveStateLaunchAndBackground()1340 homeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testCantSaveStateLaunchAndBackground()1393 mTargetContext.startActivity(homeIntent); in testCantSaveStateLaunchAndBackground()1486 final Intent homeIntent = new Intent(); in testCantSaveStateLaunchAndSwitch() local1487 homeIntent.setAction(Intent.ACTION_MAIN); in testCantSaveStateLaunchAndSwitch()1488 homeIntent.addCategory(Intent.CATEGORY_HOME); in testCantSaveStateLaunchAndSwitch()[all …]
2184 final Intent homeIntent = new Intent(Intent.ACTION_MAIN) in testDefaultHomeActivity_doesntChange_whenInstallAnotherLauncher() local2187 mPackageManager.resolveActivity(homeIntent, in testDefaultHomeActivity_doesntChange_whenInstallAnotherLauncher()2197 mPackageManager.resolveActivity(homeIntent, in testDefaultHomeActivity_doesntChange_whenInstallAnotherLauncher()2200 mPackageManager.queryIntentActivities(homeIntent, in testDefaultHomeActivity_doesntChange_whenInstallAnotherLauncher()