/frameworks/base/core/java/android/bluetooth/ |
BluetoothDevice.aidl | 19 parcelable BluetoothDevice;
|
IBluetoothPbap.aidl | 19 import android.bluetooth.BluetoothDevice; 28 BluetoothDevice getClient(); 29 boolean connect(in BluetoothDevice device); 31 boolean isConnected(in BluetoothDevice device);
|
IBluetoothA2dp.aidl | 19 import android.bluetooth.BluetoothDevice; 27 boolean connectSink(in BluetoothDevice device); 28 boolean disconnectSink(in BluetoothDevice device); 29 boolean suspendSink(in BluetoothDevice device); 30 boolean resumeSink(in BluetoothDevice device); 31 BluetoothDevice[] getConnectedSinks(); // change to Set<> once AIDL supports 32 BluetoothDevice[] getNonDisconnectedSinks(); // change to Set<> once AIDL supports 33 int getSinkState(in BluetoothDevice device); 34 boolean setSinkPriority(in BluetoothDevice device, int priority); 35 int getSinkPriority(in BluetoothDevice device) [all...] |
IBluetoothHeadset.aidl | 19 import android.bluetooth.BluetoothDevice; 27 int getState(in BluetoothDevice device); 28 BluetoothDevice getCurrentHeadset(); 29 boolean connectHeadset(in BluetoothDevice device); 30 void disconnectHeadset(in BluetoothDevice device); 31 boolean isConnected(in BluetoothDevice device); 34 boolean setPriority(in BluetoothDevice device, int priority); 35 int getPriority(in BluetoothDevice device); 38 boolean createIncomingConnect(in BluetoothDevice device); 39 boolean acceptIncomingConnect(in BluetoothDevice device) [all...] |
BluetoothA2dp.java | 63 * EXTRA_PREVIOUS_SINK_STATE and BluetoothDevice.EXTRA_DEVICE 119 public boolean connectSink(BluetoothDevice device) { 136 public boolean disconnectSink(BluetoothDevice device) { 153 public boolean suspendSink(BluetoothDevice device) { 169 public boolean resumeSink(BluetoothDevice device) { 183 public boolean isSinkConnected(BluetoothDevice device) { 193 public Set<BluetoothDevice> getConnectedSinks() { 197 new HashSet<BluetoothDevice>(Arrays.asList(mService.getConnectedSinks()))); 209 public Set<BluetoothDevice> getNonDisconnectedSinks() { 213 new HashSet<BluetoothDevice>(Arrays.asList(mService.getNonDisconnectedSinks()))) [all...] |
BluetoothProfileState.java | 52 private BluetoothDevice mPendingDevice; 60 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 73 } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) { 91 filter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED);
|
BluetoothDevice.java | 34 * Represents a remote Bluetooth device. A {@link BluetoothDevice} lets you 42 * BluetoothDevice}. 44 * <p>To get a {@link BluetoothDevice}, use 60 public final class BluetoothDevice implements Parcelable { 61 private static final String TAG = "BluetoothDevice"; 67 * <p><code>Intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, 68 * BluetoothDevice.ERROR)</code> 170 * Used as a Parcelable {@link BluetoothDevice} extra field in every intent 171 * broadcast by this class. It contains the {@link BluetoothDevice} that 349 synchronized (BluetoothDevice.class) [all...] |
BluetoothHeadset.java | 192 public int getState(BluetoothDevice device) { 206 * Get the BluetoothDevice for the current headset. 211 public BluetoothDevice getCurrentHeadset() { 236 public boolean connectHeadset(BluetoothDevice device) { 256 public boolean isConnected(BluetoothDevice device) { 274 public boolean disconnectHeadset(BluetoothDevice device) { 343 public boolean setPriority(BluetoothDevice device, int priority) { 361 public int getPriority(BluetoothDevice device) { 429 public boolean acceptIncomingConnect(BluetoothDevice device) { 446 public boolean createIncomingConnect(BluetoothDevice device) [all...] |
BluetoothSocket.java | 46 * {@link BluetoothDevice#createRfcommSocketToServiceRecord 47 * BluetoothDevice.createRfcommSocketToServiceRecord()}. 87 private final BluetoothDevice mDevice; /* remote device */ 119 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException { 165 this(type, fd, auth, encrypt, new BluetoothDevice(address), port, null); 243 public BluetoothDevice getRemoteDevice() { 345 private final BluetoothDevice device; 348 public SdpHelper(BluetoothDevice device, ParcelUuid uuid) { 349 service = BluetoothDevice.getService();
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothPairingDialog.java | 19 import android.bluetooth.BluetoothDevice; 52 private BluetoothDevice mDevice; 61 if (BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals(intent.getAction())) { 62 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, 63 BluetoothDevice.ERROR); 64 if (bondState == BluetoothDevice.BOND_BONDED || 65 bondState == BluetoothDevice.BOND_NONE) { 68 } else if(BluetoothDevice.ACTION_PAIRING_CANCEL.equals(intent.getAction())) { 69 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE) [all...] |
BluetoothEventRedirector.java | 25 import android.bluetooth.BluetoothDevice; 50 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 64 } else if (action.equals(BluetoothDevice.ACTION_FOUND)) { 65 short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE); 66 BluetoothClass btClass = intent.getParcelableExtra(BluetoothDevice.EXTRA_CLASS); 67 String name = intent.getStringExtra(BluetoothDevice.EXTRA_NAME); 72 } else if (action.equals(BluetoothDevice.ACTION_DISAPPEARED)) { 75 } else if (action.equals(BluetoothDevice.ACTION_NAME_CHANGED)) { 78 } else if (action.equals(BluetoothDevice.ACTION_BOND_STATE_CHANGED)) [all...] |
LocalBluetoothProfileManager.java | 22 import android.bluetooth.BluetoothDevice; 170 public abstract Set<BluetoothDevice> getConnectedDevices(); 172 public abstract boolean connect(BluetoothDevice device); 174 public abstract boolean disconnect(BluetoothDevice device); 176 public abstract int getConnectionStatus(BluetoothDevice device); 178 public abstract int getSummary(BluetoothDevice device); 182 public abstract boolean isPreferred(BluetoothDevice device); 184 public abstract int getPreferred(BluetoothDevice device); 186 public abstract void setPreferred(BluetoothDevice device, boolean preferred); 188 public boolean isConnected(BluetoothDevice device) [all...] |
BluetoothPairingRequest.java | 24 import android.bluetooth.BluetoothDevice; 45 if (action.equals(BluetoothDevice.ACTION_PAIRING_REQUEST)) { 49 BluetoothDevice device = 50 intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 51 int type = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT, 52 BluetoothDevice.ERROR); 55 pairingIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); 56 pairingIntent.putExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT, type); 57 if (type == BluetoothDevice.PAIRING_VARIANT_PASSKEY_CONFIRMATION || 58 type == BluetoothDevice.PAIRING_VARIANT_DISPLAY_PASSKEY) [all...] |
SettingsBtStatus.java | 19 import android.bluetooth.BluetoothDevice; 71 case BluetoothDevice.BOND_BONDED: 73 case BluetoothDevice.BOND_BONDING: 75 case BluetoothDevice.BOND_NONE:
|
CachedBluetoothDeviceManager.java | 21 import android.bluetooth.BluetoothDevice; 50 Set<BluetoothDevice> bondedDevices = adapter.getBondedDevices(); 54 for (BluetoothDevice device : bondedDevices) { 77 public synchronized void onDeviceAppeared(BluetoothDevice device, short rssi, 97 public synchronized void onDeviceDisappeared(BluetoothDevice device) { 106 if (cachedDevice.getBondState() == BluetoothDevice.BOND_NONE && 114 public synchronized void onDeviceNameUpdated(BluetoothDevice device) { 121 public synchronized CachedBluetoothDevice findDevice(BluetoothDevice device) { 140 public String getName(BluetoothDevice device) { 168 public synchronized void onBondingStateChanged(BluetoothDevice device, int bondState) [all...] |
BluetoothSettings.java | 24 import android.bluetooth.BluetoothDevice; 70 private BluetoothDevice mSelectedDevice= null; 91 } else if (intent.getAction().equals(BluetoothDevice.ACTION_BOND_STATE_CHANGED) 94 .getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.ERROR); 95 if (bondState == BluetoothDevice.BOND_BONDED) { 96 BluetoothDevice device = intent 97 .getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 181 intentFilter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); 235 if ((device.getBondState() == BluetoothDevice.BOND_BONDED) | [all...] |
CachedBluetoothDevice.java | 22 import android.bluetooth.BluetoothDevice; 59 private final BluetoothDevice mDevice; 128 CachedBluetoothDevice(Context context, BluetoothDevice device) { 145 } else if (bondState == BluetoothDevice.BOND_BONDED) { 147 } else if (bondState == BluetoothDevice.BOND_NONE) { 281 Set<BluetoothDevice> devices = profileManager.getConnectedDevices(); 283 for (BluetoothDevice btDevice : devices) { 318 if (getBondState() == BluetoothDevice.BOND_NONE) { 348 if (state == BluetoothDevice.BOND_BONDING) { 352 if (state != BluetoothDevice.BOND_NONE) [all...] |
DockService.java | 28 import android.bluetooth.BluetoothDevice; 112 private BluetoothDevice mDevice; 121 private BluetoothDevice mPendingDevice; 182 BluetoothDevice disconnectedDevice = intent 183 .getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 192 BluetoothDevice disconnectedDevice = intent 193 .getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 238 BluetoothDevice device = null; 240 device = (BluetoothDevice) msg.obj; 288 final BluetoothDevice d = device [all...] |
/frameworks/base/core/java/android/server/ |
BluetoothEventLoop.java | 22 import android.bluetooth.BluetoothDevice; 83 String[] devices = mBluetoothService.listInState(BluetoothDevice.BOND_BONDING); 92 BluetoothDevice.BOND_NONE, 93 BluetoothDevice.UNBOND_REASON_REMOTE_AUTH_CANCELED); 156 Intent intent = new Intent(BluetoothDevice.ACTION_FOUND); 157 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mAdapter.getRemoteDevice(address)); 158 intent.putExtra(BluetoothDevice.EXTRA_CLASS, 160 intent.putExtra(BluetoothDevice.EXTRA_RSSI, rssiValue); 161 intent.putExtra(BluetoothDevice.EXTRA_NAME, name); 178 Intent intent = new Intent(BluetoothDevice.ACTION_DISAPPEARED) [all...] |
BluetoothA2dpService.java | 27 import android.bluetooth.BluetoothDevice; 69 private HashMap<BluetoothDevice, Integer> mAudioDevices; 79 BluetoothDevice device = 80 intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 92 } else if (action.equals(BluetoothDevice.ACTION_BOND_STATE_CHANGED)) { 93 int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, 94 BluetoothDevice.ERROR); 96 case BluetoothDevice.BOND_BONDED: 101 case BluetoothDevice.BOND_NONE: 105 } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) [all...] |
/packages/apps/Phone/src/com/android/phone/ |
BluetoothHeadsetService.java | 23 import android.bluetooth.BluetoothDevice; 69 private BluetoothDevice mDeviceSdpQuery; 75 private HashMap<BluetoothDevice, BluetoothRemoteHeadset> mRemoteHeadsets; 85 BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED); 87 filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); 89 filter.addAction(BluetoothDevice.ACTION_UUID); 97 mRemoteHeadsets = new HashMap<BluetoothDevice, BluetoothRemoteHeadset>(); 121 synchronized private BluetoothDevice getCurrentDevice() { 122 for (BluetoothDevice device : mRemoteHeadsets.keySet()) { 181 BluetoothDevice device = getCurrentDevice() [all...] |
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/ |
DeviceListActivity.java | 23 import android.bluetooth.BluetoothDevice; 95 IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND); 106 Set<BluetoothDevice> pairedDevices = mBtAdapter.getBondedDevices(); 111 for (BluetoothDevice device : pairedDevices) { 183 if (BluetoothDevice.ACTION_FOUND.equals(action)) { 184 // Get the BluetoothDevice object from the Intent 185 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 187 if (device.getBondState() != BluetoothDevice.BOND_BONDED) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppPreference.java | 37 import android.bluetooth.BluetoothDevice; 99 private String getChannelKey(BluetoothDevice remoteDevice, int uuid) { 103 public String getName(BluetoothDevice remoteDevice) { 116 public int getChannel(BluetoothDevice remoteDevice, int uuid) { 128 public void setName(BluetoothDevice remoteDevice, String name) { 138 public void setChannel(BluetoothDevice remoteDevice, int uuid, int channel) { 150 public void removeChannel(BluetoothDevice remoteDevice, int uuid) {
|
/frameworks/base/core/tests/coretests/src/android/bluetooth/ |
BluetoothTestUtils.java | 64 * Timeout for {@link BluetoothDevice#createBond()} in ms. 69 * Timeout for {@link BluetoothDevice#removeBond()} in ms. 74 * Timeout for {@link BluetoothA2dp#connectSink(BluetoothDevice)} in ms. 79 * Timeout for {@link BluetoothA2dp#disconnectSink(BluetoothDevice)} in ms. 84 * Timeout for {@link BluetoothHeadset#connectHeadset(BluetoothDevice)} in ms. 89 * Timeout for {@link BluetoothHeadset#disconnectHeadset(BluetoothDevice)} in ms. 278 private BluetoothDevice mDevice; 282 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin) { 292 if (BluetoothDevice.ACTION_PAIRING_REQUEST.equals(intent.getAction()) 294 BluetoothDevice.EXTRA_DEVICE))) [all...] |
/packages/apps/Settings/tests/src/com/android/settings/tests/ |
BluetoothRequestPermissionTest.java | 21 import android.bluetooth.BluetoothDevice; 93 filter.addAction(BluetoothDevice.ACTION_FOUND); 146 switch (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothDevice.ERROR)) { 161 } else if (action.equals(BluetoothDevice.ACTION_FOUND)) { 162 String name = intent.getStringExtra(BluetoothDevice.EXTRA_NAME);
|