1717package android .bluetooth ;
1818
1919import android .app .Instrumentation ;
20- import android .bluetooth .BluetoothAdapter ;
2120import android .content .BroadcastReceiver ;
2221import android .content .Context ;
2322import android .content .Intent ;
2423import android .content .IntentFilter ;
2524import android .test .InstrumentationTestCase ;
26- import android .test .suitebuilder .annotation .LargeTest ;
2725import android .util .Log ;
2826
2927public class BluetoothStressTest extends InstrumentationTestCase {
@@ -161,7 +159,6 @@ protected void tearDown() throws Exception {
161159 mContext .unregisterReceiver (mReceiver );
162160 }
163161
164- @ LargeTest
165162 public void testEnableDisable () {
166163 BluetoothAdapter adapter = BluetoothAdapter .getDefaultAdapter ();
167164
@@ -172,7 +169,6 @@ public void testEnableDisable() {
172169 }
173170 }
174171
175- @ LargeTest
176172 public void testDiscoverable () {
177173 BluetoothAdapter adapter = BluetoothAdapter .getDefaultAdapter ();
178174 enable (adapter );
@@ -186,7 +182,6 @@ public void testDiscoverable() {
186182 disable (adapter );
187183 }
188184
189- @ LargeTest
190185 public void testScan () {
191186 BluetoothAdapter adapter = BluetoothAdapter .getDefaultAdapter ();
192187 enable (adapter );
@@ -336,7 +331,7 @@ private void undiscoverable(BluetoothAdapter adapter) {
336331 mReceiver .resetFiredFlags ();
337332
338333 if (!adapter .isEnabled ()) {
339- fail ("undiscoverable(): bluetooth not enabled" );
334+ fail ("undiscoverable() bluetooth not enabled" );
340335 }
341336
342337 int scanMode = adapter .getScanMode ();
@@ -374,7 +369,7 @@ private void startScan(BluetoothAdapter adapter) {
374369 mReceiver .resetFiredFlags ();
375370
376371 if (!adapter .isEnabled ()) {
377- fail ("startScan(): bluetooth not enabled" );
372+ fail ("startScan() bluetooth not enabled" );
378373 }
379374
380375 if (adapter .isDiscovering ()) {
@@ -404,7 +399,7 @@ private void stopScan(BluetoothAdapter adapter) {
404399 mReceiver .resetFiredFlags ();
405400
406401 if (!adapter .isEnabled ()) {
407- fail ("stopScan(): bluetooth not enabled" );
402+ fail ("stopScan() bluetooth not enabled" );
408403 }
409404
410405 if (!adapter .isDiscovering ()) {
0 commit comments