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

Commit 52352961 authored by Paul McLean's avatar Paul McLean
Browse files

Add @Intdef annotations to AudioManager.getSupportedDeviceTypes API

Bug: 323262075
Test: cts
Change-Id: I0d30d5bb51425fa14715d67b376680808fd9cb64
parent 2fd19818
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7878,9 +7878,9 @@ public class AudioManager {
     */
    @FlaggedApi(FLAG_SUPPORTED_DEVICE_TYPES_API)
    public @NonNull Set<Integer>
            getSupportedDeviceTypes(int direction) {
            getSupportedDeviceTypes(@AudioDeviceRole int direction) {
        if (direction != GET_DEVICES_OUTPUTS && direction != GET_DEVICES_INPUTS) {
            throw new IllegalArgumentException("AudioManager.getSupportedDeviceTypes("
            throw new IllegalArgumentException("AudioManager.getSupportedDeviceTypes(0x"
                    + Integer.toHexString(direction) + ") - Invalid.");
        }