/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothDeviceManagerTest.java | 38 import android.bluetooth.BluetoothHeadset; 74 @Mock BluetoothHeadset mBluetoothHeadset; 153 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, in testSingleDeviceConnectAndDisconnect() 157 buildConnectionActionIntent(BluetoothHeadset.STATE_DISCONNECTED, device1, in testSingleDeviceConnectAndDisconnect() 169 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, in testAddDeviceFailsWhenServicesAreNull() 172 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testAddDeviceFailsWhenServicesAreNull() 175 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device5, in testAddDeviceFailsWhenServicesAreNull() 185 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, in testMultiDeviceConnectAndDisconnect() 188 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testMultiDeviceConnectAndDisconnect() 191 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device5, in testMultiDeviceConnectAndDisconnect() [all …]
|
D | BluetoothRouteManagerTest.java | 32 import android.bluetooth.BluetoothHeadset; 79 @Mock private BluetoothHeadset mBluetoothHeadset; 110 .thenReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testConnectLeftHearingAidWhenLeftIsActive() 137 .thenReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testConnectRightHearingAidWhenLeftIsActive() 203 .thenReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testAudioOnDeviceWithScoOffActiveDevice() 330 .thenReturn(BluetoothHeadset.STATE_AUDIO_CONNECTED); in setupConnectedDevices()
|
D | BluetoothRouteTransitionTests.java | 36 import android.bluetooth.BluetoothHeadset; 263 @Mock private BluetoothHeadset mBluetoothHeadset; 400 .thenReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in setupConnectedDevices() 405 .thenReturn(BluetoothHeadset.STATE_AUDIO_CONNECTED); in setupConnectedDevices()
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothStateReceiver.java | 31 import android.bluetooth.BluetoothHeadset; 58 INTENT_FILTER.addAction(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED); 59 INTENT_FILTER.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); 60 INTENT_FILTER.addAction(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED); 82 case BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED: in onReceive() 87 case BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED: in onReceive() 92 case BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED: in onReceive() 103 intent.getIntExtra(BluetoothHeadset.EXTRA_STATE, in handleAudioStateChanged() 104 BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in handleAudioStateChanged() 120 case BluetoothHeadset.STATE_AUDIO_CONNECTED: in handleAudioStateChanged() [all …]
|
D | BluetoothDeviceManager.java | 27 import android.bluetooth.BluetoothHeadset; 127 mBluetoothHeadsetFuture.complete((BluetoothHeadset) proxy); 129 mBluetoothHeadset = (BluetoothHeadset) proxy; 288 private BluetoothHeadset mBluetoothHeadset; 289 private CompletableFuture<BluetoothHeadset> mBluetoothHeadsetFuture; 425 public BluetoothHeadset getBluetoothHeadset() { in getBluetoothHeadset() 453 public void setHeadsetServiceForTesting(BluetoothHeadset bluetoothHeadset) { in setHeadsetServiceForTesting()
|
D | BluetoothRouteManager.java | 22 import android.bluetooth.BluetoothHeadset; 1072 BluetoothHeadset bluetoothHeadset = mDeviceManager.getBluetoothHeadset(); 1098 == BluetoothHeadset.STATE_AUDIO_DISCONNECTED) {
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 25 import android.bluetooth.BluetoothHeadset; 586 BluetoothHeadset.STATE_AUDIO_CONNECTING, in testStateTransition_ConnectedToAudioConnecting_ConnectAudio() 587 BluetoothHeadset.STATE_AUDIO_DISCONNECTED, in testStateTransition_ConnectedToAudioConnecting_ConnectAudio() 638 BluetoothHeadset.STATE_AUDIO_CONNECTING, in testStateTransition_ConnectedToAudioConnecting_StackAudioConnecting() 639 BluetoothHeadset.STATE_AUDIO_DISCONNECTED, in testStateTransition_ConnectedToAudioConnecting_StackAudioConnecting() 668 BluetoothHeadset.STATE_AUDIO_CONNECTED, in testStateTransition_ConnectedToAudioOn_StackAudioConnected() 669 BluetoothHeadset.STATE_AUDIO_DISCONNECTED, in testStateTransition_ConnectedToAudioOn_StackAudioConnected() 690 BluetoothHeadset.STATE_AUDIO_DISCONNECTED, in testStateTransition_AudioConnectingToConnected_Timeout() 691 BluetoothHeadset.STATE_AUDIO_CONNECTING, in testStateTransition_AudioConnectingToConnected_Timeout() 721 BluetoothHeadset.STATE_AUDIO_DISCONNECTED, in testStateTransition_AudioConnectingToConnected_StackAudioDisconnected() [all …]
|
D | HeadsetTestUtils.java | 22 import android.bluetooth.BluetoothHeadset; 42 Assert.assertEquals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED, intent.getAction()); in verifyAudioStateBroadcast() 62 Assert.assertEquals(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED, intent.getAction()); in verifyConnectionStateBroadcast() 98 Assert.assertEquals(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED, intent.getAction()); in verifyActiveDeviceChangedBroadcast()
|
D | HeadsetServiceAndStateMachineTest.java | 34 import android.bluetooth.BluetoothHeadset; 221 .isEqualTo(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testGetHeadsetService() 556 hasAction(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED)), in testDialingOutCall_NormalDialingOut() 1173 BluetoothHeadset.STATE_AUDIO_CONNECTING, in testVoiceRecognition_MultiAgInitiatedDeviceNotActive() 1174 BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testVoiceRecognition_MultiAgInitiatedDeviceNotActive() 1183 BluetoothHeadset.STATE_AUDIO_CONNECTED, in testVoiceRecognition_MultiAgInitiatedDeviceNotActive() 1184 BluetoothHeadset.STATE_AUDIO_CONNECTING); in testVoiceRecognition_MultiAgInitiatedDeviceNotActive() 1295 BluetoothHeadset.STATE_AUDIO_CONNECTING, in testIncomingCall_NonHdNonVoipCall_AptXDisabled() 1296 BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testIncomingCall_NonHdNonVoipCall_AptXDisabled() 1305 BluetoothHeadset.STATE_AUDIO_CONNECTED, in testIncomingCall_NonHdNonVoipCall_AptXDisabled() [all …]
|
D | HeadsetServiceTest.java | 36 import android.bluetooth.BluetoothHeadset; 161 doReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED) in setUp() 199 BluetoothHeadset.STATE_AUDIO_DISCONNECTED, in testGetHeadsetService() 522 .thenReturn(BluetoothHeadset.STATE_AUDIO_CONNECTING); in testConnectAudio_withOneDevice() 535 .thenReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testConnectAudio_withOneDevice() 617 .thenReturn(BluetoothHeadset.STATE_AUDIO_CONNECTING); in testConnectAudio_withMultipleDevices() 626 .thenReturn(BluetoothHeadset.STATE_AUDIO_CONNECTED); in testConnectAudio_withMultipleDevices() 633 .thenReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testConnectAudio_withMultipleDevices() 718 .thenReturn(BluetoothHeadset.STATE_AUDIO_CONNECTING); in testConnectAudio_connectTwoAudioChannelsShouldFail() 730 .thenReturn(BluetoothHeadset.STATE_AUDIO_CONNECTED); in testConnectAudio_connectTwoAudioChannelsShouldFail()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 29 import android.bluetooth.BluetoothHeadset; 159 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_XEVENT, in VENDOR_SPECIFIC_AT_COMMAND_COMPANY_ID.put() 162 BluetoothHeadset.VENDOR_RESULT_CODE_COMMAND_ANDROID, in VENDOR_SPECIFIC_AT_COMMAND_COMPANY_ID.put() 165 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_XAPL, in VENDOR_SPECIFIC_AT_COMMAND_COMPANY_ID.put() 168 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_IPHONEACCEV, in VENDOR_SPECIFIC_AT_COMMAND_COMPANY_ID.put() 171 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_CGMI, in VENDOR_SPECIFIC_AT_COMMAND_COMPANY_ID.put() 174 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_CGMR, in VENDOR_SPECIFIC_AT_COMMAND_COMPANY_ID.put() 177 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_CGMM, in VENDOR_SPECIFIC_AT_COMMAND_COMPANY_ID.put() 180 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_CGSN, in VENDOR_SPECIFIC_AT_COMMAND_COMPANY_ID.put() 347 Intent intent = new Intent(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED); in broadcastConnectionState() [all …]
|
D | BluetoothHeadsetProxy.java | 20 import android.bluetooth.BluetoothHeadset; 36 private BluetoothHeadset mBluetoothHeadset; 38 public BluetoothHeadsetProxy(BluetoothHeadset headset) { in BluetoothHeadsetProxy()
|
D | HeadsetService.java | 32 import android.bluetooth.BluetoothHeadset; 664 return BluetoothHeadset.STATE_AUDIO_DISCONNECTED; in getAudioState() 1238 return stateMachine.getAudioState() == BluetoothHeadset.STATE_AUDIO_CONNECTED; in isAudioConnected() 1246 return BluetoothHeadset.STATE_AUDIO_DISCONNECTED; in getAudioState() 1377 if (getAudioState(mActiveDevice) != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in removeActiveDevice() 1441 if (getAudioState(previousActiveDevice) != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in setActiveDevice() 1563 if (stateMachine.getAudioState() != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in connectAudio() 1583 if (stateMachine.getAudioState() != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in getNonIdleAudioDevices() 1620 if (stateMachine.getAudioState() == BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in disconnectAudio() 2116 if (!command.equals(BluetoothHeadset.VENDOR_RESULT_CODE_COMMAND_ANDROID)) { in sendVendorSpecificResultCode() [all …]
|
D | HeadsetSystemInterface.java | 21 import android.bluetooth.BluetoothHeadset;
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 10 import android.bluetooth.BluetoothHeadset; 433 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_XEVENT, in testOnVendorSpecificHeadsetEvent_testCorrectPlantronicsXEvent() 435 BluetoothHeadset.AT_CMD_TYPE_SET, in testOnVendorSpecificHeadsetEvent_testCorrectPlantronicsXEvent() 452 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_IPHONEACCEV, in testOnVendorSpecificHeadsetEvent_testCorrectAppleBatteryVsc() 454 BluetoothHeadset.AT_CMD_TYPE_SET, in testOnVendorSpecificHeadsetEvent_testCorrectAppleBatteryVsc() 457 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_IPHONEACCEV_BATTERY_LEVEL, in testOnVendorSpecificHeadsetEvent_testCorrectAppleBatteryVsc() 497 BluetoothHeadset in testGetBatteryLevelFromAppleBatteryVsc() 506 BluetoothHeadset in testGetBatteryLevelFromAppleBatteryVsc() 515 BluetoothHeadset in testGetBatteryLevelFromAppleBatteryVsc() 528 BluetoothHeadset in testGetBatteryLevelFromAppleBatteryVsc() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 23 import android.bluetooth.BluetoothHeadset; 116 BluetoothHeadset mHeadset; 174 filter.addAction(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED); in start() 498 } else if (BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED.equals(action) && in handleIntent() 678 mHeadset = (BluetoothHeadset) proxy; in onServiceConnected()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothHeadset.java | 56 public final class BluetoothHeadset implements BluetoothProfile { class 355 /* package */ BluetoothHeadset(Context context, BluetoothAdapter adapter) { in BluetoothHeadset() method in BluetoothHeadset 784 BluetoothHeadset.STATE_AUDIO_DISCONNECTED, 785 BluetoothHeadset.STATE_AUDIO_CONNECTING, 786 BluetoothHeadset.STATE_AUDIO_CONNECTED, 821 return BluetoothHeadset.STATE_AUDIO_DISCONNECTED; in getAudioState()
|
D | BluetoothAdapter.java | 817 Map.entry(BluetoothProfile.HEADSET, BluetoothHeadset::new),
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | Hfp.kt | 21 import android.bluetooth.BluetoothHeadset 59 private val bluetoothHfp = getProfileProxy<BluetoothHeadset>(context, BluetoothProfile.HEADSET)
|
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/ |
D | RfcommTest.kt | 376 private suspend fun headsetFlow(): Flow<BluetoothHeadset> { in headsetFlow() 380 lateinit var mBluetoothHeadset: BluetoothHeadset in headsetFlow() 383 mBluetoothHeadset = proxy as BluetoothHeadset in headsetFlow()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 29 import android.bluetooth.BluetoothHeadset; 1468 if (cmdType != BluetoothHeadset.AT_CMD_TYPE_SET) { in onVendorSpecificHeadsetEvent() 1478 case BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_XEVENT: in onVendorSpecificHeadsetEvent() 1481 case BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_IPHONEACCEV: in onVendorSpecificHeadsetEvent() 1532 != BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_IPHONEACCEV_BATTERY_LEVEL) { in getBatteryLevelFromAppleBatteryVsc() 1570 BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_XEVENT_BATTERY_LEVEL)) { in getBatteryLevelFromXEventVsc()
|
D | AdapterProperties.java | 32 import android.bluetooth.BluetoothHeadset; 163 case BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED: 264 filter.addAction(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED); in init()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallNotifier.java | 20 import android.bluetooth.BluetoothHeadset; 78 private BluetoothHeadset mBluetoothHeadset; 689 mBluetoothHeadset = (BluetoothHeadset) proxy;
|
/packages/modules/Bluetooth/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 441 Landroid/bluetooth/BluetoothHeadset;-><init>(Landroid/content/Context;Landroid/bluetooth/BluetoothP… 442 Landroid/bluetooth/BluetoothHeadset;->ACTION_HF_INDICATORS_VALUE_CHANGED:Ljava/lang/String; 443 Landroid/bluetooth/BluetoothHeadset;->clccResponse(IIIIZLjava/lang/String;I)V 444 Landroid/bluetooth/BluetoothHeadset;->DBG:Z 445 Landroid/bluetooth/BluetoothHeadset;->doBind()Z 446 Landroid/bluetooth/BluetoothHeadset;->doUnbind()V 447 Landroid/bluetooth/BluetoothHeadset;->EXTRA_HF_INDICATORS_IND_ID:Ljava/lang/String; 448 Landroid/bluetooth/BluetoothHeadset;->EXTRA_HF_INDICATORS_IND_VALUE:Ljava/lang/String; 449 Landroid/bluetooth/BluetoothHeadset;->getAudioRouteAllowed()Z 450 Landroid/bluetooth/BluetoothHeadset;->isAudioOn()Z [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/ |
D | BluetoothInCallService.java | 22 import android.bluetooth.BluetoothHeadset; 158 new BluetoothHeadsetProxy((BluetoothHeadset) proxy));
|