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

Commit 91f73c21 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski Committed by Android (Google) Code Review
Browse files

Merge "Address public VDM API council feedback." into main

parents 37a5f990 647ba101
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -197,7 +197,11 @@ public final class VirtualDeviceManager {
     * Returns the details of all available virtual devices.
     *
     * <p>The returned objects are read-only representations that expose the properties of all
     * existing virtual devices.
     * existing virtual devices.</p>
     *
     * <p>Note that if a virtual device is closed and becomes invalid, the returned objects will
     * not be updated and may contain stale values. Use a {@link VirtualDeviceListener} for real
     * time updates of the availability of virtual devices.</p>
     */
    @NonNull
    public List<android.companion.virtual.VirtualDevice> getVirtualDevices() {
@@ -217,6 +221,13 @@ public final class VirtualDeviceManager {
     *
     * <p>The returned object is a read-only representation of the virtual device that expose its
     * properties.</p>
     *
     * <p>Note that if the virtual device is closed and becomes invalid, the returned object will
     * not be updated and may contain stale values. Use a {@link VirtualDeviceListener} for real
     * time updates of the availability of virtual devices.</p>
     *
     * @return the virtual device with the requested ID, or {@code null} if no such device exists or
     *   it has already been closed.
     */
    @FlaggedApi(Flags.FLAG_VDM_PUBLIC_APIS)
    @Nullable
@@ -968,6 +979,8 @@ public final class VirtualDeviceManager {

    /**
     * Listener for changes in the available virtual devices.
     *
     * @see #registerVirtualDeviceListener
     */
    @FlaggedApi(Flags.FLAG_VDM_PUBLIC_APIS)
    public interface VirtualDeviceListener {