Track all ActiveGestureLogs in ProtoLog
Flag: com.android.launcher3.enable_active_gesture_proto_log Bug: 293182501 Test: checked protolog traces in winscope Doc: go/launcher-protolog-support Change-Id: I2eb153aa9a94fe49f9c5e9b93b0be5e14fb4eb9c
This commit is contained in:
1 parent
8388a07673
commit
62335be7c9
19 files changed
+647
-223
No files matched your search
@@ -60,8 +60,6 @@ import static com.android.launcher3.testing.shared.TestProtocol.QUICK_SWITCH_STA
|
||||
import static com.android.launcher3.util.DisplayController.CHANGE_ACTIVE_SCREEN;
|
||||
import static com.android.launcher3.util.DisplayController.CHANGE_NAVIGATION_MODE;
|
||||
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
|
||||
import static com.android.quickstep.util.ActiveGestureErrorDetector.GestureEvent.QUICK_SWITCH_FROM_HOME_FAILED;
|
||||
import static com.android.quickstep.util.ActiveGestureErrorDetector.GestureEvent.QUICK_SWITCH_FROM_HOME_FALLBACK;
|
||||
import static com.android.quickstep.util.AnimUtils.completeRunnableListCallback;
|
||||
import static com.android.quickstep.util.SplitAnimationTimings.TABLET_HOME_TO_SPLIT;
|
||||
import static com.android.systemui.shared.system.ActivityManagerWrapper.CLOSE_SYSTEM_WINDOWS_REASON_HOME_KEY;
|
||||
@@ -172,7 +170,7 @@ import com.android.quickstep.RecentsModel;
|
||||
import com.android.quickstep.SystemUiProxy;
|
||||
import com.android.quickstep.TaskUtils;
|
||||
import com.android.quickstep.TouchInteractionService.TISBinder;
|
||||
import com.android.quickstep.util.ActiveGestureLog;
|
||||
import com.android.quickstep.util.ActiveGestureProtoLogProxy;
|
||||
import com.android.quickstep.util.AsyncClockEventDelegate;
|
||||
import com.android.quickstep.util.GroupTask;
|
||||
import com.android.quickstep.util.LauncherUnfoldAnimationController;
|
||||
@@ -595,11 +593,8 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
|
||||
TaskView taskToLaunch = currentPageTask;
|
||||
if (currentPageTask == null) {
|
||||
taskToLaunch = fallbackTask;
|
||||
ActiveGestureLog.INSTANCE.addLog(new ActiveGestureLog.CompoundString(
|
||||
"Quick switch from home fallback case: The TaskView at index ")
|
||||
.append(rv.getCurrentPage())
|
||||
.append(" is missing."),
|
||||
QUICK_SWITCH_FROM_HOME_FALLBACK);
|
||||
ActiveGestureProtoLogProxy.logQuickSwitchFromHomeFallback(
|
||||
rv.getCurrentPage());
|
||||
}
|
||||
taskToLaunch.launchWithoutAnimation(success -> {
|
||||
if (!success) {
|
||||
@@ -610,11 +605,7 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
|
||||
return Unit.INSTANCE;
|
||||
});
|
||||
} else {
|
||||
ActiveGestureLog.INSTANCE.addLog(new ActiveGestureLog.CompoundString(
|
||||
"Quick switch from home failed: TaskViews at indices ")
|
||||
.append(rv.getCurrentPage())
|
||||
.append(" and 0 are missing."),
|
||||
QUICK_SWITCH_FROM_HOME_FAILED);
|
||||
ActiveGestureProtoLogProxy.logQuickSwitchFromHomeFailed(rv.getCurrentPage());
|
||||
getStateManager().goToState(NORMAL);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user