/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattServerCallback.java | 32 public void onConnectionStateChange(BluetoothDevice device, int status, in onConnectionStateChange() 57 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, in onCharacteristicReadRequest() 75 public void onCharacteristicWriteRequest(BluetoothDevice device, int requestId, in onCharacteristicWriteRequest() 92 public void onDescriptorReadRequest(BluetoothDevice device, int requestId, in onDescriptorReadRequest() 110 public void onDescriptorWriteRequest(BluetoothDevice device, int requestId, in onDescriptorWriteRequest() 126 public void onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) { in onExecuteWrite() 140 public void onNotificationSent(BluetoothDevice device, int status) { in onNotificationSent() 152 public void onMtuChanged(BluetoothDevice device, int mtu) { in onMtuChanged() 167 public void onPhyUpdate(BluetoothDevice device, int txPhy, int rxPhy, int status) { in onPhyUpdate() 181 public void onPhyRead(BluetoothDevice device, int txPhy, int rxPhy, int status) { in onPhyRead() [all …]
|
D | BluetoothHidDevice.java | 239 public void onAppStatusChanged(BluetoothDevice pluggedDevice, boolean registered) { in onAppStatusChanged() 257 public void onConnectionStateChanged(BluetoothDevice device, int state) { in onConnectionStateChanged() 271 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { in onGetReport() 293 public void onSetReport(BluetoothDevice device, byte type, byte id, byte[] data) { in onSetReport() 304 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() 315 public void onInterruptData(BluetoothDevice device, byte reportId, byte[] data) { in onInterruptData() 323 public void onVirtualCableUnplug(BluetoothDevice device) { in onVirtualCableUnplug() 339 public void onAppStatusChanged(BluetoothDevice pluggedDevice, boolean registered) { in onAppStatusChanged() 345 public void onConnectionStateChanged(BluetoothDevice device, int state) { in onConnectionStateChanged() 351 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { in onGetReport() [all …]
|
D | BluetoothHeadsetClient.java | 411 public boolean connect(BluetoothDevice device) { in connect() 435 public boolean disconnect(BluetoothDevice device) { in disconnect() 457 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 466 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 470 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 481 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() 490 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 494 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 504 public int getConnectionState(BluetoothDevice device) { in getConnectionState() 525 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() [all …]
|
D | BluetoothHidHost.java | 266 public boolean connect(BluetoothDevice device) { in connect() 306 public boolean disconnect(BluetoothDevice device) { in disconnect() 325 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 333 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 337 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 344 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() 352 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 356 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 363 public int getConnectionState(BluetoothDevice device) { in getConnectionState() 393 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority() [all …]
|
D | BluetoothSap.java | 163 public BluetoothDevice getClient() { in getClient() 186 public boolean isConnected(BluetoothDevice device) { in isConnected() 208 public boolean connect(BluetoothDevice device) { in connect() 221 public boolean disconnect(BluetoothDevice device) { in disconnect() 242 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 250 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 254 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 263 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() 271 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 275 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() [all …]
|
D | BluetoothManager.java | 99 public int getConnectionState(BluetoothDevice device, int profile) { in getConnectionState() 102 List<BluetoothDevice> connectedDevices = getConnectedDevices(profile); in getConnectionState() 103 for (BluetoothDevice connectedDevice : connectedDevices) { in getConnectionState() 126 public List<BluetoothDevice> getConnectedDevices(int profile) { in getConnectedDevices() 132 List<BluetoothDevice> connectedDevices = new ArrayList<BluetoothDevice>(); in getConnectedDevices() 167 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int profile, int[] states) { in getDevicesMatchingConnectionStates() 174 List<BluetoothDevice> devices = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 202 return (openGattServer(context, callback, BluetoothDevice.TRANSPORT_AUTO)); in openGattServer()
|
D | BluetoothPbapClient.java | 102 public boolean connect(BluetoothDevice device) { in connect() 127 public boolean disconnect(BluetoothDevice device) { in disconnect() 154 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 164 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 170 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 179 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() 189 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 195 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 204 public int getConnectionState(BluetoothDevice device) { in getConnectionState() 236 private static boolean isValidDevice(BluetoothDevice device) { in isValidDevice() [all …]
|
D | BluetoothA2dp.java | 257 public boolean connect(BluetoothDevice device) { in connect() 298 public boolean disconnect(BluetoothDevice device) { in disconnect() 317 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 325 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 328 return new ArrayList<BluetoothDevice>(); in getConnectedDevices() 336 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() 344 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 347 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() 355 public @BtProfileState int getConnectionState(BluetoothDevice device) { in getConnectionState() 394 public boolean setActiveDevice(@Nullable BluetoothDevice device) { in setActiveDevice() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfile.java | 20 import android.bluetooth.BluetoothDevice; 38 boolean connect(BluetoothDevice device); in connect() 40 boolean disconnect(BluetoothDevice device); in disconnect() 42 int getConnectionStatus(BluetoothDevice device); in getConnectionStatus() 44 boolean isPreferred(BluetoothDevice device); in isPreferred() 46 int getPreferred(BluetoothDevice device); in getPreferred() 48 void setPreferred(BluetoothDevice device, boolean preferred); in setPreferred() 61 int getNameResource(BluetoothDevice device); in getNameResource() 70 int getSummaryResourceForDevice(BluetoothDevice device); in getSummaryResourceForDevice()
|
D | BluetoothEventManager.java | 21 import android.bluetooth.BluetoothDevice; 65 void onReceive(Context context, Intent intent, BluetoothDevice device); in onReceive() 98 addHandler(BluetoothDevice.ACTION_FOUND, new DeviceFoundHandler()); in BluetoothEventManager() 99 addHandler(BluetoothDevice.ACTION_NAME_CHANGED, new NameChangedHandler()); in BluetoothEventManager() 100 addHandler(BluetoothDevice.ACTION_ALIAS_CHANGED, new NameChangedHandler()); in BluetoothEventManager() 103 addHandler(BluetoothDevice.ACTION_BOND_STATE_CHANGED, new BondStateChangedHandler()); in BluetoothEventManager() 106 addHandler(BluetoothDevice.ACTION_CLASS_CHANGED, new ClassChangedHandler()); in BluetoothEventManager() 107 addHandler(BluetoothDevice.ACTION_UUID, new UuidChangedHandler()); in BluetoothEventManager() 108 addHandler(BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED, new BatteryLevelChangedHandler()); in BluetoothEventManager() 123 addHandler(BluetoothDevice.ACTION_ACL_CONNECTED, new AclStateChangedHandler()); in BluetoothEventManager() [all …]
|
D | PanProfile.java | 21 import android.bluetooth.BluetoothDevice; 42 private final HashMap<BluetoothDevice, Integer> mDeviceRoleMap = 43 new HashMap<BluetoothDevice, Integer>(); 86 public boolean connect(BluetoothDevice device) { in connect() 88 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in connect() 90 for (BluetoothDevice sink : sinks) { in connect() 97 public boolean disconnect(BluetoothDevice device) { in disconnect() 102 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 109 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 113 public int getPreferred(BluetoothDevice device) { in getPreferred() [all …]
|
D | HearingAidProfile.java | 21 import android.bluetooth.BluetoothDevice; 56 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 58 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 117 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 133 public List<BluetoothDevice> getConnectableDevices() { in getConnectableDevices() 141 private List<BluetoothDevice> getDevicesByStates(int[] states) { in getDevicesByStates() 143 return new ArrayList<BluetoothDevice>(0); in getDevicesByStates() 148 public boolean connect(BluetoothDevice device) { in connect() 153 public boolean disconnect(BluetoothDevice device) { in disconnect() 162 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() [all …]
|
D | OppProfile.java | 20 import android.bluetooth.BluetoothDevice; 43 public boolean connect(BluetoothDevice device) { in connect() 47 public boolean disconnect(BluetoothDevice device) { in disconnect() 51 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 55 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 59 public int getPreferred(BluetoothDevice device) { in getPreferred() 63 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() 83 public int getNameResource(BluetoothDevice device) { in getNameResource() 87 public int getSummaryResourceForDevice(BluetoothDevice device) { in getSummaryResourceForDevice()
|
D | A2dpProfile.java | 23 import android.bluetooth.BluetoothDevice; 64 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 66 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 119 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 135 public List<BluetoothDevice> getConnectableDevices() { in getConnectableDevices() 143 private List<BluetoothDevice> getDevicesByStates(int[] states) { in getDevicesByStates() 145 return new ArrayList<BluetoothDevice>(0); in getDevicesByStates() 150 public boolean connect(BluetoothDevice device) { in connect() 155 public boolean disconnect(BluetoothDevice device) { in disconnect() 164 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() [all …]
|
D | HeadsetProfile.java | 21 import android.bluetooth.BluetoothDevice; 63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 65 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 111 public boolean connect(BluetoothDevice device) { in connect() 118 public boolean disconnect(BluetoothDevice device) { in disconnect() 129 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 136 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() 143 public BluetoothDevice getActiveDevice() { in getActiveDevice() 157 public int getAudioState(BluetoothDevice device) { in getAudioState() 164 public boolean isPreferred(BluetoothDevice device) { in isPreferred() [all …]
|
D | A2dpSinkProfile.java | 22 import android.bluetooth.BluetoothDevice; 60 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 62 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 105 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 107 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices() 115 public boolean connect(BluetoothDevice device) { in connect() 122 public boolean disconnect(BluetoothDevice device) { in disconnect() 133 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 140 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 147 public int getPreferred(BluetoothDevice device) { in getPreferred() [all …]
|
D | PbapClientProfile.java | 21 import android.bluetooth.BluetoothDevice; 60 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 62 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 116 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 118 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices() 126 public boolean connect(BluetoothDevice device) { in connect() 135 public boolean disconnect(BluetoothDevice device) { in disconnect() 143 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 150 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 157 public int getPreferred(BluetoothDevice device) { in getPreferred() [all …]
|
D | MapClientProfile.java | 21 import android.bluetooth.BluetoothDevice; 64 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 66 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 114 public boolean connect(BluetoothDevice device) { in connect() 121 public boolean disconnect(BluetoothDevice device) { in disconnect() 132 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 139 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 146 public int getPreferred(BluetoothDevice device) { in getPreferred() 153 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() 166 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() [all …]
|
D | HfpClientProfile.java | 21 import android.bluetooth.BluetoothDevice; 64 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 66 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 114 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() 116 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices() 125 public boolean connect(BluetoothDevice device) { in connect() 133 public boolean disconnect(BluetoothDevice device) { in disconnect() 145 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 153 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 161 public int getPreferred(BluetoothDevice device) { in getPreferred() [all …]
|
D | SapProfile.java | 21 import android.bluetooth.BluetoothDevice; 62 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 64 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 111 public boolean connect(BluetoothDevice device) { in connect() 118 public boolean disconnect(BluetoothDevice device) { in disconnect() 128 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 135 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 142 public int getPreferred(BluetoothDevice device) { in getPreferred() 149 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() 162 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() [all …]
|
D | MapProfile.java | 21 import android.bluetooth.BluetoothDevice; 63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 65 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected() 113 public boolean connect(BluetoothDevice device) { in connect() 118 public boolean disconnect(BluetoothDevice device) { in disconnect() 128 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 135 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 142 public int getPreferred(BluetoothDevice device) { in getPreferred() 149 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() 162 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices() [all …]
|
D | PbapServerProfile.java | 20 import android.bluetooth.BluetoothDevice; 88 public boolean connect(BluetoothDevice device) { in connect() 94 public boolean disconnect(BluetoothDevice device) { in disconnect() 99 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 109 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 113 public int getPreferred(BluetoothDevice device) { in getPreferred() 117 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() 129 public int getNameResource(BluetoothDevice device) { in getNameResource() 133 public int getSummaryResourceForDevice(BluetoothDevice device) { in getSummaryResourceForDevice()
|
D | HidDeviceProfile.java | 21 import android.bluetooth.BluetoothDevice; 63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 64 for (BluetoothDevice nextDevice : deviceList) { in onServiceConnected() 105 public boolean connect(BluetoothDevice device) { in connect() 111 public boolean disconnect(BluetoothDevice device) { in disconnect() 119 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus() 127 public boolean isPreferred(BluetoothDevice device) { in isPreferred() 132 public int getPreferred(BluetoothDevice device) { in getPreferred() 137 public void setPreferred(BluetoothDevice device, boolean preferred) { in setPreferred() 155 public int getNameResource(BluetoothDevice device) { in getNameResource() [all …]
|
D | CachedBluetoothDevice.java | 21 import android.bluetooth.BluetoothDevice; 61 BluetoothDevice mDevice; 95 BluetoothDevice device) { in CachedBluetoothDevice() 291 if (getBondState() == BluetoothDevice.BOND_NONE) { in ensurePaired() 315 if (state == BluetoothDevice.BOND_BONDING) { in unpair() 319 if (state != BluetoothDevice.BOND_NONE) { in unpair() 320 final BluetoothDevice dev = mDevice; in unpair() 351 public BluetoothDevice getDevice() { in getDevice() 554 return getBondState() == BluetoothDevice.BOND_BONDING; in isBusy() 635 if (bondState == BluetoothDevice.BOND_NONE) { in onBondingStateChanged() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | BluetoothUtilsTest.java | 25 import android.bluetooth.BluetoothDevice; 48 private BluetoothDevice mBluetoothDevice; 85 BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)).thenReturn("false".getBytes()); in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon() 97 BluetoothDevice.METADATA_UNTETHERED_LEFT_ICON)).thenReturn( in getStringMetaData_hasMetaData_getCorrectMetaData() 101 BluetoothDevice.METADATA_UNTETHERED_LEFT_ICON)).isEqualTo(STRING_METADATA); in getStringMetaData_hasMetaData_getCorrectMetaData() 107 BluetoothDevice.METADATA_UNTETHERED_LEFT_BATTERY)).thenReturn( in getIntMetaData_hasMetaData_getCorrectMetaData() 111 BluetoothDevice.METADATA_UNTETHERED_LEFT_BATTERY)) in getIntMetaData_hasMetaData_getCorrectMetaData() 118 BluetoothDevice.METADATA_UNTETHERED_LEFT_BATTERY)).thenReturn(null); in getIntMetaData_invalidMetaData_getErrorCode() 121 BluetoothDevice.METADATA_UNTETHERED_LEFT_ICON)) in getIntMetaData_invalidMetaData_getErrorCode() 128 BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)).thenReturn( in getBooleanMetaData_hasMetaData_getCorrectMetaData() [all …]
|