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

12 3 4 5 6 7 8 91011>>

  /packages/apps/Settings/src/com/android/settings/bluetooth/
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...]
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) {
113 IntentFilter filter = new IntentFilter(BluetoothAdapter.ACTION_SCAN_MODE_CHANGED);
142 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout);
154 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE);
258 if (mode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {
277 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE)
    [all...]
BluetoothEnabler.java 19 import android.bluetooth.BluetoothAdapter;
70 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);
89 mIntentFilter = new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED);
130 case BluetoothAdapter.STATE_TURNING_ON:
133 case BluetoothAdapter.STATE_ON:
138 case BluetoothAdapter.STATE_TURNING_OFF:
141 case BluetoothAdapter.STATE_OFF:
  /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/preview-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.isMultipleAdvertisementSupported_added()"></A>
87 <nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#isMultipleAdvertisementSupported()" target="_top"><code>isMultipleAdvertisementSupported</code></A>()</nobr>
93 <A NAME="android.bluetooth.BluetoothAdapter.isOffloadedFilteringSupported_added()"></A>
94 <nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#isOffloadedFilteringSupported()" target="_top"><code>isOffloadedFilteringSupported</code></A>()</nobr>
100 <A NAME="android.bluetooth.BluetoothAdapter.isOffloadedScanBatchingSupported_added()"></A>
101 <nobr><code>boolean</code>&nbsp;<A HREF="../../../../reference/android/bluetooth/BluetoothAdapter.html#isOffloadedScanBatchingSupported()" target="_top"><code>isOffloadedScanBatchingSupported</code></A>()</nobr>
115 <A NAME="android.bluetooth.BluetoothAdapter.stopLeScan_changed(android.bluetooth.BluetoothAdapter.LeScanCallback)"></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...]
  /external/chromium_org/chrome/browser/extensions/api/bluetooth/
