Home
last modified time | relevance | path

Searched refs:BluetoothA2dp (Results 1 – 25 of 47) sorted by relevance

12

/packages/modules/Bluetooth/android/pandora/server/src/
DA2dp.kt19 import android.bluetooth.BluetoothA2dp
59 private val bluetoothA2dp = getProfileProxy<BluetoothA2dp>(context, BluetoothProfile.A2DP)
66 intentFilter.addAction(BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED)
67 intentFilter.addAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED)
85 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in openSource()
89 .filter { it.getAction() == BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED } in openSource()
123 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in waitSource()
126 .filter { it.getAction() == BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED } in waitSource()
160 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in start()
169 .filter { it.getAction() == BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED } in start()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java26 import android.bluetooth.BluetoothA2dp;
168 hasAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED), in verifyConnectionStateIntent()
510 hasAction(BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED), in testCreateStateMachineStackEvents()
512 hasExtra(BluetoothProfile.EXTRA_STATE, BluetoothA2dp.STATE_NOT_PLAYING), in testCreateStateMachineStackEvents()
513 hasExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothA2dp.STATE_PLAYING)); in testCreateStateMachineStackEvents()
599 hasAction(BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED), in testProcessAudioStateChangedCodecConfigChangedEvents()
601 hasExtra(BluetoothProfile.EXTRA_STATE, BluetoothA2dp.STATE_NOT_PLAYING), in testProcessAudioStateChangedCodecConfigChangedEvents()
602 hasExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothA2dp.STATE_PLAYING)); in testProcessAudioStateChangedCodecConfigChangedEvents()
607 BluetoothA2dp.STATE_PLAYING, in testProcessAudioStateChangedCodecConfigChangedEvents()
608 BluetoothA2dp.STATE_NOT_PLAYING); in testProcessAudioStateChangedCodecConfigChangedEvents()
[all …]
DA2dpServiceBinderTest.java26 import android.bluetooth.BluetoothA2dp;
216 int value = BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN; in setOptionalCodecsEnabled()
237 int value = BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN; in setBufferLengthMillis()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothA2dpConnector.java19 import android.bluetooth.BluetoothA2dp;
48 private BluetoothA2dp mA2dpProfile;
105 BluetoothA2dp.EXTRA_PREVIOUS_STATE, BluetoothA2dp.STATE_CONNECTING);
107 BluetoothA2dp.EXTRA_STATE, BluetoothA2dp.STATE_CONNECTING);
113 if (previousState == BluetoothA2dp.STATE_CONNECTING) {
114 if (state == BluetoothA2dp.STATE_CONNECTED) {
117 } else if (state == BluetoothA2dp.STATE_DISCONNECTED) {
155 mA2dpProfile = (BluetoothA2dp) proxy;
215 IntentFilter filter = new IntentFilter(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED); in registerConnectionStateReceiver()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DBluetoothHDAudioPreferenceController.java19 import android.bluetooth.BluetoothA2dp;
51 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in updateState()
63 == BluetoothA2dp.OPTIONAL_CODECS_SUPPORTED); in updateState()
67 == BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED; in updateState()
79 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in onPreferenceChange()
86 ? BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED in onPreferenceChange()
87 : BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED; in onPreferenceChange()
DAbstractBluetoothDialogPreferenceController.java21 import android.bluetooth.BluetoothA2dp;
84 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in onIndexUpdated()
109 public void onBluetoothServiceConnected(BluetoothA2dp bluetoothA2dp) { in onBluetoothServiceConnected()
155 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in getCurrentCodecConfig()
179 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in getSelectableConfigs()
223 static int getHighestCodec(BluetoothA2dp bluetoothA2dp, BluetoothDevice activeDevice, in getHighestCodec()
231 != BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED) { in getHighestCodec()
DAbstractBluetoothListPreferenceController.java21 import android.bluetooth.BluetoothA2dp;
94 public void onBluetoothServiceConnected(@NonNull BluetoothA2dp bluetoothA2dp) { in onBluetoothServiceConnected()
133 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in getBluetoothCodecStatus()
218 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in isHDAudioEnabled()
229 == BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED); in isHDAudioEnabled()
DAbstractBluetoothPreferenceController.java19 import android.bluetooth.BluetoothA2dp;
46 @Nullable protected volatile BluetoothA2dp mBluetoothA2dp;
63 public void onBluetoothServiceConnected(BluetoothA2dp bluetoothA2dp) { in onBluetoothServiceConnected()
DBluetoothCodecListPreferenceController.java19 import android.bluetooth.BluetoothA2dp;
88 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in onPreferenceChange()
149 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in updateState()
197 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in writeConfigurationValues()
DBluetoothCodecDialogPreferenceController.java19 import android.bluetooth.BluetoothA2dp;
73 final BluetoothA2dp bluetoothA2dp = mBluetoothA2dp; in getSelectableIndex()
86 == BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED) { in getSelectableIndex()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java34 import android.bluetooth.BluetoothA2dp;
132 broadcastAudioState(BluetoothA2dp.STATE_NOT_PLAYING, BluetoothA2dp.STATE_PLAYING); in doQuit()
165 BluetoothA2dp.STATE_NOT_PLAYING, BluetoothA2dp.STATE_PLAYING); in enter()
552 broadcastAudioState(BluetoothA2dp.STATE_NOT_PLAYING, BluetoothA2dp.STATE_PLAYING); in enter()
649 BluetoothA2dp.STATE_PLAYING, BluetoothA2dp.STATE_NOT_PLAYING); in processAudioStateEvent()
660 BluetoothA2dp.STATE_NOT_PLAYING, BluetoothA2dp.STATE_PLAYING); in processAudioStateEvent()
792 Intent intent = new Intent(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED); in broadcastConnectionState()
812 Intent intent = new Intent(BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED); in broadcastAudioState()
888 case BluetoothA2dp.STATE_PLAYING: in audioStateToString()
890 case BluetoothA2dp.STATE_NOT_PLAYING: in audioStateToString()
DA2dpService.java30 import android.bluetooth.BluetoothA2dp;
31 import android.bluetooth.BluetoothA2dp.OptionalCodecsPreferenceStatus;
32 import android.bluetooth.BluetoothA2dp.OptionalCodecsSupportStatus;
793 if (getSupportsOptionalCodecs(device) != BluetoothA2dp.OPTIONAL_CODECS_SUPPORTED) { in enableOptionalCodecs()
821 if (getSupportsOptionalCodecs(device) != BluetoothA2dp.OPTIONAL_CODECS_SUPPORTED) { in disableOptionalCodecs()
850 ? BluetoothA2dp.OPTIONAL_CODECS_SUPPORTED in setSupportsOptionalCodecs()
851 : BluetoothA2dp.OPTIONAL_CODECS_NOT_SUPPORTED; in setSupportsOptionalCodecs()
879 if (value != BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN in setOptionalCodecsEnabled()
880 && value != BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED in setOptionalCodecsEnabled()
881 && value != BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED) { in setOptionalCodecsEnabled()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java30 import android.bluetooth.BluetoothA2dp;
159 BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN, in testMetadataDefault()
163 BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN, in testMetadataDefault()
227 BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN, in testSetGetA2dpSupportsOptionalCodecs()
228 BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN); in testSetGetA2dpSupportsOptionalCodecs()
232 BluetoothA2dp.OPTIONAL_CODECS_NOT_SUPPORTED, in testSetGetA2dpSupportsOptionalCodecs()
233 BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN); in testSetGetA2dpSupportsOptionalCodecs()
237 BluetoothA2dp.OPTIONAL_CODECS_SUPPORTED, in testSetGetA2dpSupportsOptionalCodecs()
238 BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN); in testSetGetA2dpSupportsOptionalCodecs()
243 BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN); in testSetGetA2dpSupportsOptionalCodecs()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/
DBluetoothCodecDialogPreferenceControllerTest.java27 import android.bluetooth.BluetoothA2dp;
58 private BluetoothA2dp mBluetoothA2dp;
140 BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED); in writeConfigurationValues_selectDefault_setHighest()
234 BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED); in onHDAudioEnabled_optionalCodecEnabled_setsCodecTypeAsOpus()
253 BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED); in onHDAudioEnabled_optionalCodecEnabled_setsCodecTypeAsAAC()
271 BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED); in onHDAudioEnabled_optionalCodecDisabled_setsCodecTypeAsSBC()
DBluetoothHDAudioPreferenceControllerTest.java26 import android.bluetooth.BluetoothA2dp;
59 private BluetoothA2dp mBluetoothA2dp;
163 BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED); in onPreferenceChange_disable_verifyFlow()
177 BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED); in onPreferenceChange_enable_verifyFlow()
DAbstractBluetoothListPreferenceControllerTest.java30 import android.bluetooth.BluetoothA2dp;
66 @Mock private BluetoothA2dp mBluetoothA2dp;
193 .thenReturn(BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED); in isHDAudioEnabled_errorChecking()
201 .thenReturn(BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED); in isHDAudioEnabled_verifyEnabled()
DAbstractBluetoothPreferenceControllerTest.java25 import android.bluetooth.BluetoothA2dp;
47 private BluetoothA2dp mBluetoothA2dp;
DBluetoothCodecListPreferenceControllerTest.java30 import android.bluetooth.BluetoothA2dp;
64 @Mock private BluetoothA2dp mBluetoothA2dp;
193 .thenReturn(BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED); in writeConfigurationValues_selectDefault()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java19 import android.bluetooth.BluetoothA2dp;
20 import android.bluetooth.BluetoothA2dp.OptionalCodecsPreferenceStatus;
21 import android.bluetooth.BluetoothA2dp.OptionalCodecsSupportStatus;
474 if (newValue != BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN in setA2dpSupportsOptionalCodecs()
475 && newValue != BluetoothA2dp.OPTIONAL_CODECS_NOT_SUPPORTED in setA2dpSupportsOptionalCodecs()
476 && newValue != BluetoothA2dp.OPTIONAL_CODECS_SUPPORTED) { in setA2dpSupportsOptionalCodecs()
514 return BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN; in getA2dpSupportsOptionalCodecs()
522 return BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN; in getA2dpSupportsOptionalCodecs()
545 if (newValue != BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN in setA2dpOptionalCodecsEnabled()
546 && newValue != BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED in setA2dpOptionalCodecsEnabled()
[all …]
DMetadata.java19 import android.bluetooth.BluetoothA2dp;
20 import android.bluetooth.BluetoothA2dp.OptionalCodecsPreferenceStatus;
21 import android.bluetooth.BluetoothA2dp.OptionalCodecsSupportStatus;
85 a2dpSupportsOptionalCodecs = BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN; in Metadata()
86 a2dpOptionalCodecsEnabled = BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN; in Metadata()
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothServiceConnectionListener.java19 import android.bluetooth.BluetoothA2dp;
30 void onBluetoothServiceConnected(BluetoothA2dp bluetoothA2dp); in onBluetoothServiceConnected()
DAbstractBluetoothA2dpPreferenceController.java19 import android.bluetooth.BluetoothA2dp;
51 protected BluetoothA2dp mBluetoothA2dp;
141 public void onBluetoothServiceConnected(BluetoothA2dp bluetoothA2dp) { in onBluetoothServiceConnected()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java21 import android.bluetooth.BluetoothA2dp;
60 private BluetoothA2dp mBluetoothA2dp;
74 if (BluetoothA2dp.ACTION_CODEC_CONFIG_CHANGED.equals(action)) {
89 mBluetoothA2dp = (BluetoothA2dp) proxy;
133 filter.addAction(BluetoothA2dp.ACTION_CODEC_CONFIG_CHANGED); in A2dpReceiver()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java19 import android.bluetooth.BluetoothA2dp;
115 BluetoothA2dp mA2dp;
173 filter.addAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED); in start()
512 } else if (BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED.equals(action) && in handleIntent()
684 mA2dp = (BluetoothA2dp) proxy; in onServiceConnected()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceControllerTest.java30 import android.bluetooth.BluetoothA2dp;
53 private BluetoothA2dp mBluetoothA2dp;

12