/external/chromium_org/device/bluetooth/test/ |
mock_bluetooth_profile.h | 13 class MockBluetoothProfile : public BluetoothProfile { 20 void(const BluetoothProfile::ConnectionCallback&));
|
/external/chromium_org/device/bluetooth/ |
bluetooth_profile.cc | 20 BluetoothProfile::Options::Options() 30 BluetoothProfile::Options::~Options() { 35 BluetoothProfile::BluetoothProfile() { 39 BluetoothProfile::~BluetoothProfile() { 45 void BluetoothProfile::Register(const std::string& uuid, 53 BluetoothProfile* profile = NULL; 59 BluetoothProfile* profile = NULL;
|
bluetooth_profile.h | 20 // BluetoothProfile represents an implementation of either a client or server 25 // BluetoothProfile::Register() method and are always identified by a UUID 28 // The lifecycle of BluetoothProfile instances is managed by the implementation 32 class BluetoothProfile { 34 // Options used to register a BluetoothProfile object. 80 typedef base::Callback<void(BluetoothProfile*)> ProfileCallback; 95 // BluetoothProfile, or BluetoothAdapter or BluetoothDevice objects are 103 BluetoothProfile(); 104 virtual ~BluetoothProfile();
|
bluetooth_profile_mac.h | 22 class BluetoothProfileMac : public BluetoothProfile { 24 // BluetoothProfile override. 35 friend BluetoothProfile;
|
bluetooth_profile_win.h | 16 class BluetoothProfileWin : public BluetoothProfile { 18 // BluetoothProfile override. 26 friend BluetoothProfile;
|
bluetooth_profile_chromeos.h | 33 // The BluetoothProfileChromeOS class implements BluetoothProfile for the 36 : public device::BluetoothProfile, 39 // BluetoothProfile override. 48 friend class BluetoothProfile; 53 // Called by BluetoothProfile::Register to initialize the profile object 55 // BluetoothProfile::Register. 57 const device::BluetoothProfile::Options& options,
|
bluetooth_profile_win.cc | 16 : BluetoothProfile(), uuid_(uuid), name_(name) {
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
A2dpProfile.java | 23 import android.bluetooth.BluetoothProfile; 57 implements BluetoothProfile.ServiceListener { 59 public void onServiceConnected(int profile, BluetoothProfile proxy) { 72 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); 95 BluetoothProfile.A2DP); 109 new int[] {BluetoothProfile.STATE_CONNECTED, 110 BluetoothProfile.STATE_CONNECTING, 111 BluetoothProfile.STATE_DISCONNECTING}); 128 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ 129 mService.setPriority(device, BluetoothProfile.PRIORITY_ON) [all...] |
HidProfile.java | 23 import android.bluetooth.BluetoothProfile; 52 implements BluetoothProfile.ServiceListener { 54 public void onServiceConnected(int profile, BluetoothProfile proxy) { 67 device.onProfileStateChanged(HidProfile.this, BluetoothProfile.STATE_CONNECTED); 90 BluetoothProfile.INPUT_DEVICE); 113 return BluetoothProfile.STATE_DISCONNECTED; 119 : BluetoothProfile.STATE_DISCONNECTED; 124 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF; 128 if (mService == null) return BluetoothProfile.PRIORITY_OFF; 135 if (mService.getPriority(device) < BluetoothProfile.PRIORITY_ON) [all...] |
MapProfile.java | 23 import android.bluetooth.BluetoothProfile; 60 implements BluetoothProfile.ServiceListener { 62 public void onServiceConnected(int profile, BluetoothProfile proxy) { 76 BluetoothProfile.STATE_CONNECTED); 103 BluetoothProfile.MAP); 123 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { 124 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); 133 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; 139 : BluetoothProfile.STATE_DISCONNECTED; 144 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF [all...] |
HeadsetProfile.java | 23 import android.bluetooth.BluetoothProfile; 60 implements BluetoothProfile.ServiceListener { 62 public void onServiceConnected(int profile, BluetoothProfile proxy) { 76 BluetoothProfile.STATE_CONNECTED); 102 BluetoothProfile.HEADSET); 129 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { 130 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); 139 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; 144 : BluetoothProfile.STATE_DISCONNECTED; 149 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF [all...] |
OppProfile.java | 23 import android.bluetooth.BluetoothProfile; 52 return BluetoothProfile.STATE_DISCONNECTED; // Settings app doesn't handle OPP 60 return BluetoothProfile.PRIORITY_OFF; // Settings app doesn't handle OPP
|
PanProfile.java | 23 import android.bluetooth.BluetoothProfile; 53 implements BluetoothProfile.ServiceListener { 55 public void onServiceConnected(int profile, BluetoothProfile proxy) { 74 BluetoothProfile.PAN); 103 return BluetoothProfile.STATE_DISCONNECTED; 110 return getConnectionStatus(device) == BluetoothProfile.STATE_CONNECTED; 140 case BluetoothProfile.STATE_DISCONNECTED: 143 case BluetoothProfile.STATE_CONNECTED: 176 BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.PAN, mService);
|
PbapServerProfile.java | 23 import android.bluetooth.BluetoothProfile; 92 return BluetoothProfile.STATE_DISCONNECTED; 95 return BluetoothProfile.STATE_CONNECTED; 97 return BluetoothProfile.STATE_DISCONNECTED;
|
Utils.java | 21 import android.bluetooth.BluetoothProfile; 42 case BluetoothProfile.STATE_CONNECTED: 44 case BluetoothProfile.STATE_CONNECTING: 46 case BluetoothProfile.STATE_DISCONNECTED: 48 case BluetoothProfile.STATE_DISCONNECTING:
|
DockEventReceiver.java | 24 import android.bluetooth.BluetoothProfile; 86 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, 87 BluetoothProfile.STATE_CONNECTED); 88 int oldState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, 0); 102 if (newState == BluetoothProfile.STATE_DISCONNECTED && 103 oldState != BluetoothProfile.STATE_DISCONNECTING) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
A2dpStateMachine.java | 34 import android.bluetooth.BluetoothProfile; 177 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, 178 BluetoothProfile.STATE_DISCONNECTED); 181 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED, 182 BluetoothProfile.STATE_CONNECTING); 228 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTING, 229 BluetoothProfile.STATE_DISCONNECTED); 250 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, 251 BluetoothProfile.STATE_DISCONNECTED); 302 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED [all...] |
A2dpService.java | 20 import android.bluetooth.BluetoothProfile; 118 if (getPriority(device) == BluetoothProfile.PRIORITY_OFF) { 123 if (connectionState == BluetoothProfile.STATE_CONNECTED || 124 connectionState == BluetoothProfile.STATE_CONNECTING) { 136 if (connectionState != BluetoothProfile.STATE_CONNECTED && 137 connectionState != BluetoothProfile.STATE_CONNECTING) { 175 BluetoothProfile.PRIORITY_UNDEFINED); 251 if (service == null) return BluetoothProfile.STATE_DISCONNECTED; 263 if (service == null) return BluetoothProfile.PRIORITY_UNDEFINED;
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothProfile.java | 29 public interface BluetoothProfile { 173 * An interface for notifying BluetoothProfile IPC clients when they have 185 public void onServiceConnected(int profile, BluetoothProfile proxy);
|
BluetoothManager.java | 88 * {@link BluetoothProfile#STATE_CONNECTED}, {@link BluetoothProfile#STATE_CONNECTING}, 89 * {@link BluetoothProfile#STATE_DISCONNECTED}, 90 * {@link BluetoothProfile#STATE_DISCONNECTING} 98 return BluetoothProfile.STATE_CONNECTED; 102 return BluetoothProfile.STATE_DISCONNECTED; 108 * <p> Return the set of devices which are in state {@link BluetoothProfile#STATE_CONNECTED} 122 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) { 134 new int[] { BluetoothProfile.STATE_CONNECTED }) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
AdapterProperties.java | 21 import android.bluetooth.BluetoothProfile; 280 return BluetoothProfile.STATE_DISCONNECTED; 324 return (state == BluetoothProfile.STATE_DISCONNECTED || 325 state == BluetoothProfile.STATE_CONNECTING || 326 state == BluetoothProfile.STATE_CONNECTED || 327 state == BluetoothProfile.STATE_DISCONNECTING); 333 case BluetoothProfile.STATE_DISCONNECTED: 335 case BluetoothProfile.STATE_DISCONNECTING: 337 case BluetoothProfile.STATE_CONNECTED: 339 case BluetoothProfile.STATE_CONNECTING [all...] |
/external/chromium_org/chrome/browser/extensions/api/bluetooth/ |
bluetooth_event_router.h | 23 class BluetoothProfile; 57 // Add the BluetoothProfile |bluetooth_profile| for use by the extension 61 device::BluetoothProfile* bluetooth_profile); 63 // Unregister the BluetoothProfile corersponding to |uuid| and release the 67 // Returns true if the BluetoothProfile corresponding to |uuid| is already 71 // Returns the BluetoothProfile that corresponds to |uuid|. It returns NULL 72 // if the BluetoothProfile with |uuid| does not exist. 73 device::BluetoothProfile* GetProfile(const std::string& uuid) const; 138 // A map that maps uuids to the BluetoothProfile objects. 139 typedef std::map<std::string, device::BluetoothProfile*> BluetoothProfileMap [all...] |
/packages/apps/Nfc/src/com/android/nfc/handover/ |
BluetoothHeadsetHandover.java | 23 import android.bluetooth.BluetoothProfile; 50 public class BluetoothHeadsetHandover implements BluetoothProfile.ServiceListener { 191 if (mHeadset.getConnectionState(mDevice) != BluetoothProfile.STATE_DISCONNECTED) { 197 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_DISCONNECTED) { 225 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.HEADSET)) 228 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.A2DP)) 255 if (mHeadset.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) { 261 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) { 321 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, BluetoothAdapter.ERROR); 322 if (state == BluetoothProfile.STATE_CONNECTED) [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
BluetoothTestUtils.java | 20 import android.bluetooth.BluetoothProfile; 220 case BluetoothProfile.A2DP: 223 case BluetoothProfile.HEADSET: 226 case BluetoothProfile.INPUT_DEVICE: 229 case BluetoothProfile.PAN: 244 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); 247 case BluetoothProfile.STATE_DISCONNECTED: 250 case BluetoothProfile.STATE_CONNECTING: 253 case BluetoothProfile.STATE_CONNECTED: 256 case BluetoothProfile.STATE_DISCONNECTING [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetService.java | 21 import android.bluetooth.BluetoothProfile; 169 if (service == null) return BluetoothProfile.STATE_DISCONNECTED; 181 if (service == null) return BluetoothProfile.PRIORITY_UNDEFINED; 321 if (getPriority(device) == BluetoothProfile.PRIORITY_OFF) { 326 if (connectionState == BluetoothProfile.STATE_CONNECTED || 327 connectionState == BluetoothProfile.STATE_CONNECTING) { 339 if (connectionState != BluetoothProfile.STATE_CONNECTED && 340 connectionState != BluetoothProfile.STATE_CONNECTING) { 378 BluetoothProfile.PRIORITY_UNDEFINED); 385 if (connectionState != BluetoothProfile.STATE_CONNECTED & [all...] |