Lines Matching defs:profile
78 * Get the current connection state of the profile to the remote device.
81 * the connection state of the local Bluetooth adapter for certain profile.
88 * @param profile GATT or GATT_SERVER
89 * @return State of the profile connection. One of
95 public int getConnectionState(BluetoothDevice device, int profile) {
98 List<BluetoothDevice> connectedDevices = getConnectedDevices(profile);
109 * Get connected devices for the specified profile.
114 * the connection state of Bluetooth for this profile.
120 * @param profile GATT or GATT_SERVER
124 public List<BluetoothDevice> getConnectedDevices(int profile) {
126 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) {
127 throw new IllegalArgumentException("Profile not supported: " + profile);
155 * the connection state of the local Bluetooth adapter for this profile.
161 * @param profile GATT or GATT_SERVER
169 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int profile, int[] states) {
172 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) {
173 throw new IllegalArgumentException("Profile not supported: " + profile);