Home
last modified time | relevance | path

Searched refs:logging (Results 1 – 25 of 107) sorted by relevance

12345

/system/bt/test/
Dgen_coverage.py19 import logging
196 logging.error('The test ' + test_name + ' does not exist, please compile first')
204 logging.info('Generating profraw data for ' + test_name)
205 logging.debug('cmd: ' + test_cmd)
207logging.error('Test ' + test_name + ' failed. Please fix the test before generating coverage.')
211 logging.error(
227 logging.info('Combining profraw files into profdata for ' + test_name)
228 logging.debug('cmd: ' + " ".join(cmd))
230 logging.error('Failed to merge profraw files for ' + test_name)
258 logging.info('Generating coverage report for ' + test['test_name'])
[all …]
/system/bt/tools/scripts/
Ddump_metrics_ascii.py17 import logging
36 logging.error("Cannot find Protobuf compiler (>=3.0.0), please install"
38 logging.error(" prebuilts/tools/linux-x86_64/protoc/bin/protoc")
39 logging.error("If prebuilts are not available, use apt-get:")
40 logging.error(" sudo apt-get install protobuf-compiler")
44 logging.error('Can\'t find required file: %s\n' % proto_path)
50 logging.error("Output path is not a valid directory: %s" % (output_dir))
57 logging.error("Fail to compile proto")
79 logging.error("Cannot import generated py-proto %s" % (output_module_name))
111 root = logging.getLogger()
[all …]
Dyapf_checker.py17 import logging
38 logging.error('Missing PREUPLOAD_COMMIT in environment.')
42 logging.error('Missing ANDROID_BUILD_TOP in environment.')
65 logging.error(result.stdout.decode('utf-8').strip())
66 logging.error('INVALID FORMATTING, return code %d', result.returncode)
67 logging.error('To re-run the format command:\n\n' ' %s\n' % ' '.join(full_yapf_command))
70logging.error('If this is a legitimate format error, please run:\n\n' ' %s\n' % yapf_inplace_fo…
71logging.error('CAVEAT: Currently, this format the entire Python file if you modify even part of it…
/system/libbase/
Dlogging_test.cpp63 TEST(logging, CHECK) { in TEST() argument
100 TEST(logging, DCHECK) { in TEST() argument
159 TEST(logging, WOULD_LOG_FATAL) { in TEST() argument
163 TEST(logging, WOULD_LOG_FATAL_WITHOUT_ABORT_enabled) { in TEST() argument
167 TEST(logging, WOULD_LOG_ERROR_disabled) { in TEST() argument
171 TEST(logging, WOULD_LOG_ERROR_enabled) { in TEST() argument
175 TEST(logging, WOULD_LOG_WARNING_disabled) { in TEST() argument
179 TEST(logging, WOULD_LOG_WARNING_enabled) { in TEST() argument
183 TEST(logging, WOULD_LOG_INFO_disabled) { in TEST() argument
187 TEST(logging, WOULD_LOG_INFO_enabled) { in TEST() argument
[all …]
/system/bt/gd/security/cert/
Dcert_security.py17 import logging
86 logging.info("Cert: Init")
102logging.info("Cert: Creating bond to '%s' from '%s'" % (str(address), str(self._device.address)))
116logging.info("Cert: setting IO Capabilities data to '%s'" % self._io_capabilities_name_lookup.get(
124logging.info("Cert: setting Authentication Requirements data to '%s'" % self._auth_reqs_name_looku…
132 logging.info("Cert: setting OOB data present to '%s'" % data)
139 logging.info("Cert: Send user input callback uid:%d; response: %s" % (uid, b))
146 logging.info("Cert: Sending WRITE_SIMPLE_PAIRING_MODE [True]")
148 logging.info("Cert: Waiting for controller response")
155 logging.info("Cert: Waiting for LINK_KEY_REQUEST")
[all …]
Dsecurity_test.py16 import logging
206 logging.info("Loading %d test combinations" % test_count)
215 logging.info("")
216 logging.info("===================================================")
217 logging.info("Running test %d of %d" % (i, test_count))
218logging.info("DUT Test Config: %d ; %d ; %d " % (init_io_capability, init_auth_reqs,
220logging.info("CERT Test Config: %d ; %d ; %d " % (resp_io_capability, cert_auth_reqs,
222 logging.info("===================================================")
223 logging.info("")
/system/update_engine/
Dlogging.cc71 logging::LoggingSettings log_settings; in SetupLogging()
72 log_settings.lock_log = logging::DONT_LOCK_LOG_FILE; in SetupLogging()
73 log_settings.logging_dest = static_cast<logging::LoggingDestination>( in SetupLogging()
74 (log_to_system ? logging::LOG_TO_SYSTEM_DEBUG_LOG : 0) | in SetupLogging()
75 (log_to_file ? logging::LOG_TO_FILE : 0)); in SetupLogging()
81 log_settings.delete_old = logging::APPEND_TO_OLD_LOG_FILE; in SetupLogging()
84 logging::InitLogging(log_settings); in SetupLogging()
Dlogging_android.cc227 case logging::LOG_INFO: in RedirectToLiblog()
230 case logging::LOG_WARNING: in RedirectToLiblog()
233 case logging::LOG_ERROR: in RedirectToLiblog()
236 case logging::LOG_FATAL: in RedirectToLiblog()
263 logging::LoggingSettings log_settings; in SetupLogging()
264 log_settings.lock_log = logging::DONT_LOCK_LOG_FILE; in SetupLogging()
266 static_cast<logging::LoggingDestination>(logging::LOG_NONE); in SetupLogging()
268 logging::InitLogging(log_settings); in SetupLogging()
269 logging::SetLogItems(false /* enable_process_id */, in SetupLogging()
273 logging::SetLogMessageHandler(&RedirectToLiblog); in SetupLogging()
Domaha_request_action_fuzzer.cc26 Environment() { logging::SetMinLogLevel(logging::LOG_FATAL); } in Environment()
/system/bt/gd/cert/
Devent_stream.py20 import logging
159 logging.debug("Cancelled")
187 logging.debug("assert_event_occurs_at_most")
192logging.debug("Waiting for event iteration (%fs remaining)" % (remaining.total_seconds()))
199 logging.debug("Done waiting, got %d events" % len(event_list))
216 logging.debug("assert_event_occurs %d %fs" % (at_least_times, timeout.total_seconds()))
221 logging.debug("Waiting for event (%fs remaining)" % (remaining.total_seconds()))
224 logging.debug("current_event: %s", current_event)
229 logging.debug("Done waiting for event, received %d", len(event_list))
239 logging.debug("assert_all_events_occur %fs" % timeout.total_seconds())
[all …]
Dpy_security.py17 import logging
63 logging.debug("DUT: Init")
75logging.debug("DUT: Creating bond to '%s' from '%s'" % (str(address), str(self._device.address)))
90logging.debug("DUT: setting IO Capabilities data to '%s'" % self._io_capabilities_name_lookup.get(
98logging.debug("DUT: setting Authentication Requirements data to '%s'" % self._auth_reqs_name_looku…
106 logging.info("DUT: setting OOB data present to '%s'" % data_present)
113 logging.debug("DUT: Sending user input response uid: %d; response: %s" % (uid, b))
155 logging.debug("DUT: Waiting for expected UI event")
169 logging.debug("DUT: Waiting for Bond Event")
179 logging.info("DUT: Waiting for enforce security event")
[all …]
Dos_utils.py17 import logging
67 logging.warning("Empty ports is given to make_ports_available()")
76 logging.warning("Freeing port %d used by %s" % (conn.laddr.port, str(conn)))
78logging.error("Failed to kill process occupying port %d due to lack of pid" % conn.laddr.port)
81 logging.warning("Killing pid %d that is using port port %d" % (conn.pid, conn.laddr.port))
87logging.error("SIGKILL timeout after %d seconds for pid %d" % (timeout_seconds, conn.pid))
Dgd_device.py20 import logging
79 logging.exception("[%s] Failed to clean up properly due to" % device.label)
92 logging.debug(arg)
196 logging.debug("Running %s" % " ".join(self.cmd))
266logging.error("[%s] Failed to interrupt backing process via SIGINT, sending SIGKILL" % self.label)
272 logging.error("Failed to kill backing process")
275 logging.error("backing process %s stopped with code: %d" % (self.label, return_code))
306 logging.info("[%s] Skip coverage report as there is no profraw file at %s" %
311 logging.info("[%s] Skip coverage report as profraw file is empty at %s" %
315 logging.info("[%s] Skip coverage report as profraw file is inaccessible at %s" %
[all …]
Dpy_le_security.py17 import logging
46 logging.info("DUT: Init")
70 logging.info("DUT: UI Event Stream is None!")
75 logging.info("DUT: Bond Event Stream is None!")
Dasync_subprocess_logger.py19 import logging
71logging.error("logging thread %s produced an error when executing: %s" % (self.tag, str(result)))
73logging.error("logging thread %s failed to finish after %d seconds" % (self.tag, self.WAIT_TIMEOUT…
Dcert_self_test.py18 import logging
86 logging.debug("yielding %d" % event)
93 logging.debug("cancel")
157 logging.debug(e)
172 logging.debug(e)
183 logging.debug(inside.Serialize())
184 logging.debug("building outside")
187 logging.debug(outside.Serialize())
188 logging.debug("Done!")
272 logging.debug(e)
[all …]
/system/extras/ext4_utils/
Dmkuserimg_mke2fs.py18 import logging
38 logging.info("Env: %s", env)
39 logging.info("Running: " + " ".join(cmd))
194 logging.basicConfig(level=logging.INFO, format=logging_format,
199 logging.error("Can not find directory %s", args.src_dir)
202 logging.error("Mount point is required")
207 logging.error("Size of the filesystem is required")
229 logging.error("Failed to run mke2fs: " + output)
242 logging.error("Failed to run e2fsdroid_cmd: " + output)
/system/bt/main/
Dbte_init_cpp_logging.cc48 logging::LoggingSettings log_settings; in init_cpp_logging()
49 if (!logging::InitLogging(log_settings)) { in init_cpp_logging()
54 logging::SetLogItems(false, false, false, false); in init_cpp_logging()
/system/sepolicy/tools/
Dinsertkeys.py6 import logging
129 logging.info("Skipping " + tag + " : " + option +
184 logging.info("Replacing " + name + " " + value + " with " + key)
247 logging.basicConfig(level=logging.INFO if options.verbose == True else logging.WARN)
256 logging.info("Setting output file to: " + options.output_file)
260 logging.info("Generate key map:")
262 logging.info(k + " : " + str(key_map[k]))
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test_main.cc65 logging::LoggingSettings log_settings; in main()
66 if (!logging::InitLogging(log_settings)) { in main()
71 logging::SetLogItems(false, false, false, false); in main()
/system/extras/simpleperf/scripts/
Dupdate.py19 import logging
92 return logging.getLogger(__name__)
193 verbose_map = (logging.WARNING, logging.INFO, logging.DEBUG)
197 logging.basicConfig(level=verbose_map[verbosity])
/system/bt/service/test/
Dmain.cc26 logging::LoggingSettings log_settings; in main()
27 logging::InitLogging(log_settings); in main()
/system/bt/service/
Dmain.cc38 logging::LoggingSettings log_settings; in main()
39 if (!logging::InitLogging(log_settings)) { in main()
/system/update_engine/scripts/
Dupdate_device.py24 import logging
168 logging.info('Serving request for %s from %s [%d, %d) length: %d',
278 logging.info('Server Terminated')
336 logging.info('Running: %s', ' '.join(str(x) for x in command))
354 logging.info('Running: %s', ' '.join(str(x) for x in command))
378 logging.basicConfig(
379 level=logging.WARNING if args.no_verbose else logging.INFO)
/system/core/init/
Dperfboot.py45 import logging
130 logging.info('Current CPU temperature %s' % temp)
217 logging.warning('dm-verity is not enabled for /%s. Did you run '
257 logging.warning('Unknown tag \'%s\'. Ignoring...', tag)
319 logging.error('Invalid record found: ' + line.getvalue())
430 logging.getLogger().setLevel(logging.INFO)

12345