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

Commit a0339ed2 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Add AIDL method in VDM to get all persistent device ids.

So this can be used in Settings.

Bug: 322169440
Test: presubmit
Change-Id: I193054a250025099dd248a16a0e7460a25ae7266
parent 00d85796
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -133,4 +133,10 @@ interface IVirtualDeviceManager {
     * device.
     */
    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 Diff line number Diff line
@@ -583,6 +583,11 @@ public class VirtualDeviceManagerService extends SystemService {
            return associationInfo == null ? null : associationInfo.getDisplayName();
        }

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

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