HomeSort by relevance Sort by last modified time
    Searched refs:BluetoothAdapter (Results 1 - 25 of 154) sorted by null

1 2 3 4 5 6 7

  /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.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.h 21 typedef base::Callback<void(scoped_refptr<BluetoothAdapter> adapter)>
37 static scoped_refptr<BluetoothAdapter> MaybeGetAdapter();
bluetooth_adapter.cc 12 BluetoothAdapter::BluetoothAdapter() {
15 BluetoothAdapter::~BluetoothAdapter() {
19 BluetoothAdapter::DeviceList BluetoothAdapter::GetDevices() {
21 const_cast<const BluetoothAdapter *>(this)->GetDevices();
31 BluetoothAdapter::ConstDeviceList BluetoothAdapter::GetDevices() const {
41 BluetoothDevice* BluetoothAdapter::GetDevice(const std::string& address)
    [all...]
bluetooth_adapter_factory.cc 26 using device::BluetoothAdapter;
33 base::LazyInstance<base::WeakPtr<device::BluetoothAdapter> >::Leaky
47 scoped_refptr<BluetoothAdapter> adapter(default_adapter.Get().get());
93 callback.Run(scoped_refptr<BluetoothAdapter>(default_adapter.Get().get()));
100 scoped_refptr<BluetoothAdapter> BluetoothAdapterFactory::MaybeGetAdapter() {
101 return scoped_refptr<BluetoothAdapter>(default_adapter.Get().get());
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,
137 scoped_refptr<BluetoothAdapter> adapter_;
200 BluetoothAdapter::ErrorCallback());
233 BluetoothAdapter::ErrorCallback());
266 BluetoothAdapter::ErrorCallback());
279 BluetoothAdapter::ErrorCallback())
    [all...]
  /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();
  /external/chromium_org/chrome/browser/extensions/api/bluetooth/
bluetooth_extension_function.h 14 class BluetoothAdapter;
36 void RunOnAdapterReady(scoped_refptr<device::BluetoothAdapter> adapter);
40 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) = 0;
bluetooth_api_utils.h 22 // Fill in an AdapterState object from a BluetoothAdapter.
23 void PopulateAdapterState(const device::BluetoothAdapter& adapter,
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_;
  /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();
  /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*));
34 MOCK_METHOD1(AddObserver, void(BluetoothAdapter::Observer*));
35 MOCK_METHOD1(RemoveObserver, void(BluetoothAdapter::Observer*))
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
BluetoothController.java 19 import android.bluetooth.BluetoothAdapter;
20 import android.bluetooth.BluetoothAdapter.BluetoothStateChangeCallback;
44 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);
45 filter.addAction(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED);
49 final BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
69 if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) {
71 intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR));
80 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/src/com/android/settings/bluetooth/
BluetoothDiscoveryReceiver.java 19 import android.bluetooth.BluetoothAdapter;
42 if (action.equals(BluetoothAdapter.ACTION_DISCOVERY_STARTED) ||
43 action.equals(BluetoothAdapter.ACTION_DISCOVERY_FINISHED)) {
BluetoothEnabler.java 19 import android.bluetooth.BluetoothAdapter;
49 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);
67 mIntentFilter = new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED);
100 int bluetoothState = BluetoothAdapter.STATE_OFF;
102 boolean isOn = bluetoothState == BluetoothAdapter.STATE_ON;
103 boolean isOff = bluetoothState == BluetoothAdapter.STATE_OFF;
125 case BluetoothAdapter.STATE_TURNING_ON:
128 case BluetoothAdapter.STATE_ON:
132 case BluetoothAdapter.STATE_TURNING_OFF
    [all...]
LocalBluetoothAdapter.java 19 import android.bluetooth.BluetoothAdapter;
30 * and the functionality of the local {@link BluetoothAdapter}, specifically
40 /** This class does not allow direct access to the BluetoothAdapter. */
41 private final BluetoothAdapter mAdapter;
47 private int mState = BluetoothAdapter.ERROR;
53 private LocalBluetoothAdapter(BluetoothAdapter adapter) {
69 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
78 // Pass-through BluetoothAdapter methods that we can intercept if necessary
179 if (state == BluetoothAdapter.STATE_ON)
    [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/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();
  /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/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_;
  /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();
  /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...]
  /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:

Completed in 252 milliseconds

1 2 3 4 5 6 7