diff --git a/quickstep/src/com/android/quickstep/RecentsActivity.java b/quickstep/src/com/android/quickstep/RecentsActivity.java index 20ecde9726..b472d611ae 100644 --- a/quickstep/src/com/android/quickstep/RecentsActivity.java +++ b/quickstep/src/com/android/quickstep/RecentsActivity.java @@ -59,6 +59,9 @@ import com.android.systemui.shared.system.RemoteAnimationAdapterCompat; import com.android.systemui.shared.system.RemoteAnimationRunnerCompat; import com.android.systemui.shared.system.RemoteAnimationTargetCompat; +import java.io.FileDescriptor; +import java.io.PrintWriter; + /** * A simple activity to show the recently launched tasks */ @@ -271,4 +274,11 @@ public class RecentsActivity extends BaseDraggingActivity { .addCategory(Intent.CATEGORY_HOME) .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); } + + @Override + public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { + super.dump(prefix, fd, writer, args); + writer.println(prefix + "Misc:"); + dumpMisc(writer); + } } diff --git a/src/com/android/launcher3/BaseActivity.java b/src/com/android/launcher3/BaseActivity.java index 1f70cfaa10..3e4589d1f5 100644 --- a/src/com/android/launcher3/BaseActivity.java +++ b/src/com/android/launcher3/BaseActivity.java @@ -17,6 +17,7 @@ package com.android.launcher3; import static com.android.launcher3.util.SystemUiController.UI_STATE_OVERVIEW; + import static java.lang.annotation.RetentionPolicy.SOURCE; import android.app.Activity; @@ -24,15 +25,14 @@ import android.content.Context; import android.content.ContextWrapper; import android.content.Intent; import android.content.res.Configuration; -import android.graphics.Point; import android.support.annotation.IntDef; -import android.view.Display; import android.view.View.AccessibilityDelegate; import com.android.launcher3.DeviceProfile.OnDeviceProfileChangeListener; import com.android.launcher3.logging.UserEventDispatcher; import com.android.launcher3.util.SystemUiController; +import java.io.PrintWriter; import java.lang.annotation.Retention; import java.util.ArrayList; @@ -223,4 +223,12 @@ public abstract class BaseActivity extends Activity { public interface MultiWindowModeChangedListener { void onMultiWindowModeChanged(boolean isInMultiWindowMode); } + + protected void dumpMisc(PrintWriter writer) { + writer.println(" deviceProfile isTransposed=" + getDeviceProfile().isVerticalBarLayout()); + writer.println(" orientation=" + getResources().getConfiguration().orientation); + writer.println(" mSystemUiController: " + mSystemUiController); + writer.println(" mActivityFlags: " + mActivityFlags); + writer.println(" mForceInvisible: " + mForceInvisible); + } } diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 12d29a87b7..bf73149670 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2279,8 +2279,8 @@ public class Launcher extends BaseDraggingActivity writer.print(prefix + "\tmWorkspaceLoading=" + mWorkspaceLoading); writer.print(" mPendingRequestArgs=" + mPendingRequestArgs); writer.println(" mPendingActivityResult=" + mPendingActivityResult); - writer.println(" deviceProfile isTransposed=" + getDeviceProfile().isVerticalBarLayout()); - writer.println(" orientation=" + getResources().getConfiguration().orientation); + writer.println(" mRotationHelper: " + mRotationHelper); + dumpMisc(writer); try { FileLog.flushAll(writer); diff --git a/src/com/android/launcher3/states/RotationHelper.java b/src/com/android/launcher3/states/RotationHelper.java index 0036bb98e8..e8664458d5 100644 --- a/src/com/android/launcher3/states/RotationHelper.java +++ b/src/com/android/launcher3/states/RotationHelper.java @@ -150,4 +150,12 @@ public class RotationHelper implements OnSharedPreferenceChangeListener { mActivity.setRequestedOrientation(activityFlags); } } + + @Override + public String toString() { + return String.format("[mStateHandlerRequest=%d, mCurrentStateRequest=%d," + + " mLastActivityFlags=%d, mIgnoreAutoRotateSettings=%b, mAutoRotateEnabled=%b]", + mStateHandlerRequest, mCurrentStateRequest, mLastActivityFlags, + mIgnoreAutoRotateSettings, mAutoRotateEnabled); + } } diff --git a/src/com/android/launcher3/util/SystemUiController.java b/src/com/android/launcher3/util/SystemUiController.java index 7ef53a97d7..86995b70f9 100644 --- a/src/com/android/launcher3/util/SystemUiController.java +++ b/src/com/android/launcher3/util/SystemUiController.java @@ -16,11 +16,14 @@ package com.android.launcher3.util; +import android.text.TextUtils; import android.view.View; import android.view.Window; import com.android.launcher3.Utilities; +import java.util.Arrays; + /** * Utility class to manage various window flags to control system UI. */ @@ -78,4 +81,9 @@ public class SystemUiController { mWindow.getDecorView().setSystemUiVisibility(newFlags); } } + + @Override + public String toString() { + return "mStates=" + Arrays.toString(mStates); + } }