Additional logging for pause non-detection
Bug: 156044202 Change-Id: I6d7dcdcf73722e66fcbd180c9e309c518766b9b8
This commit is contained in:
+11
@@ -30,6 +30,7 @@ import static com.android.quickstep.SysUINavigationMode.Mode.NO_BUTTON;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -49,6 +50,7 @@ import com.android.launcher3.model.data.AppInfo;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.WorkspaceItemInfo;
|
||||
import com.android.launcher3.popup.SystemShortcut;
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.launcher3.uioverrides.states.QuickstepAtomicAnimationFactory;
|
||||
import com.android.launcher3.uioverrides.touchcontrollers.FlingAndHoldTouchController;
|
||||
import com.android.launcher3.uioverrides.touchcontrollers.LandscapeEdgeSwipeController;
|
||||
@@ -244,6 +246,9 @@ public class QuickstepLauncher extends BaseQuickstepLauncher {
|
||||
|
||||
@Override
|
||||
public TouchController[] createTouchControllers() {
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "createTouchControllers.1");
|
||||
}
|
||||
Mode mode = SysUINavigationMode.getMode(this);
|
||||
|
||||
ArrayList<TouchController> list = new ArrayList<>();
|
||||
@@ -251,7 +256,13 @@ public class QuickstepLauncher extends BaseQuickstepLauncher {
|
||||
if (mode == NO_BUTTON) {
|
||||
list.add(new NoButtonQuickSwitchTouchController(this));
|
||||
list.add(new NavBarToHomeTouchController(this));
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "createTouchControllers.2");
|
||||
}
|
||||
if (FeatureFlags.ENABLE_OVERVIEW_ACTIONS.get()) {
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "createTouchControllers.3");
|
||||
}
|
||||
list.add(new NoButtonNavbarToOverviewTouchController(this));
|
||||
} else {
|
||||
list.add(new FlingAndHoldTouchController(this));
|
||||
|
||||
+3
@@ -65,6 +65,9 @@ public class NoButtonNavbarToOverviewTouchController extends FlingAndHoldTouchCo
|
||||
public NoButtonNavbarToOverviewTouchController(Launcher l) {
|
||||
super(l);
|
||||
mRecentsView = l.getOverviewPanel();
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "NoButtonNavbarToOverviewTouchController.ctor");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -601,15 +601,24 @@ public class TouchInteractionService extends Service implements PluginListener<O
|
||||
}
|
||||
|
||||
private void handleOrientationSetup(InputConsumer baseInputConsumer) {
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "handleOrientationSetup.1");
|
||||
}
|
||||
if (!isFixedRotationTransformEnabled(this)) {
|
||||
return;
|
||||
}
|
||||
mDeviceState.enableMultipleRegions(baseInputConsumer instanceof OtherActivityInputConsumer);
|
||||
BaseDraggingActivity activity =
|
||||
mOverviewComponentObserver.getActivityInterface().getCreatedActivity();
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "handleOrientationSetup.2");
|
||||
}
|
||||
if (activity == null || !(activity.getOverviewPanel() instanceof RecentsView)) {
|
||||
return;
|
||||
}
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "handleOrientationSetup.3");
|
||||
}
|
||||
((RecentsView) activity.getOverviewPanel())
|
||||
.setLayoutRotation(mDeviceState.getCurrentActiveRotation(),
|
||||
mDeviceState.getDisplayRotation());
|
||||
|
||||
@@ -157,7 +157,8 @@ public class SingleAxisSwipeDetector extends BaseSwipeDetector {
|
||||
@Override
|
||||
protected void reportDraggingInternal(PointF displacement, MotionEvent event) {
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "SingleAxisSwipeDetector");
|
||||
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "SingleAxisSwipeDetector "
|
||||
+ mListener.getClass().getSimpleName());
|
||||
}
|
||||
mListener.onDrag(mDir.extractDirection(displacement),
|
||||
mDir.extractOrthogonalDirection(displacement), event);
|
||||
|
||||
Reference in New Issue
Block a user