Move more types from android.media -> a.m.audio.common SAIDL
Move types that are known to be used by audio HALs
(those listed in h/i/audio/common/7.0/types.hal):
- AudioContentType
- AudioEncapsulationMetadataType
- AudioEncapsulationType
- AudioMode
- AudioSource (renamed from AudioSourceType to
match the name of MediaRecorder.AudioSource)
- AudioUuid
Bug: 198812639
Test: m
Change-Id: I3331d7e3d76db50f5b3c4db57891a20e4f935ad8
This commit is contained in:
@@ -55,12 +55,18 @@ aidl_interface {
|
||||
"aidl/android/media/audio/common/AudioChannelLayout.aidl",
|
||||
"aidl/android/media/audio/common/AudioConfig.aidl",
|
||||
"aidl/android/media/audio/common/AudioConfigBase.aidl",
|
||||
"aidl/android/media/audio/common/AudioContentType.aidl",
|
||||
"aidl/android/media/audio/common/AudioEncapsulationMetadataType.aidl",
|
||||
"aidl/android/media/audio/common/AudioEncapsulationMode.aidl",
|
||||
"aidl/android/media/audio/common/AudioEncapsulationType.aidl",
|
||||
"aidl/android/media/audio/common/AudioFormatDescription.aidl",
|
||||
"aidl/android/media/audio/common/AudioFormatType.aidl",
|
||||
"aidl/android/media/audio/common/AudioMode.aidl",
|
||||
"aidl/android/media/audio/common/AudioOffloadInfo.aidl",
|
||||
"aidl/android/media/audio/common/AudioSource.aidl",
|
||||
"aidl/android/media/audio/common/AudioStreamType.aidl",
|
||||
"aidl/android/media/audio/common/AudioUsage.aidl",
|
||||
"aidl/android/media/audio/common/AudioUuid.aidl",
|
||||
"aidl/android/media/audio/common/PcmType.aidl",
|
||||
],
|
||||
stability: "vintf",
|
||||
|
||||
53
media/aidl/android/media/audio/common/AudioContentType.aidl
Normal file
53
media/aidl/android/media/audio/common/AudioContentType.aidl
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package android.media.audio.common;
|
||||
|
||||
/**
|
||||
* Content type specifies "what" is playing. The content type expresses the
|
||||
* general category of the content: speech, music, movie audio, etc.
|
||||
* This enum corresponds to AudioAttributes.CONTENT_TYPE_* constants in the SDK.
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum AudioContentType {
|
||||
/**
|
||||
* Content type value to use when the content type is unknown, or other than
|
||||
* the ones defined.
|
||||
*/
|
||||
UNKNOWN = 0,
|
||||
/**
|
||||
* Content type value to use when the content type is speech.
|
||||
*/
|
||||
SPEECH = 1,
|
||||
/**
|
||||
* Content type value to use when the content type is music.
|
||||
*/
|
||||
MUSIC = 2,
|
||||
/**
|
||||
* Content type value to use when the content type is a soundtrack,
|
||||
* typically accompanying a movie or TV program.
|
||||
*/
|
||||
MOVIE = 3,
|
||||
/**
|
||||
* Content type value to use when the content type is a sound used to
|
||||
* accompany a user action, such as a beep or sound effect expressing a key
|
||||
* click, or event, such as the type of a sound for a bonus being received
|
||||
* in a game. These sounds are mostly synthesized or short Foley sounds.
|
||||
*/
|
||||
SONIFICATION = 4,
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package android.media.audio.common;
|
||||
|
||||
/**
|
||||
* Enumeration of metadata types permitted for use by encapsulation mode audio
|
||||
* streams (see AudioEncapsulationMode). This type corresponds to
|
||||
* AudioTrack.ENCAPSULATION_METADATA_TYPE_* constants in the SDK.
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum AudioEncapsulationMetadataType {
|
||||
/** Default value. */
|
||||
NONE = 0,
|
||||
/**
|
||||
* Encapsulation metadata type for framework tuner information.
|
||||
*/
|
||||
FRAMEWORK_TUNER = 1,
|
||||
/**
|
||||
* Encapsulation metadata type for DVB AD descriptor.
|
||||
*
|
||||
* This metadata is formatted per ETSI TS 101 154 Table E.1: AD_descriptor.
|
||||
*/
|
||||
DVB_AD_DESCRIPTOR = 2,
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C) 2021 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.media.audio.common;
|
||||
|
||||
/**
|
||||
* Audio encapsulation type is used to describe if the audio data should be sent
|
||||
* with a particular encapsulation type or not. This enum corresponds to
|
||||
* AudioProfile.AUDIO_ENCAPSULATION_* constants in the SDK.
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum AudioEncapsulationType {
|
||||
/** No encapsulation type is specified. */
|
||||
NONE = 0,
|
||||
/** Encapsulation used the format defined in the standard IEC 61937. */
|
||||
IEC61937 = 1,
|
||||
}
|
||||
48
media/aidl/android/media/audio/common/AudioMode.aidl
Normal file
48
media/aidl/android/media/audio/common/AudioMode.aidl
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package android.media.audio.common;
|
||||
|
||||
/**
|
||||
* Major modes for a mobile device. The current mode setting affects audio
|
||||
* routing.
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum AudioMode {
|
||||
/**
|
||||
* Used as default value in parcelables to indicate that a value was not
|
||||
* set. Should never be considered a valid setting, except for backward
|
||||
* compatibility scenarios.
|
||||
*/
|
||||
SYS_RESERVED_INVALID = -2,
|
||||
/**
|
||||
* Value reserved for system use only. HALs must never return this value to
|
||||
* the system or accept it from the system.
|
||||
*/
|
||||
SYS_RESERVED_CURRENT = -1,
|
||||
/** Normal mode (no call in progress). */
|
||||
NORMAL = 0,
|
||||
/** Mobile device is receiving an incoming connection request. */
|
||||
RINGTONE = 1,
|
||||
/** Calls handled by the telephony stack (PSTN). */
|
||||
IN_CALL = 2,
|
||||
/** Calls handled by apps (VoIP). */
|
||||
IN_COMMUNICATION = 3,
|
||||
/** Call screening in progress. */
|
||||
CALL_SCREEN = 4,
|
||||
}
|
||||
90
media/aidl/android/media/audio/common/AudioSource.aidl
Normal file
90
media/aidl/android/media/audio/common/AudioSource.aidl
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package android.media.audio.common;
|
||||
|
||||
/**
|
||||
* Defines the audio source. An audio source defines both a default physical
|
||||
* source of audio signal, and a recording configuration. This enum corresponds
|
||||
* to MediaRecorder.AudioSource.* constants in the SDK.
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@Backing(type="int")
|
||||
@VintfStability
|
||||
enum AudioSource {
|
||||
/**
|
||||
* Used as default value in parcelables to indicate that a value was not
|
||||
* set. Should never be considered a valid setting, except for backward
|
||||
* compatibility scenarios.
|
||||
*/
|
||||
SYS_RESERVED_INVALID = -1,
|
||||
/** Default audio source. */
|
||||
DEFAULT = 0,
|
||||
/** Microphone audio source. */
|
||||
MIC = 1,
|
||||
/** Voice call uplink (Tx) audio source. */
|
||||
VOICE_UPLINK = 2,
|
||||
/** Voice call downlink (Rx) audio source. */
|
||||
VOICE_DOWNLINK = 3,
|
||||
/** Voice call uplink + downlink (duplex) audio source. */
|
||||
VOICE_CALL = 4,
|
||||
/**
|
||||
* Microphone audio source tuned for video recording, with the same
|
||||
* orientation as the camera if available.
|
||||
*/
|
||||
CAMCORDER = 5,
|
||||
/** Microphone audio source tuned for voice recognition. */
|
||||
VOICE_RECOGNITION = 6,
|
||||
/**
|
||||
* Microphone audio source tuned for voice communications such as VoIP. It
|
||||
* will for instance take advantage of echo cancellation or automatic gain
|
||||
* control if available.
|
||||
*/
|
||||
VOICE_COMMUNICATION = 7,
|
||||
/**
|
||||
* Audio source for a submix of audio streams to be presented remotely. An
|
||||
* application can use this audio source to capture a mix of audio streams
|
||||
* that should be transmitted to a remote receiver such as a Wifi display.
|
||||
* While recording is active, these audio streams are redirected to the
|
||||
* remote submix instead of being played on the device speaker or headset.
|
||||
*/
|
||||
REMOTE_SUBMIX = 8,
|
||||
/**
|
||||
* Microphone audio source tuned for unprocessed (raw) sound if available,
|
||||
* behaves like DEFAULT otherwise.
|
||||
*/
|
||||
UNPROCESSED = 9,
|
||||
/**
|
||||
* Source for capturing audio meant to be processed in real time and played
|
||||
* back for live performance (e.g karaoke). The capture path will minimize
|
||||
* latency and coupling with playback path.
|
||||
*/
|
||||
VOICE_PERFORMANCE = 10,
|
||||
/**
|
||||
* Source for an echo canceller to capture the reference signal to be
|
||||
* canceled. The echo reference signal will be captured as close as
|
||||
* possible to the DAC in order to include all post processing applied to
|
||||
* the playback path.
|
||||
*/
|
||||
ECHO_REFERENCE = 1997,
|
||||
/** Audio source for capturing broadcast FM tuner output. */
|
||||
FM_TUNER = 1998,
|
||||
/**
|
||||
* A low-priority, preemptible audio source for for background software
|
||||
* hotword detection. Same tuning as VOICE_RECOGNITION.
|
||||
*/
|
||||
HOTWORD = 1999,
|
||||
}
|
||||
@@ -37,8 +37,11 @@ enum AudioStreamType {
|
||||
* Indicates that the operation is applied to the "default" stream
|
||||
* in this context, e.g. MUSIC in normal device state, or RING if the
|
||||
* phone is ringing.
|
||||
*
|
||||
* Value reserved for system use only. HALs must never return this value to
|
||||
* the system or accept it from the system.
|
||||
*/
|
||||
DEFAULT = -1,
|
||||
SYS_RESERVED_DEFAULT = -1,
|
||||
/** Used to identify the volume of audio streams for phone calls. */
|
||||
VOICE_CALL = 0,
|
||||
/** Used to identify the volume of audio streams for system sounds. */
|
||||
|
||||
32
media/aidl/android/media/audio/common/AudioUuid.aidl
Normal file
32
media/aidl/android/media/audio/common/AudioUuid.aidl
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package android.media.audio.common;
|
||||
|
||||
/**
|
||||
* Commonly used structure for passing unique identifiers (UUID).
|
||||
* For the definition of UUID, refer to ITU-T X.667 spec.
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
@JavaDerive(equals=true, toString=true)
|
||||
@VintfStability
|
||||
parcelable AudioUuid {
|
||||
int timeLow;
|
||||
int timeMid;
|
||||
int timeHiAndVersion;
|
||||
int clockSeq;
|
||||
byte[] node; // Length = 6
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package android.media.audio.common;
|
||||
/* @hide */
|
||||
@Backing(type="int") @VintfStability
|
||||
enum AudioContentType {
|
||||
UNKNOWN = 0,
|
||||
SPEECH = 1,
|
||||
MUSIC = 2,
|
||||
MOVIE = 3,
|
||||
SONIFICATION = 4,
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package android.media.audio.common;
|
||||
/* @hide */
|
||||
@Backing(type="int") @VintfStability
|
||||
enum AudioEncapsulationMetadataType {
|
||||
NONE = 0,
|
||||
FRAMEWORK_TUNER = 1,
|
||||
DVB_AD_DESCRIPTOR = 2,
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C) 2021 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package android.media.audio.common;
|
||||
/* @hide */
|
||||
@Backing(type="int") @VintfStability
|
||||
enum AudioEncapsulationType {
|
||||
NONE = 0,
|
||||
IEC61937 = 1,
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package android.media.audio.common;
|
||||
/* @hide */
|
||||
@Backing(type="int") @VintfStability
|
||||
enum AudioMode {
|
||||
SYS_RESERVED_INVALID = -2,
|
||||
SYS_RESERVED_CURRENT = -1,
|
||||
NORMAL = 0,
|
||||
RINGTONE = 1,
|
||||
IN_CALL = 2,
|
||||
IN_COMMUNICATION = 3,
|
||||
CALL_SCREEN = 4,
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package android.media.audio.common;
|
||||
/* @hide */
|
||||
@Backing(type="int") @VintfStability
|
||||
enum AudioSource {
|
||||
SYS_RESERVED_INVALID = -1,
|
||||
DEFAULT = 0,
|
||||
MIC = 1,
|
||||
VOICE_UPLINK = 2,
|
||||
VOICE_DOWNLINK = 3,
|
||||
VOICE_CALL = 4,
|
||||
CAMCORDER = 5,
|
||||
VOICE_RECOGNITION = 6,
|
||||
VOICE_COMMUNICATION = 7,
|
||||
REMOTE_SUBMIX = 8,
|
||||
UNPROCESSED = 9,
|
||||
VOICE_PERFORMANCE = 10,
|
||||
ECHO_REFERENCE = 1997,
|
||||
FM_TUNER = 1998,
|
||||
HOTWORD = 1999,
|
||||
}
|
||||
@@ -36,7 +36,7 @@ package android.media.audio.common;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum AudioStreamType {
|
||||
INVALID = -2,
|
||||
DEFAULT = -1,
|
||||
SYS_RESERVED_DEFAULT = -1,
|
||||
VOICE_CALL = 0,
|
||||
SYSTEM = 1,
|
||||
RING = 2,
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package android.media.audio.common;
|
||||
/* @hide */
|
||||
@JavaDerive(equals=true, toString=true) @VintfStability
|
||||
parcelable AudioUuid {
|
||||
int timeLow;
|
||||
int timeMid;
|
||||
int timeHiAndVersion;
|
||||
int clockSeq;
|
||||
byte[] node;
|
||||
}
|
||||
Reference in New Issue
Block a user