Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 541) sorted by relevance

12345678910>>...22

/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmg3710a.py54 "Signal Generator MG3710A ({}) ".format(self._ipaddr))
61 "with handle ({})".format(self._ipaddr, self._sock))
89 self.log.info("--> {}".format(query))
96 self.log.info('<-- {}'.format(response))
112 self.log.info("--> {}".format(command))
150 cmd = "PORT {}".format(sg_number)
163 return self.send_query("OUTP{}:MOD?".format(sg))
176 cmd = "OUTP{}:MOD {}".format(sg, state)
189 return self.send_query("OUTP{}?".format(sg))
202 cmd = "OUTP{} {}".format(sg, state)
[all …]
/tools/test/connectivity/acts/tests/google/bt/pts/
Dcmd_input.py87 self.log.info("New device is {}".format(device))
89 self.log.info("Failed to setup new vars with {}".format(err))
98 self.log.info(FAILURE.format(cmd, err))
105 self.log.info(FAILURE.format(cmd, err))
112 self.log.info(FAILURE.format(cmd, err))
123 self.log.info(FAILURE.format(cmd, err))
131 self.log.info(FAILURE.format(cmd, err))
139 self.log.info(FAILURE.format(cmd, err))
147 self.log.info(FAILURE.format(cmd, err))
155 self.log.info(FAILURE.format(cmd, err))
[all …]
/tools/tradefederation/core/src/com/android/tradefed/log/
DLogUtil.java60 return String.format("%s %c/%s: %s\n", formatter.format(new Date()), in getLogFormatString()
90 public static void v(String format, Object... args) { in v() argument
92 Log.v(getClassName(2), String.format(format, args)); in v()
112 public static void d(String format, Object... args) { in d() argument
114 Log.d(getClassName(2), String.format(format, args)); in d()
134 public static void i(String format, Object... args) { in i() argument
136 Log.i(getClassName(2), String.format(format, args)); in i()
167 public static void w(String format, Object... args) { in w() argument
169 Log.w(getClassName(2), String.format(format, args)); in w()
189 public static void e(String format, Object... args) { in e() argument
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/car/
Dcar_telecom_utils.py46 log.info("Dialing up droid {} call uri {}".format(
51 log.info("We're still in call {}".format(ad.serial))
68 "Did not get {} event!".format(tel_defines.EventTelecomCallAdded))
75 log.info("Call ID: {} dev {}".format(call_id, ad.serial))
105 log.info("Call ID {} already in {} dev {}!".format(
126 log.info("Droid {} in call {} state {}".format(
130 log.info("Did not get into state {} dev {}".format(
148 log.info("Hanging up droid {} call {}".format(
152 log.info("We are not in-call {}".format(ad.serial))
173 log.info("Removed call {}".format(event))
[all …]
Dtel_telecom_utils.py40 log.info("Dialing up droid {} call uri {}".format(
55 "Did not get {} event!".format(tel_defines.EventTelecomCallAdded))
62 log.info("Call ID: {} dev {}".format(call_id, ad.serial))
91 log.info("Call ID {} already in {} dev {}!".format(
102 log.info("Did not get into state {} dev {}".format(
121 log.info("Hanging up droid {} call {}".format(
125 log.info("We are not in-call {}".format(ad.serial))
146 log.info("Removed call {}".format(event))
170 log.info("Got calls {} for {}".format(
183 log.info("wait_for_not_in_call Did not get {} droid {}".format(
[all …]
/tools/tradefederation/contrib/
DPREUPLOAD.cfg5 google-java-format = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
6 google-java-format-diff = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
/tools/loganalysis/
DPREUPLOAD.cfg5 google-java-format = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
6 google-java-format-diff = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
/tools/test/connectivity/acts/tests/google/bt/system_tests/
DRfcommLongevityTest.py76 self.log.info("iteration {} connection".format(i + 1))
81 self.log.info("iteration {} data".format(((n + 1) + (
86 self.log.info("Iteration {} completed".format(n))
121 self.log.info("iteration {} connection".format(i + 1))
126 self.log.info("iteration {} data".format(((n + 1) + (
131 self.log.info("Iteration {} completed".format(n))
166 self.log.info("iteration {} connection".format(i + 1))
171 self.log.info("iteration {} data".format(((n + 1) + (
176 self.log.info("Iteration {} completed".format(n))
211 self.log.info("iteration {} connection".format(i + 1))
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_gatt_utils.py46 log.info("Gatt Connect to mac address {}.".format(mac_address))
50 expected_event = gatt_cb_strings['gatt_conn_change'].format(gatt_callback)
57 "peripheral. Expected event: {}".format(expected_event))
65 "peripheral. Event Details: {}".format(
84 expected_event = gatt_cb_strings['gatt_conn_change'].format(gatt_callback)
89 gatt_cb_err['gatt_conn_change_err'].format(expected_event))
94 "GATT connection state change expected {}, found {}".format(
113 "Error in getting mac address: {}".format(err))
158 'desc_write_req'].format(gatt_server_callback)
163 log.error(gatt_cb_err['desc_write_req_err'].format(
[all …]
Dgatts_lib.py60 self.dut.log.info("GATT Server service uuid: {}".format(service))
68 "GATT Server characteristic handle uuid: {} {}".format(
91 "Failed to close Bluetooth GATT Servers: {}".format(err))
114 desc_read = gatt_event['desc_read_req']['evt'].format(
116 desc_write = gatt_event['desc_write_req']['evt'].format(
118 char_read = gatt_event['char_read_req']['evt'].format(
120 char_write_req = gatt_event['char_write_req']['evt'].format(
122 char_write = gatt_event['char_write']['evt'].format(
124 execute_write = gatt_event['exec_write']['evt'].format(
126 regex = "({}|{}|{}|{}|{}|{})".format(desc_read, desc_write, char_read,
[all …]
Dbt_contacts_utils.py97 with open("{}{}".format(destination_path, file_name),
114 pce_contacts = parse_contacts("{}{}".format(destination_path,
116 pse_contacts = parse_contacts("{}{}".format(destination_path,
121 log.info("All {} contacts in the phonebooks match".format(
124 log.info("{} contacts match, but ".format(
126 log.info("the following {} entries don't match:".format(
182 vcard_strings.append("N:{};{};;;\nFN:{} {}\n".format(
186 vcard_strings.append("FN:{}\n".format(self.name))
190 vcard_strings.append("TEL;{}:{}\n".format(
194 vcard_strings.append("EMAIL;PREF:{}\n".format(self.email))
[all …]
Dconfig_lib.py31 conf_path = "{}/configs".format(
33 reset_config_path = "{}/bt_stack.conf".format(conf_path)
34 non_bond_config_path = "{}/non_bond_bt_stack.conf".format(conf_path)
35 disable_mitm_config_path = "{}/dis_mitm_bt_stack.conf".format(conf_path)
46 self.dut.adb.push("{} {}".format(self.reset_config_path,
51 self.dut.adb.push("{} {}".format(self.non_bond_config_path,
56 self.dut.adb.push("{} {}".format(self.disable_mitm_config_path,
Dbt_test_utils.py108 scan_result.format(scan_callback), bt_default_timeout)
111 "Failed to find scan event: {}".format(error))
144 adv_succ.format(advertise_callback), bt_default_timeout)
145 adv_ad.log.info("Advertisement {} started.".format(i + 1))
147 adv_ad.log.error("Advertisement {} failed to start.".format(i + 1))
149 "Test failed with Empty error: {}".format(error))
244 a.log.info("Removing bond for device {}".format(b['address']))
253 log.error("Something went wrong in multi device setup: {}".format(err))
304 log.info("State normalized {}".format(set(all_states[-threshold:])))
313 … "Failed to match bluetooth state, current state {} expected state {}".format(get_state(), state))
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DMonkeyLogParserFuncTest.java47 fail(String.format("File not found at %s", MONKEY_LOG_PATH)); in testParse()
54 System.out.println(String.format("Monkey log took %d ms to parse.", stop - start)); in testParse()
56 fail(String.format("IOException: %s", e.toString())); in testParse()
84 sb.append(String.format(" Start time: %s\n", monkeyLog.getStartTime())); in testParse()
85 sb.append(String.format(" Stop time: %s\n", monkeyLog.getStopTime())); in testParse()
86 sb.append(String.format(" Parameters: target-count=%d, throttle=%d, seed=%d, " + in testParse()
90 sb.append(String.format(" Packages: %s\n", monkeyLog.getPackages())); in testParse()
91 sb.append(String.format(" Categories: %s\n", monkeyLog.getCategories())); in testParse()
95 sb.append(String.format(" Status: finished=%b, final-count=%d, " + in testParse()
101 sb.append(String.format(" %s=%d,", drop.toString(), in testParse()
[all …]
/tools/tradefederation/core/
DPREUPLOAD.cfg6 google-java-format = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
7 google-java-format-diff = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
/tools/test/connectivity/acts/tests/google/wifi/
DWifiAutoJoinTest.py64 self.log.debug("Connect networks :: {}".format(self.other_network))
66 self.log.debug("Configured networks :: {}".format(configured_networks))
81 self.log.info("count_confnet {}".format(count_confnet))
114 self.log.info("Current network: {}".format(current_network))
131 self.log.info("Check network for {}".format(network_bssid))
133 self.log.debug("Current network: {}".format(current_network))
156 "Device is not connected to required bssid {}".format(bssid))
160 "Error, No Internet connection for current bssid {}".format(
188 … "_{}_AP3_{}").format(att_value[0], att_value[1], att_value[2])
196 "Number of test_autojoin_Ap1_2g failed {}".format(len(failed)))
[all …]
/tools/test/connectivity/acts/tests/google/bt/audio_lab/
DBtChameleonTest.py54 self.raw_audio_dest = "{}/{}".format(self.android_devices[0].log_path,
64 audio_analysis_filename = "{}_audio_analysis.txt".format(
74 self.dut.droid.mediaPlayOpen("file://{}".format(audio_to_play))
80 dest_file_path = "{}/{}_recording.raw".format(self.raw_audio_dest,
85 analysis_path = "{}/{}".format(self.raw_audio_dest,
96 self.log.exception("Failed to analyze raw audio: {}".format(err))
136 sox_call = "{}{}".format("sox -b 16 -r 48000 -c 2 -n {}".format(
139 sox_audio_path = "{}/{}".format(
145 self.dut.adb.push("{} {}".format(sox_audio_path,
147 output_file_prefix_name = "{}_{}".format("test_2k1k_10_sec",
[all …]
/tools/test/connectivity/acts/tests/google/ble/api/
DBleAdvertiseApiTest.py80 " found filtering mode: {}".format(
85 " found filtering tx power level: {}".format(
90 " found filtering is connectable: {}".format(
133 " found filtering service uuids: {}".format(
139 " found filtering include tx power level: {}".format(
145 " found filtering include tx power level: {}".format(
181 "Step 2: Set the filtering settings object's value to {}".format(
213 "Step 2: Set the filtering settings object's value to {}".format(
245 "Step 2: Set the filtering settings object's value to {}".format(
305 "Step 2: Set the filtering settings object's value to {}".format(
[all …]
/tools/test/connectivity/acts/tests/google/ble/concurrency/
DConcurrentBleScanningTest.py49 .format(test_name))
98 adv_succ.format(advertise_callback), self.default_timeout)
100 self.log.exception("Test failed with Empty error: {}".format(
106 "{}".format(error))
117 self.log.debug("Concurrent Ble Scan iteration {}".format(i + 1))
124 scan_result.format(scan_callback), self.default_timeout)
126 "successful.".format(i))
129 .format(scan_callback))
186 self.log.debug("Concurrent Ble Scan iteration {}".format(i + 1))
195 adv_succ.format(advertise_callback), self.default_timeout)
[all …]
/tools/test/connectivity/acts/tests/google/bt/setup/
DBtPreFlightTest.py35 self.log.info("****START: {} DEVICE INFO****".format(serial))
36 self.log.info("BOOTLOADER VERSION {}".format(d.getBuildBootloader(
38 self.log.info("BUILD HARDWARE {}".format(d.getBuildHardware()))
39 self.log.info("BUILD PRODUCT {}".format(d.getBuildProduct()))
42 self.log.info("****END: {} DEVICE INFO****".format(serial))
47 conf_path = "{}/bt_stack.conf".format(
67 .format(e))
69 ad.adb.push("{} /system/etc/bluetooth/bt_stack.conf".format(
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java116 Log.i(LOG_TAG, String.format("Pausing for %d for %s to recover", in recoverDevice()
124 Log.i(LOG_TAG, String.format( in recoverDevice()
189 throw new DeviceNotAvailableException(String.format( in checkMinBatteryLevel()
208 Log.i(LOG_TAG, String.format( in handleDeviceUnresponsive()
221 throw new DeviceUnresponsiveException(String.format( in handleDeviceUnresponsive()
236 throw new DeviceNotAvailableException(String.format("Could not find device %s", in handleDeviceNotAvailable()
249 Log.i(LOG_TAG, String.format("Pausing for %d for %s to recover", in recoverDeviceBootloader()
277 Log.i(LOG_TAG, String.format("Found device %s online but expected fastboot.", in handleDeviceOnlineExpectedBootloader()
287 throw new DeviceNotAvailableException(String.format( in handleDeviceOnlineExpectedBootloader()
307 throw new DeviceNotAvailableException(String.format( in handleDeviceBootloaderUnresponsive()
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
DDmesgParser.java47 private static final String SERVICE_PREFIX = String.format("^\\[\\s+(?<%s>.*)\\] init:\\s+",
50 private static final String UEVENTD_PREFIX = String.format("^\\[\\s+(?<%s>.*)\\] ueventd:\\s+",
54 private static final String START_SERVICE_SUFFIX = String.format("starting service "
57 private static final String EXIT_SERVICE_SUFFIX = String.format("Service \\'(?<%s>.*)\\'\\s+"
61 String.format("%s%s", SERVICE_PREFIX, START_SERVICE_SUFFIX));
63 String.format("%s%s", SERVICE_PREFIX, EXIT_SERVICE_SUFFIX));
67 private static final String START_STAGE_PREFIX = String.format("init (?<%s>.*) stage started!",
72 String.format("%s%s", SERVICE_PREFIX, START_STAGE_PREFIX));
76 String.format("processing action \\((?<%s>.*)\\) from.*$", ACTION);
80 String.format("processing action \\((?<%s>.*)\\).*$", ACTION);
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceStressTest.java66 tmpFile = FileUtil.createTempFile(String.format("tmp_%d", i), ".txt", tmpDir); in createTempTestFiles()
75 Log.i(LOG_TAG, String.format("testReboot attempt %d", i)); in testManyReboots()
83 Log.i(LOG_TAG, String.format("testRebootBootloader attempt %d", i)); in testManyRebootBootloaders()
95 Log.i(LOG_TAG, String.format("testDisableKeyguard attempt %d", i)); in testManyDisableKeyguard()
115 deviceFilePath = String.format("%s/%s", externalStorePath, "testDir"); in testPushFolderWithManyFiles()
123 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles()
124 assertFalse(String.format("%s exists", deviceFilePath), in testPushFolderWithManyFiles()
133 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles()
134 assertFalse(String.format("%s exists", deviceFilePath), in testPushFolderWithManyFiles()
147 deviceFilePath = String.format("%s/%s", externalStorePath, "testDir"); in testSyncDataWithManyFiles()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DTimeUtil.java37 return String.format("%d ms", elapsedTimeMs); in formatElapsedTime()
71 private static String formatTimeStamp(long epochTime, SimpleDateFormat format) { in formatTimeStamp() argument
72 if (format == null) { in formatTimeStamp()
73 format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); in formatTimeStamp()
75 return format.format(new Date(epochTime)); in formatTimeStamp()
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py211 self.log_path = os.path.join(log_path, "iPerf{}".format(self.port))
213 self.iperf_str = "iperf3 -s -J -p {}".format(self.port)
230 out_file_name = "IPerfServer,{},{}{}.log".format(
233 cmd = "{} {} > {}".format(self.iperf_str, extra_args,
259 self.log_path = os.path.join(log_path, "iPerf{}".format(self.port))
261 self.iperf_str = "iperf3 -s -J -p {}".format(self.port)
278 out_file_name = "IPerfServer,{},{}{}.log".format(
281 cmd = "{} {} > {}".format(self.iperf_str, extra_args,
282 "iperf_server_port{}.log".format(self.port))
294 self.ssh_session.run_async("kill -9 {}".format(
[all …]

12345678910>>...22