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

Commit b9c3e4a4 authored by Marvin Ramin's avatar Marvin Ramin
Browse files

Add output of hasCustomAudioInputSupport() to dumpsys

Bug: 291737188
Test: dumpsys virtualdevice
Change-Id: Ia35f7c639b8aafd2c74deac0e950e0f0d85a7285
parent 10d37891
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1068,6 +1068,10 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub

    @Override
    public boolean hasCustomAudioInputSupport() throws RemoteException {
        return hasCustomAudioInputSupportInternal();
    }

    private boolean hasCustomAudioInputSupportInternal() {
        if (!Flags.vdmPublicApis()) {
            return false;
        }
@@ -1119,6 +1123,8 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub
        if (mVirtualCameraController != null) {
            mVirtualCameraController.dump(fout, indent);
        }
        fout.println(
                indent + "hasCustomAudioInputSupport: " + hasCustomAudioInputSupportInternal());
    }

    // For display mirroring, we want to dispatch all key events to the source (default) display,