Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 189) sorted by relevance

12345678

/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java786 String output = receiver.getOutput(); in executeShellCommand() local
795 command, getSerialNumber(), output)); in executeShellCommand()
803 if (output.length() > 80) { in executeShellCommand()
806 command, getSerialNumber(), output.substring(0, 80)); in executeShellCommand()
808 CLog.v("%s on %s returned %s", command, getSerialNumber(), output); in executeShellCommand()
810 return output; in executeShellCommand()
1310 String output = getDfOutput(partition); in getPartitionFreeSpace() local
1312 Long available = parseFreeSpaceFromModernOutput(output); in getPartitionFreeSpace()
1317 available = parseFreeSpaceFromAvailable(output); in getPartitionFreeSpace()
1321 available = parseFreeSpaceFromFree(partition, output); in getPartitionFreeSpace()
[all …]
DTestDevice.java876 String output = executeShellCommand(DISMISS_KEYGUARD_WM_CMD); in disableKeyguard() local
877 CLog.i("output of %s: %s", DISMISS_KEYGUARD_WM_CMD, output); in disableKeyguard()
889 String output = in getKeyguardState() local
891 CLog.d("Output from KeyguardController: %s", output); in getKeyguardState()
893 KeyguardControllerState.create(Arrays.asList(output.trim().split("\n"))); in getKeyguardState()
906 String output = receiver.getOutput(); in isDeviceInputReady() local
907 Matcher m = INPUT_DISPATCH_STATE_REGEX.matcher(output); in isDeviceInputReady()
950 String output = executeShellCommand("pm path android"); in doAdbFrameworkReboot() local
951 if (output == null || !output.contains("package:")) { in doAdbFrameworkReboot()
1012 String output = executeShellCommand(LIST_APEXES_CMD); in getActiveApexes() local
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DPythonUnitTestResultParserTest.java132 String[] output = { in testParseNoTests() local
142 mParser.processNewLines(output); in testParseNoTests()
148 String[] output = { in testParseSingleTestPass() local
162 mParser.processNewLines(output); in testParseSingleTestPass()
168 String[] output = { in testParsePartialSingleLineMatchSkipped() local
182 mParser.processNewLines(output); in testParsePartialSingleLineMatchSkipped()
187 String[] output = { in testParseSingleTestPassWithExpectedFailure() local
201 mParser.processNewLines(output); in testParseSingleTestPassWithExpectedFailure()
207 String[] output = { in testParseMultiTestPass() local
222 mParser.processNewLines(output); in testParseMultiTestPass()
[all …]
/tools/asuite/atest/tools/
Datest_tools.py155 def _dump_index(dump_file, output, output_re, key, value): argument
174 if isinstance(output, bytes):
175 output = output.decode()
176 for entry in output.splitlines():
240 def _index_cc_classes(output, index): argument
254 _dump_index(dump_file=index, output=output,
258 def _index_java_classes(output, index): argument
271 _dump_index(dump_file=index, output=output,
275 def _index_packages(output, index): argument
289 output=output, output_re=constants.PACKAGE_OUTPUT_RE,
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DGenericItemTest.java246 JSONObject output = new JSONObject(item.toJson().toString()); in testToJson() local
248 assertTrue(output.has("string")); in testToJson()
249 assertEquals("foo", output.get("string")); in testToJson()
250 assertTrue(output.has("date")); in testToJson()
251 assertEquals(date.toString(), output.get("date")); in testToJson()
252 assertTrue(output.has("object")); in testToJson()
253 assertEquals(object.toString(), output.get("object")); in testToJson()
254 assertTrue(output.has("integer")); in testToJson()
255 assertEquals(0, output.get("integer")); in testToJson()
256 assertTrue(output.has("long")); in testToJson()
[all …]
DDvmLockSampleItemTest.java44 JSONObject output = new JSONObject(item.toJson().toString()); in testToJson() local
47 assertEquals("android.support.test.aupt", output.get(DvmLockSampleItem.PROCESS_NAME)); in testToJson()
48 assertEquals(false, output.get(DvmLockSampleItem.SENSITIVITY_FLAG)); in testToJson()
49 …assertEquals("Instr: android.support.test.aupt", output.get(DvmLockSampleItem.WAITING_THREAD_NAME)… in testToJson()
50 assertEquals(75, output.get(DvmLockSampleItem.WAIT_TIME)); in testToJson()
51 assertEquals("AccessibilityCache.java", output.get(DvmLockSampleItem.WAITING_SOURCE_FILE)); in testToJson()
52 assertEquals(256, output.get(DvmLockSampleItem.WAITING_SOURCE_LINE)); in testToJson()
53 assertEquals("-", output.get(DvmLockSampleItem.OWNER_FILE_NAME)); in testToJson()
54 assertEquals(96, output.get(DvmLockSampleItem.OWNER_ACQUIRE_SOURCE_LINE)); in testToJson()
55 assertEquals(15, output.get(DvmLockSampleItem.SAMPLE_PERCENTAGE)); in testToJson()
DSmartMonkeyLogItemTest.java41 JSONObject output = new JSONObject(item.toJson().toString()); in testToJson() local
43 assertTrue(output.has(SmartMonkeyLogItem.APPLICATIONS)); in testToJson()
44 assertTrue(output.get(SmartMonkeyLogItem.APPLICATIONS) instanceof JSONArray); in testToJson()
45 assertTrue(output.has(SmartMonkeyLogItem.PACKAGES)); in testToJson()
46 assertTrue(output.get(SmartMonkeyLogItem.PACKAGES) instanceof JSONArray); in testToJson()
47 assertTrue(output.has(SmartMonkeyLogItem.ANR_TIMES)); in testToJson()
48 assertTrue(output.get(SmartMonkeyLogItem.ANR_TIMES) instanceof JSONArray); in testToJson()
49 assertTrue(output.has(SmartMonkeyLogItem.CRASH_TIMES)); in testToJson()
50 assertTrue(output.get(SmartMonkeyLogItem.CRASH_TIMES) instanceof JSONArray); in testToJson()
/tools/tradefederation/contrib/src/com/android/performance/tests/
DAppInstallTest.java194 String output = mDevice.executeShellCommand("pm install-create -r -d -g"); in installAndTime() local
195 if (!checkSuccess(output, packageFile, "install-create")) { in installAndTime()
198 String session = sessionFromInstallCreateOutput(output); in installAndTime()
201 output = in installAndTime()
205 if (!checkSuccess(output, packageFile, "install-write base.apk")) { in installAndTime()
210 output = in installAndTime()
214 if (!checkSuccess(output, packageFile, "install-write base.dm")) { in installAndTime()
220 output = mDevice.executeShellCommand(String.format("pm install-commit %s", session)); in installAndTime()
223 if (!checkSuccess(output, packageFile, "install-commit")) { in installAndTime()
260 private String sessionFromInstallCreateOutput(String output) { in sessionFromInstallCreateOutput() argument
[all …]
DEmmcPerformanceTest.java267 String[] output; in runDdIteration() local
271 output = spResult.getCommandRawOutput().split("\n"); in runDdIteration()
273 output = mTestDevice.executeShellCommand(command).split("\n"); in runDdIteration()
275 String line = output[output.length - 1].trim(); in runDdIteration()
298 String output; in runRandomIteration() local
302 output = spResult.getCommandRawOutput(); in runRandomIteration()
304 output = mTestDevice.executeShellCommand(command); in runRandomIteration()
306 Matcher m = EMMC_RANDOM_PATTERN.matcher(output.trim()); in runRandomIteration()
311 CLog.w("Line \"%s\" did not match expected output, ignoring", output); in runRandomIteration()
394 String output = mTestDevice.executeShellCommand("vdc dump | grep cache"); in discoverCacheInfo() local
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dap_get_interface.py47 output = self.ssh.run(GET_ALL_INTERFACE)
48 interfaces_all = output.stdout.split('\n')
58 output = self.ssh.run(GET_VIRTUAL_INTERFACE)
59 interfaces_virtual = output.stdout.split('\n')
85 output = self.ssh.run(BRCTL_SHOW)
86 lines = output.stdout.split('\n')
109 output = self.ssh.run(IW_LIST_FREQ)
110 if 'Channel 06' in output.stdout and 'Channel 36' not in output.stdout:
112 elif 'Channel 36' in output.stdout and 'Channel 06' not in output.stdout:
142 output = self.ssh.run('ifconfig')
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DStreamUtilTest.java45 final ByteArrayList output = StreamUtil.getByteArrayListFromStream(stream); in testGetByteArrayListFromSource() local
46 final byte[] outputBytes = output.getContents(); in testGetByteArrayListFromSource()
62 final ByteArrayList output = StreamUtil.getByteArrayListFromStream( in testGetByteArrayListFromStream() local
64 final byte[] outputBytes = output.getContents(); in testGetByteArrayListFromStream()
80 final String output = StreamUtil.getStringFromStream(stream); in testGetStringFromSource() local
81 assertEquals(contents, output); in testGetStringFromSource()
91 BufferedReader output = null; in testGetBufferedReaderFromInputStream() local
93 output = StreamUtil.getBufferedReaderFromStreamSrc(source); in testGetBufferedReaderFromInputStream()
94 assertEquals(contents, output.readLine()); in testGetBufferedReaderFromInputStream()
96 if (null != output) { in testGetBufferedReaderFromInputStream()
[all …]
/tools/tradefederation/core/atest/tools/
Datest_tools.py137 def _dump_index(dump_file, output, output_re, key, value): argument
155 for entry in output.splitlines():
216 def _index_cc_classes(output, index): argument
230 _dump_index(dump_file=index, output=output,
234 def _index_java_classes(output, index): argument
247 _dump_index(dump_file=index, output=output,
251 def _index_packages(output, index): argument
265 output=output, output_re=constants.PACKAGE_OUTPUT_RE,
268 def _index_qualified_classes(output, index): argument
283 for entry in output.split('\n'):
[all …]
/tools/asuite/atest/
Datest_utils.py166 output = _capture_fail_section(full_output)
167 if not output:
168 output = full_output
169 if len(output) >= _FAILED_OUTPUT_LINE_LIMIT:
170 output = output[-_FAILED_OUTPUT_LINE_LIMIT:]
171 output = 'Output (may be trimmed):\n%s' % ''.join(output)
172 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
210 if err.output:
211 logging.error(err.output)
345 output = colorize(text, color, highlight)
[all …]
/tools/tradefederation/core/atest/
Datest_utils.py147 output = _capture_fail_section(full_output)
148 if not output:
149 output = full_output
150 if len(output) >= _FAILED_OUTPUT_LINE_LIMIT:
151 output = output[-_FAILED_OUTPUT_LINE_LIMIT:]
152 output = 'Output (may be trimmed):\n%s' % ''.join(output)
153 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
191 if err.output:
192 logging.error(err.output)
333 output = colorize(text, color, highlight)
[all …]
/tools/trebuchet/trebuchet/system-server-analyzer/src/
DSystemServerAnalyzer.kt64 fun printLine(output: PrintStream, name: String, duration: Double, csvFormat: Boolean = false) { in printLine()
66 output.println("${name};${duration * 1000}") in printLine()
68 output.println("${name}: ${duration.durationString()}") in printLine()
72 fun printLine(output: PrintStream, model: SliceGroup, csvFormat: Boolean = false) { in printLine()
73 printLine(output, model.name, model.duration, csvFormat) in printLine()
76 fun measureServiceStartup(model: Model, thresholdMs: Int = 0, output: PrintStream = System.out, csv… in measureServiceStartup()
80 printLine(output, "StartServices", it.duration, csvFormat); in measureServiceStartup()
83 printLine(output, service, csvFormat) in measureServiceStartup()
89 printLine(output, "Other", it.duration - childDurations, csvFormat); in measureServiceStartup()
109 var output = System.out in main() variable
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxConfigDumpTest.java60 String output = FileUtil.readStringFromFile(mOutputFile); in testParseCommandLine() local
61 assertTrue(!output.isEmpty()); in testParseCommandLine()
62 assertTrue(output.contains("<test class")); in testParseCommandLine()
64 output.contains( in testParseCommandLine()
81 String output = FileUtil.readStringFromFile(mOutputFile); in testParseCommandLine_filtered() local
82 assertTrue(!output.isEmpty()); in testParseCommandLine_filtered()
83 assertFalse(output.contains("<test class")); in testParseCommandLine_filtered()
85 output.contains( in testParseCommandLine_filtered()
102 String output = FileUtil.readStringFromFile(mOutputFile); in testParseCommandLine_run() local
103 assertTrue(!output.isEmpty()); in testParseCommandLine_run()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py774 output = job.run(
777 if not output.stdout or output.exit_status != 0:
785 logs = re.findall(r'(\S+\s\S+)(.*)', output.stdout)
843 output = self.adb.shell(
845 result = re.search(r"userId=(\d+)", output)
1337 output = self.adb.shell(
1340 if not output or "not found" in output or "Can't find" in output or (
1341 "mCurrentFocus=null" in output):
1344 result = output.split(' ')[-1].strip("}")
1356 output = self.adb.shell(cmd, ignore_status=True)
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DOptions.kt2086 val output = fileForPathInner(value) in <lambda>() constant
2088 if (output.exists()) { in <lambda>()
2089 if (output.isDirectory) { in <lambda>()
2090 throw DriverException("$output is a directory") in <lambda>()
2092 val deleted = output.delete() in <lambda>()
2094 throw DriverException("Could not delete previous version of $output") in <lambda>()
2096 } else if (output.parentFile != null && !output.parentFile.exists()) { in <lambda>()
2097 val ok = output.parentFile.mkdirs() in <lambda>()
2103 return FileReadSandbox.allowAccess(output) in <lambda>()
2132 val output = fileForPathInner(value) in <lambda>() constant
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py482 output = ad.search_logcat("mobile number")
483 if output:
485 output[-1]["log_message"])
819 output = ad.adb.shell("dumpsys telephony.registry | grep mServiceState")
820 if "mVoiceRegState" in output:
821 result = re.search(r"mVoiceRegState=(\S+)\((\S+)\)", output)
829 result2 = re.findall(r"mVoiceRegState=(\S+)\((\S+)\)", output)
836 result = re.search(r"mServiceState=(\S+)", output)
1695 output = ad.adb.shell("dumpsys telephony.registry | grep mCallState")
1696 if "mCallState" in output:
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DXmlResultReporterTest.java129 String output = getOutput(); in testSinglePass() local
131 assertTrue(output.contains("tests=\"1\" failures=\"0\" errors=\"0\"")); in testSinglePass()
134 assertTrue(output.contains(testCaseTag)); in testSinglePass()
154 String output = getOutput(); in testSingleFail() local
156 assertTrue(output.contains("tests=\"1\" failures=\"1\" errors=\"0\"")); in testSingleFail()
159 assertTrue(output.contains(testCaseTag)); in testSingleFail()
161 assertTrue(output.contains(failureTag)); in testSingleFail()
168 String output = mOutputStream.toString(); in getOutput() local
170 output = output.replaceAll("[\\r\\n\\t]", ""); in getOutput()
172 return output.replaceAll(" ", " "); in getOutput()
DMetricsXMLResultReporterTest.java86 String output = getOutput(); in testRunMetrics() local
87 assertTrue(output.contains("<runmetric name=\"metric-1\" value=\"1.0\" />")); in testRunMetrics()
92 assertTrue(output.contains(testCaseTag)); in testRunMetrics()
113 String output = getOutput(); in testTestMetrics() local
114 assertTrue(output.contains("<testmetric name=\"metric-1\" value=\"1.0\" />")); in testTestMetrics()
119 assertTrue(output.contains(testCaseTag)); in testTestMetrics()
139 String output = getOutput(); in testTestFailMetrics() local
140 assertTrue(output.contains("tests=\"1\" failures=\"1\"")); in testTestFailMetrics()
145 assertTrue(output.contains(testCaseTag)); in testTestFailMetrics()
147 assertTrue(output.contains(failureTag)); in testTestFailMetrics()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java458 String output = remoteSshCommandExec(gceAvd, options, runUtil, "bugreportz"); in getBugreportzWithSsh() local
459 Matcher match = BUGREPORTZ_RESPONSE_PATTERN.matcher(output); in getBugreportzWithSsh()
461 CLog.e("Something went wrong during bugreportz collection: '%s'", output); in getBugreportzWithSsh()
490 String output = in getNestedDeviceSshBugreportz() local
499 Matcher match = BUGREPORTZ_RESPONSE_PATTERN.matcher(output); in getNestedDeviceSshBugreportz()
501 CLog.e("Something went wrong during bugreportz collection: '%s'", output); in getNestedDeviceSshBugreportz()
611 String output = res.getStdout().trim(); in remoteSshCommandExec() local
615 } else if (output.isEmpty()) { in remoteSshCommandExec()
619 return output; in remoteSshCommandExec()
656 SerialPortOutput output = outputPort.execute(); in getInstanceSerialLog() local
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DLittleEndianUtils.java98 public static void writeUnsigned4Le(@Nonnull ByteBuffer output, long value) in writeUnsigned4Le() argument
100 Preconditions.checkNotNull(output, "output == null"); in writeUnsigned4Le()
107 output.put((byte) (value & 0xff)); in writeUnsigned4Le()
108 output.put((byte) ((value >> 8) & 0xff)); in writeUnsigned4Le()
109 output.put((byte) ((value >> 16) & 0xff)); in writeUnsigned4Le()
110 output.put((byte) ((value >> 24) & 0xff)); in writeUnsigned4Le()
120 public static void writeUnsigned2Le(@Nonnull ByteBuffer output, int value) in writeUnsigned2Le() argument
122 Preconditions.checkNotNull(output, "output == null"); in writeUnsigned2Le()
126 output.put((byte) (value & 0xff)); in writeUnsigned2Le()
127 output.put((byte) ((value >> 8) & 0xff)); in writeUnsigned2Le()
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveEmergencyBase.py82 output = self.dut.adb.shell("dumpsys carrier_config")
86 values = re.findall(r"%s = (\S+)" % setting, output)
118 output = self.dut.adb.shell("dumpsys carrier_config")
120 values = re.findall(r"%s = (\S+)" % setting, output)
129 output = self.dut.adb.getprop("ril.test.emergencynumber")
130 if output != test_number:
223 output = self.dut.adb.shell(
225 self.dut.log.info(output)
226 if state in output: return
235 output = self.dut.adb.shell(
[all …]
/tools/repohooks/
Dpre-upload.py249 def _run_project_hooks_in_cwd(project_name, proj_dir, output, commit_list=None): argument
266 output.error('Loading config files', str(e))
274 output.set_num_hooks(len(hooks))
281 output.error('Upstream remote/tracking branch lookup',
311 output.commit_start(commit=commit, commit_summary=commit_summary)
314 output.hook_start(name)
319 output.hook_warning(name, warning)
322 output.hook_error(name, error)
348 output = Output(project_name)
370 return _run_project_hooks_in_cwd(project_name, proj_dir, output,
[all …]

12345678