diff options
author | Guang Zhu <guangzhu@google.com> | 2014-07-18 03:31:43 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-07-18 03:31:43 +0000 |
commit | f59ce46880ebe2c2466a2c862ec2ed401f635d51 (patch) | |
tree | b92dd753aa1884fa77101d50c25fa210e81149ac /core/tests | |
parent | 9c36b83519804000a3d83e141c3ce7455828b4db (diff) | |
parent | b477fc6c2fcd04e6952a7eec856d30b64fd95e0c (diff) | |
download | frameworks_base-f59ce46880ebe2c2466a2c862ec2ed401f635d51.zip frameworks_base-f59ce46880ebe2c2466a2c862ec2ed401f635d51.tar.gz frameworks_base-f59ce46880ebe2c2466a2c862ec2ed401f635d51.tar.bz2 |
am b477fc6c: Merge "add command to enable bt snoop log" into klp-modular-dev
* commit 'b477fc6c2fcd04e6952a7eec856d30b64fd95e0c':
add command to enable bt snoop log
Diffstat (limited to 'core/tests')
-rw-r--r-- | core/tests/bluetoothtests/src/android/bluetooth/BluetoothInstrumentation.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/tests/bluetoothtests/src/android/bluetooth/BluetoothInstrumentation.java b/core/tests/bluetoothtests/src/android/bluetooth/BluetoothInstrumentation.java index 22dce39..411a3f8 100644 --- a/core/tests/bluetoothtests/src/android/bluetooth/BluetoothInstrumentation.java +++ b/core/tests/bluetoothtests/src/android/bluetooth/BluetoothInstrumentation.java @@ -20,6 +20,8 @@ import android.app.Instrumentation; import android.content.Context; import android.os.Bundle; +import junit.framework.Assert; + import java.util.Set; public class BluetoothInstrumentation extends Instrumentation { @@ -70,6 +72,8 @@ public class BluetoothInstrumentation extends Instrumentation { getAddress(); } else if ("getBondedDevices".equals(command)) { getBondedDevices(); + } else if ("enableBtSnoop".equals(command)) { + enableBtSnoop(); } else { finish(null); } @@ -112,6 +116,12 @@ public class BluetoothInstrumentation extends Instrumentation { finish(mSuccessResult); } + public void enableBtSnoop() { + Assert.assertTrue("failed to enable snoop log", + getBluetoothAdapter().configHciSnoopLog(true)); + finish(mSuccessResult); + } + public void finish(Bundle result) { if (result == null) { result = new Bundle(); |