/frameworks/base/core/java/android/server/ |
BluetoothA2dpService.java | 26 import android.bluetooth.BluetoothAdapter; 74 private final BluetoothAdapter mAdapter; 83 if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { 84 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, 85 BluetoothAdapter.ERROR); 87 case BluetoothAdapter.STATE_ON: 90 case BluetoothAdapter.STATE_TURNING_OFF: 176 mAdapter = BluetoothAdapter.getDefaultAdapter(); 178 mIntentFilter = new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED); 452 if (!BluetoothAdapter.checkBluetoothAddress(device.getAddress())) [all...] |
BluetoothEventLoop.java | 20 import android.bluetooth.BluetoothAdapter; 52 private final BluetoothAdapter mAdapter; 118 /* pacakge */ BluetoothEventLoop(Context context, BluetoothAdapter adapter, 292 Intent intent = new Intent(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED); 293 intent.putExtra(BluetoothAdapter.EXTRA_LOCAL_NAME, propValues[1]); 310 Intent intent = new Intent(BluetoothAdapter.ACTION_SCAN_MODE_CHANGED); 311 intent.putExtra(BluetoothAdapter.EXTRA_SCAN_MODE, mode); 320 intent = new Intent(BluetoothAdapter.ACTION_DISCOVERY_STARTED); 325 intent = new Intent(BluetoothAdapter.ACTION_DISCOVERY_FINISHED); 430 if (mBluetoothService.getBluetoothState() == BluetoothAdapter.STATE_TURNING_OFF) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppReceiver.java | 38 import android.bluetooth.BluetoothAdapter; 67 } else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { 68 if (BluetoothAdapter.STATE_ON == intent.getIntExtra( 69 BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR)) {
|
BluetoothOppTransferHistory.java | 39 import android.bluetooth.BluetoothAdapter; 284 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
|
BluetoothOppManager.java | 37 import android.bluetooth.BluetoothAdapter; 70 private BluetoothAdapter mAdapter; 132 mAdapter = BluetoothAdapter.getDefaultAdapter();
|
BluetoothOppService.java | 39 import android.bluetooth.BluetoothAdapter; 121 private BluetoothAdapter mAdapter; 151 mAdapter = BluetoothAdapter.getDefaultAdapter(); 165 IntentFilter filter = new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED); 338 if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { 339 switch (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR)) { 340 case BluetoothAdapter.STATE_ON: 345 case BluetoothAdapter.STATE_TURNING_OFF: [all...] |
BluetoothOppUtility.java | 39 import android.bluetooth.BluetoothAdapter; 64 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
|
BluetoothOppTransfer.java | 38 import android.bluetooth.BluetoothAdapter; 89 private BluetoothAdapter mAdapter; 119 mAdapter = BluetoothAdapter.getDefaultAdapter();
|
BluetoothOppTransferActivity.java | 37 import android.bluetooth.BluetoothAdapter; 92 private BluetoothAdapter mAdapter; 163 mAdapter = BluetoothAdapter.getDefaultAdapter();
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothSettings.java | 22 import android.bluetooth.BluetoothAdapter; 89 if (intent.getAction().equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { 180 intentFilter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); 350 if (bluetoothState == BluetoothAdapter.STATE_ON) { 352 } else if (bluetoothState == BluetoothAdapter.STATE_OFF) {
|
DockService.java | 26 import android.bluetooth.BluetoothAdapter; 168 if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(intent.getAction())) { 533 int btState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); 536 if (btState == BluetoothAdapter.STATE_ON) { 579 } else if (btState == BluetoothAdapter.STATE_TURNING_OFF) { 586 } else if (btState == BluetoothAdapter.STATE_OFF) { 672 case BluetoothAdapter.STATE_OFF: 673 case BluetoothAdapter.STATE_TURNING_OFF: 674 case BluetoothAdapter.STATE_TURNING_ON [all...] |
CachedBluetoothDeviceManager.java | 19 import android.bluetooth.BluetoothAdapter; 49 BluetoothAdapter adapter = mLocalManager.getBluetoothAdapter();
|
CachedBluetoothDevice.java | 20 import android.bluetooth.BluetoothAdapter; 507 BluetoothAdapter adapter = mLocalManager.getBluetoothAdapter(); 866 if (mLocalManager.getBluetoothState() != BluetoothAdapter.STATE_ON || isBusy()) { [all...] |
/frameworks/base/services/java/com/android/server/ |
DockObserver.java | 19 import android.bluetooth.BluetoothAdapter; 152 BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address));
|
SystemServer.java | 28 import android.bluetooth.BluetoothAdapter; 184 ServiceManager.addService(BluetoothAdapter.BLUETOOTH_SERVICE, null); 187 ServiceManager.addService(BluetoothAdapter.BLUETOOTH_SERVICE, null); 191 ServiceManager.addService(BluetoothAdapter.BLUETOOTH_SERVICE, bluetooth);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
BluetoothPbapService.java | 44 import android.bluetooth.BluetoothAdapter; 167 private BluetoothAdapter mAdapter; 207 mAdapter = BluetoothAdapter.getDefaultAdapter(); 214 if (state == BluetoothAdapter.STATE_ON) { 248 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); 250 if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { 252 if (state == BluetoothAdapter.STATE_OFF) {
|
/packages/apps/Settings/src/com/android/settings/ |
WirelessSettings.java | 19 import android.bluetooth.BluetoothAdapter; 117 if (ServiceManager.getService(BluetoothAdapter.BLUETOOTH_SERVICE) == null) {
|
/packages/apps/Settings/src/com/android/settings/widget/ |
SettingsAppWidgetProvider.java | 22 import android.bluetooth.BluetoothAdapter; 344 if (!BluetoothAdapter.ACTION_STATE_CHANGED.equals(intent.getAction())) { 347 int bluetoothState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); 352 * Converts BluetoothAdapter's state values into our 357 case BluetoothAdapter.STATE_OFF: 359 case BluetoothAdapter.STATE_ON: 361 case BluetoothAdapter.STATE_TURNING_ON: 363 case BluetoothAdapter.STATE_TURNING_OFF: 570 } else if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(intent.getAction())) {
|
/frameworks/base/core/java/com/android/internal/app/ |
ShutdownThread.java | 24 import android.bluetooth.BluetoothAdapter; 232 BluetoothAdapter.BLUETOOTH_SERVICE)); 240 bluetooth.getBluetoothState() == BluetoothAdapter.STATE_OFF; 268 bluetooth.getBluetoothState() == BluetoothAdapter.STATE_OFF;
|
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/ |
BluetoothChatService.java | 24 import android.bluetooth.BluetoothAdapter; 52 private final BluetoothAdapter mAdapter; 71 mAdapter = BluetoothAdapter.getDefaultAdapter();
|
/packages/apps/Phone/src/com/android/phone/ |
BluetoothHeadsetService.java | 21 import android.bluetooth.BluetoothAdapter; 71 private BluetoothAdapter mAdapter; 94 mAdapter = BluetoothAdapter.getDefaultAdapter(); 106 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); 246 } else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { 247 switch (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, 248 BluetoothAdapter.ERROR)) { 249 case BluetoothAdapter.STATE_ON: 255 case BluetoothAdapter.STATE_TURNING_OFF: [all...] |
PhoneApp.java | 24 import android.bluetooth.BluetoothAdapter; 412 if (BluetoothAdapter.getDefaultAdapter() != null) { [all...] |
/frameworks/base/core/java/android/bluetooth/ |
BluetoothDevice.java | 41 * {@link BluetoothAdapter} that was used to create this {@link 45 * {@link BluetoothAdapter#getRemoteDevice(String) 46 * BluetoothAdapter.getRemoteDevice(String)} to create one representing a device 48 * {@link BluetoothAdapter}) or get one from the set of bonded devices 49 * returned by {@link BluetoothAdapter#getBondedDevices() 50 * BluetoothAdapter.getBondedDevices()}. You can then open a 57 * {@see BluetoothAdapter} 349 IBinder b = ServiceManager.getService(BluetoothAdapter.BLUETOOTH_SERVICE); 370 if (!BluetoothAdapter.checkBluetoothAddress(address)) { 660 * BluetoothAdapter#listenUsingRfcommWithServiceRecord} for peer-pee [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
Status.java | 19 import android.bluetooth.BluetoothAdapter; 387 BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter();
|
/frameworks/base/services/java/com/android/server/status/ |
StatusBarPolicy.java | 21 import android.bluetooth.BluetoothAdapter; 382 else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED) || 475 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 531 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); [all...] |