Home
last modified time | relevance | path

Searched refs:logger (Results 1 – 25 of 156) sorted by relevance

1234567

/tools/test/connectivity/acts/framework/tests/metrics/
Dlogger_test.py21 from acts.metrics.logger import LoggerProxy
22 from acts.metrics.logger import MetricLogger
43 logger = MetricLogger.for_test_case(*args, **kwargs)
51 logger = MetricLogger.for_test_class(*args, **kwargs)
61 logger = TestLogger.for_test_case(*args, **kwargs)
71 logger = TestLogger.for_test_class(*args, **kwargs)
76 logger = MetricLogger()
78 self.assertIsNone(logger.context)
79 self.assertIsNone(logger.publisher)
85 logger = MetricLogger(context=context, publisher=publisher)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/
Dapollo_acts.py75 def __init__(self, apollo_dev, logger=None): argument
80 super(ApolloTestActions, self).__init__(logger)
87 self.logger.info(status)
99 self.logger.info('Waiting for the disconnection.')
106 self.logger.warning('Timeout waiting for the disconnection.')
126 self.logger.info('Already paired and connected, skipping pairing.')
129 self.logger.info(
134 self.logger.info('DEVICE PAIRED')
140 self.logger.info(profiles)
161 self.logger.info('Device is already unpaired, skipping unpairing.')
[all …]
Dbt_utils.py73 self.logger = tako_trace_logger.TakoTraceLogger(Logger(__file__))
121 self.logger.info('Verifying devices are bonded')
151 self.logger.error('Not paired to %s', sec_device.device_name)
154 self.logger.info('Attempting to connect.')
157 self.logger.info('Verifying devices are connected')
170 self.logger.info('Successfully bonded to device')
179 self.logger.info('Successfully connected to device')
198 self.logger.debug('Already unpaired.')
200 self.logger.debug('Unpairing from %s' % target_address)
207 self.logger.debug('Verifying devices are unpaired')
[all …]
Dagsa_acts.py40 def __init__(self, android_dev, logger=None): argument
46 super(AgsaTestActions, self).__init__(logger)
70 self.logger.info('Agsa broadcast successful!')
73 self.logger.error('Agsa broadcast failed')
94 self.logger.info('Waiting for OTA transfer to complete....')
106 self.logger.info('Transfer completed!')
112 self.logger.error('Timed out waiting for OTA to complete.')
146 self.logger.info('Current AGSA version is %s' % current_version)
147 self.logger.info('Installing AGSA version %s...' % version)
149 self.logger.info('Install success!')
[all …]
Dbase_test_actions.py136 def __init__(self, logger=None): argument
137 if logger is None:
138 self.logger = tako_trace_logger.TakoTraceLogger()
139 self.log_step = self.logger.step
141 self.logger = logger
142 self.log_step = self.logger.info
178 self.logger.info('I can do %d action%s:' %
181 self.logger.info(' - %s' % act)
186 self.logger.info('%s seconds' % seconds)
/tools/test/connectivity/acts/framework/tests/metrics/loggers/
Dblackbox_test.py49 logger = BlackboxMetricLogger(metric_name)
51 self.assertEqual(logger.metric_name, metric_name)
52 self.assertIsNone(logger.metric_key)
58 logger = BlackboxMetricLogger(metric_name, metric_key=metric_key)
60 self.assertEqual(logger.metric_key, metric_key)
67 logger = BlackboxMetricLogger(metric_name, event=self.event)
69 self.assertIsNotNone(logger.context)
70 self.assertIsNotNone(logger.publisher)
81 logger = BlackboxMetricLogger(self.TEST_METRIC_NAME)
82 logger.context = self.context
[all …]
Dbounded_metrics_test.py44 logger = BoundedMetricsLogger(event=self.event)
46 self.assertIsNotNone(logger.context)
47 self.assertIsNotNone(logger.publisher)
55 logger = BoundedMetricsLogger(event=self.event)
56 logger.context = self.context
57 logger.publisher = self.publisher
58 logger.context.identifier = 'Class.test'
60 logger.add('towels_metric', 123, lower_limit=1, upper_limit=2,
79 logger = BoundedMetricsLogger(event=self.event)
80 logger.context = self.context
[all …]
/tools/acloud/internal/lib/
Dgcompute_client.py43 logger = logging.getLogger(__name__) variable
250 logger.info("Can't get %s quota info from zone(%s)", metric, zone)
268 logger.debug(
272 logger.debug(
307 logger.debug("CheckDiskExists: disk_name: %s, result: %s", disk_name,
333 logger.info("Creating disk %s, size_gb: %d, source_image: %s",
353 logger.error("Creating disk failed, cleaning up: %s", disk_name)
357 logger.info("Disk %s has been created.", disk_name)
366 logger.info("Deleting disk %s", disk_name)
374 logger.info("Deleted disk %s", disk_name)
[all …]
Dutils.py47 logger = logging.getLogger(__name__) variable
145 logger.debug("Created temporary dir %s", self.path)
168 logger.debug("Deleted temporary dir %s", self.path)
177 logger.error(
339 logger.info("Compressing %s into %s.", src_dict.keys(), dest)
368 logger.debug(
383 logger.info(
391 logger.info(
414 logger.info("Created ssh private key (%s) and public key (%s)",
465 logger.info("Start to decompress %s!", sourcefile)
[all …]
Dgstorage_client.py28 logger = logging.getLogger(__name__) variable
70 logger.debug("Listing storage bucket: %s, prefix: %s", bucket_name,
90 logger.info("Uploading file: src: %s, bucket: %s, object: %s",
98 logger.info("Uploaded artifact: %s", response["selfLink"])
101 logger.error("Uploading artifact fails: %s", str(e))
111 logger.info("Deleting file: bucket: %s, object: %s", bucket_name,
116 logger.info("Deleted file: bucket: %s, object: %s", bucket_name,
Demulator_console.py27 logger = logging.getLogger(__name__) variable
56 logger.debug("Connect to %s:%d", ip_addr, port)
96 logger.debug("Reconnect to %s:%d",
117 logger.debug("Emu command: %s", command)
153 logger.debug("Emu output: %s", new_data)
169 logger.debug("Fail to ping console: %s", str(e))
Dssh.py27 logger = logging.getLogger(__name__) variable
57 logger.info("Running command \"%s\"", cmd)
84 logger.info("Running command \"%s\"", cmd)
119 logger.info("Running command \"%s\"", cmd)
133 logger.debug(stdout.strip())
255 logger.debug(
324 logger.info("Running command \"%s\"", ssh_cmd)
362 logger.debug("Retry with interval time: %s secs", str(sleep_multiplier))
Dandroid_compute_client.py47 logger = logging.getLogger(__name__) variable
113 logger.info("ssh_public_key_path is specified in config: %s, "
120 logger.warning(
361 logger.debug("CheckBoot: Instance is not ready yet %s", str(e))
363 logger.error("Unexpected http status: %d, %s", e.code, e.message)
375 logger.info("Waiting for instance to boot up %s for %s secs",
387 logger.info("Instance boot completed: %s", instance)
Dandroid_build_client.py35 logger = logging.getLogger(__name__) variable
102 logger.info("Downloading artifact: target: %s, build_id: %s, "
112 logger.info("Downloaded artifact: %s", local_dest)
114 logger.error("Downloading artifact failed: %s", str(e))
305 logger.info(copy_msg, build_target, build_id, artifact_name,
317 logger.info(finish_msg, build_target, build_id, artifact_name,
367 logger.info("GetLKGB build API response: %s", build)
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmx500.py30 logger = logging.getLogger('Xlapi_cmx500') variable
170 logger.info('The instrument address is {}'.format(
282 logger.info('The {} is {}'.format(attr, getter()))
284 logger.warning('Error in get {}: {}'.format(attr, e))
345 logger.info('The LTE pcell status is on')
352 logger.info('The LTE cell status is {} after stop'.format(
361 logger.info('Switches on NSA signalling')
364 logger.info('set nr cell n310 timer to N310.N20')
372 logger.info('The LTE pcell status is on')
379 logger.info('The NR cell status is on')
[all …]
Dcontest.py52 def __init__(self, logger, remote_ip, remote_port, automation_listen_ip, argument
69 self.log = logger
292 def __init__(self, logger, port, listen_ip, dut_on_func, dut_off_func, argument
309 self.log = logger
315 return self.AutomationProtocol(logger, dut_on_func, dut_off_func)
341 def __init__(self, logger, dut_on_func, dut_off_func): argument
350 self.log = logger
/tools/test/connectivity/acts/framework/acts/libs/logging/
Dlog_stream.py136 return log_stream.logger
232 self.logger = logging.getLogger(log_name)
234 self.logger = logging.getLogger(name)
236 self.logger.addHandler(_null_handler)
237 self.logger.propagate = False
241 context.TestContext.add_base_output_path(self.logger.name, self.base_path)
242 context.TestContext.add_subcontext(self.logger.name, self.subcontext)
352 return curr_context.get_full_output_path(self.logger.name)
390 self.logger.addHandler(handler)
400 self.logger.addHandler(handler)
[all …]
/tools/acloud/setup/
Dsetup_common.py27 logger = logging.getLogger(__name__) variable
53 logger.debug("Run command: %s", cmd)
71 logger.error("Package install for %s failed: %s", pkg, cpe.output)
129 logger.debug("Check package install status")
130 logger.debug(pkg_info)
151 logger.debug("Package is not installed, status is (none)")
155 logger.debug("Version info not found [installed: %s ,candidate: %s]",
162 logger.warning("Package %s version at %s, expected %s",
Dhost_setup_runner.py38 logger = logging.getLogger(__name__) variable
110 logger.info("All package(s) installed now.")
166 logger.debug("cuttlefish-common path: %s", cf_common_path)
204 logger.info("The local CA '%s.pem' is installed now.",
255 logger.info("Checking if modules are loaded: %s", module_list)
261 logger.info("missing module: %s", module)
/tools/acloud/create/
Dlocal_image_local_instance.py75 logger = logging.getLogger(__name__) variable
205 logger.info("Selected instance ids: %s", ins_ids)
362 logger.error(err_msg)
564 logger.debug("Android info: %s", android_info)
680 logger.debug("launch_cvd cmd:\n %s", launch_cmd)
716 logger.debug("WebRTC frontend certificate path doesn't exist: %s",
736 logger.info("Skip logging cvd version as %s is not a file",
745 logger.info("`%s` returned %d; stdout:\n%s",
747 logger.info("`%s` stderr:\n%s", cmd, proc.stderr)
749 logger.error("`%s` failed: %s", cmd, e)
[all …]
Dgoldfish_local_image_local_instance.py56 logger = logging.getLogger(__name__) variable
153 logger.info("Selected instance id: %d", ins_id)
198 logger.info("Instance directory: %s", instance_dir)
321 logger.info("Goldfish AVD is already running.")
348 logger.info("Copy %s to %s", _BUILD_PROP_FILE_NAME, build_prop_path)
370 logger.info("Rename %s to %s%s.",
382 logger.info("Link %s to %s.", system_qemu_img, new_image)
385 logger.info("Fail to link. Copy %s to %s",
407 logger.info("Found boot image: %s", boot_image_path)
416 logger.info("Found kernel and ramdisk: %s %s",
[all …]
/tools/acloud/list/
Dinstance.py52 logger = logging.getLogger(__name__) variable
275 logger.debug(("Can't parse datetime string(%s)."), start_time)
588 logger.warning("Cvd tools path doesn't exist:%s", cvd_tool)
590 logger.debug("Running cmd [%s] to get device info.", cvd_status_cmd)
596 logger.debug("Output of cvd status: %s", stdout)
600 logger.error("Failed to run 'cvd status': %s", str(error))
637 logger.debug("No cvd tools path found from config:%s",
647 logger.warning("Cvd tools path doesn't exist:%s", cvd_status_cmd)
651 logger.warning(
657 logger.debug("Running cmd[%s] to check cvd status.", cvd_status_cmd)
[all …]
/tools/treble/split/
Dmanifest_split.py93 logger = logging.getLogger(os.path.basename(__file__)) variable
378 logger.warning("Unknown kati makefile: %s" % makefile)
504 logger.info(
514 logger.info("%s projects after including Kati makefiles projects.",
517 logger.info("Kati makefiles projects skipped.")
524 logger.info("%s projects after including manual additions.",
538 logger.info("Checking module-info dependencies for direct and adjacent modules...")
570 logger.info(
581 logger.info(
587 logger.info("%s projects - complete", len(input_projects))
[all …]
/tools/test/connectivity/acts/framework/acts/metrics/
Dlogger.py270 logger = getattr(self, '_logger', None)
271 if not logger:
273 return getattr(logger, attr)
289 logger = getattr(self, '_logger', None)
290 if not logger:
292 return setattr(logger, attr, value)
/tools/test/connectivity/acts/framework/tests/controllers/rohdeschwarz_lib/
Dcontest_test.py17 from acts import logger
49 self.log = logger.create_tagged_trace_logger('contest_test')
66 logger=self.log,
182 controller = contest.Contest(logger=self.log,
223 controller = contest.Contest(logger=self.log,
264 controller = contest.Contest(logger=self.log,

1234567