/packages/apps/Phone/src/com/android/phone/ |
BluetoothHeadsetService.java | 23 import android.bluetooth.BluetoothHeadset; 87 mState = BluetoothHeadset.STATE_DISCONNECTED; 152 int priority = BluetoothHeadset.PRIORITY_OFF; 157 if (priority <= BluetoothHeadset.PRIORITY_OFF) { 166 case BluetoothHeadset.STATE_DISCONNECTED: 169 setState(BluetoothHeadset.STATE_CONNECTING); 177 case BluetoothHeadset.STATE_CONNECTING: 203 setState(BluetoothHeadset.STATE_CONNECTED, BluetoothHeadset.RESULT_SUCCESS); 208 case BluetoothHeadset.STATE_CONNECTED [all...] |
PhoneApp.java | 25 import android.bluetooth.BluetoothHeadset; 145 int mBluetoothHeadsetState = BluetoothHeadset.STATE_ERROR; 146 int mBluetoothHeadsetAudioState = BluetoothHeadset.STATE_ERROR; 474 intentFilter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED); 475 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); [all...] |
BluetoothHandsfree.java | 25 import android.bluetooth.BluetoothHeadset; 198 BluetoothHeadset.isBluetoothVoiceDialingEnabled(mContext)) { [all...] |
InCallScreen.java | 23 import android.bluetooth.BluetoothHeadset; 242 private BluetoothHeadset mBluetoothHeadset; 559 mBluetoothHeadset = new BluetoothHeadset(this, null); 560 if (VDBG) log("- Got BluetoothHeadset: " + mBluetoothHeadset); [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
LocalBluetoothProfileManager.java | 23 import android.bluetooth.BluetoothHeadset; 253 * HeadsetProfileManager is an abstraction for the {@link BluetoothHeadset} service. 256 implements BluetoothHeadset.ServiceListener { 257 private BluetoothHeadset mService; 262 mService = new BluetoothHeadset(localManager.getContext(), this); 277 BluetoothHeadset.STATE_CONNECTED); 308 if (mService.getPriority(device) > BluetoothHeadset.PRIORITY_ON) { 309 mService.setPriority(device, BluetoothHeadset.PRIORITY_ON); 338 return mService.getPriority(device) > BluetoothHeadset.PRIORITY_OFF; 349 if (mService.getPriority(device) < BluetoothHeadset.PRIORITY_ON) [all...] |
DockEventReceiver.java | 25 import android.bluetooth.BluetoothHeadset; 83 } else if (BluetoothHeadset.ACTION_STATE_CHANGED.equals(intent.getAction())) { 96 int newState = intent.getIntExtra(BluetoothHeadset.EXTRA_STATE, 97 BluetoothHeadset.STATE_CONNECTED); 98 if (newState != BluetoothHeadset.STATE_DISCONNECTED) return; 100 int source = intent.getIntExtra(BluetoothHeadset.EXTRA_DISCONNECT_INITIATOR, 101 BluetoothHeadset.LOCAL_DISCONNECT); 102 if (source != BluetoothHeadset.REMOTE_DISCONNECT) return;
|
BluetoothEventRedirector.java | 26 import android.bluetooth.BluetoothHeadset; 100 } else if (action.equals(BluetoothHeadset.ACTION_STATE_CHANGED)) { 101 int newState = intent.getIntExtra(BluetoothHeadset.EXTRA_STATE, 0); 102 int oldState = intent.getIntExtra(BluetoothHeadset.EXTRA_PREVIOUS_STATE, 0); 103 if (newState == BluetoothHeadset.STATE_DISCONNECTED && 104 oldState == BluetoothHeadset.STATE_CONNECTING) { 168 filter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED);
|
BluetoothDevicePreference.java | 83 * related to BluetoothHeadset not bound to the actual
|
DockService.java | 28 import android.bluetooth.BluetoothHeadset; 177 if (BluetoothHeadset.ACTION_STATE_CHANGED.equals(intent.getAction())) { 645 auto = BluetoothHeadset.PRIORITY_AUTO_CONNECT;
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothHeadset.java | 37 * BluetoothHeadset is a proxy object for controlling the Bluetooth Headset 40 * Creating a BluetoothHeadset object will create a binding with the 41 * BluetoothHeadset service. Users of this object should call close() when they 42 * are finished with the BluetoothHeadset, so that this proxy object can unbind 45 * This BluetoothHeadset object is not immediately bound to the 46 * BluetoothHeadset service. Use the ServiceListener interface to obtain a 54 public final class BluetoothHeadset { 56 private static final String TAG = "BluetoothHeadset"; 132 * An interface for notifying BluetoothHeadset IPC clients when they have 133 * been connected to the BluetoothHeadset service [all...] |
BluetoothA2dp.java | 40 * BluetoothHeadset service. Users of this object should call close() when they
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
BluetoothVoiceDialerActivity.java | 21 import android.bluetooth.BluetoothHeadset; 51 * This transitions out on events from TTS and the BluetoothHeadset 157 private BluetoothHeadset mBluetoothHeadset; 206 // Get handle to BluetoothHeadset object 209 audioStateFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); 219 mBluetoothAudioState = BluetoothHeadset.STATE_ERROR; 221 if (BluetoothHeadset.isBluetoothVoiceDialingEnabled(this)) { 222 // we can't start recognizing until we get connected to the BluetoothHeadset 226 mBluetoothHeadset = new BluetoothHeadset(this, 364 private BluetoothHeadset.ServiceListener mBluetoothHeadsetServiceListener [all...] |
/frameworks/base/services/java/com/android/server/am/ |
BatteryStatsService.java | 19 import android.bluetooth.BluetoothHeadset; 264 BluetoothHeadset headset = new BluetoothHeadset(mContext, null);
|
/frameworks/base/media/java/android/media/ |
AudioService.java | 29 import android.bluetooth.BluetoothHeadset; 254 // BluetoothHeadset API to control SCO connection 255 private BluetoothHeadset mBluetoothHeadset; 294 mBluetoothHeadset = new BluetoothHeadset(context, 301 intentFilter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED); 303 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); [all...] |
/development/apps/BluetoothDebug/src/com/android/bluetoothdebug/ |
DebugReceiver.java | 24 import android.bluetooth.BluetoothHeadset;
|
/frameworks/base/services/java/com/android/server/status/ |
StatusBarPolicy.java | 22 import android.bluetooth.BluetoothHeadset; 383 action.equals(BluetoothHeadset.ACTION_STATE_CHANGED) || 482 mBluetoothHeadsetState = BluetoothHeadset.STATE_DISCONNECTED; 532 filter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED); [all...] |
/frameworks/base/core/java/android/server/ |
BluetoothService.java | 30 import android.bluetooth.BluetoothHeadset; [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiStateTracker.java | 49 import android.bluetooth.BluetoothHeadset; [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
BatteryStatsImpl.java | 21 import android.bluetooth.BluetoothHeadset; 149 BluetoothHeadset mBtHeadset; [all...] |