BluetoothTestRunner.java revision 835d8ee61ecddcd3fdc0aadf500d05b914ca375f
1e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe/* 2e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * Copyright (C) 2010 The Android Open Source Project 3e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * 4e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * Licensed under the Apache License, Version 2.0 (the "License"); 5e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * you may not use this file except in compliance with the License. 6e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * You may obtain a copy of the License at 7e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * 8e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * http://www.apache.org/licenses/LICENSE-2.0 9e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * 10e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * Unless required by applicable law or agreed to in writing, software 11e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * distributed under the License is distributed on an "AS IS" BASIS, 12e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * See the License for the specific language governing permissions and 14e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe * limitations under the License. 15e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe */ 16e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 17e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowepackage android.bluetooth; 18e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 19e1d666b632608a2f708cb3df06c796e16d5d1717Eric Roweimport junit.framework.TestSuite; 20e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 21e1d666b632608a2f708cb3df06c796e16d5d1717Eric Roweimport android.os.Bundle; 22e1d666b632608a2f708cb3df06c796e16d5d1717Eric Roweimport android.test.InstrumentationTestRunner; 23e1d666b632608a2f708cb3df06c796e16d5d1717Eric Roweimport android.test.InstrumentationTestSuite; 24826af6266c79d76b81fe850b9cd3d351597e4adbEric Roweimport android.util.Log; 25e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 267e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe/** 277e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * Instrumentation test runner for Bluetooth tests. 287e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * <p> 297e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * To run: 307e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * <pre> 317e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * {@code 327e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * adb shell am instrument \ 337e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e enable_iterations <iterations>] \ 347e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e discoverable_iterations <iterations>] \ 357e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e scan_iterations <iterations>] \ 367e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e enable_pan_iterations <iterations>] \ 377e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e pair_iterations <iterations>] \ 387e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e connect_a2dp_iterations <iterations>] \ 397e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e connect_headset_iterations <iterations>] \ 407e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e connect_input_iterations <iterations>] \ 417e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e connect_pan_iterations <iterations>] \ 42835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe * [-e start_stop_sco_iterations <iterations>] \ 437e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e pair_address <address>] \ 447e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e headset_address <address>] \ 457e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e a2dp_address <address>] \ 467e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e input_address <address>] \ 477e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e pan_address <address>] \ 487e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e pair_pin <pin>] \ 497e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * [-e pair_passkey <passkey>] \ 507e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * -w com.android.frameworks.coretests/android.bluetooth.BluetoothTestRunner 517e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * } 527e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe * </pre> 537e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe */ 54e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowepublic class BluetoothTestRunner extends InstrumentationTestRunner { 55826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe private static final String TAG = "BluetoothTestRunner"; 56826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 57e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe public static int sEnableIterations = 100; 58e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe public static int sDiscoverableIterations = 1000; 59e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe public static int sScanIterations = 1000; 607e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe public static int sEnablePanIterations = 1000; 61826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe public static int sPairIterations = 100; 62826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe public static int sConnectHeadsetIterations = 100; 63826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe public static int sConnectA2dpIterations = 100; 647e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe public static int sConnectInputIterations = 100; 657e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe public static int sConnectPanIterations = 100; 66835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe public static int sStartStopScoIterations = 100; 67826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 68826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe public static String sPairAddress = ""; 69826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe public static String sHeadsetAddress = ""; 70826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe public static String sA2dpAddress = ""; 717e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe public static String sInputAddress = ""; 727e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe public static String sPanAddress = ""; 73826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 74826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe public static byte[] sPairPin = {'1', '2', '3', '4'}; 75826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe public static int sPairPasskey = 123456; 76e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 77e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe @Override 78e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe public TestSuite getAllTests() { 79e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe TestSuite suite = new InstrumentationTestSuite(this); 80e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe suite.addTestSuite(BluetoothStressTest.class); 81e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe return suite; 82e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 83e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 84e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe @Override 85e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe public ClassLoader getLoader() { 86e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe return BluetoothTestRunner.class.getClassLoader(); 87e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 88e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 89e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe @Override 90e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe public void onCreate(Bundle arguments) { 91e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe String val = arguments.getString("enable_iterations"); 92e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe if (val != null) { 93e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe try { 94e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe sEnableIterations = Integer.parseInt(val); 95e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } catch (NumberFormatException e) { 96e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe // Invalid argument, fall back to default value 97e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 98e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 99e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 100e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe val = arguments.getString("discoverable_iterations"); 101e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe if (val != null) { 102e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe try { 103e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe sDiscoverableIterations = Integer.parseInt(val); 104e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } catch (NumberFormatException e) { 105e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe // Invalid argument, fall back to default value 106e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 107e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 108e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe 109e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe val = arguments.getString("scan_iterations"); 110e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe if (val != null) { 111e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe try { 112e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe sScanIterations = Integer.parseInt(val); 113e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } catch (NumberFormatException e) { 114e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe // Invalid argument, fall back to default value 115e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 116e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 117826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 1187e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe val = arguments.getString("enable_pan_iterations"); 1197e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe if (val != null) { 1207e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe try { 1217e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe sEnablePanIterations = Integer.parseInt(val); 1227e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } catch (NumberFormatException e) { 1237e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe // Invalid argument, fall back to default value 1247e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } 1257e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } 1267e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe 127826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe val = arguments.getString("pair_iterations"); 128826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe if (val != null) { 129826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe try { 130826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe sPairIterations = Integer.parseInt(val); 131826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } catch (NumberFormatException e) { 132826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe // Invalid argument, fall back to default value 133826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 134826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 135826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 136826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe val = arguments.getString("connect_a2dp_iterations"); 137826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe if (val != null) { 138826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe try { 139826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe sConnectA2dpIterations = Integer.parseInt(val); 140826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } catch (NumberFormatException e) { 141826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe // Invalid argument, fall back to default value 142826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 143826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 144826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 145826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe val = arguments.getString("connect_headset_iterations"); 146826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe if (val != null) { 147826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe try { 148826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe sConnectHeadsetIterations = Integer.parseInt(val); 149826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } catch (NumberFormatException e) { 150826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe // Invalid argument, fall back to default value 151826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 152826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 153826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 1547e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe val = arguments.getString("connect_input_iterations"); 1557e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe if (val != null) { 1567e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe try { 1577e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe sConnectInputIterations = Integer.parseInt(val); 1587e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } catch (NumberFormatException e) { 1597e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe // Invalid argument, fall back to default value 1607e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } 1617e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } 1627e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe 1637e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe val = arguments.getString("connect_pan_iterations"); 1647e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe if (val != null) { 1657e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe try { 1667e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe sConnectPanIterations = Integer.parseInt(val); 1677e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } catch (NumberFormatException e) { 1687e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe // Invalid argument, fall back to default value 1697e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } 1707e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } 1717e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe 172835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe val = arguments.getString("start_stop_sco_iterations"); 173835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe if (val != null) { 174835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe try { 175835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe sStartStopScoIterations = Integer.parseInt(val); 176835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe } catch (NumberFormatException e) { 177835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe // Invalid argument, fall back to default value 178835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe } 179835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe } 180826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe val = arguments.getString("pair_address"); 181826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe if (val != null) { 182826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe sPairAddress = val; 183826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 184826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 185826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe val = arguments.getString("headset_address"); 186826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe if (val != null) { 187826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe sHeadsetAddress = val; 188826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 189826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 190826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe val = arguments.getString("a2dp_address"); 191826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe if (val != null) { 192826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe sA2dpAddress = val; 193826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 194826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 1957e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe val = arguments.getString("input_address"); 1967e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe if (val != null) { 1977e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe sInputAddress = val; 1987e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } 1997e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe 2007e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe val = arguments.getString("pan_address"); 2017e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe if (val != null) { 2027e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe sPanAddress = val; 2037e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe } 2047e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe 205826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe val = arguments.getString("pair_pin"); 206826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe if (val != null) { 207826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe sPairPin = BluetoothDevice.convertPinToBytes(val); 208826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 209826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 210826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe val = arguments.getString("pair_passkey"); 211826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe if (val != null) { 212826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe try { 213826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe sPairPasskey = Integer.parseInt(val); 214826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } catch (NumberFormatException e) { 215826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe // Invalid argument, fall back to default value 216826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 217826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe } 218826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 219826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("enable_iterations=%d", sEnableIterations)); 220826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("discoverable_iterations=%d", sDiscoverableIterations)); 221826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("scan_iterations=%d", sScanIterations)); 222826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("pair_iterations=%d", sPairIterations)); 223826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("connect_a2dp_iterations=%d", sConnectA2dpIterations)); 224826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("connect_headset_iterations=%d", sConnectHeadsetIterations)); 2257e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe Log.i(TAG, String.format("connect_input_iterations=%d", sConnectInputIterations)); 2267e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe Log.i(TAG, String.format("connect_pan_iterations=%d", sConnectPanIterations)); 227835d8ee61ecddcd3fdc0aadf500d05b914ca375fEric Rowe Log.i(TAG, String.format("start_stop_sco_iterations=%d", sStartStopScoIterations)); 228826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("pair_address=%s", sPairAddress)); 229826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("a2dp_address=%s", sA2dpAddress)); 230826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("headset_address=%s", sHeadsetAddress)); 2317e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe Log.i(TAG, String.format("input_address=%s", sInputAddress)); 2327e4d0c0982cb28a86bf3d45c3b316ec7eab1e017Eric Rowe Log.i(TAG, String.format("pan_address=%s", sPanAddress)); 233826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("pair_pin=%s", new String(sPairPin))); 234826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe Log.i(TAG, String.format("pair_passkey=%d", sPairPasskey)); 235826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe 236826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe // Call onCreate last since we want to set the static variables first. 237826af6266c79d76b81fe850b9cd3d351597e4adbEric Rowe super.onCreate(arguments); 238e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe } 239e1d666b632608a2f708cb3df06c796e16d5d1717Eric Rowe} 240