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

Commit a5ee7b0b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Always specify underlying enum type."

parents 9e321eb5 d26dc50a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ import IDevice;
interface IDevicesFactory {
    typedef android.hardware.audio@2.0::Result Result;

    enum Device {
    enum Device : int32_t {
        PRIMARY,
        A2DP,
        USB,
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ interface IPrimaryDevice extends IDevice {
     */
    setBtScoWidebandEnabled(bool enabled) generates (Result retval);

    enum TtyMode {
    enum TtyMode : int32_t {
        OFF,
        VCO,
        HCO,
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ package android.hardware.audio@2.0;

import android.hardware.audio.common@2.0;

enum Result {
enum Result : int32_t {
    OK,
    NOT_INITIALIZED,
    INVALID_ARGUMENTS,
@@ -27,7 +27,7 @@ enum Result {
};

@export(name="audio_drain_type_t", value_prefix="AUDIO_DRAIN_")
enum AudioDrain {
enum AudioDrain : int32_t {
    /* drain() returns when all data has been played. */
    ALL,
    /* drain() returns a short time before all data from the current track has
+10 −10
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ typedef uint32_t AudioHwSync;
 * Each port has a unique ID or handle allocated by policy manager.
 */
@export(name="")
enum AudioHandleConsts {
enum AudioHandleConsts : int32_t {
    AUDIO_IO_HANDLE_NONE = 0,
    AUDIO_MODULE_HANDLE_NONE = 0,
    AUDIO_PORT_HANDLE_NONE = 0,
@@ -114,7 +114,7 @@ enum AudioStreamType : int32_t {
};

@export(name="audio_source_t", value_prefix="AUDIO_SOURCE_")
enum AudioSource {
enum AudioSource : int32_t {
    // These values must kept in sync with
    //  frameworks/base/media/java/android/media/MediaRecorder.java,
    //  frameworks/av/services/audiopolicy/AudioPolicyService.cpp,
@@ -269,7 +269,7 @@ enum AudioFormat : uint32_t {
 * assumptions.
 */
@export(name="")
enum FixedChannelCount {
enum FixedChannelCount : int32_t {
    FCC_2 = 2, // This is typically due to legacy implementation of stereo I/O
    FCC_8 = 8  // This is typically due to audio mixer and resampler limitations
};
@@ -425,7 +425,7 @@ enum AudioChannelMask : uint32_t {
 * to this convention will be noted at the appropriate API.
 */
@export(name="", value_prefix="AUDIO_INTERLEAVE_")
enum AudioInterleave {
enum AudioInterleave : int32_t {
    LEFT   = 0,
    RIGHT  = 1,
};
@@ -435,7 +435,7 @@ enum AudioInterleave {
 * routing.
 */
@export(name="audio_mode_t", value_prefix="AUDIO_MODE_")
enum AudioMode {
enum AudioMode : int32_t {
    INVALID          = -2,
    CURRENT          = -1,
    NORMAL           = 0,
@@ -597,7 +597,7 @@ enum AudioDevice : uint32_t {
 * (when getOuput() is called) to an available output stream.
 */
@export(name="audio_output_flags_t", value_prefix="AUDIO_OUTPUT_FLAG_")
enum AudioOutputFlag {
enum AudioOutputFlag : int32_t {
    NONE    = 0x0, // no attributes
    DIRECT  = 0x1, // this output directly connects a track
                   // to one output stream: no software mixer
@@ -627,7 +627,7 @@ enum AudioOutputFlag {
 * attributes corresponding to the specified flags.
 */
@export(name="audio_input_flags_t", value_prefix="AUDIO_INPUT_FLAG_")
enum AudioInputFlag {
enum AudioInputFlag : int32_t {
    NONE       = 0x0,  // no attributes
    FAST       = 0x1,  // prefer an input that supports "fast tracks"
    HW_HOTWORD = 0x2,  // prefer an input that captures from hw hotword source
@@ -728,7 +728,7 @@ struct AudioGainConfig {

/* Audio port role: either source or sink */
@export(name="audio_port_role_t", value_prefix="AUDIO_PORT_ROLE_")
enum AudioPortRole {
enum AudioPortRole : int32_t {
    NONE,
    SOURCE,
    SINK,
@@ -739,7 +739,7 @@ enum AudioPortRole {
 * PlaybackThread output) or a physical device (e.g OUT_SPEAKER)
 */
@export(name="audio_port_type_t", value_prefix="AUDIO_PORT_TYPE_")
enum AudioPortType {
enum AudioPortType : int32_t {
    NONE,
    DEVICE,
    MIX,
@@ -816,7 +816,7 @@ struct AudioPortDeviceExt {
 * Latency class of the audio mix.
 */
@export(name="audio_mix_latency_class_t", value_prefix="AUDIO_LATENCY_")
enum AudioMixLatencyClass {
enum AudioMixLatencyClass : int32_t {
    LOW,
    NORMAL
} ;
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ import android.hardware.audio.common@2.0;
import IEffect;

interface IDownmixEffect extends IEffect {
    enum Type {
    enum Type : int32_t {
        STRIP, // throw away the extra channels
        FOLD   // mix the extra channels with FL/FR
    };
Loading