HomeSort by relevance Sort by last modified time
    Searched refs:BluetoothHeadset (Results 1 - 20 of 20) sorted by null

  /packages/apps/Phone/src/com/android/phone/
BluetoothHeadsetService.java 24 import android.bluetooth.BluetoothHeadset;
107 mState = BluetoothHeadset.STATE_DISCONNECTED;
114 mState = BluetoothHeadset.STATE_DISCONNECTED;
124 if (state == BluetoothHeadset.STATE_CONNECTING ||
125 state == BluetoothHeadset.STATE_CONNECTED) {
168 int priority = BluetoothHeadset.PRIORITY_OFF;
171 if (priority <= BluetoothHeadset.PRIORITY_OFF) {
183 int state = BluetoothHeadset.STATE_DISCONNECTED;
189 case BluetoothHeadset.STATE_DISCONNECTED:
201 case BluetoothHeadset.STATE_CONNECTING
    [all...]
PhoneApp.java 25 import android.bluetooth.BluetoothHeadset;
152 int mBluetoothHeadsetState = BluetoothHeadset.STATE_ERROR;
153 int mBluetoothHeadsetAudioState = BluetoothHeadset.STATE_ERROR;
494 intentFilter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED);
495 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED);
    [all...]
BluetoothHandsfree.java 25 import android.bluetooth.BluetoothHeadset;
196 BluetoothHeadset.isBluetoothVoiceDialingEnabled(mContext)) {
    [all...]
InCallScreen.java 23 import android.bluetooth.BluetoothHeadset;
243 private BluetoothHeadset mBluetoothHeadset;
560 mBluetoothHeadset = new BluetoothHeadset(this, null);
561 if (VDBG) log("- Got BluetoothHeadset: " + mBluetoothHeadset);
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
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;
LocalBluetoothProfileManager.java 23 import android.bluetooth.BluetoothHeadset;
59 * An interface for notifying BluetoothHeadset IPC clients when they have
60 * been connected to the BluetoothHeadset service.
65 * connected to the BluetoothHeadset service. Clients must wait for
66 * this callback before making IPC calls on the BluetoothHeadset
73 * disconnected from the BluetoothHeadset service. Clients must not
74 * make IPC calls on the BluetoothHeadset service after this callback.
76 * the BluetoothHeadset service, but may be called more often in future.
305 * HeadsetProfileManager is an abstraction for the {@link BluetoothHeadset} service.
308 implements BluetoothHeadset.ServiceListener
    [all...]
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);
DockService.java 29 import android.bluetooth.BluetoothHeadset;
181 if (BluetoothHeadset.ACTION_STATE_CHANGED.equals(intent.getAction())) {
660 auto = BluetoothHeadset.PRIORITY_AUTO_CONNECT;
    [all...]
  /frameworks/base/core/java/android/bluetooth/
BluetoothProfileState.java 61 if (action.equals(BluetoothHeadset.ACTION_STATE_CHANGED)) {
62 int newState = intent.getIntExtra(BluetoothHeadset.EXTRA_STATE, 0);
63 if (mProfile == HFP && (newState == BluetoothHeadset.STATE_CONNECTED ||
64 newState == BluetoothHeadset.STATE_DISCONNECTED)) {
90 filter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED);
BluetoothDeviceProfileState.java 99 private BluetoothHeadset mHeadsetService;
121 if (action.equals(BluetoothHeadset.ACTION_STATE_CHANGED)) {
122 int newState = intent.getIntExtra(BluetoothHeadset.EXTRA_STATE, 0);
123 int oldState = intent.getIntExtra(BluetoothHeadset.EXTRA_PREVIOUS_STATE, 0);
125 BluetoothHeadset.EXTRA_DISCONNECT_INITIATOR,
126 BluetoothHeadset.LOCAL_DISCONNECT);
128 if (newState == BluetoothHeadset.STATE_CONNECTED) {
132 if (newState == BluetoothHeadset.STATE_DISCONNECTED &&
133 initiator == BluetoothHeadset.REMOTE_DISCONNECT) {
136 if (newState == BluetoothHeadset.STATE_CONNECTED |
    [all...]
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
48 * immediately call methods on BluetoothHeadset after construction.
54 public final class BluetoothHeadset {
56 private static final String TAG = "BluetoothHeadset";
132 * An interface for notifying BluetoothHeadset IPC clients when they hav
    [all...]
  /development/apps/BluetoothDebug/src/com/android/bluetoothdebug/
DebugReceiver.java 24 import android.bluetooth.BluetoothHeadset;
  /frameworks/base/core/tests/coretests/src/android/bluetooth/
BluetoothTestUtils.java 19 import android.bluetooth.BluetoothHeadset.ServiceListener;
84 * Timeout for {@link BluetoothHeadset#connectHeadset(BluetoothDevice)} in ms.
89 * Timeout for {@link BluetoothHeadset#disconnectHeadset(BluetoothDevice)} in ms.
104 private BluetoothHeadset mHeadset;
220 } else if (BluetoothHeadset.ACTION_STATE_CHANGED.equals(intent.getAction())) {
222 int state = intent.getIntExtra(BluetoothHeadset.EXTRA_STATE,
223 BluetoothHeadset.STATE_ERROR);
224 assertNotSame(state, BluetoothHeadset.STATE_ERROR);
226 case BluetoothHeadset.STATE_DISCONNECTED:
229 case BluetoothHeadset.STATE_CONNECTING
    [all...]
  /packages/apps/VoiceDialer/src/com/android/voicedialer/
BluetoothVoiceDialerActivity.java 22 import android.bluetooth.BluetoothHeadset;
55 * This transitions out on events from TTS and the BluetoothHeadset
161 private BluetoothHeadset mBluetoothHeadset;
214 // Get handle to BluetoothHeadset object
217 audioStateFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED);
227 mBluetoothAudioState = BluetoothHeadset.STATE_ERROR;
229 if (BluetoothHeadset.isBluetoothVoiceDialingEnabled(this)) {
230 // we can't start recognizing until we get connected to the BluetoothHeadset
234 mBluetoothHeadset = new BluetoothHeadset(this,
372 private BluetoothHeadset.ServiceListener mBluetoothHeadsetServiceListener
    [all...]
  /frameworks/base/media/java/android/media/
AudioService.java 30 import android.bluetooth.BluetoothHeadset;
258 // BluetoothHeadset API to control SCO connection
259 private BluetoothHeadset mBluetoothHeadset;
298 mBluetoothHeadset = new BluetoothHeadset(context,
305 intentFilter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED);
307 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED);
    [all...]
  /frameworks/base/services/java/com/android/server/am/
BatteryStatsService.java 19 import android.bluetooth.BluetoothHeadset;
290 BluetoothHeadset headset = new BluetoothHeadset(mContext, null);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
StatusBarPolicy.java 23 import android.bluetooth.BluetoothHeadset;
551 action.equals(BluetoothHeadset.ACTION_STATE_CHANGED) ||
653 mBluetoothHeadsetState = BluetoothHeadset.STATE_DISCONNECTED;
688 filter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED);
    [all...]
  /frameworks/base/core/java/android/server/
BluetoothService.java 31 import android.bluetooth.BluetoothHeadset;
    [all...]
  /frameworks/base/wifi/java/android/net/wifi/
WifiStateTracker.java 30 import android.bluetooth.BluetoothHeadset;
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
BatteryStatsImpl.java 21 import android.bluetooth.BluetoothHeadset;
214 BluetoothHeadset mBtHeadset;
    [all...]

Completed in 1013 milliseconds