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

Commit 09e71fa2 authored by Kurt Melby's avatar Kurt Melby
Browse files

Deprecate `ComputerControlSession.getAccessibilityWindows()`.

The `getAccessibilityWindows()` method is no longer in use. This change marks it as deprecated and modifies it to return an empty list.

Test: Bonobo app still works
Flag: android.companion.virtualdevice.flags.computer_control_access
Bug: 437852886
Change-Id: I2633f18accf5a0952f0aa63b4207628ad55714c6
parent f1b37ca1
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ import com.android.extensions.computercontrol.input.KeyEvent;
import com.android.extensions.computercontrol.input.TouchEvent;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.Executor;
@@ -229,10 +230,14 @@ public final class ComputerControlSession implements AutoCloseable {

    /**
     * Returns all windows on the display associated with the {@link ComputerControlSession}.
     *
     * @deprecated This method is no longer in use and will be removed in a future release.
     */
    // TODO: b/437852886 - Remove this method when moving to v1 of the API.
    @Deprecated
    @NonNull
    public List<AccessibilityWindowInfo> getAccessibilityWindows() {
        return mAccessibilityProxy.getWindows();
        return Collections.emptyList();
    }

    /**