Implemnet methods to drag a icon to given Workspace cell

The CL implements public methods to drag an Icon from AllApps to a
given cell in the workspace.

Bug: 199120092
Test: Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3#testDragAppIconToWorkspaceCell
Test: https://android-build.googleplex.com/builds/abtd/run/L89300000953052361
Test: https://android-build.googleplex.com/builds/abtd/run/L44500000953013792
Change-Id: Ife16d1f1b55b809763dd40f5afee6711049a4729
This commit is contained in:
Benno Lin
2021-09-03 20:18:34 +00:00
parent 40570799b3
commit 7738cac424
14 changed files with 350 additions and 24 deletions

View File

@@ -27,6 +27,7 @@ import android.system.Os;
import android.view.View;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
import com.android.launcher3.LauncherAppState;
import com.android.launcher3.LauncherSettings;
@@ -124,7 +125,7 @@ public class DebugTestInformationHandler extends TestInformationHandler {
}
@Override
public Bundle call(String method, String arg) {
public Bundle call(String method, String arg, @Nullable Bundle extras) {
final Bundle response = new Bundle();
switch (method) {
case TestProtocol.REQUEST_APP_LIST_FREEZE_FLAGS: {
@@ -219,7 +220,7 @@ public class DebugTestInformationHandler extends TestInformationHandler {
}
default:
return super.call(method, arg);
return super.call(method, arg, extras);
}
}
}