Merge "Adding a feature to indicate that the device possesses low-latency audio. The specific criteria for low-latency audio are defined in the CDD, but since that hasn't yet been settled for Gingerbread, this change doesn't go into details. We can do a docs change later once GB CDD is final." into gingerbread
This commit is contained in:
@@ -48899,6 +48899,17 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="FEATURE_AUDIO_LOW_LATENCY"
|
||||||
|
type="java.lang.String"
|
||||||
|
transient="false"
|
||||||
|
volatile="false"
|
||||||
|
value=""android.hardware.audio.low_latency""
|
||||||
|
static="true"
|
||||||
|
final="true"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</field>
|
||||||
<field name="FEATURE_BLUETOOTH"
|
<field name="FEATURE_BLUETOOTH"
|
||||||
type="java.lang.String"
|
type="java.lang.String"
|
||||||
transient="false"
|
transient="false"
|
||||||
|
|||||||
@@ -634,6 +634,15 @@ public abstract class PackageManager {
|
|||||||
*/
|
*/
|
||||||
public static final int MOVE_EXTERNAL_MEDIA = 0x00000002;
|
public static final int MOVE_EXTERNAL_MEDIA = 0x00000002;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Feature for {@link #getSystemAvailableFeatures} and
|
||||||
|
* {@link #hasSystemFeature}: The device's audio pipeline is low-latency,
|
||||||
|
* more suitable for audio applications sensitive to delays or lag in
|
||||||
|
* sound input or output.
|
||||||
|
*/
|
||||||
|
@SdkConstant(SdkConstantType.FEATURE)
|
||||||
|
public static final String FEATURE_AUDIO_LOW_LATENCY = "android.hardware.audio.low_latency";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Feature for {@link #getSystemAvailableFeatures} and
|
* Feature for {@link #getSystemAvailableFeatures} and
|
||||||
* {@link #hasSystemFeature}: The device is capable of communicating with
|
* {@link #hasSystemFeature}: The device is capable of communicating with
|
||||||
|
|||||||
22
data/etc/android.hardware.audio.low_latency.xml
Normal file
22
data/etc/android.hardware.audio.low_latency.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2010 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 is the feature indicating low-latency audio, as specified by the
|
||||||
|
CDD. ONLY devices that meet the CDD's requirements may declare this
|
||||||
|
feature. -->
|
||||||
|
<permissions>
|
||||||
|
<feature name="android.hardware.audio.low_latency" />
|
||||||
|
</permissions>
|
||||||
@@ -57,4 +57,7 @@
|
|||||||
android.hardware.sensor.proximity.xml -->
|
android.hardware.sensor.proximity.xml -->
|
||||||
<!-- GSM phones must also include android.hardware.telephony.gsm.xml -->
|
<!-- GSM phones must also include android.hardware.telephony.gsm.xml -->
|
||||||
<!-- CDMA phones must also include android.hardware.telephony.cdma.xml -->
|
<!-- CDMA phones must also include android.hardware.telephony.cdma.xml -->
|
||||||
|
<!-- Devices that have low-latency audio stacks suitable for apps like
|
||||||
|
VoIP may include android.hardware.audio.low_latency.xml. ONLY apps
|
||||||
|
that meet the requirements specified in the CDD may include this. -->
|
||||||
</permissions>
|
</permissions>
|
||||||
|
|||||||
Reference in New Issue
Block a user