Loading packages/SystemUI/src/com/android/systemui/recents/Console.java +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ public class Console { public static final String AnsiWhite = "\u001B[37m"; // Console enabled state public static final boolean Enabled = false; public static boolean Enabled = false; /** Logs a key */ public static void log(String key) { Loading packages/SystemUI/src/com/android/systemui/recents/Constants.java +3 −3 Original line number Diff line number Diff line Loading @@ -55,9 +55,9 @@ public class Constants { public static final String TimeRecentsStartupKey = "startup"; public static final String TimeRecentsLaunchKey = "launchTask"; public static final String TimeRecentsScreenshotTransitionKey = "screenshot"; public static final boolean TimeRecentsStartup = true; public static final boolean TimeRecentsLaunchTask = true; public static final boolean TimeRecentsScreenshotTransition = true; public static final boolean TimeRecentsStartup = false; public static final boolean TimeRecentsLaunchTask = false; public static final boolean TimeRecentsScreenshotTransition = false; public static final boolean RecentsComponent = false; Loading packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +12 −21 Original line number Diff line number Diff line Loading @@ -65,7 +65,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView AppWidgetHostView mSearchAppWidgetHostView; boolean mVisible; boolean mTaskLaunched; // Runnables to finish the Recents activity FinishRecentsRunnable mFinishRunnable = new FinishRecentsRunnable(true); Loading Loading @@ -198,9 +197,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView AlternateRecentsComponent.EXTRA_TRIGGERED_FROM_ALT_TAB, false); mConfig.launchedWithNoRecentTasks = !root.hasTasks(); // Show the scrim if we animate into Recents without window transitions mScrimViews.prepareEnterRecentsAnimation(); // Add the default no-recents layout if (mEmptyView == null) { mEmptyView = mEmptyViewStub.inflate(); Loading @@ -210,6 +206,9 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } else { mEmptyView.setVisibility(View.GONE); } // Show the scrim if we animate into Recents without window transitions mScrimViews.prepareEnterRecentsAnimation(); } /** Attempts to allocate and bind the search bar app widget */ Loading Loading @@ -355,13 +354,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Update the recent tasks updateRecentsTasks(getIntent()); // Prepare the screenshot transition if necessary if (Constants.DebugFlags.App.EnableScreenshotAppTransition) { mFullScreenOverlayView = (FullscreenTransitionOverlayView) mFullscreenOverlayStub.inflate(); mFullScreenOverlayView.setCallbacks(this); mFullScreenOverlayView.prepareAnimateOnEnterRecents(AlternateRecentsComponent.getLastScreenshot()); } // Bind the search app widget when we first start up bindSearchBarAppWidget(); // Add the search bar layout Loading Loading @@ -390,6 +382,13 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } catch (InvocationTargetException e) { e.printStackTrace(); } // Prepare the screenshot transition if necessary if (Constants.DebugFlags.App.EnableScreenshotAppTransition) { mFullScreenOverlayView = (FullscreenTransitionOverlayView) mFullscreenOverlayStub.inflate(); mFullScreenOverlayView.setCallbacks(this); mFullScreenOverlayView.prepareAnimateOnEnterRecents(AlternateRecentsComponent.getLastScreenshot()); } } void onConfigurationChange() { Loading @@ -404,8 +403,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); // Reset the task launched flag if we encounter an onNewIntent() before onStop() mTaskLaunched = false; if (Console.Enabled) { Console.logDivider(Constants.Log.App.SystemUIHandshake); Loading @@ -426,9 +423,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView if (Constants.DebugFlags.App.EnableScreenshotAppTransition) { mFullScreenOverlayView.prepareAnimateOnEnterRecents(AlternateRecentsComponent.getLastScreenshot()); } // Don't attempt to rebind the search bar widget, but just add the search bar layout addSearchBarAppWidgetView(); } @Override Loading Loading @@ -509,7 +503,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } mVisible = false; mTaskLaunched = false; } @Override Loading Loading @@ -632,15 +625,13 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } @Override public void onTaskLaunching() { mTaskLaunched = true; public void onTaskViewClicked() { // Mark recents as no longer visible AlternateRecentsComponent.notifyVisibilityChanged(false); } @Override public void onLastTaskRemoved() { public void onAllTaskViewsDismissed() { mFinishLaunchHomeRunnable.run(); } Loading packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java +3 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,9 @@ public class RecentsConfiguration { // Debug mode debugModeEnabled = settings.getBoolean(Constants.Values.App.Key_DebugModeEnabled, false); if (debugModeEnabled) { Console.Enabled = true; } // Animations animationPxMovementPerSecond = Loading packages/SystemUI/src/com/android/systemui/recents/RecentsService.java +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ class SystemUIMessageHandler extends Handler { // since that is done when we compute the animation itself in the Recents component // Create a dummy task stack & compute the rect for the thumbnail to animate to TaskStack stack = new TaskStack(context); TaskStack stack = new TaskStack(); TaskStackView tsv = new TaskStackView(context, stack); TaskStackViewLayoutAlgorithm algo = tsv.getStackAlgorithm(); Bundle replyData = new Bundle(); Loading Loading
packages/SystemUI/src/com/android/systemui/recents/Console.java +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ public class Console { public static final String AnsiWhite = "\u001B[37m"; // Console enabled state public static final boolean Enabled = false; public static boolean Enabled = false; /** Logs a key */ public static void log(String key) { Loading
packages/SystemUI/src/com/android/systemui/recents/Constants.java +3 −3 Original line number Diff line number Diff line Loading @@ -55,9 +55,9 @@ public class Constants { public static final String TimeRecentsStartupKey = "startup"; public static final String TimeRecentsLaunchKey = "launchTask"; public static final String TimeRecentsScreenshotTransitionKey = "screenshot"; public static final boolean TimeRecentsStartup = true; public static final boolean TimeRecentsLaunchTask = true; public static final boolean TimeRecentsScreenshotTransition = true; public static final boolean TimeRecentsStartup = false; public static final boolean TimeRecentsLaunchTask = false; public static final boolean TimeRecentsScreenshotTransition = false; public static final boolean RecentsComponent = false; Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +12 −21 Original line number Diff line number Diff line Loading @@ -65,7 +65,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView AppWidgetHostView mSearchAppWidgetHostView; boolean mVisible; boolean mTaskLaunched; // Runnables to finish the Recents activity FinishRecentsRunnable mFinishRunnable = new FinishRecentsRunnable(true); Loading Loading @@ -198,9 +197,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView AlternateRecentsComponent.EXTRA_TRIGGERED_FROM_ALT_TAB, false); mConfig.launchedWithNoRecentTasks = !root.hasTasks(); // Show the scrim if we animate into Recents without window transitions mScrimViews.prepareEnterRecentsAnimation(); // Add the default no-recents layout if (mEmptyView == null) { mEmptyView = mEmptyViewStub.inflate(); Loading @@ -210,6 +206,9 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } else { mEmptyView.setVisibility(View.GONE); } // Show the scrim if we animate into Recents without window transitions mScrimViews.prepareEnterRecentsAnimation(); } /** Attempts to allocate and bind the search bar app widget */ Loading Loading @@ -355,13 +354,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Update the recent tasks updateRecentsTasks(getIntent()); // Prepare the screenshot transition if necessary if (Constants.DebugFlags.App.EnableScreenshotAppTransition) { mFullScreenOverlayView = (FullscreenTransitionOverlayView) mFullscreenOverlayStub.inflate(); mFullScreenOverlayView.setCallbacks(this); mFullScreenOverlayView.prepareAnimateOnEnterRecents(AlternateRecentsComponent.getLastScreenshot()); } // Bind the search app widget when we first start up bindSearchBarAppWidget(); // Add the search bar layout Loading Loading @@ -390,6 +382,13 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } catch (InvocationTargetException e) { e.printStackTrace(); } // Prepare the screenshot transition if necessary if (Constants.DebugFlags.App.EnableScreenshotAppTransition) { mFullScreenOverlayView = (FullscreenTransitionOverlayView) mFullscreenOverlayStub.inflate(); mFullScreenOverlayView.setCallbacks(this); mFullScreenOverlayView.prepareAnimateOnEnterRecents(AlternateRecentsComponent.getLastScreenshot()); } } void onConfigurationChange() { Loading @@ -404,8 +403,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); // Reset the task launched flag if we encounter an onNewIntent() before onStop() mTaskLaunched = false; if (Console.Enabled) { Console.logDivider(Constants.Log.App.SystemUIHandshake); Loading @@ -426,9 +423,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView if (Constants.DebugFlags.App.EnableScreenshotAppTransition) { mFullScreenOverlayView.prepareAnimateOnEnterRecents(AlternateRecentsComponent.getLastScreenshot()); } // Don't attempt to rebind the search bar widget, but just add the search bar layout addSearchBarAppWidgetView(); } @Override Loading Loading @@ -509,7 +503,6 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } mVisible = false; mTaskLaunched = false; } @Override Loading Loading @@ -632,15 +625,13 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } @Override public void onTaskLaunching() { mTaskLaunched = true; public void onTaskViewClicked() { // Mark recents as no longer visible AlternateRecentsComponent.notifyVisibilityChanged(false); } @Override public void onLastTaskRemoved() { public void onAllTaskViewsDismissed() { mFinishLaunchHomeRunnable.run(); } Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java +3 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,9 @@ public class RecentsConfiguration { // Debug mode debugModeEnabled = settings.getBoolean(Constants.Values.App.Key_DebugModeEnabled, false); if (debugModeEnabled) { Console.Enabled = true; } // Animations animationPxMovementPerSecond = Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsService.java +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ class SystemUIMessageHandler extends Handler { // since that is done when we compute the animation itself in the Recents component // Create a dummy task stack & compute the rect for the thumbnail to animate to TaskStack stack = new TaskStack(context); TaskStack stack = new TaskStack(); TaskStackView tsv = new TaskStackView(context, stack); TaskStackViewLayoutAlgorithm algo = tsv.getStackAlgorithm(); Bundle replyData = new Bundle(); Loading