Home
last modified time | relevance | path

Searched refs:BluetoothHeadset (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHeadsetProfileTest.java10 import android.bluetooth.BluetoothHeadset;
35 private BluetoothHeadset mService;
69 thenReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testHeadsetProfile_shouldReturnAudioState()
71 isEqualTo(BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in testHeadsetProfile_shouldReturnAudioState()
74 thenReturn(BluetoothHeadset.STATE_AUDIO_CONNECTED); in testHeadsetProfile_shouldReturnAudioState()
76 isEqualTo(BluetoothHeadset.STATE_AUDIO_CONNECTED); in testHeadsetProfile_shouldReturnAudioState()
DBluetoothEventManagerTest.java27 import android.bluetooth.BluetoothHeadset;
100 mIntent = new Intent(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); in intentWithExtraState_audioStateChangedShouldDispatchToRegisterCallback()
DLocalBluetoothProfileManagerTest.java31 import android.bluetooth.BluetoothHeadset;
179 mIntent = new Intent(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java26 import android.bluetooth.BluetoothHeadset;
64 private @Nullable BluetoothHeadset mBluetoothHeadset;
252 if (action.equals(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED)) { in receiveBtEvent()
255 } else if (action.equals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED)) { in receiveBtEvent()
268 case BluetoothHeadset.STATE_AUDIO_CONNECTED: in receiveBtEvent()
276 case BluetoothHeadset.STATE_AUDIO_DISCONNECTED: in receiveBtEvent()
293 case BluetoothHeadset.STATE_AUDIO_CONNECTING: in receiveBtEvent()
323 != BluetoothHeadset.STATE_AUDIO_CONNECTED)) { in isBluetoothScoOn()
486 /*package*/ synchronized void onHeadsetProfileConnected(BluetoothHeadset headset) { in onHeadsetProfileConnected()
617 mDeviceBroker.postBtHeasetProfileConnected((BluetoothHeadset) proxy);
[all …]
DAudioDeviceBroker.java21 import android.bluetooth.BluetoothHeadset;
523 /*package*/ void postBtHeasetProfileConnected(BluetoothHeadset headsetProfile) { in postBtHeasetProfileConnected()
859 mBtHelper.onHeadsetProfileConnected((BluetoothHeadset) msg.obj); in handleMessage()
DAudioService.java43 import android.bluetooth.BluetoothHeadset;
790 new IntentFilter(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); in AudioService()
791 intentFilter.addAction(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED); in AudioService()
5769 } else if (action.equals(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED) in onReceive()
5770 || action.equals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED)) { in onReceive()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHeadsetProfile.java26 import android.bluetooth.BluetoothHeadset;
44 private BluetoothHeadset mService;
66 mService = (BluetoothHeadset) proxy; in onServiceConnected()
150 return BluetoothHeadset.STATE_AUDIO_DISCONNECTED; in getAudioState()
DBluetoothEventManager.java22 import android.bluetooth.BluetoothHeadset;
114 addHandler(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED, new ActiveDeviceChangedHandler()); in BluetoothEventManager()
119 addHandler(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED, in BluetoothEventManager()
435 } else if (Objects.equals(action, BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED)) { in onReceive()
DLocalBluetoothProfileManager.java23 import android.bluetooth.BluetoothHeadset;
149 BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED, in updateLocalProfiles()
150 BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED, in updateLocalProfiles()
151 BluetoothHeadset.STATE_AUDIO_DISCONNECTED); in updateLocalProfiles()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java22 import android.bluetooth.BluetoothHeadset;
82 private BluetoothHeadset mBluetoothHeadset;
104 new IntentFilter(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); in onCreate()
659 mBluetoothHeadset = (BluetoothHeadset) proxy;
688 if (action.equals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED)) { in onReceive()
/frameworks/base/core/java/android/bluetooth/
DBluetoothHeadset.java54 public final class BluetoothHeadset implements BluetoothProfile { class
350 /*package*/ BluetoothHeadset(Context context, ServiceListener l) { in BluetoothHeadset() method in BluetoothHeadset
799 return BluetoothHeadset.STATE_AUDIO_DISCONNECTED; in getAudioState()
1259 BluetoothHeadset.this);
DBluetoothAdapter.java2733 BluetoothHeadset headset = new BluetoothHeadset(context, listener); in getProfileProxy()
2802 BluetoothHeadset headset = (BluetoothHeadset) proxy; in closeProfileProxy()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java232 mConnectionAction = BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED; in ConnectProfileReceiver()
358 mHeadset = (BluetoothHeadset) proxy;
405 private BluetoothHeadset mHeadset = null;
986 assertTrue(((BluetoothHeadset)proxy).connect(device)); in connectProfile()
1063 assertTrue(((BluetoothHeadset)proxy).disconnect(device)); in disconnectProfile()
1542 BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED, in getConnectProfileReceiver()
/frameworks/base/api/
Dlint-baseline.txt675 RequiresPermission: android.bluetooth.BluetoothHeadset#isAudioConnected(android.bluetooth.Bluetooth…
677 RequiresPermission: android.bluetooth.BluetoothHeadset#sendVendorSpecificResultCode(android.bluetoo…
679 RequiresPermission: android.bluetooth.BluetoothHeadset#startVoiceRecognition(android.bluetooth.Blue…
681 RequiresPermission: android.bluetooth.BluetoothHeadset#stopVoiceRecognition(android.bluetooth.Bluet…
Dsystem-current.txt1358 public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {
Dcurrent.txt8600 public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {
/frameworks/base/config/
Dpreloaded-classes676 android.bluetooth.BluetoothHeadset$1
677 android.bluetooth.BluetoothHeadset$2
678 android.bluetooth.BluetoothHeadset$3
679 android.bluetooth.BluetoothHeadset
Dboot-image-profile.txt3197 HSPLandroid/bluetooth/BluetoothHeadset$1;->onBluetoothStateChange(Z)V
3198 HSPLandroid/bluetooth/BluetoothHeadset$2;->onServiceConnected(Landroid/content/ComponentName;Landro…
3199 HSPLandroid/bluetooth/BluetoothHeadset$2;->onServiceDisconnected(Landroid/content/ComponentName;)V
3200 HSPLandroid/bluetooth/BluetoothHeadset$3;->handleMessage(Landroid/os/Message;)V
3201 HSPLandroid/bluetooth/BluetoothHeadset;-><init>(Landroid/content/Context;Landroid/bluetooth/Bluetoo…
3202 HSPLandroid/bluetooth/BluetoothHeadset;->doBind()Z
3203 HSPLandroid/bluetooth/BluetoothHeadset;->doUnbind()V
3204 HSPLandroid/bluetooth/BluetoothHeadset;->getActiveDevice()Landroid/bluetooth/BluetoothDevice;
3205 HSPLandroid/bluetooth/BluetoothHeadset;->getConnectedDevices()Ljava/util/List;
3206 HSPLandroid/bluetooth/BluetoothHeadset;->phoneStateChanged(IIILjava/lang/String;ILjava/lang/String;…
[all …]
Dhiddenapi-greylist-max-o.txt10257 Landroid/bluetooth/BluetoothHeadset;-><init>(Landroid/content/Context;Landroid/bluetooth/BluetoothP…
10258 Landroid/bluetooth/BluetoothHeadset;->ACTION_HF_INDICATORS_VALUE_CHANGED:Ljava/lang/String;
10259 Landroid/bluetooth/BluetoothHeadset;->clccResponse(IIIIZLjava/lang/String;I)V
10260 Landroid/bluetooth/BluetoothHeadset;->DBG:Z
10261 Landroid/bluetooth/BluetoothHeadset;->doBind()Z
10262 Landroid/bluetooth/BluetoothHeadset;->doUnbind()V
10263 Landroid/bluetooth/BluetoothHeadset;->EXTRA_HF_INDICATORS_IND_ID:Ljava/lang/String;
10264 Landroid/bluetooth/BluetoothHeadset;->EXTRA_HF_INDICATORS_IND_VALUE:Ljava/lang/String;
10265 Landroid/bluetooth/BluetoothHeadset;->getAudioRouteAllowed()Z
10266 Landroid/bluetooth/BluetoothHeadset;->isAudioOn()Z
[all …]
/frameworks/base/non-updatable-api/
Dsystem-current.txt1358 public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {
Dcurrent.txt8600 public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {
/frameworks/base/services/
Dart-profile4378 …om/android/server/audio/BtHelper;->onHeadsetProfileConnected(Landroid/bluetooth/BluetoothHeadset;)V
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt6405 public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {