Modifying and adding to Sherry's BT testcases. Change-Id: I64d301dc6ab56ed2fcef54688647c085bf45dda5
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothFacade.java index 660eec2..2d5b37d 100644 --- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothFacade.java +++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothFacade.java
@@ -158,6 +158,12 @@ return false; } + @Rpc(description = "Requests that the device be made connectable.") + public void bluetoothMakeConnectable() { + mBluetoothAdapter + .setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); + } + @Rpc(description = "Requests that the device be discoverable for Bluetooth connections.") public void bluetoothMakeDiscoverable( @RpcParameter(name = "duration", @@ -271,6 +277,7 @@ @Rpc(description = "Start the remote device discovery process. ", returns = "true on success, false on error") public Boolean bluetoothStartDiscovery() { + DiscoveredDevices.clear(); mService.registerReceiver(mDiscoveryReceiver, discoveryFilter); return mBluetoothAdapter.startDiscovery(); }