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

Commit f828683f authored by Anushree Ganjam's avatar Anushree Ganjam
Browse files

Add debug logs to print stack trace for Private space flaky test.

From the failure test videos, it looks like scrollToTop gets called https://b.corp.google.com/issues/339737008#comment15.

Bug: 339737008
Test: Manual
Flag: TEST_ONLY
Change-Id: I61a95ff45fa4409f8f1b243ac435002556a16677
parent 892d3583
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";