Loading core/java/android/companion/virtual/VirtualDevice.java +2 −3 Original line number Diff line number Diff line Loading @@ -32,9 +32,8 @@ import android.os.RemoteException; * Details of a particular virtual device. * * <p>Read-only device representation exposing the properties of an existing virtual device. * * @see VirtualDeviceManager#registerVirtualDeviceListener */ // TODO(b/310912420): Link to VirtualDeviceManager#registerVirtualDeviceListener from the docs public final class VirtualDevice implements Parcelable { private final @NonNull IVirtualDevice mVirtualDevice; Loading Loading @@ -92,8 +91,8 @@ public final class VirtualDevice implements Parcelable { * per device. * * @see Context#createDeviceContext * @see #getPersistentDeviceId */ // TODO(b/310912420): Link to #getPersistentDeviceId from the docs public int getDeviceId() { return mId; } Loading core/java/android/companion/virtual/VirtualDeviceManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -212,9 +212,10 @@ public final class VirtualDeviceManager { * 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> * not be updated and may contain stale values.</p> */ // TODO(b/310912420): Add "Use a VirtualDeviceListener for real time updates of the // availability of virtual devices." in the note paragraph above with a link annotation. @NonNull public List<android.companion.virtual.VirtualDevice> getVirtualDevices() { if (mService == null) { Loading Loading
core/java/android/companion/virtual/VirtualDevice.java +2 −3 Original line number Diff line number Diff line Loading @@ -32,9 +32,8 @@ import android.os.RemoteException; * Details of a particular virtual device. * * <p>Read-only device representation exposing the properties of an existing virtual device. * * @see VirtualDeviceManager#registerVirtualDeviceListener */ // TODO(b/310912420): Link to VirtualDeviceManager#registerVirtualDeviceListener from the docs public final class VirtualDevice implements Parcelable { private final @NonNull IVirtualDevice mVirtualDevice; Loading Loading @@ -92,8 +91,8 @@ public final class VirtualDevice implements Parcelable { * per device. * * @see Context#createDeviceContext * @see #getPersistentDeviceId */ // TODO(b/310912420): Link to #getPersistentDeviceId from the docs public int getDeviceId() { return mId; } Loading
core/java/android/companion/virtual/VirtualDeviceManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -212,9 +212,10 @@ public final class VirtualDeviceManager { * 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> * not be updated and may contain stale values.</p> */ // TODO(b/310912420): Add "Use a VirtualDeviceListener for real time updates of the // availability of virtual devices." in the note paragraph above with a link annotation. @NonNull public List<android.companion.virtual.VirtualDevice> getVirtualDevices() { if (mService == null) { Loading