Home
last modified time | relevance | path

Searched refs:BluetoothDevice (Results 1 – 25 of 137) sorted by relevance

123456

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java21 import android.bluetooth.BluetoothDevice;
65 void onReceive(Context context, Intent intent, BluetoothDevice device); in onReceive()
100 addHandler(BluetoothDevice.ACTION_FOUND, new DeviceFoundHandler()); in BluetoothEventManager()
101 addHandler(BluetoothDevice.ACTION_NAME_CHANGED, new NameChangedHandler()); in BluetoothEventManager()
102 addHandler(BluetoothDevice.ACTION_ALIAS_CHANGED, new NameChangedHandler()); in BluetoothEventManager()
105 addHandler(BluetoothDevice.ACTION_BOND_STATE_CHANGED, new BondStateChangedHandler()); in BluetoothEventManager()
108 addHandler(BluetoothDevice.ACTION_CLASS_CHANGED, new ClassChangedHandler()); in BluetoothEventManager()
109 addHandler(BluetoothDevice.ACTION_UUID, new UuidChangedHandler()); in BluetoothEventManager()
110 addHandler(BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED, new BatteryLevelChangedHandler()); in BluetoothEventManager()
125 addHandler(BluetoothDevice.ACTION_ACL_CONNECTED, new AclStateChangedHandler()); in BluetoothEventManager()
[all …]
DA2dpProfile.java27 import android.bluetooth.BluetoothDevice;
69 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
71 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
125 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
141 public List<BluetoothDevice> getConnectableDevices() { in getConnectableDevices()
149 private List<BluetoothDevice> getDevicesByStates(int[] states) { in getDevicesByStates()
151 return new ArrayList<BluetoothDevice>(0); in getDevicesByStates()
156 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
163 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice()
172 public BluetoothDevice getActiveDevice() { in getActiveDevice()
[all …]
DHearingAidProfile.java25 import android.bluetooth.BluetoothDevice;
61 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
63 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
123 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
139 public List<BluetoothDevice> getConnectableDevices() { in getConnectableDevices()
147 private List<BluetoothDevice> getDevicesByStates(int[] states) { in getDevicesByStates()
149 return new ArrayList<BluetoothDevice>(0); in getDevicesByStates()
154 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
161 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice()
170 public List<BluetoothDevice> getActiveDevices() { in getActiveDevices()
[all …]
DPanProfile.java24 import android.bluetooth.BluetoothDevice;
45 private final HashMap<BluetoothDevice, Integer> mDeviceRoleMap =
46 new HashMap<BluetoothDevice, Integer>();
89 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
97 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
102 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
107 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
114 final List<BluetoothDevice> sinks = mService.getConnectedDevices(); in setEnabled()
116 for (BluetoothDevice sink : sinks) { in setEnabled()
136 public int getNameResource(BluetoothDevice device) { in getNameResource()
[all …]
DLocalBluetoothProfile.java20 import android.bluetooth.BluetoothDevice;
38 int getConnectionStatus(BluetoothDevice device); in getConnectionStatus()
44 boolean isEnabled(BluetoothDevice device); in isEnabled()
50 int getConnectionPolicy(BluetoothDevice device); in getConnectionPolicy()
57 boolean setEnabled(BluetoothDevice device, boolean enabled); in setEnabled()
70 int getNameResource(BluetoothDevice device); in getNameResource()
79 int getSummaryResourceForDevice(BluetoothDevice device); in getSummaryResourceForDevice()
DHeadsetProfile.java25 import android.bluetooth.BluetoothDevice;
68 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
70 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
117 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
124 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice()
134 public BluetoothDevice getActiveDevice() { in getActiveDevice()
148 public int getAudioState(BluetoothDevice device) { in getAudioState()
156 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
164 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
172 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
[all …]
DOppProfile.java20 import android.bluetooth.BluetoothDevice;
43 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
48 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
53 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
58 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
79 public int getNameResource(BluetoothDevice device) { in getNameResource()
83 public int getSummaryResourceForDevice(BluetoothDevice device) { in getSummaryResourceForDevice()
DCachedBluetoothDevice.java21 import android.bluetooth.BluetoothDevice;
64 BluetoothDevice mDevice;
98 BluetoothDevice device) { in CachedBluetoothDevice()
278 if (getBondState() == BluetoothDevice.BOND_NONE) { in ensurePaired()
302 if (state == BluetoothDevice.BOND_BONDING) { in unpair()
306 if (state != BluetoothDevice.BOND_NONE) { in unpair()
307 final BluetoothDevice dev = mDevice; in unpair()
338 public BluetoothDevice getDevice() { in getDevice()
543 return getBondState() == BluetoothDevice.BOND_BONDING; in isBusy()
624 if (bondState == BluetoothDevice.BOND_NONE) { in onBondingStateChanged()
[all …]
DA2dpSinkProfile.java25 import android.bluetooth.BluetoothDevice;
63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
65 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
108 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
110 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
118 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
126 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
134 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
142 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
162 List<BluetoothDevice> srcs = mService.getConnectedDevices(); in isAudioPlaying()
[all …]
DSapProfile.java24 import android.bluetooth.BluetoothDevice;
65 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
67 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
114 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
122 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
130 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
138 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
154 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
156 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
172 public int getNameResource(BluetoothDevice device) { in getNameResource()
[all …]
DPbapClientProfile.java24 import android.bluetooth.BluetoothDevice;
63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
65 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
119 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
121 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
129 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
137 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
145 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
153 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
177 public int getNameResource(BluetoothDevice device) { in getNameResource()
[all …]
DMapProfile.java24 import android.bluetooth.BluetoothDevice;
66 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
68 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
116 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
124 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
132 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
140 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
156 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
158 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
174 public int getNameResource(BluetoothDevice device) { in getNameResource()
[all …]
DMapClientProfile.java24 import android.bluetooth.BluetoothDevice;
67 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
69 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
117 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
125 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
133 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
141 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
157 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
159 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
175 public int getNameResource(BluetoothDevice device) { in getNameResource()
[all …]
DHfpClientProfile.java24 import android.bluetooth.BluetoothDevice;
67 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
69 BluetoothDevice nextDevice = deviceList.remove(0); in onServiceConnected()
117 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
119 return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
128 public int getConnectionStatus(BluetoothDevice device) { in getConnectionStatus()
136 public boolean isEnabled(BluetoothDevice device) { in isEnabled()
144 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy()
152 public boolean setEnabled(BluetoothDevice device, boolean enabled) { in setEnabled()
179 public int getNameResource(BluetoothDevice device) { in getNameResource()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattServerCallback.java32 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 …]
DBluetoothHidDevice.java244 public void onAppStatusChanged(BluetoothDevice pluggedDevice, boolean registered) { in onAppStatusChanged()
262 public void onConnectionStateChanged(BluetoothDevice device, int state) { in onConnectionStateChanged()
276 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { in onGetReport()
298 public void onSetReport(BluetoothDevice device, byte type, byte id, byte[] data) { in onSetReport()
309 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol()
320 public void onInterruptData(BluetoothDevice device, byte reportId, byte[] data) { in onInterruptData()
328 public void onVirtualCableUnplug(BluetoothDevice device) { in onVirtualCableUnplug()
344 public void onAppStatusChanged(BluetoothDevice pluggedDevice, boolean registered) { in onAppStatusChanged()
350 public void onConnectionStateChanged(BluetoothDevice device, int state) { in onConnectionStateChanged()
356 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { in onGetReport()
[all …]
DBluetoothHeadsetClient.java449 public boolean connect(BluetoothDevice device) { in connect()
475 public boolean disconnect(BluetoothDevice device) { in disconnect()
497 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
506 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
510 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
521 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
530 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
534 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
544 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
572 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothHearingAid.java170 public boolean connect(BluetoothDevice device) { in connect()
208 public boolean disconnect(BluetoothDevice device) { in disconnect()
227 public @NonNull List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
235 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
238 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
246 public @NonNull List<BluetoothDevice> getDevicesMatchingConnectionStates( in getDevicesMatchingConnectionStates()
255 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
258 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
267 @NonNull BluetoothDevice device) { in getConnectionState()
306 public boolean setActiveDevice(@Nullable BluetoothDevice device) { in setActiveDevice()
[all …]
DBluetoothSap.java165 public BluetoothDevice getClient() { in getClient()
188 public boolean isConnected(BluetoothDevice device) { in isConnected()
210 public boolean connect(BluetoothDevice device) { in connect()
223 public boolean disconnect(BluetoothDevice device) { in disconnect()
244 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
252 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
256 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
265 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
273 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
277 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
[all …]
DBluetoothPbapClient.java108 public boolean connect(BluetoothDevice device) { in connect()
136 public boolean disconnect(BluetoothDevice device) { in disconnect()
163 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
173 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
179 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
188 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
198 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
204 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
213 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
245 private static boolean isValidDevice(BluetoothDevice device) { in isValidDevice()
[all …]
DBluetoothA2dpSink.java124 public boolean connect(BluetoothDevice device) { in connect()
163 public boolean disconnect(BluetoothDevice device) { in disconnect()
184 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
192 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
196 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
205 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
213 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
217 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
226 public int getConnectionState(BluetoothDevice device) { in getConnectionState()
254 public BluetoothAudioConfig getAudioConfig(BluetoothDevice device) { in getAudioConfig()
[all …]
DBluetoothHidHost.java271 public boolean connect(BluetoothDevice device) { in connect()
309 public boolean disconnect(BluetoothDevice device) { in disconnect()
332 public @NonNull List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
340 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
344 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
353 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
361 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
365 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
376 public int getConnectionState(@NonNull BluetoothDevice device) { in getConnectionState()
406 public boolean setPriority(BluetoothDevice device, int priority) { in setPriority()
[all …]
DBluetoothA2dp.java279 public boolean connect(BluetoothDevice device) { in connect()
319 public boolean disconnect(BluetoothDevice device) { in disconnect()
338 public List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
346 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
349 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
357 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
365 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
368 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
376 public @BtProfileState int getConnectionState(BluetoothDevice device) { in getConnectionState()
413 public boolean setActiveDevice(@Nullable BluetoothDevice device) { in setActiveDevice()
[all …]
DBluetoothMap.java154 public BluetoothDevice getClient() { in getClient()
177 public boolean isConnected(BluetoothDevice device) { in isConnected()
199 public boolean connect(BluetoothDevice device) { in connect()
213 public boolean disconnect(BluetoothDevice device) { in disconnect()
260 public @NonNull List<BluetoothDevice> getConnectedDevices() { in getConnectedDevices()
268 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
272 return new ArrayList<BluetoothDevice>(); in getConnectedDevices()
282 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates()
290 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
294 return new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothUtilsTest.java25 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 …]

123456