Loading audio/7.1/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -13,11 +13,13 @@ hidl_interface { name: "android.hardware.audio@7.1", root: "android.hardware", srcs: [ "types.hal", "IDevice.hal", "IDevicesFactory.hal", "IPrimaryDevice.hal", "IStreamIn.hal", "IStreamOut.hal", "IStreamOutLatencyModeCallback.hal", ], interfaces: [ "android.hardware.audio@7.0", Loading audio/7.1/IStreamOut.hal +47 −0 Original line number Diff line number Diff line Loading @@ -16,7 +16,54 @@ package android.hardware.audio@7.1; import @7.0::Result; import @7.0::IStreamOut; import IStreamOutLatencyModeCallback; interface IStreamOut extends @7.0::IStreamOut { /** * Indicates the requested latency mode for this output stream. * * The requested mode can be one of the modes returned by * getRecommendedLatencyModes() API. * * Optional method. * Mandated only on specific spatial audio streams indicated by * AUDIO_OUTPUT_FLAG_SPATIALIZER flag if they can be routed to a BT classic sink. * * @return retval operation completion status. */ setLatencyMode(LatencyMode mode) generates (Result retval); /** * Indicates which latency modes are currently supported on this output stream. * If the transport protocol (e.g Bluetooth A2DP) used by this output stream to reach * the output device supports variable latency modes, the HAL indicates which * modes are currently supported. * The framework can then call setLatencyMode() with one of the supported modes to select * the desired operation mode. * * Optional method. * Mandated only on specific spatial audio streams indicated by * AUDIO_OUTPUT_FLAG_SPATIALIZER flag if they can be routed to a BT classic sink. * * @return retval operation completion status. * @return modes currrently supported latency modes. */ getRecommendedLatencyModes() generates (Result retval, vec<LatencyMode> modes); /** * Set the callback interface for notifying changes in supported latency modes. * * Calling this method with a null pointer will result in releasing * the callback. * * Optional method. * Mandated only on specific spatial audio streams indicated by * AUDIO_OUTPUT_FLAG_SPATIALIZER flag if they can be routed to a BT classic sink. * * @return retval operation completion status. */ setLatencyModeCallback(IStreamOutLatencyModeCallback callback) generates (Result retval); }; radio/aidl/android/hardware/radio/network/NeighboringCell.aidl→audio/7.1/IStreamOutLatencyModeCallback.hal +10 −12 Original line number Diff line number Diff line /* * Copyright (C) 2021 The Android Open Source Project * Copyright (C) 2022 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. Loading @@ -14,17 +14,15 @@ * limitations under the License. */ package android.hardware.radio.network; @VintfStability parcelable NeighboringCell { package android.hardware.audio@7.1; /** * Combination of LAC and cell ID in 32 bits in GSM. Upper 16 bits is LAC and lower 16 bits is * CID (as described in TS 27.005). * Callback interface for output stream variable latency mode feature. */ String cid; interface IStreamOutLatencyModeCallback { /** * Received RSSI in GSM, level index of CPICH Received Signal Code Power in UMTS * Called with the new list of supported latency modes when a change occurs. */ int rssi; } oneway onRecommendedLatencyModeChanged(vec<LatencyMode> modes); }; audio/7.1/config/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -458,6 +458,7 @@ package android.audio.policy.configuration.V7_1 { method @Nullable public String getName(); method @Nullable public java.util.List<android.audio.policy.configuration.V7_1.AudioUsage> getPreferredUsage(); method @Nullable public java.util.List<android.audio.policy.configuration.V7_1.Profile> getProfile(); method @Nullable public long getRecommendedMuteDurationMs(); method @Nullable public android.audio.policy.configuration.V7_1.Role getRole(); method public void setFlags(@Nullable java.util.List<android.audio.policy.configuration.V7_1.AudioInOutFlag>); method public void setGains(@Nullable android.audio.policy.configuration.V7_1.Gains); Loading @@ -465,6 +466,7 @@ package android.audio.policy.configuration.V7_1 { method public void setMaxOpenCount(@Nullable long); method public void setName(@Nullable String); method public void setPreferredUsage(@Nullable java.util.List<android.audio.policy.configuration.V7_1.AudioUsage>); method public void setRecommendedMuteDurationMs(@Nullable long); method public void setRole(@Nullable android.audio.policy.configuration.V7_1.Role); } Loading audio/7.1/config/audio_policy_configuration.xsd +1 −0 Original line number Diff line number Diff line Loading @@ -225,6 +225,7 @@ </xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="recommendedMuteDurationMs" type="xs:unsignedInt"/> </xs:complexType> <xs:unique name="mixPortProfileUniqueness"> <xs:selector xpath="profile"/> Loading Loading
audio/7.1/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -13,11 +13,13 @@ hidl_interface { name: "android.hardware.audio@7.1", root: "android.hardware", srcs: [ "types.hal", "IDevice.hal", "IDevicesFactory.hal", "IPrimaryDevice.hal", "IStreamIn.hal", "IStreamOut.hal", "IStreamOutLatencyModeCallback.hal", ], interfaces: [ "android.hardware.audio@7.0", Loading
audio/7.1/IStreamOut.hal +47 −0 Original line number Diff line number Diff line Loading @@ -16,7 +16,54 @@ package android.hardware.audio@7.1; import @7.0::Result; import @7.0::IStreamOut; import IStreamOutLatencyModeCallback; interface IStreamOut extends @7.0::IStreamOut { /** * Indicates the requested latency mode for this output stream. * * The requested mode can be one of the modes returned by * getRecommendedLatencyModes() API. * * Optional method. * Mandated only on specific spatial audio streams indicated by * AUDIO_OUTPUT_FLAG_SPATIALIZER flag if they can be routed to a BT classic sink. * * @return retval operation completion status. */ setLatencyMode(LatencyMode mode) generates (Result retval); /** * Indicates which latency modes are currently supported on this output stream. * If the transport protocol (e.g Bluetooth A2DP) used by this output stream to reach * the output device supports variable latency modes, the HAL indicates which * modes are currently supported. * The framework can then call setLatencyMode() with one of the supported modes to select * the desired operation mode. * * Optional method. * Mandated only on specific spatial audio streams indicated by * AUDIO_OUTPUT_FLAG_SPATIALIZER flag if they can be routed to a BT classic sink. * * @return retval operation completion status. * @return modes currrently supported latency modes. */ getRecommendedLatencyModes() generates (Result retval, vec<LatencyMode> modes); /** * Set the callback interface for notifying changes in supported latency modes. * * Calling this method with a null pointer will result in releasing * the callback. * * Optional method. * Mandated only on specific spatial audio streams indicated by * AUDIO_OUTPUT_FLAG_SPATIALIZER flag if they can be routed to a BT classic sink. * * @return retval operation completion status. */ setLatencyModeCallback(IStreamOutLatencyModeCallback callback) generates (Result retval); };
radio/aidl/android/hardware/radio/network/NeighboringCell.aidl→audio/7.1/IStreamOutLatencyModeCallback.hal +10 −12 Original line number Diff line number Diff line /* * Copyright (C) 2021 The Android Open Source Project * Copyright (C) 2022 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. Loading @@ -14,17 +14,15 @@ * limitations under the License. */ package android.hardware.radio.network; @VintfStability parcelable NeighboringCell { package android.hardware.audio@7.1; /** * Combination of LAC and cell ID in 32 bits in GSM. Upper 16 bits is LAC and lower 16 bits is * CID (as described in TS 27.005). * Callback interface for output stream variable latency mode feature. */ String cid; interface IStreamOutLatencyModeCallback { /** * Received RSSI in GSM, level index of CPICH Received Signal Code Power in UMTS * Called with the new list of supported latency modes when a change occurs. */ int rssi; } oneway onRecommendedLatencyModeChanged(vec<LatencyMode> modes); };
audio/7.1/config/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -458,6 +458,7 @@ package android.audio.policy.configuration.V7_1 { method @Nullable public String getName(); method @Nullable public java.util.List<android.audio.policy.configuration.V7_1.AudioUsage> getPreferredUsage(); method @Nullable public java.util.List<android.audio.policy.configuration.V7_1.Profile> getProfile(); method @Nullable public long getRecommendedMuteDurationMs(); method @Nullable public android.audio.policy.configuration.V7_1.Role getRole(); method public void setFlags(@Nullable java.util.List<android.audio.policy.configuration.V7_1.AudioInOutFlag>); method public void setGains(@Nullable android.audio.policy.configuration.V7_1.Gains); Loading @@ -465,6 +466,7 @@ package android.audio.policy.configuration.V7_1 { method public void setMaxOpenCount(@Nullable long); method public void setName(@Nullable String); method public void setPreferredUsage(@Nullable java.util.List<android.audio.policy.configuration.V7_1.AudioUsage>); method public void setRecommendedMuteDurationMs(@Nullable long); method public void setRole(@Nullable android.audio.policy.configuration.V7_1.Role); } Loading
audio/7.1/config/audio_policy_configuration.xsd +1 −0 Original line number Diff line number Diff line Loading @@ -225,6 +225,7 @@ </xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="recommendedMuteDurationMs" type="xs:unsignedInt"/> </xs:complexType> <xs:unique name="mixPortProfileUniqueness"> <xs:selector xpath="profile"/> Loading