Match devices by Class for tethering.

Change-Id: I711de3c8d6f6b1dafeec4fb5dde4fa33d997bcca
This commit is contained in:
Jaikumar Ganesh
2010-08-23 11:20:48 -07:00
parent 2cd6aad561
commit 8eb4986049

View File

@@ -337,9 +337,10 @@ public class BluetoothSettings extends PreferenceActivity
switch(mFilterType) {
case BluetoothDevicePicker.FILTER_TYPE_TRANSFER:
if (uuids != null)
if (uuids != null) {
if (BluetoothUuid.containsAnyUuid(uuids,
LocalBluetoothProfileManager.OPP_PROFILE_UUIDS)) return true;
}
if (bluetoothClass != null
&& bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_OPP)) {
return true;
@@ -364,12 +365,20 @@ public class BluetoothSettings extends PreferenceActivity
LocalBluetoothProfileManager.PANU_PROFILE_UUIDS)) return true;
}
if (bluetoothClass != null
&& bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_PANU)) {
return true;
}
break;
case BluetoothDevicePicker.FILTER_TYPE_NAP:
if (uuids != null) {
if (BluetoothUuid.containsAnyUuid(uuids,
LocalBluetoothProfileManager.NAP_PROFILE_UUIDS)) return true;
}
if (bluetoothClass != null
&& bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_NAP)) {
return true;
}
break;
default:
return true;