Home
last modified time | relevance | path

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

12345678910>>...37

/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/gatt/
Dgatt_connect_low_layer_test.py18 import logging
61 logging.error("Failed to close GATT client, error: {}".format(err))
65 logging.error("Failed to close CERT acl manager, error: {}".format(err))
90 logging.info("Creating advertiser")
92 logging.info("Created advertiser")
96logging.info("Start scanning for address {} with address type {}".format(address, address_type))
111 logging.info("Filter advertisement with address {}".format(mac_address))
114 logging.error("Could not find initial advertisement.")
118 logging.info("Stop advertising")
121 logging.info("Stopped advertising")
[all …]
/packages/modules/Bluetooth/system/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.')
50 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…
/packages/modules/Bluetooth/system/blueberry/tests/gd/security/
Dcert_security.py17 import logging
89 logging.info("Cert: Init")
109logging.info("Cert: Creating bond to '%s' from '%s'" % (str(address), str(self._device.address)))
123 logging.info("Cert: setting IO Capabilities data to '%s'" %
131 logging.info("Cert: setting Authentication Requirements data to '%s'" %
146 logging.warn("No data present, no need to call get_oob_data")
150 logging.info("Cert: Requesting OOB data")
154 logging.info("Cert: Requesting P192 Data; secure connections")
157 logging.info("Cert: Waiting for OOB response from controller")
163 logging.info("Cert: Requesting P192 Data; no secure connections")
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/hci/
Dle_advanced_scanning_test.py18 import logging
71 logging.info("Getting public address")
73 logging.info("Done %s" % ADDRESS)
94 logging.info("Creating %s PDU advertiser..." % ("Legacy" if legacy_pdus else "Extended"))
96 logging.info("%s PDU advertiser created." % ("Legacy" if legacy_pdus else "Extended"))
128 logging.info("Getting public address")
130 logging.info("Done %s" % ADDRESS)
151 logging.info("Creating %s PDU advertiser..." % ("Legacy" if legacy_pdus else "Extended"))
153 logging.info("%s PDU advertiser created." % ("Legacy" if legacy_pdus else "Extended"))
168 logging.info("Filter advertisement with address {}".format(mac_address))
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/lib/
Dble_lib.py22 import logging
44 logging.info("Failed to toggle Bluetooth on (no broadcast received)")
46 logging.info(".. actual state is ON")
48 logging.info(".. actual state is OFF")
62 logging.info("Failed to toggle Bluetooth off (no broadcast received)")
64 logging.info(".. actual state is ON")
66 logging.info(".. actual state is OFF")
120 logging.error("Failed to get success or failed event.")
123 logging.info("Advertisement started successfully.")
126 logging.info("Advertisement failed to start.")
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dgd_device.py21 import logging
83 logging.exception("[%s] Failed to clean up properly due to" % device.label)
113 logging.debug(arg)
196 logging.debug("[%s] Running %s %s" % (self.type_identifier, self.label, " ".join(self.cmd)))
224logging.info("[%s] Waiting to connect to gRPC root server for %s, timeout is %d seconds" %
227 logging.info("[%s] Successfully connected to gRPC root server for %s" %
231logging.error("[%s] Failed to connect to gRPC root server for %s" % (self.type_identifier, self.la…
285logging.error("[%s] Failed to interrupt backing process via SIGINT, sending SIGKILL" % self.label)
291 logging.error("Failed to kill backing process")
294 logging.error("backing process %s stopped with code: %d" % (self.label, return_code))
[all …]
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))
223 logging.debug("assert_event_occurs %d %fs" % (at_least_times, timeout.total_seconds()))
228 logging.debug("Waiting for event (%fs remaining)" % (remaining.total_seconds()))
231 logging.debug("current_event: %s", current_event)
236 logging.debug("Done waiting for event, received %d", len(event_list))
248 logging.debug("assert_all_events_occur %fs" % timeout.total_seconds())
[all …]
Dpy_security.py17 import logging
64 logging.info("DUT: Init")
79logging.info("DUT: Creating bond to '%s' from '%s'" % (str(address), str(self._device.address)))
88logging.info("DUT: Creating OOB bond to '%s' from '%s'" % (str(address), str(self._device.address)…
115logging.info("DUT: setting IO Capabilities data to '%s'" % self._io_capabilities_name_lookup.get(
123logging.info("DUT: setting Authentication Requirements data to '%s'" % self._auth_reqs_name_lookup…
131 logging.info("DUT: Sending user input response uid: %d; response: %s" % (uid, b))
182 logging.info("DUT: Waiting for expected UI event")
190 logging.info("DUT: Inputting pin code: %s" % str(pin))
210 logging.info("DUT: Waiting for expected UI event")
[all …]
Dos_utils.py17 import logging
67 logging.warning("Empty ports is given to make_ports_available()")
77 logging.warning("Freeing port %d used by %s" % (conn.laddr.port, str(conn)))
79logging.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))
83 logging.warning("Pid %d is already killed in previous iteration" % (conn.pid))
91 logging.warning("Pid %d is already dead before trying to kill it" % (conn.pid))
95logging.error("SIGKILL timeout after %d seconds for pid %d" % (timeout_seconds, conn.pid))
139 logging.error("Cannot open backing log file at {}".format(logpath))
/packages/modules/Bluetooth/system/stack/mmc/
Dmain.cc51 case logging::LOGGING_INFO: in MessageHandler()
55 case logging::LOGGING_WARNING: in MessageHandler()
59 case logging::LOGGING_ERROR: in MessageHandler()
63 case logging::LOGGING_FATAL: in MessageHandler()
81 logging::LoggingSettings settings; in main()
83 logging::LOG_TO_SYSTEM_DEBUG_LOG | logging::LOG_TO_STDERR; in main()
84 logging::SetLogItems(false, false, false, false); in main()
85 logging::InitLogging(settings); in main()
86 logging::SetLogMessageHandler(MessageHandler); in main()
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/gatt/
Dgatt_connect_test.py23 import logging
82logging.info("Waiting for {} seconds for physical GATT disconnections".format(PHYSICAL_DISCONNECT_…
96 logging.info("Disconnecting from peripheral device.")
99 logging.info("Disconnected GATT, closing GATT client.")
101 logging.info("Closed GATT client, removing it from local tracker.")
105 logging.error(err)
114 logging.error(GattCallbackError.SERV_ADDED_ERR.format(expected_event))
117logging.error("Uuid mismatch. Found: {}, Expected {}.".format(event['data']['serviceUuid'], uuid))
127logging.error("MTU size found: {}, expected: {}".format(mtu_size_found, expected_mtu))
130 logging.error(GattCallbackError.MTU_CHANGED_ERR.format(expected_event))
[all …]
Dgatt_connect_with_irk_test.py18 import logging
54 logging.info(event_info)
56 logging.error("Failed to find event: %s", expected_event_name)
64 logging.error("Could not find scan result event: %s", expected_event_name)
75 logging.error("Failed to pull SL4A cert BT config")
77 logging.debug("Reading SL4A cert BT config")
85 logging.debug("Found cert address: %s" % address)
90 logging.debug("Found cert IRK: %s" % irk)
97 logging.info("Starting advertising")
107 logging.info("Advertising started")
[all …]
/packages/modules/Bluetooth/floss/pandora/floss/
Dcras_utils.py17 import logging
360 logging.warning('node type %s is not in known CRAS_NODE_TYPES', node_type)
588 logging.debug('Start %s %s on the DUT', proc_msg, filename)
590 logging.error('Failed to popen: %s (%s)', proc_msg, e)
593 logging.error('cannot run the command twice: %s', proc_msg)
608 logging.error('cannot run stop %s before starting it.', proc_msg)
619 logging.warn('Killing subprocess due to timeout')
623 logging.debug('stop %s on the DUT', proc_msg)
729 logging.debug('call "%s" on the DUT', proc_cmd)
731 logging.error('Failed to call: %s (%s)', proc_cmd, e)
[all …]
Dadvertising_client.py16 import logging
301 logging.debug('on_advertising_set_started: reg_id: %s, advertiser_id: %s, '
308 logging.warning('The set of advertiser_id: %s, is already registered.', advertiser_id)
315 logging.debug('on_own_address_read: advertiser_id: %s, address_type: %s, '
321 logging.debug('on_advertising_set_stopped: advertiser_id: %s', advertiser_id)
325 logging.warning('The set of advertiser_id: %s, not registered yet.', advertiser_id)
330logging.debug('on_advertising_enabled: advertiser_id: %s, enable: %s status: %s', advertiser_id, e…
335logging.debug('on_advertising_data_set: advertiser_id: %s, status: %s', advertiser_id, status)
340logging.debug('on_scan_response_data_set: advertiser_id: %s, status: %s', advertiser_id, status)
345 logging.debug('on_advertising_parameters_updated: advertiser_id: %s, '
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/security/
Dirk_rotation_test.py19 import logging
61 logging.info(event_info)
63 logging.error("Failed to find event: %s", expected_event_name)
74 logging.error("Failed to pull SL4A cert BT config")
76 logging.debug("Reading SL4A cert BT config")
84 logging.debug("Found cert address: %s" % address)
89 logging.debug("Found cert IRK: %s" % irk)
116 logging.info("Bonding with %s", connect_address)
129 logging.info("Unbonding all devices")
134 logging.info("Rebonding remote device")
[all …]
Doob_pairing_test.py19 import logging
41 logging.error("Failed to pull SL4A cert BT config")
43 logging.debug("Reading SL4A cert BT config")
51 logging.debug("Found cert address: %s" % address)
56 logging.debug("Found cert IRK: %s" % irk)
68 logging.error("Failed to pull SL4A dut BT config")
70 logging.debug("Reading SL4A dut BT config")
78 logging.debug("Found dut address: %s" % address)
83 logging.debug("Found dut IRK: %s" % irk)
145 logging.info("Stress #%d" % i)
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/lib/
Dsecurity.py18 import logging
50 logging.info("Generating local OOB data")
61 logging.error("Failed to generate OOB data!")
66 logging.error("Failed to generate OOB Data without error code")
70 logging.info("Generating local oob data failed with error code %d", errorcode)
73 logging.info("OOB ADDR with Type: %s", generate_success_event["data"]["address_with_type"])
82 logging.error("Failed to get bond event!")
85 logging.info("Bonded: %s", bond_state["data"]["bonded_state"])
103logging.info("Bonding OOB with device addr=%s, device addr type=%s, oob addr=%s, oob addr type=%s",
124 logging.info(device)
[all …]
Dle_scanner.py17 import logging
45 logging.error("Could not find scan result event: %s", expected_event_name)
54 logging.info("Start scanning for identity address {} or type {}".format(address, addr_type))
68 logging.info("Filter advertisement with address {}".format(advertising_address))
76 logging.info("Start scanning for identity address {} or type {}".format(address, addr_type))
90 logging.info("Filter advertisement with address {}".format(advertising_address))
98logging.info("Start scanning for identity address {} or type {} using irk {}".format(address, addr…
112 logging.info("Filter advertisement with address {}".format(advertising_address))
120logging.info("Start scanning for identity address {} or type {} using irk {}".format(address, addr…
136 logging.info("Filter advertisement with address {}".format(advertising_address))
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/connectivity/
Dbluetooth_throughput_test.py8 import logging
52 logging.info('throughput test with buffer_size: %d and testname: %s',
59 logging.info('Throughput: %d bytes-per-sec', throughput)
71 logging.info('Throughput at large buffer: %s', metrics)
121 logging.info('Running Bluetooth throughput test %s times.', self.iterations)
122 logging.info('Successfully found required devices.')
126 logging.info('Setup Test for test_bluetooth_throughput')
165 logging.info('Trying buffer size %d', current_buffer_size)
169 logging.info('The throughput is %d at buffer size of %d', throughput,
173 logging.info('Max buffer size: %d bytes', maximum_buffer_size)
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DAnalyticsUtils.java19 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_COPY_ACCOUNT…
20 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_CREATE_PROFI…
21 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_DOWNLOAD_PAC…
22 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_ENCRYPT_DEVI…
23 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_INSTALL_PACK…
24 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_PREPROVISION…
25 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_PROVISIONING…
26 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_START_PROFIL…
27 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_TERMS_ACTIVI…
28 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_TOTAL_TASK_T…
[all …]
DTimeLogger.java19 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_COPY_ACCOUNT…
20 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_CREATE_PROFI…
21 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_DOWNLOAD_PAC…
22 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_ENCRYPT_DEVI…
23 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_INSTALL_PACK…
24 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_PREPROVISION…
25 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_PROVISIONING…
26 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_START_PROFIL…
27 import static com.android.internal.logging.nano.MetricsProto.MetricsEvent.PROVISIONING_WEB_ACTIVITY…
/packages/services/DeviceAsWebcam/tests/
Drun_webcam_test.py16 import logging
57 logging.info('Starting test on Windows')
66 logging.info('Starting test on Linux')
70 logging.info('Starting test on Mac')
73 logging.info('Running on an unknown OS')
95 logging.error('FPS is out of tolerance range! '
133 logging.info('Webcam enabled, testing webcam')
135 logging.info('Webcam not enabled, skipping webcam test')
149 logging.error('USB preference option to set webcam unsuccessful')
163 logging.info('FPS test results (Expected, Actual): %s', fps_results)
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/security/
Doob_pairing_sl4a_test.py18 import logging
94 logging.info("Fetching OOB data...")
99 logging.error("Failed to generate OOB data!")
101 logging.info("Data received!")
102 logging.info(event_info["data"])
133 logging.info("Getting random address")
135 logging.info("Done %s" % ADDRESS)
156 logging.info("Creating %s PDU advertiser..." % ("Legacy" if legacy_pdus else "Extended"))
158 logging.info("%s PDU advertiser created." % ("Legacy" if legacy_pdus else "Extended"))
168 logging.info("Stop advertising")
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DAppEventProducer.java28 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_APP_LAUNCH_DRAGD…
29 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_APP_LAUNCH_TAP;
30 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_DISMISS_PREDICTI…
31 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_FOLDER_CONVERTED…
32 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_HOTSEAT_PREDICTI…
33 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ITEM_DRAG_STARTE…
34 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ITEM_DROPPED_ON_…
35 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ITEM_DROPPED_ON_…
36 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ITEM_DROP_COMPLE…
37 import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ITEM_DROP_FOLDER…
[all …]

12345678910>>...37