Lines Matching refs:profile
81 * Get the current connection state of the profile to the remote device.
84 * the connection state of the local Bluetooth adapter for certain profile.
91 * @param profile GATT or GATT_SERVER
92 * @return State of the profile connection. One of
98 public int getConnectionState(BluetoothDevice device, int profile) {
101 List<BluetoothDevice> connectedDevices = getConnectedDevices(profile);
112 * Get connected devices for the specified profile.
117 * the connection state of Bluetooth for this profile.
123 * @param profile GATT or GATT_SERVER
127 public List<BluetoothDevice> getConnectedDevices(int profile) {
129 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) {
130 throw new IllegalArgumentException("Profile not supported: " + profile);
158 * the connection state of the local Bluetooth adapter for this profile.
164 * @param profile GATT or GATT_SERVER
172 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int profile, int[] states) {
175 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) {
176 throw new IllegalArgumentException("Profile not supported: " + profile);