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

Commit b5647da1 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audio: Add IBluetoothLe

Similar to IBluetooth and IBluetoothA2dp interfaces,
IBluetoothLe controls the LE profile. This interface
replaces the following string parameter:

"LeAudioSuspended"

Bug: 270731693
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I9df28053cd270fc2d446ba9a8ada4dd6ab761c7b
Merged-In: I9df28053cd270fc2d446ba9a8ada4dd6ab761c7b
parent ef3b519c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ aidl_interface {
        "android/hardware/audio/core/AudioRoute.aidl",
        "android/hardware/audio/core/IBluetooth.aidl",
        "android/hardware/audio/core/IBluetoothA2dp.aidl",
        "android/hardware/audio/core/IBluetoothLe.aidl",
        "android/hardware/audio/core/IConfig.aidl",
        "android/hardware/audio/core/IModule.aidl",
        "android/hardware/audio/core/IStreamCallback.aidl",
+39 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2023 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.hardware.audio.core;
@VintfStability
interface IBluetoothLe {
  boolean isEnabled();
  void setEnabled(boolean enabled);
}
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ interface IModule {
  @nullable android.hardware.audio.core.ITelephony getTelephony();
  @nullable android.hardware.audio.core.IBluetooth getBluetooth();
  @nullable android.hardware.audio.core.IBluetoothA2dp getBluetoothA2dp();
  @nullable android.hardware.audio.core.IBluetoothLe getBluetoothLe();
  android.media.audio.common.AudioPort connectExternalDevice(in android.media.audio.common.AudioPort templateIdAndAdditionalData);
  void disconnectExternalDevice(int portId);
  android.hardware.audio.core.AudioPatch[] getAudioPatches();
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@ import android.media.audio.common.Int;
 * and the SCO Link. This interface is optional to implement and provide by the
 * vendor. It needs to be provided only if the device actually supports BT SCO
 * or HFP.
 *
 * Each of IBluetooth* interfaces is independent of each other. The HAL module
 * can provide any combination of them.
 */
@VintfStability
interface IBluetooth {
+2 −2
Original line number Diff line number Diff line
@@ -24,8 +24,8 @@ import android.hardware.audio.core.VendorParameter;
 * the vendor. It needs to be provided only if the device actually supports BT
 * A2DP.
 *
 * This interface is separate from IBluetooth interface which manages SCO & HFP.
 * The HAL module can handle both SCO and A2DP profiles or only one of them.
 * Each of IBluetooth* interfaces is independent of each other. The HAL module
 * can provide any combination of them.
 */
@VintfStability
interface IBluetoothA2dp {
Loading