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

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

Merge "Add AIDL method in VDM to get all persistent device ids." into main

parents 4b672eed a0339ed2
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -133,4 +133,10 @@ interface IVirtualDeviceManager {
     * device.
     * device.
     */
     */
    boolean isVirtualDeviceOwnedMirrorDisplay(int displayId);
    boolean isVirtualDeviceOwnedMirrorDisplay(int displayId);

    /**
     * Returns all current persistent device IDs, including the ones for which no virtual device
     * exists, as long as one may have existed or can be created.
     */
    List<String> getAllPersistentDeviceIds();
}
}
+5 −0
Original line number Original line Diff line number Diff line
@@ -583,6 +583,11 @@ public class VirtualDeviceManagerService extends SystemService {
            return associationInfo == null ? null : associationInfo.getDisplayName();
            return associationInfo == null ? null : associationInfo.getDisplayName();
        }
        }


        @Override // Binder call
        public @NonNull List<String> getAllPersistentDeviceIds() {
            return new ArrayList<>(mLocalService.getAllPersistentDeviceIds());
        }

        // Binder call
        // Binder call
        @Override
        @Override
        public boolean isValidVirtualDeviceId(int deviceId) {
        public boolean isValidVirtualDeviceId(int deviceId) {