| /development/gsi/gsi_util/ |
| gsi_util.py | 20 import logging 34 _LOGGING_LEVEL = logging.WARNING 43 # Sets up default logging. 44 logging.basicConfig(format=self._LOGGING_FORMAT, level=self._LOGGING_LEVEL) 62 logging.getLogger().setLevel(logging.DEBUG) 67 logging.error('%s: %s', argv[0], e.message) 68 logging.exception(e)
|
| /external/autotest/client/site_tests/network_ChromeWifiConfigure/ |
| network_ChromeWifiConfigure.py | 5 import logging 31 logging.info('create_wifi') 40 logging.info('Calling createNetwork') 45 logging.info(' guid: ' + guid) 47 logging.info('Calling getNetworkInfo') 52 logging.info(' result: ' + str(network)) 59 logging.info('run_once_internal')
|
| /external/autotest/server/site_tests/firmware_CorruptKernelB/ |
| firmware_CorruptKernelB.py | 5 import logging 33 logging.error("Caught exception: %s", str(e)) 37 logging.info("Prioritize kernel B.") 42 logging.info("Expected kernel B boot and corrupt kernel B.") 47 logging.info("Expected kernel A boot and restore kernel B.") 52 logging.info("Expected kernel B boot and prioritize kerenl A.") 57 logging.info("Expected kernel A boot.")
|
| /external/autotest/site_utils/lxc/ |
| unittest_setup.py | 7 import logging 15 """Sets up direct logging to stdout for unittests. 17 @param log_level: Level of logging to redirect to stdout, default to INFO. 23 logger = logging.getLogger() 25 handler = logging.StreamHandler(sys.stdout) 27 formatter = logging.Formatter(FORMAT) 47 logging.warn('SSP requires root privilege to run commands, please ' 92 log_level = logging.DEBUG if config.verbose else logging.INFO
|
| /external/autotest/site_utils/rpm_control_system/ |
| setup_rpms.py | 5 import logging, sys 44 logging.debug('Setting up %s.', rpm_name) 51 logging.error('Failed to set up %s.', rpm_name) 63 logging.debug('Setting up All RPM devices in lab: Oyster Bay.') 67 logging.debug('Setting up All RPM devices in lab: Atlantis.') 78 logging.basicConfig(level=logging.DEBUG, format=LOGGING_FORMAT)
|
| rpm_logging_config.py | 5 import logging 6 import logging.handlers 24 class SuspendableSMTPHandler(logging.handlers.SMTPHandler): 63 Correctly set up logging to have the correct format/level, log to a file, 69 @returns email_handler: Logging handler used to send out email alerts. 71 logging.basicConfig(filename=_logfile_path(log_dir, log_filename_format), 72 level=logging.INFO, format=LOGGING_FORMAT) 77 """Start log server to accept logging through a TCP server. 84 level=logging.INFO, 89 """Sets up logging option when using a logserver."" [all...] |
| /external/autotest/client/common_lib/ |
| smogcheck_tpm.py | 23 import datetime, logging 117 logging.info(' TPM 1.2 Version Info:\n') 118 logging.info(' Chip Version: %d.%d.%d.%d.', vi.version.major, 120 logging.info(' Spec Level: %d', vi.specLevel) 121 logging.info(' Errata Revision: %d', vi.errataRev) 123 logging.info(' TPM Vendor ID: %s', ''.join(vendorId)) 125 logging.info(' Vendor Specific data (first 4 bytes in Hex): ' 146 logging.info(' TPM Test Results: %s', ''.join(out)) 170 logging.info('Attempt to load shared library %s', TSPI_C_LIB) 176 logging.info('Successfully loaded shared library %s', TSPI_C_LIB [all...] |
| /external/autotest/client/cros/audio/ |
| pack_audio_quality.py | 10 import logging 49 logging.debug('Link command: %s', command) 67 logging.debug('Zip command: %s', command) 78 logging.debug('Check command: %s', command) 80 logging.debug('output: %s', output) 137 level = logging.DEBUG if args.debug else logging.INFO 139 logging.basicConfig(format=format, level=level) 151 logging.info('Packed file: %s', out_file)
|
| /external/autotest/server/site_tests/firmware_CorruptFwBodyA/ |
| firmware_CorruptFwBodyA.py | 5 import logging 34 logging.error("ERROR: DUT did not come up. Need to cleanup!") 42 logging.info('The firmware USE_RO_NORMAL flag is enabled.') 43 logging.info("Corrupt firmware body A.") 48 logging.info("Still expected firmware A boot and restore.") 52 logging.info('The firmware USE_RO_NORMAL flag is disabled.') 53 logging.info("Corrupt firmware body A.") 58 logging.info("Expected firmware B boot and restore firmware A.") 64 logging.info("Expected firmware " + expected_slot + " boot, done.")
|
| /external/scapy/scapy/ |
| error.py | 7 Logging subsystem and basic exception class. 11 ##### Logging subsystem ##### 17 import logging, traceback, time 19 class ScapyFreqFilter(logging.Filter): 21 logging.Filter.__init__(self) 52 from logging import NullHandler 55 from logging import Handler 59 log_scapy = logging.getLogger("scapy") 61 log_runtime = logging.getLogger("scapy.runtime") # logs at runtime 63 log_interactive = logging.getLogger("scapy.interactive") # logs in interactive function [all...] |
| /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/ |
| TimeLogger.java | 19 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_COPY_ACCOUNT_TASK_MS; 20 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_CREATE_PROFILE_TASK_MS; 21 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_DOWNLOAD_PACKAGE_TASK_MS; 22 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_ENCRYPT_DEVICE_ACTIVITY_TIME_MS; 23 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_INSTALL_PACKAGE_TASK_MS; 24 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_PREPROVISIONING_ACTIVITY_TIME_MS; 25 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_PROVISIONING_ACTIVITY_TIME_MS; 26 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_START_PROFILE_TASK_MS; 27 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_WEB_ACTIVITY_TIME_MS; 85 // Ignore logging time if we couldn't find start time [all...] |
| /external/autotest/client/site_tests/platform_DebugDaemonGetRoutes/ |
| platform_DebugDaemonGetRoutes.py | 6 import logging 20 logging.debug('IP4 Routes: %s', ip4_routes) 22 logging.debug('IP6 Routes: %s', ip6_routes)
|
| /external/autotest/client/site_tests/power_StatsCPUFreq/ |
| power_StatsCPUFreq.py | 5 import logging, time 20 logging.info('CPUFreq stats since boot:\n %s', current_stats) 28 logging.info('CPUFreq stats in the last %d seconds :\n %s',
|
| /external/autotest/client/site_tests/power_StatsUSB/ |
| power_StatsUSB.py | 5 import logging, time 20 logging.info('USB active time since boot: %.2f%%', stats['active']) 28 logging.info('USB active time in the last %d seconds: %.2f%%',
|
| /external/autotest/client/tests/hwclock/ |
| hwclock.py | 3 import re, os, logging 13 logging.info('Setting hwclock to 2/2/80 03:04:00') 25 logging.info('Restoring the hardware clock')
|
| /external/autotest/server/site_tests/enterprise_CFM_RebootStress/ |
| enterprise_CFM_RebootStress.py | 5 import logging 26 logging.info("Performing in total %d reboot cycles...", reboot_cycles) 28 logging.info("Started reboot cycle %d.", cycle)
|
| /external/autotest/server/site_tests/enterprise_CFM_SessionStress/ |
| enterprise_CFM_SessionStress.py | 5 import datetime, logging, time 28 logging.info('Session name: %s', hangout_name) 39 logging.info('Running iteration #%d...', i)
|
| /external/autotest/server/site_tests/enterprise_CFM_USBPeripheralRebootStress/ |
| enterprise_CFM_USBPeripheralRebootStress.py | 5 import logging, time, random 45 logging.info('Session name: %s', hangout_name) 46 logging.info('Now joining session.........') 56 logging.info('Stopping session................') 69 logging.info('These are devices not in the new list') 71 logging.info(' %s', _device) 73 logging.info('These are devices not in the original list') 75 logging.info(' %s', _device) 88 logging.info('The initial usb devices:\n %s', usb_original_output) 91 logging.info("Performing in total %d reboot cycles...", reboot_cycles [all...] |
| /external/autotest/venv/lucifer/ |
| loglib.py | 5 """Shared logging functions""" 11 import logging 12 import logging.config 16 """Add logging configuration options to argument parser. 21 # logging options. 32 # logging options. 38 """Configure logging globally. 43 logging.config.dictConfig({ 56 'class': 'logging.StreamHandler',
|
| /external/deqp/scripts/opengl/ |
| gen_enums.py | 36 import logging, sys 37 logging.basicConfig(stream=sys.stderr, level=logging.INFO)
|
| /external/libtextclassifier/ |
| types-test-util.h | 23 #include "util/base/logging.h" 28 logging::LoggingStringStream tmp_stream; 35 logging::LoggingStringStream tmp_stream; 42 logging::LoggingStringStream tmp_stream;
|
| /system/bt/main/ |
| bte_init_cpp_logging.cc | 45 // Init command line object with logging switches 48 logging::LoggingSettings log_settings; 49 if (!logging::InitLogging(log_settings)) { 50 LOG(ERROR) << "Failed to set up logging"; 54 logging::SetLogItems(false, false, false, false);
|
| /tools/test/connectivity/tools/ |
| keyword_check.py | 16 import logging 54 logging.error('Your commit message contains at least one keyword.') 55 logging.error('Keyword(s) found in the following line(s):') 56 logging.error(result.stdout) 57 logging.error('Please fix/remove these before committing.') 82 logging.error('Your commit has a file name that contain at least ' 84 logging.error('Please update or remove this before committing.') 104 logging.error('Your commit has code changes that contain at least ' 107 logging.error(result.stdout) 108 logging.error('Please update or remove these before committing.' [all...] |
| /external/autotest/site_utils/ |
| lxc_cleanup.py | 21 import logging 51 logging.debug('Checking if container is orphaned: %s', container.name) 53 logging.debug('Container %s is not created for test.', container.name) 60 logging.debug('Process with PID %s is not alive, container %s is ' 67 logging.error('Failed to get hqe for job %s. Error: %s.', job_id, e) 75 logging.debug('Test job %s is not completed yet, container %s is ' 81 logging.debug('Test job %s was completed less than an hour ago.', 85 logging.debug('Test job %s was completed, container %s is orphaned.', 100 logging.info('dryrun: Cleanup container %s', container.name) 109 logging.info('Stopping process %s...', pid [all...] |
| /external/chromium-trace/catapult/devil/devil/android/tools/ |
| unlock_bootloader.py | 9 import logging 36 logging.info('Booting %s to bootloader.', d) 42 logging.exception('Unable to reboot device %s', d) 44 logging.error('Unable to reboot device %s: %s', d, state) 48 logging.info('Waiting for devices to reboot...') 55 logging.info('All devices in fastboot.') 58 logging.error('Timed out waiting for %s to reboot.', 66 logging.info('Unlocking %s...', d) 81 logging.info('Sleeping for 5 seconds...') 95 logging.info('Device %s is waiting for confirmation.', d [all...] |