— a/frameworks/base/services/core/java/com/android/server/wm/WindowOrientationListener.java
+++ b/frameworks/base/services/core/java/com/android/server/wm/WindowOrientationListener.java
@@ -34,6 +34,7 @@ import android.os.SystemProperties;
import android.provider.DeviceConfig;
import android.rotationresolver.RotationResolverInternal;
import android.util.Slog;
+import android.util.Log;
import android.util.proto.ProtoOutputStream;
import android.view.Surface;
@@ -1118,7 +1119,26 @@ public abstract class WindowOrientationListener {
@Override
public int getProposedRotationLocked() {
-
return mProposedRotation;
-
int mChangeProposedRotation = -1;
-
Log.d(TAG,"ZDC getProposedRotationLocked mProposedRotation:" + mProposedRotation);
-
switch(mProposedRotation) {
-
case 0:
-
mChangeProposedRotation = 1;
-
break;
-
case 1:
-
mChangeProposedRotation = 2;
-
break;
-
case 2:
-
mChangeProposedRotation = 3;
-
break;
-
case 3:
-
mChangeProposedRotation = 0;
-
break;
-
default:
-
break;
-
}
-
Log.d(TAG,"ZDC getProposedRotationLocked CHANGE mProposedRotation:" + mChangeProposedRotation);
-
return mChangeProposedRotation; } @Override