bluetooth_private_api.h 14 class BluetoothAdapter;
68 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
86 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
100 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
114 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
bluetooth_api.cc 24 using device::BluetoothAdapter;
105 scoped_refptr<BluetoothAdapter> adapter) {
116 scoped_refptr<BluetoothAdapter> adapter) {
122 BluetoothAdapter::DeviceList devices = adapter->GetDevices();
123 for (BluetoothAdapter::DeviceList::const_iterator iter = devices.begin();
143 scoped_refptr<BluetoothAdapter> adapter) {
173 scoped_refptr<BluetoothAdapter> adapter) {
193 scoped_refptr<BluetoothAdapter> adapter) {
  /external/chromium_org/chrome/browser/extensions/api/bluetooth_socket/
bluetooth_socket_api.h 128 scoped_refptr<device::BluetoothAdapter> adapter,
130 const device::BluetoothAdapter::CreateServiceCallback& callback,
131 const device::BluetoothAdapter::CreateServiceErrorCallback&
145 virtual void OnGetAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
166 scoped_refptr<device::BluetoothAdapter> adapter,
168 const device::BluetoothAdapter::CreateServiceCallback& callback,
169 const device::BluetoothAdapter::CreateServiceErrorCallback&
194 scoped_refptr<device::BluetoothAdapter> adapter,
196 const device::BluetoothAdapter::CreateServiceCallback& callback,
197 const device::BluetoothAdapter::CreateServiceErrorCallback
    [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...]
AdapterProperties.java 19 import android.bluetooth.BluetoothAdapter;
54 private int mConnectionState = BluetoothAdapter.STATE_DISCONNECTED;
55 private int mState = BluetoothAdapter.STATE_OFF;
60 private BluetoothAdapter mAdapter;
76 mAdapter = BluetoothAdapter.getDefaultAdapter();
358 Intent intent = new Intent(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED);
360 intent.putExtra(BluetoothAdapter.EXTRA_CONNECTION_STATE,
362 intent.putExtra(BluetoothAdapter.EXTRA_PREVIOUS_CONNECTION_STATE,
384 return BluetoothAdapter.STATE_DISCONNECTED;
386 return BluetoothAdapter.STATE_DISCONNECTING
    [all...]
  /external/chromium_org/device/bluetooth/
bluetooth_discovery_session.h 14 class BluetoothAdapter;
18 // BluetoothAdapter::StartDiscoverySession. The Bluetooth adapter will be
25 // AdapterDiscoveringChanged method of the BluetoothAdapter::Observer interface
64 friend class BluetoothAdapter;
65 explicit BluetoothDiscoverySession(scoped_refptr<BluetoothAdapter> adapter);
70 // Marks this instance as inactive. Called by BluetoothAdapter to mark a
79 scoped_refptr<BluetoothAdapter> adapter_;
bluetooth_adapter_mac.mm 36 base::WeakPtr<BluetoothAdapter> BluetoothAdapter::CreateAdapter(
42 base::WeakPtr<BluetoothAdapter> BluetoothAdapterMac::CreateAdapter() {
49 : BluetoothAdapter(),
61 void BluetoothAdapterMac::AddObserver(BluetoothAdapter::Observer* observer) {
66 void BluetoothAdapterMac::RemoveObserver(BluetoothAdapter::Observer* observer) {
149 BluetoothAdapter::Observer, observers_, DeviceAdded(this, &device_mac));
163 FOR_EACH_OBSERVER(BluetoothAdapter::Observer,
181 FOR_EACH_OBSERVER(BluetoothAdapter::Observer,
208 FOR_EACH_OBSERVER(BluetoothAdapter::Observer
    [all...]
bluetooth_gatt_notify_session_chromeos.h 16 class BluetoothAdapter;
41 scoped_refptr<device::BluetoothAdapter> adapter,
58 scoped_refptr<device::BluetoothAdapter> adapter_;
bluetooth_adapter_win.cc 25 base::WeakPtr<BluetoothAdapter> BluetoothAdapter::CreateAdapter(
31 base::WeakPtr<BluetoothAdapter> BluetoothAdapterWin::CreateAdapter(
39 : BluetoothAdapter(),
55 void BluetoothAdapterWin::AddObserver(BluetoothAdapter::Observer* observer) {
60 void BluetoothAdapterWin::RemoveObserver(BluetoothAdapter::Observer* observer) {
132 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
157 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
201 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
206 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_
    [all...]
bluetooth_adapter_factory.h 18 typedef base::Callback<void(scoped_refptr<BluetoothAdapter> adapter)>
34 static void SetAdapterForTesting(scoped_refptr<BluetoothAdapter> adapter);
  /frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
BluetoothTestUtils.java 106 if (BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals(intent.getAction())) {
108 } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(intent.getAction())) {
110 } else if (BluetoothAdapter.ACTION_SCAN_MODE_CHANGED.equals(intent.getAction())) {
111 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE, -1);
114 case BluetoothAdapter.SCAN_MODE_NONE:
117 case BluetoothAdapter.SCAN_MODE_CONNECTABLE:
120 case BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE:
124 } else if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(intent.getAction())) {
125 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1);
128 case BluetoothAdapter.STATE_OFF
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
BluetoothControllerImpl.java 19 import static android.bluetooth.BluetoothAdapter.ERROR;
28 import android.bluetooth.BluetoothAdapter;
56 private final BluetoothAdapter mAdapter;
119 && mAdapter.getConnectionState() == BluetoothAdapter.STATE_CONNECTED;
125 && mAdapter.getConnectionState() == BluetoothAdapter.STATE_CONNECTING;
162 if (state == BluetoothAdapter.STATE_CONNECTED) return PairedDevice.STATE_CONNECTED;
163 if (state == BluetoothAdapter.STATE_CONNECTING) return PairedDevice.STATE_CONNECTING;
164 if (state == BluetoothAdapter.STATE_DISCONNECTING) return PairedDevice.STATE_DISCONNECTING;
264 final boolean enabled = adapterState == BluetoothAdapter.STATE_ON;
289 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED)
    [all...]
  /external/chromium_org/chrome/browser/ui/webui/chromeos/login/
hid_detection_screen_handler.h 36 public device::BluetoothAdapter::Observer,
70 // device::BluetoothAdapter::Observer implementation.
71 virtual void AdapterPresentChanged(device::BluetoothAdapter* adapter,
73 virtual void DeviceAdded(device::BluetoothAdapter* adapter,
75 virtual void DeviceChanged(device::BluetoothAdapter* adapter,
77 virtual void DeviceRemoved(device::BluetoothAdapter* adapter,
103 void InitializeAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
156 // Called by device::BluetoothAdapter in response to a successful request
161 // Called by device::BluetoothAdapter in response to a failure to
165 // Called by device::BluetoothAdapter in response to a failure t
    [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();
  /external/chromium_org/device/bluetooth/test/
mock_bluetooth_discovery_session.h 14 class BluetoothAdapter;
  /frameworks/base/services/core/java/com/android/server/
BluetoothManagerService.java 20 import android.bluetooth.BluetoothAdapter;
151 if (BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED.equals(action)) {
152 String newName = intent.getStringExtra(BluetoothAdapter.EXTRA_LOCAL_NAME);
203 mState = BluetoothAdapter.STATE_OFF;
213 filter.addAction(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED);
512 * Inform BluetoothAdapter instances that Adapter service is up
530 * Inform BluetoothAdapter instances that Adapter service is down
    [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())) {
  /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 380 milliseconds

12 3 4 5 6 7 8 91011>>