HomeSort by relevance Sort by last modified time
    Searched full:bluetoothadapter (Results 1 - 25 of 327) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/bluetooth/src/android/bluetooth/cts/
BasicAdapterTest.java 19 import android.bluetooth.BluetoothAdapter;
31 * BluetoothAdapter}.
54 assertNotNull(BluetoothAdapter.getDefaultAdapter());
56 assertNull(BluetoothAdapter.getDefaultAdapter());
62 assertFalse(BluetoothAdapter.checkBluetoothAddress(null));
65 assertFalse(BluetoothAdapter.checkBluetoothAddress(""));
66 assertFalse(BluetoothAdapter.checkBluetoothAddress("0"));
67 assertFalse(BluetoothAdapter.checkBluetoothAddress("00"));
68 assertFalse(BluetoothAdapter.checkBluetoothAddress("00:"));
69 assertFalse(BluetoothAdapter.checkBluetoothAddress("00:0"))
    [all...]
  /external/chromium_org/device/bluetooth/
bluetooth_adapter.cc 16 base::WeakPtr<BluetoothAdapter> BluetoothAdapter::CreateAdapter(
18 return base::WeakPtr<BluetoothAdapter>();
22 const int BluetoothAdapter::kChannelAuto = 0;
23 const int BluetoothAdapter::kPsmAuto = 0;
25 BluetoothAdapter::BluetoothAdapter()
29 BluetoothAdapter::~BluetoothAdapter() {
33 base::WeakPtr<BluetoothAdapter> BluetoothAdapter::GetWeakPtrForTesting()
    [all...]
bluetooth_adapter_unittest.cc 10 using device::BluetoothAdapter;
15 class TestBluetoothAdapter : public BluetoothAdapter {
20 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE {
23 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE {
126 scoped_refptr<BluetoothAdapter> adapter = new TestBluetoothAdapter();
133 scoped_refptr<BluetoothAdapter> adapter = new TestBluetoothAdapter();
139 BluetoothAdapter::PAIRING_DELEGATE_PRIORITY_LOW);
145 scoped_refptr<BluetoothAdapter> adapter = new TestBluetoothAdapter();
152 BluetoothAdapter::PAIRING_DELEGATE_PRIORITY_LOW);
154 BluetoothAdapter::PAIRING_DELEGATE_PRIORITY_LOW)
    [all...]
bluetooth_adapter_win_unittest.cc 32 class AdapterObserver : public device::BluetoothAdapter::Observer {
42 device::BluetoothAdapter* adapter, bool present) OVERRIDE {
47 device::BluetoothAdapter* adapter, bool powered) OVERRIDE {
52 device::BluetoothAdapter* adapter, bool discovering) OVERRIDE {
57 device::BluetoothAdapter* adapter,
136 const BluetoothAdapter::ErrorCallback& error_callback) {
142 const BluetoothAdapter::ErrorCallback& error_callback) {
149 scoped_refptr<BluetoothAdapter> adapter_;
212 BluetoothAdapter::ErrorCallback());
245 BluetoothAdapter::ErrorCallback())
    [all...]
bluetooth_adapter_factory.cc 27 base::LazyInstance<base::WeakPtr<BluetoothAdapter> >::Leaky default_adapter =
42 scoped_refptr<BluetoothAdapter> adapter(default_adapter.Get().get());
77 BluetoothAdapter::CreateAdapter(base::Bind(&RunAdapterCallbacks));
86 BluetoothAdapter::CreateAdapter(BluetoothAdapter::InitCallback());
93 callback.Run(scoped_refptr<BluetoothAdapter>(default_adapter.Get().get()));
99 scoped_refptr<BluetoothAdapter> adapter) {
bluetooth_adapter_mac.h 35 class BluetoothAdapterMac : public BluetoothAdapter,
38 static base::WeakPtr<BluetoothAdapter> CreateAdapter();
40 // BluetoothAdapter:
41 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE;
42 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE;
82 // BluetoothAdapter:
92 // BluetoothAdapter:
130 ObserverList<BluetoothAdapter::Observer> observers_;
bluetooth_adapter_win.h 31 class BluetoothAdapterWin : public BluetoothAdapter,
34 static base::WeakPtr<BluetoothAdapter> CreateAdapter(
37 // BluetoothAdapter:
38 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE;
39 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE;
90 // BluetoothAdapter:
107 // BluetoothAdapter:
143 ObserverList<BluetoothAdapter::Observer> observers_;
bluetooth_gatt_connection_chromeos.h 18 class BluetoothAdapter;
31 scoped_refptr<device::BluetoothAdapter> adapter,
52 scoped_refptr<device::BluetoothAdapter> adapter_;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
BluetoothToggleActivity.java 24 import android.bluetooth.BluetoothAdapter;
37 * a button that toggles Bluetooth by disabling it via {@link BluetoothAdapter#disable()} and
38 * enabling it via the Intent action {@link BluetoothAdapter#ACTION_REQUEST_ENABLE}.
46 private BluetoothAdapter mBluetoothAdapter;
65 IntentFilter filter = new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED);
71 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
92 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
125 int previousState = intent.getIntExtra(BluetoothAdapter.EXTRA_PREVIOUS_STATE, -1);
126 int newState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1);
129 if (BluetoothAdapter.STATE_OFF == newStat
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowBluetoothAdapter.java 3 import android.bluetooth.BluetoothAdapter;
16 @Implements(BluetoothAdapter.class)
23 public static BluetoothAdapter getDefaultAdapter() {
24 return (BluetoothAdapter) shadowOf(Robolectric.application).getBluetoothAdapter();
  /external/chromium_org/device/bluetooth/test/
mock_bluetooth_adapter.h 17 class MockBluetoothAdapter : public BluetoothAdapter {
19 class Observer : public BluetoothAdapter::Observer {
24 MOCK_METHOD2(AdapterPresentChanged, void(BluetoothAdapter*, bool));
25 MOCK_METHOD2(AdapterPoweredChanged, void(BluetoothAdapter*, bool));
26 MOCK_METHOD2(AdapterDiscoveringChanged, void(BluetoothAdapter*, bool));
27 MOCK_METHOD2(DeviceAdded, void(BluetoothAdapter*, BluetoothDevice*));
28 MOCK_METHOD2(DeviceChanged, void(BluetoothAdapter*, BluetoothDevice*));
29 MOCK_METHOD2(DeviceRemoved, void(BluetoothAdapter*, BluetoothDevice*));
36 MOCK_METHOD1(AddObserver, void(BluetoothAdapter::Observer*));
37 MOCK_METHOD1(RemoveObserver, void(BluetoothAdapter::Observer*))
    [all...]
  /external/chromium_org/chrome/browser/extensions/api/bluetooth/
bluetooth_extension_function.h 14 class BluetoothAdapter;
35 void RunOnAdapterReady(scoped_refptr<device::BluetoothAdapter> adapter);
39 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) = 0;
bluetooth_api.h 24 class BluetoothAdapter;
78 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
89 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
97 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
112 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
127 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
bluetooth_event_router.h 38 class BluetoothEventRouter : public device::BluetoothAdapter::Observer,
56 void StartDiscoverySession(device::BluetoothAdapter* adapter,
66 void StopDiscoverySession(device::BluetoothAdapter* adapter,
89 void SetAdapterForTest(device::BluetoothAdapter* adapter) {
93 // Override from device::BluetoothAdapter::Observer.
94 virtual void AdapterPresentChanged(device::BluetoothAdapter* adapter,
96 virtual void AdapterPoweredChanged(device::BluetoothAdapter* adapter,
98 virtual void AdapterDiscoveringChanged(device::BluetoothAdapter* adapter,
100 virtual void DeviceAdded(device::BluetoothAdapter* adapter,
102 virtual void DeviceChanged(device::BluetoothAdapter* adapter
    [all...]
bluetooth_api_utils.h 22 // Fill in an AdapterState object from a BluetoothAdapter.
23 void PopulateAdapterState(const device::BluetoothAdapter& adapter,
  /frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
BluetoothRebootStressTest.java 54 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
64 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
75 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
88 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
BluetoothStressTest.java 64 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
83 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
106 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
128 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
155 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter()
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
BluetoothPbapReceiver.java 35 import android.bluetooth.BluetoothAdapter;
59 if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) {
60 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);
61 in.putExtra(BluetoothAdapter.EXTRA_STATE, state);
63 if ((state == BluetoothAdapter.STATE_TURNING_ON)
64 || (state == BluetoothAdapter.STATE_OFF)) {
65 //FIX: We turn on PBAP after BluetoothAdapter.STATE_ON,
66 //but we turn off PBAP right after BluetoothAdapter.STATE_TURNING_OFF
71 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter()
    [all...]
  /packages/apps/Settings/tests/src/com/android/settings/tests/
BluetoothRequestPermissionTest.java 20 import android.bluetooth.BluetoothAdapter;
36 BluetoothAdapter mAdapter;
71 mAdapter = BluetoothAdapter.getDefaultAdapter();
93 filter.addAction(BluetoothAdapter.ACTION_DISCOVERY_STARTED);
94 filter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
95 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);
105 i.setAction(BluetoothAdapter.ACTION_REQUEST_ENABLE);
108 i.setAction(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
111 i.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, timeout);
150 if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(action))
    [all...]
  /external/chromium_org/ash/system/chromeos/bluetooth/
bluetooth_notification_controller.h 22 // the BluetoothAdapter, and notifications of changes to the adapter state and
26 : public device::BluetoothAdapter::Observer,
32 // device::BluetoothAdapter::Observer override.
33 virtual void AdapterDiscoverableChanged(device::BluetoothAdapter* adapter,
35 virtual void DeviceAdded(device::BluetoothAdapter* adapter,
37 virtual void DeviceChanged(device::BluetoothAdapter* adapter,
39 virtual void DeviceRemoved(device::BluetoothAdapter* adapter,
58 void OnGetAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
76 // Reference to the underlying BluetoothAdapter object, holding this reference
78 scoped_refptr<device::BluetoothAdapter> adapter_
    [all...]
  /frameworks/base/docs/html/sdk/api_diff/21/changes/
android.bluetooth.BluetoothAdapter.html 10 android.bluetooth.BluetoothAdapter
74 Class android.bluetooth.<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html" target="_top"><font size="+2"><code>BluetoothAdapter</code></font></A>
86 <A NAME="android.bluetooth.BluetoothAdapter.getBluetoothLeAdvertiser_added()"></A>
87 <nobr><code>BluetoothLeAdvertiser</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#getBluetoothLeAdvertiser()" target="_top"><code>getBluetoothLeAdvertiser</code></A>()</nobr>
93 <A NAME="android.bluetooth.BluetoothAdapter.getBluetoothLeScanner_added()"></A>
94 <nobr><code>BluetoothLeScanner</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#getBluetoothLeScanner()" target="_top"><code>getBluetoothLeScanner</code></A>()</nobr>
100 <A NAME="android.bluetooth.BluetoothAdapter.isMultipleAdvertisementSupported_added()"></A>
101 <nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#isMultipleAdvertisementSupported()" target="_top"><code>isMultipleAdvertisementSupported</code></A>()</nobr>
107 <A NAME="android.bluetooth.BluetoothAdapter.isOffloadedFilteringSupported_added()"></A
    [all...]
  /external/chromium_org/chrome/browser/chromeos/power/
peripheral_battery_observer.h 26 public device::BluetoothAdapter::Observer {
41 // device::BluetoothAdapter::Observer implementation.
42 virtual void DeviceChanged(device::BluetoothAdapter* adapter,
44 virtual void DeviceRemoved(device::BluetoothAdapter* adapter,
71 scoped_refptr<device::BluetoothAdapter> adapter);
87 scoped_refptr<device::BluetoothAdapter> bluetooth_adapter_;
  /packages/apps/Settings/src/com/android/settings/bluetooth/
RequestPermissionActivity.java 23 import android.bluetooth.BluetoothAdapter;
82 && BluetoothAdapter.ACTION_STATE_CHANGED.equals(intent.getAction())) {
83 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothDevice.ERROR);
84 if (state == BluetoothAdapter.STATE_ON) {
106 case BluetoothAdapter.STATE_OFF:
107 case BluetoothAdapter.STATE_TURNING_OFF:
108 case BluetoothAdapter.STATE_TURNING_ON:
123 new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED));
131 intent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, mTimeout);
136 case BluetoothAdapter.STATE_ON
    [all...]
BluetoothDiscoveryReceiver.java 19 import android.bluetooth.BluetoothAdapter;
42 if (action.equals(BluetoothAdapter.ACTION_DISCOVERY_STARTED) ||
43 action.equals(BluetoothAdapter.ACTION_DISCOVERY_FINISHED)) {
  /frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsBT/src/com/android/framework/externalsharedpermsbttestapp/
ExternalSharedPermsBTTest.java 18 import android.bluetooth.BluetoothAdapter;
32 BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();

Completed in 2415 milliseconds

1 2 3 4 5 6 7 8 91011>>