diff options
author | Guang Zhu <guangzhu@google.com> | 2014-07-19 00:33:58 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-07-19 00:33:58 +0000 |
commit | 7d41c138d216335e304df68babe9b88d61ee0da4 (patch) | |
tree | 82e35cb7ad3a9ae4ef5840ac56d2c7f03f2d71bd /core/tests/bluetoothtests | |
parent | 044a5f51e5bccd68e3ee57983ed0a9c9761a30b0 (diff) | |
parent | f59ce46880ebe2c2466a2c862ec2ed401f635d51 (diff) | |
download | frameworks_base-7d41c138d216335e304df68babe9b88d61ee0da4.zip frameworks_base-7d41c138d216335e304df68babe9b88d61ee0da4.tar.gz frameworks_base-7d41c138d216335e304df68babe9b88d61ee0da4.tar.bz2 |
am f59ce468: am b477fc6c: Merge "add command to enable bt snoop log" into klp-modular-dev
* commit 'f59ce46880ebe2c2466a2c862ec2ed401f635d51':
add command to enable bt snoop log
Diffstat (limited to 'core/tests/bluetoothtests')
-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(); |