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

Commit 4d33b938 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Add native VDM getDeviceIdForDisplayId

The internal API itself is unflagged, its usage in SF
will be flagged instead.

Bug: 342681202
Change-Id: Ide663b16535b0aeac266bbdbc78e942076bccd9c
Test: presubmit
Flag: EXEMPT trivial change
parent 8a1d059d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -64,4 +64,9 @@ interface IVirtualDeviceManagerNative {
     * Returns the device policy for the given virtual device and policy type.
     */
    int getDevicePolicy(int deviceId, int policyType);

    /**
     * Returns the ID of the device which owns the display with the given ID.
     */
    int getDeviceIdForDisplayId(int displayId);
}
+5 −0
Original line number Diff line number Diff line
@@ -738,6 +738,11 @@ public class VirtualDeviceManagerService extends SystemService {
        public int getDevicePolicy(int deviceId, int policyType) {
            return mImpl.getDevicePolicy(deviceId, policyType);
        }

        @Override // Binder call
        public int getDeviceIdForDisplayId(int displayId) {
            return mImpl.getDeviceIdForDisplayId(displayId);
        }
    }

    private final class LocalService extends VirtualDeviceManagerInternal {