/external/chromium_org/device/bluetooth/ |
bluetooth_adapter.h | 21 // BluetoothAdapter represents a local Bluetooth adapter which may be used to 27 class BluetoothAdapter : public base::RefCounted<BluetoothAdapter> { 37 virtual void AdapterPresentChanged(BluetoothAdapter* adapter, 43 virtual void AdapterPoweredChanged(BluetoothAdapter* adapter, 49 virtual void AdapterDiscoveringChanged(BluetoothAdapter* adapter, 55 virtual void DeviceAdded(BluetoothAdapter* adapter, 61 virtual void DeviceChanged(BluetoothAdapter* adapter, 67 virtual void DeviceRemoved(BluetoothAdapter* adapter, 83 virtual void AddObserver(BluetoothAdapter::Observer* observer) = 0 [all...] |
bluetooth_adapter_factory.cc | 26 using device::BluetoothAdapter; 33 base::LazyInstance<base::WeakPtr<device::BluetoothAdapter> >::Leaky 48 scoped_refptr<BluetoothAdapter> adapter(default_adapter.Get().get()); 95 callback.Run(scoped_refptr<BluetoothAdapter>(default_adapter.Get().get())); 102 scoped_refptr<BluetoothAdapter> BluetoothAdapterFactory::MaybeGetAdapter() { 103 return scoped_refptr<BluetoothAdapter>(default_adapter.Get().get());
|
bluetooth_adapter_factory.h | 21 typedef base::Callback<void(scoped_refptr<BluetoothAdapter> adapter)> 37 static scoped_refptr<BluetoothAdapter> MaybeGetAdapter();
|
bluetooth_adapter_win.cc | 22 : BluetoothAdapter(), 38 void BluetoothAdapterWin::AddObserver(BluetoothAdapter::Observer* observer) { 43 void BluetoothAdapterWin::RemoveObserver(BluetoothAdapter::Observer* observer) { 123 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 148 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 169 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 174 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 193 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
|
bluetooth_adapter_chromeos.h | 28 // The BluetoothAdapterChromeOS class implements BluetoothAdapter for the 31 : public device::BluetoothAdapter, 36 // BluetoothAdapter override 38 device::BluetoothAdapter::Observer* observer) OVERRIDE; 40 device::BluetoothAdapter::Observer* observer) OVERRIDE; 58 const device::BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& 137 ObserverList<device::BluetoothAdapter::Observer> observers_;
|
bluetooth_adapter_chromeos.cc | 20 using device::BluetoothAdapter; 47 BluetoothAdapter::Observer* observer) { 53 BluetoothAdapter::Observer* observer) { 158 const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& callback, 206 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 219 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 324 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 374 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 383 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, 389 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_ [all...] |
bluetooth_adapter_mac_unittest.mm | 24 scoped_refptr<BluetoothAdapter> adapter_;
|
/external/chromium_org/chrome/browser/extensions/api/bluetooth/ |
bluetooth_api.h | 21 class BluetoothAdapter; 98 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 110 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 123 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 140 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 157 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 225 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 242 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 254 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 269 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE [all...] |
bluetooth_event_router.h | 30 : public device::BluetoothAdapter::Observer { 98 // Override from device::BluetoothAdapter::Observer 99 virtual void AdapterPresentChanged(device::BluetoothAdapter* adapter, 101 virtual void AdapterPoweredChanged(device::BluetoothAdapter* adapter, 103 virtual void AdapterDiscoveringChanged(device::BluetoothAdapter* adapter, 105 virtual void DeviceAdded(device::BluetoothAdapter* adapter, 109 void SetAdapterForTest(device::BluetoothAdapter* adapter) { 114 void InitializeAdapter(scoped_refptr<device::BluetoothAdapter> adapter); 122 scoped_refptr<device::BluetoothAdapter> adapter_;
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothDiscoverableEnabler.java | 19 import android.bluetooth.BluetoothAdapter; 79 if (BluetoothAdapter.ACTION_SCAN_MODE_CHANGED.equals(intent.getAction())) { 80 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE, 81 BluetoothAdapter.ERROR); 82 if (mode != BluetoothAdapter.ERROR) { 110 IntentFilter filter = new IntentFilter(BluetoothAdapter.ACTION_SCAN_MODE_CHANGED); 139 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); 148 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); 252 if (mode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { 271 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) [all...] |
BluetoothNameDialogFragment.java | 22 import android.bluetooth.BluetoothAdapter; 72 if (action.equals(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED)) { 74 } else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED) && 75 (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR) == 76 BluetoothAdapter.STATE_ON)) { 165 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); 166 filter.addAction(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED);
|
RequestPermissionHelperActivity.java | 24 import android.bluetooth.BluetoothAdapter; 107 } while (btState == BluetoothAdapter.STATE_TURNING_OFF && --retryCount > 0); 112 if (btState == BluetoothAdapter.STATE_TURNING_ON 113 || btState == BluetoothAdapter.STATE_ON 142 mTimeout = intent.getIntExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,
|
BluetoothDiscoverableTimeoutReceiver.java | 23 import android.bluetooth.BluetoothAdapter; 79 localBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { 82 localBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE);
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
BluetoothTestUtils.java | 105 if (BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals(intent.getAction())) { 107 } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(intent.getAction())) { 109 } else if (BluetoothAdapter.ACTION_SCAN_MODE_CHANGED.equals(intent.getAction())) { 110 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE, -1); 113 case BluetoothAdapter.SCAN_MODE_NONE: 116 case BluetoothAdapter.SCAN_MODE_CONNECTABLE: 119 case BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE: 123 } else if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(intent.getAction())) { 124 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); 127 case BluetoothAdapter.STATE_OFF [all...] |
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/ |
ExternalSharedPermsTest.java | 18 import android.bluetooth.BluetoothAdapter; 48 BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/ |
ExternalSharedPermsDiffKeyTest.java | 18 import android.bluetooth.BluetoothAdapter; 46 BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
|
/frameworks/base/services/java/com/android/server/ |
BluetoothManagerService.java | 20 import android.bluetooth.BluetoothAdapter; 150 if (BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED.equals(action)) { 151 String newName = intent.getStringExtra(BluetoothAdapter.EXTRA_LOCAL_NAME); 202 mState = BluetoothAdapter.STATE_OFF; 212 filter.addAction(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED); 493 * Inform BluetoothAdapter instances that Adapter service is up 511 * Inform BluetoothAdapter instances that Adapter service is down [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
AdapterProperties.java | 19 import android.bluetooth.BluetoothAdapter; 53 private int mConnectionState = BluetoothAdapter.STATE_DISCONNECTED; 54 private int mState = BluetoothAdapter.STATE_OFF; 59 private BluetoothAdapter mAdapter; 68 mAdapter = BluetoothAdapter.getDefaultAdapter(); 308 Intent intent = new Intent(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED); 310 intent.putExtra(BluetoothAdapter.EXTRA_CONNECTION_STATE, 312 intent.putExtra(BluetoothAdapter.EXTRA_PREVIOUS_CONNECTION_STATE, 334 return BluetoothAdapter.STATE_DISCONNECTED; 336 return BluetoothAdapter.STATE_DISCONNECTING [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
DevicePickerActivity.java | 23 import android.bluetooth.BluetoothAdapter; 54 private BluetoothAdapter mBluetoothAdapter; 87 IntentFilter filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_STARTED); 88 filter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED); 100 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); 104 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); 183 if (BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals(intent.getAction())) { 186 } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(intent.getAction())) {
|
ConnectionAccessServerActivity.java | 23 import android.bluetooth.BluetoothAdapter; 47 private BluetoothAdapter mBluetoothAdapter; 82 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); 86 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); 115 BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { 116 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); 117 intent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 30);
|
ConnectionAccessClientActivity.java | 22 import android.bluetooth.BluetoothAdapter; 41 private BluetoothAdapter mBluetoothAdapter; 72 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); 85 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppBtEnablingActivity.java | 39 import android.bluetooth.BluetoothAdapter; 73 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 79 IntentFilter filter = new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED); 139 if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { 140 switch (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR)) { 141 case BluetoothAdapter.STATE_ON:
|
/packages/apps/Settings/src/com/android/settings/ |
TetherSettings.java | 25 import android.bluetooth.BluetoothAdapter; 119 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 237 } else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { 240 .getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR)) { 241 case BluetoothAdapter.STATE_ON: 249 case BluetoothAdapter.STATE_OFF: 250 case BluetoothAdapter.ERROR: 285 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED) [all...] |
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/ |
DeviceListActivity.java | 22 import android.bluetooth.BluetoothAdapter; 55 private BluetoothAdapter mBtAdapter; 99 filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED); 103 mBtAdapter = BluetoothAdapter.getDefaultAdapter(); 134 * Start device discover with the BluetoothAdapter 151 // Request discover from BluetoothAdapter 191 } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
|
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/ |
bluetooth_options_handler.h | 28 public device::BluetoothAdapter::Observer, 41 void InitializeAdapter(scoped_refptr<device::BluetoothAdapter> adapter); 141 // device::BluetoothAdapter::Observer implementation. 142 virtual void AdapterPresentChanged(device::BluetoothAdapter* adapter, 144 virtual void AdapterPoweredChanged(device::BluetoothAdapter* adapter, 146 virtual void DeviceAdded(device::BluetoothAdapter* adapter, 148 virtual void DeviceChanged(device::BluetoothAdapter* adapter, 150 virtual void DeviceRemoved(device::BluetoothAdapter* adapter, 157 // Called by device::BluetoothAdapter in response to a failure to 161 // Called by device::BluetoothAdapter in response to a failure t [all...] |