Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21b22159 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add debug logs to print stack trace for Private space flaky test." into main

parents 267a703c f828683f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import static com.android.launcher3.testing.shared.TestProtocol.SCROLL_FINISHED_

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
@@ -27,8 +28,8 @@ import android.view.accessibility.AccessibilityNodeInfo;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.android.app.animation.Interpolators;
import com.android.launcher3.compat.AccessibilityManagerCompat;
import com.android.launcher3.testing.shared.TestProtocol;
import com.android.launcher3.views.RecyclerViewFastScroller;


@@ -188,6 +189,10 @@ public abstract class FastScrollRecyclerView extends RecyclerView {
     * Scrolls this recycler view to the top.
     */
    public void scrollToTop() {
        if (TestProtocol.sDebugTracing) {
            Log.d(TestProtocol.PRIVATE_SPACE_SCROLL_FAILURE, "FastScrollRecyclerView#scrollToTop",
                    new Exception());
        }
        if (mScrollbar != null) {
            mScrollbar.reattachThumbToScroll();
        }
+1 −0
Original line number Diff line number Diff line
@@ -174,6 +174,7 @@ public final class TestProtocol {
    public static final String TEST_DRAG_APP_ICON_TO_MULTIPLE_WORKSPACES_FAILURE = "b/326908466";
    public static final String WIDGET_CONFIG_NULL_EXTRA_INTENT = "b/324419890";
    public static final String OVERVIEW_SELECT_TOOLTIP_MISALIGNED = "b/332485341";
    public static final String PRIVATE_SPACE_SCROLL_FAILURE = "b/339737008";

    public static final String REQUEST_FLAG_ENABLE_GRID_ONLY_OVERVIEW = "enable-grid-only-overview";
    public static final String REQUEST_FLAG_ENABLE_APP_PAIRS = "enable-app-pairs";