/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveGFTDSDSMessageTest.py | 79 mt_sub_id, msg="SMS", argument 98 if msg == "SMS": 110 "%s of length %s test failed", msg, length) 114 "%s of length %s test succeeded", msg, length) 116 msg, self.message_lengths) 118 elif msg == "MMS": 130 msg, length) 134 "%s of body length %s test succeeded", msg, length) 136 msg, self.message_lengths) 254 msg="SMS", argument [all …]
|
D | TelLiveSettingsTest.py | 264 msg = "Power off SIM slot is not supported" 265 self.dut.log.warning("%s, test finished", msg) 266 self.result_detail = "%s, %s" % (self.result_detail, msg) 273 msg = "After SIM power down, carrier_id = %s(expecting -1), " \ 277 self.dut.log.error(msg) 279 msg) 284 self.dut.log.info(msg) 287 msg = "Power off SIM slot is not working" 288 self.dut.log.error(msg) 290 self.result_detail = "%s, %s" % (self.result_detail, msg) [all …]
|
D | TelLivePostflightTest.py | 47 msg = "" 53 msg += "%s find new crash reports %s " % (ad.serial, 61 if msg: 62 fail(msg) 68 msg = "" 76 msg += message 81 if msg: 82 fail(msg) 88 msg = "" 92 msg += "%s %s" % (ad.serial, dict(ad.data_accounting)) [all …]
|
D | TelLiveStressCallTest.py | 197 msg = "Stress Call Test %s Iteration: <%s> / <%s>" % ( 200 self.log.info(msg) 207 self.log.error("%s call dialing failure.", msg) 214 self.log.error("%s network check %s failure.", msg, 222 self.log.error("%s network check failure.", msg) 226 self.log.error("%s call dropped.", msg) 236 self.log.info("%s %s", msg, iteration_result)
|
/tools/test/connectivity/acts_tests/tests/google/nr/nsa5g/ |
D | Nsa5gDsdsMessageTest.py | 70 mt_sub_id, msg="SMS", argument 89 if msg == "SMS": 101 "%s of length %s test failed", msg, length) 105 "%s of length %s test succeeded", msg, length) 107 msg, self.message_lengths) 109 elif msg == "MMS": 121 msg, length) 125 "%s of body length %s test succeeded", msg, length) 127 msg, self.message_lengths) 135 msg="SMS", argument [all …]
|
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/stress/ |
D | MessagesStressTest.py | 56 def init_info(self, msg, id, messages_by_msg, messages_by_id): argument 65 messages_by_msg[msg] = {} 66 messages_by_msg[msg][KEY_ID] = id 67 messages_by_msg[msg][KEY_TX_OK_COUNT] = 0 68 messages_by_msg[msg][KEY_TX_FAIL_COUNT] = 0 69 messages_by_msg[msg][KEY_RX_COUNT] = 0 70 messages_by_id[id] = msg 101 msg = messages_by_id[id] 103 messages_by_msg[msg][ 104 KEY_TX_OK_COUNT] = messages_by_msg[msg][KEY_TX_OK_COUNT] + 1 [all …]
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 679 String msg = e.getMessage(); in testV1SchemeSignatureCertNotReencoded() local 681 if ((msg != null) in testV1SchemeSignatureCertNotReencoded() 682 && (msg.contains("Redundant length bytes found"))) { in testV1SchemeSignatureCertNotReencoded() 1311 StringBuilder msg = new StringBuilder(); in apkVerificationIssueAdapter_verifyAllBaseIssuesMapped() local 1319 if (msg.length() > 0) { in apkVerificationIssueAdapter_verifyAllBaseIssuesMapped() 1320 msg.append('\n'); in apkVerificationIssueAdapter_verifyAllBaseIssuesMapped() 1322 msg.append( in apkVerificationIssueAdapter_verifyAllBaseIssuesMapped() 1328 if (msg.length() > 0) { in apkVerificationIssueAdapter_verifyAllBaseIssuesMapped() 1329 fail(msg.toString()); in apkVerificationIssueAdapter_verifyAllBaseIssuesMapped() 1407 StringBuilder msg = new StringBuilder(); in assertVerified() local [all …]
|
D | SourceStampVerifierTest.java | 307 StringBuilder msg = new StringBuilder(); in assertVerified() local 309 if (msg.length() > 0) { in assertVerified() 310 msg.append('\n'); in assertVerified() 312 msg.append(error.toString()); in assertVerified() 314 fail("APK failed source stamp verification: " + msg.toString()); in assertVerified() 333 StringBuilder msg = new StringBuilder(); in assertSourceStampVerificationIssue() local 338 if (msg.length() > 0) { in assertSourceStampVerificationIssue() 339 msg.append('\n'); in assertSourceStampVerificationIssue() 341 msg.append(issue.toString()); in assertSourceStampVerificationIssue() 349 + (msg.length() > 0 ? msg.toString() : "No reported issues")); in assertSourceStampVerificationIssue()
|
/tools/test/connectivity/acts/framework/acts/ |
D | tracelogger.py | 41 def _log_with(self, logging_lambda, trace_level, msg, *args, **kwargs): argument 43 logging_lambda('%s %s' % (msg, trace_info), *args, **kwargs) 45 def exception(self, msg, *args, **kwargs): argument 46 self._log_with(self._logger.exception, 5, msg, *args, **kwargs) 48 def debug(self, msg, *args, **kwargs): argument 49 self._log_with(self._logger.debug, 3, msg, *args, **kwargs) 51 def error(self, msg, *args, **kwargs): argument 52 self._log_with(self._logger.error, 3, msg, *args, **kwargs) 54 def warn(self, msg, *args, **kwargs): argument 55 self._log_with(self._logger.warn, 3, msg, *args, **kwargs) [all …]
|
D | asserts.py | 35 msg=None, argument 53 first, second, msg=msg, delta=delta) 56 first, second, places=places, msg=msg) 59 if msg: 60 my_msg = "%s %s" % (my_msg, msg)
|
D | test_runner.py | 177 msg = ('Encountered error importing test class %s, ' 182 self.log.exception(msg) 183 raise ValueError(msg) 283 msg = '\nSummary for test run %s: %s\n' % ( 286 self.log.info(msg.strip())
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/ |
D | connectivity_test_utils.py | 20 def _listen_for_keepalive_event(ad, key, msg, ka_event): argument 34 asserts.fail(msg) 55 msg = "Failed to receive confirmation of starting natt socket keeaplive" 56 status = _listen_for_keepalive_event(ad, key, msg, "Started") 69 msg = "Failed to receive confirmation of starting tcp socket keeaplive" 70 status = _listen_for_keepalive_event(ad, key, msg, "Started") 81 msg = "Failed to receive confirmation of Error callback" 82 return _listen_for_keepalive_event(ad, key, msg, "Error") 92 msg = "Failed to receive confirmation of OnDataReceived callback" 93 return _listen_for_keepalive_event(ad, key, msg, "OnDataReceived") [all …]
|
D | socket_test_utils.py | 99 msg = MSG + " %s" % _ 100 send_list.append(msg) 101 client.log.info("Sending message: %s" % msg) 102 client.droid.sendDataOverSocket(server_ip, server_port, msg, client_fd) 158 msg = MSG + " %s" % _ 159 send_list.append(msg) 160 client.log.info("Sending message: %s" % msg) 162 msg, 287 msg = MSG + " %s" % _ 288 send_list.append(msg) [all …]
|
D | ui_utils.py | 180 msg = ('Timed out after %ds waiting for UI node matching conditions: %s.' 183 msg = ('%s extra conditions: %s' 184 % (msg, get_key_value_pair_strings(child))) 186 msg = ('%s extra conditions: %s' 187 % (msg, get_key_value_pair_strings(sibling))) 188 raise AndroidDeviceError(device, msg)
|
/tools/external_updater/ |
D | notifier.py | 76 msg = "" 80 msg = 'An upgrade change is generated at:\n{}'.format( 84 msg = 'Failed to generate upgrade change. See logs below for details.' 89 msg += '\n\nOWNERS file: \n' 90 msg += owners 92 msg += '\n\n' 93 msg += upgrade_log 109 input=msg, 154 msg = """Failed to send email for {} ({}). 157 print(msg)
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | tako_trace_logger.py | 34 def step(self, msg, *args, **kwargs): argument 36 self._log_with(self._logger_level('STEP'), 1, msg, *args, **kwargs) 38 def device(self, msg, *args, **kwargs): argument 40 self._log_with(self._logger_level('DEVICE'), 1, msg, *args, **kwargs) 42 def suite(self, msg, *args, **kwargs): argument 44 self._log_with(self._logger_level('SUITE'), 1, msg, *args, **kwargs) 46 def case(self, msg, *args, **kwargs): argument 48 self._log_with(self._logger_level('CASE'), 1, msg, *args, **kwargs)
|
/tools/repohooks/rh/ |
D | utils.py | 96 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument 110 self.msg = msg 135 if self.msg: 136 items.append(self.msg) 196 signum << 8, cmd, msg='Received signal %i' % signum) 414 msg = 'cwd=%s' % cwd 416 msg += ', extra env=%s' % extra_env 419 stderr=result.stderr, msg=msg) 430 stderr=result.stderr, msg=estr, exception=e)
|
D | config_test.py | 28 def assertEqual(msg, exp, actual): argument 30 assert exp == actual, '%s: expected "%s" but got "%s"' % (msg, exp, actual) 46 def check_commit_msg(msg): argument 48 assert len(msg) > 1, 'commit message must be at least 2 bytes: %s'
|
D | hooks_unittest.py | 70 msg='README.md missing docs for hook "%s"' % (hook,)) 77 msg='README.md missing docs for tool "%s"' % (tool,)) 84 msg='README.md missing docs for var "%s"' % (var,)) 153 msg='Missing unittest for variable %s' % (var,)) 299 bool(ret), msg='Should have accepted: {{{%s}}}' % (desc,)) 302 bool(ret), msg='Should have rejected: {{{%s}}}' % (desc,)) 326 msg='Missing unittest for builtin hook %s' % (hook,))
|
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/functional/ |
D | MessageTest.py | 164 msg = self.create_msg(s_dut.aware_capabilities, payload_size, i) 167 msg, 0) 176 msg, 182 msg = self.create_msg(s_dut.aware_capabilities, payload_size, 186 msg, 0) 195 msg, 297 msg = self.create_msg(s_dut.aware_capabilities, payload_size, i) 299 msgs[msg] = 0 302 msg, 0) 312 msg = self.create_msg(p_dut.aware_capabilities, payload_size, [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | event_dispatcher.py | 218 msg = 'Timeout after {}s waiting for event: {}'.format( 220 self.log.info(msg) 221 raise queue.Empty(msg) 278 msg = 'Timeout after {}s waiting for event: {}'.format( 280 self.log.info(msg) 281 raise queue.Empty(msg) 318 msg = 'Timeout after {}s waiting for event: {}'.format( 320 self.log.error(msg) 321 raise queue.Empty(msg)
|
/tools/test/connectivity/acts_tests/tests/google/bt/headphone_automation/ |
D | HeadphoneTest.py | 149 msg = "Unable to pair to %s", headphone.name 150 assert_true(self._discover_and_pair(headphone), msg) 191 msg = "Unable to pair to %s", headphone.name 192 assert_true(self._discover_and_pair(headphone), msg) 228 msg = "Unable to pair to %s", headphone.name 229 assert_true(self._discover_and_pair(headphone), msg)
|
/tools/test/connectivity/acts/framework/tests/libs/logging/ |
D | log_stream_test.py | 90 msg='__validate_styles did not raise the expected error message') 107 msg='__validate_styles did not raise the expected error message') 116 msg='__validate_styles did not raise the expected error message') 126 msg='__validate_styles did not raise the expected error message') 141 msg='__validate_styles did not raise the expected error message') 156 msg='__validate_styles did not raise the expected error message') 176 msg='__validate_styles did not raise the expected error message')
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | arduino_wifi_dongle.py | 231 def start_controller_log(self, msg=None): argument 241 if msg: 243 self.log_file_fd.write(curr_time + ' INFO: ' + msg) 248 def stop_controller_log(self, msg=None): argument 256 if msg: 258 self.log_file_fd.write(curr_time + ' INFO: ' + msg)
|
/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | WifiManagerTest.py | 203 msg = ( 207 raise signals.TestFailure(msg) 352 msg = "Failed to turn on location service's scan." 353 asserts.assert_true(self.dut.droid.wifiScannerIsAlwaysAvailable(), msg) 360 msg = "Failed to turn off location service's scan." 361 asserts.assert_true(not self.dut.droid.wifiScannerIsAlwaysAvailable(), msg) 368 msg = "Failed to turn off location service's scan." 369 asserts.assert_true(not self.dut.droid.wifiScannerIsAlwaysAvailable(), msg) 486 msg = ("Device failed to reconnect to the correct network after" 488 raise signals.TestFailure(msg) [all …]
|