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

1 2 3 4 5 6 7 8 910

  /external/chromium_org/device/bluetooth/
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_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...]
bluetooth_adapter_mac.h 43 class BluetoothAdapterMac : public BluetoothAdapter {
45 // BluetoothAdapter override
46 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE;
47 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE;
130 ObserverList<BluetoothAdapter::Observer> observers_;
bluetooth_adapter_win.h 32 class BluetoothAdapterWin : public BluetoothAdapter,
37 // BluetoothAdapter override
38 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE;
39 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE;
115 ObserverList<BluetoothAdapter::Observer> observers_;
  /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/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...]
  /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/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,
  /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/src/com/android/settings/bluetooth/
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...]
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)) {
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/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
PhoneStatusBarPolicy.java 20 import android.bluetooth.BluetoothAdapter;
89 else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED) ||
90 action.equals(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED)) {
114 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);
115 filter.addAction(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED);
129 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
132 mBluetoothEnabled = (adapter.getState() == BluetoothAdapter.STATE_ON);
133 if (adapter.getConnectionState() == BluetoothAdapter.STATE_CONNECTED) {
220 if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED))
    [all...]
  /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();
  /frameworks/base/docs/html/sdk/api_diff/11/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.closeProfileProxy_added(int, android.bluetooth.BluetoothProfile)"></A>
87 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#closeProfileProxy(int, android.bluetooth.BluetoothProfile)" target="_top"><code>closeProfileProxy</code></A>(<code>int,</nobr> BluetoothProfile<nobr><nobr></code>)</nobr>
93 <A NAME="android.bluetooth.BluetoothAdapter.getProfileProxy_added(android.content.Context, android.bluetooth.BluetoothProfile.ServiceListener, int)"></A>
94 <nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#getProfileProxy(android.content.Context, android.bluetooth.BluetoothProfile.ServiceListener, int)" target="_top"><code>getProfileProxy</code></A>(<code>Context,</nobr> ServiceListener<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
109 <A NAME="android.bluetooth.BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED"></A>
110 <nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#ACTION_CONNECTION_STATE_CHANGED" target="_top"><code>ACTION_CONNECTION_STATE_CHANGED</code></A></nobr>
116 <A NAME="android.bluetooth.BluetoothAdapter.EXTRA_CONNECTION_STATE"></A
    [all...]
  /frameworks/base/docs/html/sdk/api_diff/18/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.startLeScan_added(android.bluetooth.BluetoothAdapter.LeScanCallback)"></A>
87 <nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#startLeScan(android.bluetooth.BluetoothAdapter.LeScanCallback)" target="_top"><code>startLeScan</code></A>(<code>LeScanCallback</code>)</nobr>
93 <A NAME="android.bluetooth.BluetoothAdapter.startLeScan_added(java.util.UUID[], android.bluetooth.BluetoothAdapter.LeScanCallback)"></A>
94 <nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#startLeScan(java.util.UUID[], android.bluetooth.BluetoothAdapter.LeScanCallback)" target="_to (…)
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
ProfileService.java 24 import android.bluetooth.BluetoothAdapter;
51 protected BluetoothAdapter mAdapter;
106 mAdapter = BluetoothAdapter.getDefaultAdapter();
129 int state= intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);
130 if(state==BluetoothAdapter.STATE_OFF) {
133 } else if (state == BluetoothAdapter.STATE_ON) {
173 Log.e(mName, "Error starting profile. BluetoothAdapter is null");
178 notifyProfileServiceStateChanged(BluetoothAdapter.STATE_ON);
180 Log.e(mName, "Error starting profile. BluetoothAdapter is null")
    [all...]

Completed in 1163 milliseconds

1 2 3 4 5 6 7 8 910