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

Commit 02cc26f0 authored by Nick Chameyev's avatar Nick Chameyev Committed by Android (Google) Code Review
Browse files

Merge "Capture Launcher icon positions by reusing UiObject2" into main

parents a0e8f546 11c0ebcd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.launcher3.tapl;

import static com.android.launcher3.testing.shared.TestProtocol.TEST_DRAG_APP_ICON_TO_MULTIPLE_WORKSPACES_FAILURE;

import android.graphics.Point;
import android.util.Log;
import android.widget.TextView;

@@ -128,6 +129,14 @@ public abstract class AppIcon extends Launchable {
        return getObject().getContentDescription();
    }

    /**
     * @return the center coordinates of the icon
     */
    @NonNull
    public Point getVisibleCenter() {
        return getObject().getVisibleCenter();
    }

    /**
     * Create a regular expression pattern that matches strings containing all of the non-whitespace
     * characters of the app name, with any amount of whitespace added between characters (e.g.