/tools/tradefederation/core/tests/src/com/android/tradefed/log/ |
D | FileLoggerTest.java | 62 FileLogger logger = new FileLogger(); in testLogToLogger() local 66 logger.init(); in testLogToLogger() 68 logger.printLog(LogLevel.INFO, LOG_TAG, Text1); in testLogToLogger() 70 logger.printLog(LogLevel.VERBOSE, LOG_TAG, Text2); in testLogToLogger() 73 logger.printLog(LogLevel.ASSERT, LOG_TAG, Text3); in testLogToLogger() 77 logSource = logger.getLog(); in testLogToLogger() 93 logger.closeLog(); in testLogToLogger() 115 FileLogger logger = new FileLogger(); in testGetLog_afterClose() local 116 logger.init(); in testGetLog_afterClose() 117 logger.closeLog(); in testGetLog_afterClose() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/ |
D | apollo_acts.py | 75 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 …]
|
D | bt_utils.py | 72 self.logger = tracelogger.TakoTraceLogger(Logger(__file__)) 120 self.logger.info('Verifying devices are bonded') 150 self.logger.error('Not paired to %s', sec_device.device_name) 153 self.logger.info('Attempting to connect.') 156 self.logger.info('Verifying devices are connected') 169 self.logger.info('Successfully bonded to device') 178 self.logger.info('Successfully connected to device') 197 self.logger.debug('Already unpaired.') 199 self.logger.debug('Unpairing from %s' % target_address) 205 self.logger.debug('Verifying devices are unpaired') [all …]
|
D | agsa_acts.py | 40 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 …]
|
D | base_test_actions.py | 40 self.logger.step('%s...' % func_name) 136 def __init__(self, logger=None): argument 137 if logger is None: 138 self.logger = tracelogger.TakoTraceLogger() 140 self.logger = logger 175 self.logger.i('I can do %d action%s:' % 178 self.logger.i(' - %s' % act) 183 self.logger.i('%s seconds' % seconds)
|
/tools/test/connectivity/acts/framework/tests/metrics/ |
D | logger_test.py | 21 from acts.metrics.logger import LoggerProxy 22 from acts.metrics.logger import MetricLogger 44 logger = MetricLogger.for_test_case(*args, **kwargs) 52 logger = MetricLogger.for_test_class(*args, **kwargs) 62 logger = TestLogger.for_test_case(*args, **kwargs) 72 logger = TestLogger.for_test_class(*args, **kwargs) 114 logger = MetricLogger() 116 self.assertIsNone(logger.context) 117 self.assertIsNone(logger.publisher) 123 logger = MetricLogger(context=context, publisher=publisher) [all …]
|
/tools/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | blackbox_test.py | 50 logger = BlackboxMetricLogger(metric_name) 52 self.assertEqual(logger.metric_name, metric_name) 53 self.assertIsNone(logger.metric_key) 59 logger = BlackboxMetricLogger(metric_name, metric_key=metric_key) 61 self.assertEqual(logger.metric_key, metric_key) 68 logger = BlackboxMetricLogger(metric_name, event=self.event) 70 self.assertIsNotNone(logger.context) 71 self.assertIsNotNone(logger.publisher) 79 logger = BlackboxMetricLogger(self.TEST_METRIC_NAME) 80 logger.context = self.context [all …]
|
D | bounded_metrics_test.py | 47 logger = BoundedMetricsLogger(event=self.event) 49 self.assertIsNotNone(logger.context) 50 self.assertIsNotNone(logger.publisher) 58 logger = BoundedMetricsLogger(event=self.event) 59 logger.context = self.context 60 logger.publisher = self.publisher 61 logger.context.identifier = 'Class.test' 63 logger.add('towels_metric', 123, lower_limit=1, upper_limit=2, 81 logger = BoundedMetricsLogger(event=self.event) 82 logger.context = self.context [all …]
|
/tools/acloud/internal/lib/ |
D | gcompute_client.py | 45 logger = logging.getLogger(__name__) variable 249 logger.info("Can't get %s quota info from zone(%s)", metric, zone) 267 logger.debug( 271 logger.debug( 306 logger.debug("CheckDiskExists: disk_name: %s, result: %s", disk_name, 332 logger.info("Creating disk %s, size_gb: %d, source_image: %s", 352 logger.error("Creating disk failed, cleaning up: %s", disk_name) 356 logger.info("Disk %s has been created.", disk_name) 365 logger.info("Deleting disk %s", disk_name) 373 logger.info("Deleted disk %s", disk_name) [all …]
|
D | utils.py | 47 logger = logging.getLogger(__name__) variable 122 logger.debug("Created temporary dir %s", self.path) 145 logger.debug("Deleted temporary dir %s", self.path) 154 logger.error( 317 logger.info("Compressing %s into %s.", src_dict.keys(), dest) 346 logger.debug( 361 logger.info( 369 logger.info( 392 logger.info("Created ssh private key (%s) and public key (%s)", 443 logger.info("Start to decompress %s!", sourcefile) [all …]
|
D | gstorage_client.py | 28 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,
|
D | android_build_client.py | 29 logger = logging.getLogger(__name__) variable 88 logger.info("Downloading artifact: target: %s, build_id: %s, " 98 logger.info("Downloaded artifact: %s", local_dest) 100 logger.error("Downloading artifact failed: %s", str(e)) 122 logger.info(copy_msg, build_target, build_id, artifact_name, 134 logger.info(finish_msg, build_target, build_id, artifact_name, 184 logger.info("GetLKGB build API response: %s", build)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/retry/ |
D | ResultAggregatorTest.java | 102 ILogSaver logger = EasyMock.createMock(ILogSaver.class); in testForwarding() local 107 mAggListener.setLogSaver(logger); in testForwarding() 110 mDetailedListener.setLogSaver(logger); in testForwarding() 181 mAggregator.setLogSaver(logger); in testForwarding() 218 ILogSaver logger = EasyMock.createMock(ILogSaver.class); in testForwarding_runFailure() local 226 mAggListener.setLogSaver(logger); in testForwarding_runFailure() 229 mDetailedListener.setLogSaver(logger); in testForwarding_runFailure() 287 mAggregator.setLogSaver(logger); in testForwarding_runFailure() 316 ILogSaver logger = EasyMock.createMock(ILogSaver.class); in testForwarding_runFailure_noRerun() local 321 mAggListener.setLogSaver(logger); in testForwarding_runFailure_noRerun() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationExecution.java | 40 import com.android.tradefed.invoker.logger.InvocationMetricLogger; 41 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey; 42 import com.android.tradefed.invoker.logger.TfObjectTracker; 209 ITestLogger logger) { in shardConfig() argument 210 return createShardHelper().shardConfig(config, testInfo, rescheduler, logger); in shardConfig() 303 ITestLogger logger) in runPreparationOnDevice() argument 309 .setTestLogger(logger); in runPreparationOnDevice() 320 ((ITestLoggerReceiver) preparer).setTestLogger(logger); in runPreparationOnDevice() 338 IInvocationContext context, IConfiguration config, ITestLogger logger) in runDevicePreInvocationSetup() argument 346 ((ITestLoggerReceiver) context.getDevice(deviceName)).setTestLogger(logger); in runDevicePreInvocationSetup() [all …]
|
D | TestInvocation.java | 47 import com.android.tradefed.invoker.logger.CurrentInvocation; 48 import com.android.tradefed.invoker.logger.CurrentInvocation.InvocationInfo; 49 import com.android.tradefed.invoker.logger.InvocationMetricLogger; 50 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey; 51 import com.android.tradefed.invoker.logger.TfObjectTracker; 508 ILeveledLogOutput logger = config.getLogOutput(); in reportHostLog() local 509 try (InputStreamSource globalLogSource = logger.getLog()) { in reportHostLog() 517 if (!(logger instanceof StdoutLogger)) { in reportHostLog() 518 CLog.i("Skip logging %s to a file with logger '%s'", name, logger); in reportHostLog() 525 logger.closeLog(); in reportHostLog() [all …]
|
D | RemoteInvocationExecution.java | 39 import com.android.tradefed.invoker.logger.InvocationMetricLogger; 40 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey; 278 public void doSetup(TestInformation testInfo, IConfiguration config, ITestLogger logger) in doSetup() argument 287 ITestLogger logger, in doTeardown() argument 550 GceAvdInfo info, TestDeviceOptions options, IRunUtil runUtil, ITestLogger logger) { in collectAdbLogs() argument 572 logger, in collectAdbLogs() 591 File createRemoteConfig(IConfiguration config, ITestLogger logger, String resultDirPath) in createRemoteConfig() argument 639 logger.testLog(REMOTE_CONFIG, LogDataType.XML, source); in createRemoteConfig() 705 ITestLogger logger, in fetchRemoteAndLogFile() argument 716 logger.testLog(logName, LogDataType.TEXT, source); in fetchRemoteAndLogFile()
|
/tools/test/connectivity/acts/framework/acts/libs/logging/ |
D | log_stream.py | 136 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/list/ |
D | instance.py | 47 logger = logging.getLogger(__name__) variable 186 logger.debug(("Can't parse datetime string(%s)."), start_time) 375 logger.debug("No cvd tools path found from config:%s", 389 logger.warning("Cvd tools path doesn't exist:%s", cvd_status_cmd) 392 logger.warning( 398 logger.debug("Running cmd[%s] to check cvd status.", cvd_status_cmd) 407 logger.debug("Local instance[%s] is not active: %s", 412 logger.error("Failed to run cvd_status: %s", cpe.output) 427 logger.debug("Running cmd[%s] to delete local cvd", stop_cvd_cmd) 436 logger.error("instance_dir is null!! instance[%d] might not be" [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BugreportTest.java | 189 ITestLogger logger = EasyMock.createMock(ITestLogger.class); in testLogBugreport() local 190 logger.testLog(EasyMock.eq(dataName), EasyMock.eq(LogDataType.BUGREPORTZ), in testLogBugreport() 192 EasyMock.replay(logger); in testLogBugreport() 193 mBugreport.log(dataName, logger); in testLogBugreport() 194 EasyMock.verify(logger); in testLogBugreport() 208 ITestLogger logger = EasyMock.createMock(ITestLogger.class); in testLogBugreportFlat() local 209 logger.testLog(EasyMock.eq(dataName), EasyMock.eq(LogDataType.BUGREPORT), in testLogBugreportFlat() 211 EasyMock.replay(logger); in testLogBugreportFlat() 212 mBugreport.log(dataName, logger); in testLogBugreportFlat() 213 EasyMock.verify(logger); in testLogBugreportFlat()
|
/tools/treble/split/ |
D | manifest_split.py | 85 logger = logging.getLogger(os.path.basename(__file__)) variable 306 logger.warning("Unknown kati makefile: %s" % makefile) 451 logger.info( 461 logger.info("%s projects after including Kati makefiles projects.", 464 logger.info("Kati makefiles projects skipped.") 471 logger.info("%s projects after including manual additions.", 484 logger.info("Checking module-info dependencies for direct and adjacent modules...") 516 logger.info( 527 logger.info( 533 logger.info("%s projects - complete", len(input_projects)) [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/sandbox/ |
D | TradefedSandbox.java | 29 import com.android.tradefed.invoker.logger.CurrentInvocation; 30 import com.android.tradefed.invoker.logger.CurrentInvocation.InvocationInfo; 93 public CommandResult run(IConfiguration config, ITestLogger logger) throws Throwable { in run() argument 183 logger.testLog("sandbox-config", LogDataType.XML, configFile); in run() 186 logger.testLog("sandbox-context", LogDataType.PB, contextFile); in run() 191 logger.testLog("sandbox-stdout", LogDataType.TEXT, sourceStdOut); in run() 195 logger.testLog("sandbox-stderr", LogDataType.TEXT, sourceStdErr); in run() 198 logAndCleanHeapDump(mHeapDump, logger); in run() 509 private void logAndCleanHeapDump(File heapDumpDir, ITestLogger logger) { in logAndCleanHeapDump() argument 514 logger.testLog(f.getName(), LogDataType.HPROF, fileInput); in logAndCleanHeapDump()
|
/tools/acloud/setup/ |
D | setup_common.py | 27 logger = logging.getLogger(__name__) variable 53 logger.debug("Run command: %s", cmd) 71 logger.error("Package install for %s failed: %s", pkg, cpe.output) 106 logger.debug("Check package install status") 107 logger.debug(pkg_info) 128 logger.debug("Package is not installed, status is (none)") 132 logger.debug("Version info not found [installed: %s ,candidate: %s]", 139 logger.warning("Package %s version at %s, expected %s",
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | NestedRemoteDevice.java | 91 ITestLogger logger, IBuildInfo info, boolean resetDueToFailure) in resetVirtualDevice() argument 108 logDebugFiles(logger, username); in resetVirtualDevice() 122 captureLauncherLog(username, logger); in resetVirtualDevice() 136 private void logDebugFiles(ITestLogger logger, String username) { in logDebugFiles() argument 147 logger.testLog( in logDebugFiles() 156 logBugreport(String.format("before_reset_%s_bugreport", username), logger); in logDebugFiles() 175 private void captureLauncherLog(String username, ITestLogger logger) { in captureLauncherLog() argument 202 logger.testLog(logName, LogDataType.TEXT, source); in captureLauncherLog()
|
D | GceManager.java | 530 ITestLogger logger, in logNestedRemoteFile() argument 536 logNestedRemoteFile(logger, gceAvd, options, runUtil, remoteFilePath, type, null); in logNestedRemoteFile() 553 ITestLogger logger, in logNestedRemoteFile() argument 565 logFile(remoteFile, baseName, logger, type); in logNestedRemoteFile() 570 File remoteFile, String baseName, ITestLogger logger, LogDataType type) { in logFile() argument 573 logFile(f, null, logger, type); in logFile() 581 logger.testLog(name, type, remoteFileStream); in logFile() 696 public void logSerialOutput(GceAvdInfo infos, ITestLogger logger) { in logSerialOutput() argument 709 logger.testLog("gce_full_serial_log", LogDataType.TEXT, source); in logSerialOutput()
|
/tools/acloud/create/ |
D | goldfish_local_image_local_instance.py | 56 logger = logging.getLogger(__name__) variable 203 logger.info("Instance directory: %s", instance_dir) 313 logger.info("Goldfish AVD is already running.") 340 logger.info("Copy %s to %s", _BUILD_PROP_FILE_NAME, build_prop_path) 361 logger.info("Rename %s to %s%s.", 372 logger.info("Link %s to %s.", system_qemu_img, new_image) 375 logger.info("Fail to link. Copy %s to %s", 461 logger.debug("Execute %s", emulator_cmd)
|