/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/ |
D | ap_get_interface.py | 47 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/metalava/src/test/java/com/android/tools/metalava/apilevels/ |
D | ApiGeneratorTest.kt | 55 val output = File.createTempFile("api-info", "xml") in Extract API levels() constant 56 output.deleteOnExit() in Extract API levels() 57 val outputPath = output.path in Extract API levels() 83 assertTrue(output.isFile) in Extract API levels() 85 val xml = output.readText(UTF_8) in Extract API levels() 104 return output in Extract API levels() 141 val output = File.createTempFile("api-info", "xml") in Correct API Level for release() constant 142 output.deleteOnExit() in Correct API Level for release() 143 val outputPath = output.path in Correct API Level for release() 169 assertTrue(output.isFile) in Correct API Level for release() [all …]
|
/tools/trebuchet/trebuchet/system-server-analyzer/src/ |
D | SystemServerAnalyzer.kt | 64 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/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | LittleEndianUtils.java | 98 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/asuite/atest/tools/ |
D | atest_tools.py | 158 def _dump_index(dump_file, output, output_re, key, value): argument 177 if isinstance(output, bytes): 178 output = output.decode() 179 for entry in output.splitlines(): 249 def _index_cc_classes(output, index): argument 263 _dump_index(dump_file=index, output=output, 267 def _index_java_classes(output, index): argument 280 _dump_index(dump_file=index, output=output, 284 def _index_packages(output, index): argument 298 output=output, output_re=constants.PACKAGE_OUTPUT_RE, [all …]
|
/tools/asuite/atest-py2/tools/ |
D | atest_tools.py | 137 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/repohooks/tools/ |
D | checkpatch.pl-update | 38 local output 46 output=$(git ls-remote --tags "${GIT_URL}") 48 output=$(echo "${output}" | grep -v -e '-rc' -e '\^{}') 51 output=$(echo "${output}" | cut -d/ -f3 | sort -V | tail -1)
|
/tools/asuite/atest/ |
D | atest_utils.py | 168 output = _capture_fail_section(full_log) 169 if not output: 170 output = full_log 171 if len(output) >= _FAILED_OUTPUT_LINE_LIMIT: 172 output = output[-_FAILED_OUTPUT_LINE_LIMIT:] 173 output = 'Output (may be trimmed):\n%s' % ''.join(output) 174 return output 219 output = [] 223 output = f.read() 224 if not output: [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/ |
D | dut_log_test_utils.py | 109 output = ad.adb.shell("pgrep diag_mdlog") 111 if not output: 131 output = ad.adb.shell("diag_mdlog -k") 133 if "stopping" in output: 143 output = ad.adb.shell("pidof diag_mdlog") 144 if output: 145 ad.adb.shell("kill -9 {}".format(output))
|
/tools/repohooks/ |
D | pre-upload.py | 251 def _run_project_hooks_in_cwd(project_name, proj_dir, output, commit_list=None): argument 268 output.error('Loading config files', str(e)) 276 output.set_num_hooks(len(hooks)) 283 output.error('Upstream remote/tracking branch lookup', 314 output.commit_start(commit=commit, commit_summary=commit_summary) 317 output.hook_start(name) 321 output.hook_finish() 325 output.hook_warning(warning) 328 output.hook_error(error) 354 output = Output(project_name) [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | adb.py | 47 def parsing_parcel_output(output): argument 57 output = ''.join(re.findall(r"'(.*)'", output)) 58 return re.sub(r'[.\s]', '', output) 213 output = self.forward("tcp:%d tcp:%d" % (host_port, device_port), 218 if not output: 221 output_int = int(output) 223 return output
|
/tools/platform-compat/javatest/com/android/class2nonsdklist/ |
D | AnnotationPropertyWriterTest.java | 53 String output = mByteArrayOutputStream.toString(); in testExportPropertiesNoEscaping() local 56 assertThat(output).isEqualTo(expected); in testExportPropertiesNoEscaping() 69 String output = mByteArrayOutputStream.toString(); in testExportPropertiesEscapeQuotes() local 72 assertThat(output).isEqualTo(expected); in testExportPropertiesEscapeQuotes()
|
/tools/repohooks/rh/ |
D | shell.py | 112 output = '' 118 output += s[i] 120 return output + s[i] if i < len(s) else output
|
D | terminal.py | 129 output = '\r' + line + '\x1B[K' 131 output += '\n' 133 output = line + '\n' 135 sys.stderr.write(output)
|
/tools/acloud/ |
D | setup.py | 56 output = source.replace(".proto", "_pb2.py") 58 if not os.path.exists(output) or ( 60 os.path.getmtime(source) > os.path.getmtime(output)): 61 print("Generating %s..." % output)
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/ |
D | Histogram.java | 95 public void plotAscii(OutputStream output, int maxBarLength) throws IOException { in plotAscii() argument 115 output.write("<".getBytes(StandardCharsets.UTF_8)); in plotAscii() 118 output.write(">".getBytes(StandardCharsets.UTF_8)); in plotAscii() 121 output.write(" ".getBytes(StandardCharsets.UTF_8)); in plotAscii() 129 output.write( in plotAscii()
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveEmergencyBase.py | 82 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/test/connectivity/acts/framework/acts/controllers/android_lib/tel/ |
D | tel_utils.py | 94 output = ad.adb.shell("dumpsys telecom") 95 result = re.search(r"Call TC@%s: {(.*?)}" % num, output, re.DOTALL) 114 output = ad.adb.shell("dumpsys telecom") 115 call_nums = re.findall("Call TC@(\d+):", output) 153 output = ad.adb.shell(cmd) 156 output = None 158 if not output or 'result=SUCCESS' not in output: 162 response = re.search(r"(?<=response=).+", output) 165 raise RuntimeError('Invalid response from the MDS app:\n' + output)
|
/tools/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/ |
D | DeviceConfigurationTest.java | 39 … String output = getDevice().executeShellCommand("gzip -dc /proc/config.gz | grep CONFIG_HZ="); in testConfigHzHighEnough() local 40 assertTrue(output.contains("CONFIG_HZ=")); in testConfigHzHighEnough() 41 int tickRate = Integer.parseInt(output.split("\n")[0].split("=")[1]); in testConfigHzHighEnough()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZipField.java | 263 void write(@Nonnull ByteBuffer output, long value) throws IOException { in write() argument 270 LittleEndianUtils.writeUnsigned2Le(output, Ints.checkedCast(value)); in write() 275 LittleEndianUtils.writeUnsigned4Le(output, value); in write() 286 void write(@Nonnull ByteBuffer output) throws IOException { in write() argument 288 write(output, expected); in write()
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | LocalFileRecord.java | 299 public long outputRecord(DataSource sourceApk, DataSink output) throws IOException { in outputRecord() argument 301 sourceApk.feed(getStartOffsetInArchive(), size, output); in outputRecord() local 312 DataSink output) throws IOException { in outputRecordWithModifiedExtra() argument 325 output.consume(header); in outputRecordWithModifiedExtra() 327 sourceApk.feed(recordStartOffsetInSource + mDataStartOffset, remainingRecordSize, output); in outputRecordWithModifiedExtra() 343 DataSink output) throws IOException { in outputRecordWithDeflateCompressedData() argument 366 output.consume(result); in outputRecordWithDeflateCompressedData() 368 output.consume(compressedData, 0, compressedData.length); in outputRecordWithDeflateCompressedData()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/compress/ |
D | DeflateExecutionCompressor.java | 67 ByteArrayOutputStream output = new ByteArrayOutputStream(); in immediateCompress() local 70 try (DeflaterOutputStream dos = new DeflaterOutputStream(output, deflater)) { in immediateCompress() 74 CloseableByteSource result = tracker.fromStream(output); in immediateCompress()
|
/tools/treble/hacksaw/workspace/ |
D | workspace.go | 197 output, err := cmd.CombinedOutput() 200 cmd.String(), err.Error(), output) 205 output, err = cmd.CombinedOutput() 208 cmd.String(), err.Error(), output) 284 output, err := cmd.CombinedOutput() 287 cmd.String(), err.Error(), output)
|
/tools/treble/vf/ |
D | merge.sh | 58 --output-target-files ${DIST_DIR}/${TARGET}-target_files-${BUILD_ID}.zip \ 59 --output-img ${DIST_DIR}/${TARGET}-img-${BUILD_ID}.zip \ 60 --output-ota ${DIST_DIR}/${TARGET}-ota-${BUILD_ID}.zip
|
/tools/acloud/setup/ |
D | setup_common.py | 71 logger.error("Package install for %s failed: %s", pkg, cpe.output) 73 "Could not install package [" + pkg + "], :" + str(cpe.output)) 112 str(error.output) + ", have you forgotten to run 'apt update'?")
|