/external/adhd/cras/src/server/ |
cras_a2dp_info.c | 15 int init_a2dp(struct a2dp_info *a2dp, a2dp_sbc_t *sbc) 69 a2dp->codec = cras_sbc_codec_create(frequency, mode, subbands, 71 if (!a2dp->codec) 75 a2dp->codesize = cras_sbc_get_codesize(a2dp->codec); 76 a2dp->frame_length = cras_sbc_get_frame_length(a2dp->codec); 78 a2dp->a2dp_buf_used = sizeof(struct rtp_header) 80 a2dp->frame_count = 0; 81 a2dp->seq_num = 0 [all...] |
cras_a2dp_info.h | 9 #include "a2dp-codecs.h" 13 /* Represents the codec and encoded state of a2dp iodev. 15 * codec - The codec used to encode PCM buffer to a2dp buffer. 19 * frame_count - Queued SBC frame count currently in a2dp buffer. 21 * samples - Queued PCM frame count currently in a2dp buffer. 23 * a2dp_buf_used - Used a2dp buffer counter in bytes. 40 int init_a2dp(struct a2dp_info *a2dp, a2dp_sbc_t *sbc); 45 void destroy_a2dp(struct a2dp_info *a2dp); 50 int a2dp_codesize(struct a2dp_info *a2dp); 53 * Gets original size of a2dp encoded bytes [all...] |
cras_a2dp_iodev.c | 32 /* Child of cras_iodev to handle bluetooth A2DP streaming. 35 * a2dp - The codec and encoded state of a2dp_io. 37 * sock_depth_frames - Socket depth in frames of the a2dp socket. 41 * bt_written_frames - Accumulated frames written to a2dp socket. Used 48 struct a2dp_info a2dp; member in struct:a2dp_io 65 a2dp_sbc_t a2dp; local 67 cras_bt_transport_configuration(a2dpio->transport, &a2dp, 68 sizeof(a2dp)); 71 channel = (a2dp.channel_mode == SBC_CHANNEL_MODE_MONO) ? 1 : 2; 73 if (a2dp.frequency & SBC_SAMPLING_FREQ_48000 449 a2dp_sbc_t a2dp; local [all...] |
cras_a2dp_endpoint.c | 10 #include "a2dp-codecs.h" 23 /* Pointers for the only connected a2dp device. */ 24 static struct a2dp { struct 164 /* BlueZ connects the device A2DP Sink to our A2DP Source endpoint, 165 * and the device A2DP Source to our A2DP Sink. It's best if you don't 203 syslog(LOG_WARNING, "Failed to create a2dp iodev"); 217 syslog(LOG_INFO, "Destroying iodev for A2DP device");
|
/external/adhd/cras/src/tests/ |
a2dp_info_unittest.cc | 32 static struct a2dp_info a2dp; variable in typeref:struct:a2dp_info 61 a2dp.a2dp_buf_used = 0; 62 a2dp.frame_count = 0; 63 a2dp.samples = 0; 64 a2dp.nsamples = 0; 71 init_a2dp(&a2dp, &sbc); 81 ASSERT_NE(a2dp.codec, (void *)NULL); 82 ASSERT_EQ(a2dp.a2dp_buf_used, 13); 83 ASSERT_EQ(a2dp.frame_count, 0); 84 ASSERT_EQ(a2dp.seq_num, 0) [all...] |
a2dp_iodev_unittest.cc | 11 #include "a2dp-codecs.h" 259 /* Put 100 frames, proccessed 400 bytes to a2dp buffer. 260 * Assume 200 bytes written out, queued 50 frames in a2dp buffer. 489 int init_a2dp(struct a2dp_info *a2dp, a2dp_sbc_t *sbc) 495 void destroy_a2dp(struct a2dp_info *a2dp) 500 int a2dp_codesize(struct a2dp_info *a2dp) 505 int a2dp_block_size(struct a2dp_info *a2dp, int encoded_bytes) 509 // Assumes a2dp block size is 1:1 before/after encode. 513 int a2dp_queued_frames(struct a2dp_info *a2dp) 518 void a2dp_drain(struct a2dp_info *a2dp) [all...] |
/hardware/interfaces/bluetooth/a2dp/1.0/default/ |
BluetoothAudioOffload.cpp | 22 namespace a2dp { namespace in namespace:android::hardware::bluetooth 30 // Methods from ::android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioOffload follow. 31 Return<::android::hardware::bluetooth::a2dp::V1_0::Status> BluetoothAudioOffload::startSession( 32 const sp<::android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioHost>& hostIf __unused, 33 const ::android::hardware::bluetooth::a2dp::V1_0::CodecConfiguration& codecConfig __unused) { 40 return ::android::hardware::bluetooth::a2dp::V1_0::Status::FAILURE; 44 ::android::hardware::bluetooth::a2dp::V1_0::Status status __unused) { 53 ::android::hardware::bluetooth::a2dp::V1_0::Status status __unused) { 63 * Cleanup the audio platform as remote A2DP Sink device is no 71 } // namespace a2dp [all...] |
BluetoothAudioOffload.h | 20 #include <android/hardware/bluetooth/a2dp/1.0/IBluetoothAudioOffload.h> 27 namespace a2dp { namespace in namespace:android::hardware::bluetooth 41 // Methods from ::android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioOffload follow. 42 Return<::android::hardware::bluetooth::a2dp::V1_0::Status> startSession( 43 const sp<::android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioHost>& hostIf, 44 const ::android::hardware::bluetooth::a2dp::V1_0::CodecConfiguration& codecConfig) override; 45 Return<void> streamStarted(::android::hardware::bluetooth::a2dp::V1_0::Status status) override; 47 ::android::hardware::bluetooth::a2dp::V1_0::Status status) override; 55 } // namespace a2dp
|
/hardware/qcom/audio/hal/audio_extn/ |
a2dp.c | 78 // System properties used for A2DP Offload 81 #define SYSPROP_A2DP_CODEC_LATENCIES "vendor.audio.a2dp.codec.latency" 97 // Default A2DP sink latency offset 114 // Instance identifier for A2DP 174 /* Adaptive bitrate config for A2DP codecs */ 189 * - Update the A2DP state machine 198 /* Open A2DP audio stream. Initialize audio datapath */ 200 /* Close A2DP audio stream */ 202 /* Start A2DP audio stream. Start audio datapath */ 204 /* Stop A2DP audio stream * 243 struct a2dp_data a2dp; variable in typeref:struct:a2dp_data [all...] |
/hardware/interfaces/bluetooth/a2dp/1.0/ |
IBluetoothAudioHost.hal | 17 package android.hardware.bluetooth.a2dp@1.0; 20 * HAL interface for Bluetooth A2DP Offload functionality where 21 * the encoding of the A2DP data packets is offloaded to platform 22 * specific encoders. The A2DP control path is maintained in the
|
IBluetoothAudioOffload.hal | 17 package android.hardware.bluetooth.a2dp@1.0; 22 * HAL interface for Bluetooth A2DP Offload functionality where 23 * the encoding of the A2DP data packets is offloaded to platform 24 * specific encoders. The A2DP control path is maintained in the 31 * active A2DP Sink device. HAL Server, based on the feedback from the Audio 40 * Indicates that the HAL client is connected to an A2DP Sink device 48 * @param codecConfig Codec configuration as negotiated with the A2DP Sink 81 * Ends the current A2DP offload session and unregisters the
|
types.hal | 17 package android.hardware.bluetooth.a2dp@1.0; 57 /** Bluetooth A2DP codec */ 77 * Refer to SBC Codec specific information elements in A2DP v1.3
|
/hardware/interfaces/bluetooth/a2dp/1.0/vts/functional/ |
VtsHalBluetoothA2dpV1_0TargetTest.cpp | 20 #include <android/hardware/bluetooth/a2dp/1.0/IBluetoothAudioHost.h> 21 #include <android/hardware/bluetooth/a2dp/1.0/IBluetoothAudioOffload.h> 29 using ::android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioHost; 30 using ::android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioOffload; 31 using ::android::hardware::bluetooth::a2dp::V1_0::Status; 32 using ::android::hardware::bluetooth::a2dp::V1_0::CodecType; 33 using ::android::hardware::bluetooth::a2dp::V1_0::SampleRate; 34 using ::android::hardware::bluetooth::a2dp::V1_0::BitsPerSample; 35 using ::android::hardware::bluetooth::a2dp::V1_0::ChannelMode; 36 using ::android::hardware::bluetooth::a2dp::V1_0::CodecConfiguration [all...] |
/system/bt/btif/src/ |
btif_a2dp_audio_interface.cc | 24 #include <android/hardware/bluetooth/a2dp/1.0/IBluetoothAudioHost.h> 25 #include <android/hardware/bluetooth/a2dp/1.0/IBluetoothAudioOffload.h> 26 #include <android/hardware/bluetooth/a2dp/1.0/types.h> 42 using android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioOffload; 43 using android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioHost; 44 using android::hardware::bluetooth::a2dp::V1_0::Status; 45 using android::hardware::bluetooth::a2dp::V1_0::CodecConfiguration; 46 using android::hardware::bluetooth::a2dp::V1_0::CodecType; 47 using android::hardware::bluetooth::a2dp::V1_0::SampleRate; 48 using android::hardware::bluetooth::a2dp::V1_0::BitsPerSample [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
bluez_test_utils.py | 331 a2dp = self.media_control_iface(address) 333 a2dp.Play() 352 a2dp = self.get_a2dp_interface(address) 354 a2dp.Pause() 355 path = a2dp.object_path 391 a2dp = self.get_a2dp_interface(address) 393 a2dp.Stop() 394 path = a2dp.object_path 410 a2dp = self.get_a2dp_interface(address) 412 path = a2dp.object_pat [all...] |
/hardware/interfaces/audio/common/all-versions/default/service/ |
service.cpp | 23 #include <android/hardware/bluetooth/a2dp/1.0/IBluetoothAudioOffload.h> 52 registerPassthroughServiceImplementation<bluetooth::a2dp::V1_0::IBluetoothAudioOffload>() !=
|
Android.mk | 46 android.hardware.bluetooth.a2dp@1.0 \
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothDetailsProfilesController.java | 113 A2dpProfile a2dp = (A2dpProfile) profile; local 117 if (a2dp.isPreferred(device) && a2dp.supportsHighQualityAudio(device)) { 119 highQualityPref.setTitle(a2dp.getHighQualityAudioOptionLabel(device)); 120 highQualityPref.setChecked(a2dp.isHighQualityAudioEnabled(device)); 215 * profile happened to be A2dp and the device supports high quality audio, it will add a 225 A2dpProfile a2dp = (A2dpProfile) profile; local 226 if (a2dp.supportsHighQualityAudio(device)) { 233 a2dp.setHighQualityAudioEnabled(mCachedDevice.getDevice(), enable);
|
/build/make/target/product/ |
full_base.mk | 37 # audio.a2dp.default is a system module. Generic system image includes 38 # audio.a2dp.default to support A2DP if board has the capability. 40 audio.a2dp.default
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
ServiceFactory.java | 19 import com.android.bluetooth.a2dp.A2dpService;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
LocalBluetoothAdapter.java | 170 A2dpProfile a2dp = mProfileManager.getA2dpProfile(); local 171 if (a2dp != null && a2dp.isA2dpPlaying()) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
A2dpStackEvent.java | 17 package com.android.bluetooth.a2dp; 24 * internally by the A2DP State Machine.
|
A2dpNativeInterface.java | 22 package com.android.bluetooth.a2dp; 35 * A2DP Native Interface to/from JNI. 73 * @param maxConnectedAudioDevices maximum number of A2DP Sink devices that can be connected 90 * Initiates A2DP connection to a remote device. 100 * Disconnects A2DP from a remote device. 110 * Sets a connected A2DP remote device as active.
|
/device/google/atv/products/ |
treble_atv_common.mk | 52 # audio.a2dp.default is a system module. Generic system image includes 53 # audio.a2dp.default to support A2DP if board has the capability. 55 audio.a2dp.default
|
/device/linaro/hikey/audio/ |
Android.mk | 22 # required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
|