Home
last modified time | relevance | path

Searched refs:text (Results 1 – 25 of 162) sorted by relevance

1234567

/tools/test/connectivity/acts/tests/google/tel/lab/
DTelLabSmsTest.py300 text = self.insert_string_into_message(
303 text, DIRECTION_MOBILE_ORIGINATED)
316 text = self.insert_string_into_message(
319 text, DIRECTION_MOBILE_TERMINATED)
333 text = self.insert_string_into_message(
337 text, DIRECTION_MOBILE_ORIGINATED)
351 text = self.insert_string_into_message(
355 text, DIRECTION_MOBILE_TERMINATED)
369 text = self.insert_string_into_message(
373 text, DIRECTION_MOBILE_ORIGINATED)
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DJavadoc.kt196 return docComment.findTagsByName("param").firstOrNull { it.valueElement?.text == paramName } in findParamTag()
598 sb.append(element.text) in expand()
602 val text = element.text in expand() constant
604 if (text.startsWith("R.styleable#") && owner.documentation.contains("@attr")) { in expand()
608 sb.append(text) in expand()
611 val text = element.text in expand() constant
618 if (PREPEND_LOCAL_CLASS && text.startsWith("#")) { in expand()
619 var end = text.indexOf('(') in expand()
622 end = text.length in expand()
623 val fieldName = text.substring(1, end) in expand()
[all …]
DPsiItem.kt107 val text = docTag.text in isCloned() constant
110 var index = text.length - 1 in isCloned()
112 val c = text[index] in isCloned()
119 return if (index < text.length) { in isCloned()
120 text.substring(0, index) in isCloned()
122 text in isCloned()
249 return first.text in javadoc()
255 return element.docComment?.text ?: "" in javadoc()
DPsiAnnotationItem.kt230 sb.append(value.text) in appendValue()
237 sb.append(value.operationSign.text) in appendValue()
265 sb.append(value.text) in appendValue()
305 override val valueSource: String = psiValue.text in toString()
309 return psiValue.value ?: psiValue.text.removeSurrounding("\"") in toString()
317 return psiValue.text ?: psiValue.text.removeSurrounding("\"") in toString()
322 override fun toSource(): String = psiValue.text in toString()
343 override fun toSource(): String = value.text
DPsiCompilationUnit.kt50 return file.text.substring(0, pkg.startOffset) in getHeaderComments()
56 val text = curr.text in getHeaderComments() constant
58 comment + "\n" + text in getHeaderComments()
60 text in getHeaderComments()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFixedByteArrayOutputStreamTest.java52 private String writeTextIntoStreamAndReturn(String text) throws IOException { in writeTextIntoStreamAndReturn() argument
53 mOutStream.write(text.getBytes()); in writeTextIntoStreamAndReturn()
63 String text = TEXT.substring(0, BUF_SIZE - 5); in testLessThanBuffer() local
64 assertEquals(text, writeTextIntoStreamAndReturn(text)); in testLessThanBuffer()
71 String text = TEXT.substring(0, BUF_SIZE); in testEqualsBuffer() local
72 assertEquals(text, writeTextIntoStreamAndReturn(text)); in testEqualsBuffer()
79 String text = TEXT.substring(0, BUF_SIZE + 1); in testBufferPlusOne() local
80 String expected = text.substring(1); in testBufferPlusOne()
81 assertEquals(expected, writeTextIntoStreamAndReturn(text)); in testBufferPlusOne()
112 String text = TEXT.substring(0, BUF_SIZE); in testLessThanBufferWithOffset() local
[all …]
DStreamUtilTest.java177 String text = getLargeText(); in testCopyStreams() local
178 ByteArrayInputStream bais = new ByteArrayInputStream(text.getBytes()); in testCopyStreams()
183 assertEquals(text, baos.toString()); in testCopyStreams()
191 String text = getLargeText(); in testCopyStreams_partialSuccess() local
195 builder.append(text); in testCopyStreams_partialSuccess()
214 String text = getLargeText(); in testCopyStreams_partialFail() local
215 bais = new ByteArrayInputStream(text.getBytes()); in testCopyStreams_partialFail()
217 StreamUtil.copyStreams(bais, baos, 10, text.length() + 1024); in testCopyStreams_partialFail()
227 String text = getLargeText(); in testCopyStreamToWriter() local
228 ByteArrayInputStream bais = new ByteArrayInputStream(text.getBytes()); in testCopyStreamToWriter()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java229 sb.append(performanceReport.text); in getInvocationSummary()
288 String text; field in GameQualificationResultReporter.Report
290 public Report(boolean success, String text) { in Report() argument
292 this.text = text; in Report()
302 StringBuilder text = new StringBuilder(); in createPerformanceReport() local
309 text.append("Warning: "); in createPerformanceReport()
310 text.append(testId.getTestName()); in createPerformanceReport()
311 text.append(" was executed, but performance metrics was ignored because " in createPerformanceReport()
323 text.append( in createPerformanceReport()
336 text.append("Warning: runtime specification allowed for exactly 2 loops to be " in createPerformanceReport()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DTableBuilder.java65 Separator(char end, char pipe, String text) { in Separator() argument
68 mText = text; in Separator()
94 SingleColumn(String text) { in SingleColumn() argument
95 mText = text; in SingleColumn()
101 String text = mText; in build() local
102 while (text != null) { in build()
106 if (text.length() > width) { in build()
107 mBuilder.append(text.substring(0, width)); in build()
108 text = text.substring(width); in build()
110 mBuilder.append(text); in build()
[all …]
DSimplePerfUtil.java168 private final String text; field in SimplePerfUtil.SimplePerfType
170 SimplePerfType(final String text) { in SimplePerfType() argument
171 this.text = text; in SimplePerfType()
176 return text; in toString()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationTest.java62 String text = new String(se.read(), Charsets.US_ASCII); in elementaryManifestGeneration() local
63 text = text.trim(); in elementaryManifestGeneration()
64 String lines[] = text.split(System.getProperty("line.separator")); in elementaryManifestGeneration()
98 String text = new String(se.read(), Charsets.US_ASCII); in manifestGenerationOnHalfWrittenFile() local
99 text = text.trim(); in manifestGenerationOnHalfWrittenFile()
100 String lines[] = text.split(System.getProperty("line.separator")); in manifestGenerationOnHalfWrittenFile()
136 String text = new String(se.read(), Charsets.US_ASCII); in manifestGenerationOnExistingFile() local
137 text = text.trim(); in manifestGenerationOnExistingFile()
138 String lines[] = text.split(System.getProperty("line.separator")); in manifestGenerationOnExistingFile()
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcontest.py249 if col.text == '2D position error [m]':
251 'min': float(next(col_iterator).text),
252 'med': float(next(col_iterator).text),
253 'avg': float(next(col_iterator).text),
254 'max': float(next(col_iterator).text)
256 elif col.text == 'Time to first fix [s]':
258 'min': float(next(col_iterator).text),
259 'med': float(next(col_iterator).text),
260 'avg': float(next(col_iterator).text),
261 'max': float(next(col_iterator).text)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
D_anritsu_utils.py179 def gsm_encode(text): argument
187 for char in text:
194 def gsm_decode(text): argument
201 coded_str = text
203 if char in text:
207 def cdma_encode(text): argument
215 for char in text:
/tools/metalava/src/main/java/com/android/tools/metalava/
DAndroidApiChecks.kt176 val text = method.documentation in checkRequiresPermission() constant
195 if (text.contains(perm)) { in checkRequiresPermission()
205 … } else if (text.contains("android.Manifest.permission") || text.contains("android.permission.")) { in checkRequiresPermission()
222 val text = field.documentation in checkIntentAction() constant
224 if (text.contains("Broadcast Action:") || in checkIntentAction()
225 text.contains("protected intent") && text.contains("system") in checkIntentAction()
241 if (text.contains("Activity Action:")) { in checkIntentAction()
DAnnotationFilter.kt119 val text = source.replace("@", "") in fromSource() constant
120 val index = text.indexOf("(") in fromSource()
123 text in fromSource()
125 text.substring(0, index) in fromSource()
132 text.substring(index + 1, text.lastIndexOf(')')) in fromSource()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessorTest.java90 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testNoMetricsByDefault()
112 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testMetricsFilterWithRegEx()
139 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testMetricsFilterWithRegExAndReplacePrefix()
170 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testAllMetricsOptionIgnoresFilter()
192 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testParsingTestMetrics()
213 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testParsingWithAllMetricsPrefix()
235 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testParsingRunMetrics()
258 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testParsingWithoutIndexing()
282 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testParsingWithIndexing()
313 setupPerfettoMetricFile(METRIC_FILE_FORMAT.text, true); in testParsingWithKeyPrefixing()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dbluetooth_pts_device.py273 version.text = "2.0"
276 self.xml_pts_pixit.text = ""
278 self.xml_pts_running_log.text = ""
280 self.xml_pts_running_summary.text = ""
311 self.xml_pts_pixit.text = "ICS VALUES:\n\n"
313 self.xml_pts_pixit.text += "{} {}\n".format(
315 self.xml_pts_pixit.text += "\nIXIT VALUES:\n\n"
317 self.xml_pts_pixit.text += "{} {}\n".format(
533 self.xml_pts_running_summary.text += "\t- {}".format(log_msg)
535 self.xml_pts_running_summary.text += "{}{}\n".format(
[all …]
/tools/test/connectivity/acts/tests/google/bt/pts/
Dcmd_input.py411 def complete_gatts_setup_database(self, text, line, begidx, endidx): argument
412 if not text:
418 if s.startswith(text)
422 def complete_gatts_send_response(self, text, line, begidx, endidx): argument
424 if not text:
428 s for s in gatt_server_responses.keys() if s.startswith(text)
432 def complete_gatts_send_continuous_response(self, text, line, begidx, argument
435 if not text:
439 s for s in gatt_server_responses.keys() if s.startswith(text)
443 def complete_gatts_send_continuous_response_data(self, text, line, begidx, argument
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DEncodeUtilsTest.java40 String text = "foo"; in asciiEncodeAndDecode() local
43 byte[] encoded = EncodeUtils.encode(text, flags); in asciiEncodeAndDecode()
45 assertEquals(text, EncodeUtils.decode(encoded, flags)); in asciiEncodeAndDecode()
69 String text = EncodeUtils.decode(greatWallChinese, flags); in asciiDecodeAsUtf8() local
70 assertEquals("\u9577\u57ce", text); in asciiDecodeAsUtf8()
/tools/test/connectivity/acts/tests/google/net/
DCaptivePortalTest.py74 uutils.has_element(self.dut, text="Network & internet"),
76 uutils.wait_and_click(self.dut, text="Network & internet")
77 uutils.wait_and_click(self.dut, text="Not connected")
96 uutils.wait_and_click(self.dut, text="%s" % network["SSID"])
97 if uutils.has_element(self.dut, text="%s" % click_accept):
98 uutils.wait_and_click(self.dut, text="%s" % click_accept)
/tools/test/connectivity/acts/tests/google/fuchsia/bt/
Dcmd_input.py240 def complete_gattc_connect_by_id(self, text, line, begidx, endidx): argument
241 if not text:
244 completions = [s for s in self.le_ids if s.startswith(text)]
1018 def complete_gatts_setup_database(self, text, line, begidx, endidx): argument
1019 if not text:
1025 if s.startswith(text)
1050 def complete_btc_pair(self, text, line, begidx, endidx): argument
1060 if not text:
1065 if s.startswith(text)
1069 if not text:
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DTextCodebase.kt41 import com.android.tools.metalava.model.text.TextBackedAnnotationItem
42 import com.android.tools.metalava.model.text.TextClassItem
43 import com.android.tools.metalava.model.text.TextConstructorItem
44 import com.android.tools.metalava.model.text.TextFieldItem
45 import com.android.tools.metalava.model.text.TextMethodItem
46 import com.android.tools.metalava.model.text.TextModifiers
47 import com.android.tools.metalava.model.text.TextPackageItem
48 import com.android.tools.metalava.model.text.TextPropertyItem
49 import com.android.tools.metalava.model.text.TextTypeItem
DApiFile.java25 import com.android.tools.metalava.model.text.TextClassItem;
26 import com.android.tools.metalava.model.text.TextConstructorItem;
27 import com.android.tools.metalava.model.text.TextFieldItem;
28 import com.android.tools.metalava.model.text.TextMethodItem;
29 import com.android.tools.metalava.model.text.TextModifiers;
30 import com.android.tools.metalava.model.text.TextPackageItem;
31 import com.android.tools.metalava.model.text.TextParameterItem;
32 import com.android.tools.metalava.model.text.TextParameterItemKt;
33 import com.android.tools.metalava.model.text.TextPropertyItem;
34 import com.android.tools.metalava.model.text.TextTypeItem;
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
DSystemPropsParser.java39 final String text = ArrayUtil.join("\n", lines).trim(); in parse() local
40 if ("".equals(text)) { in parse()
45 item.setText(text); in parse()
DMemInfoParser.java40 final String text = ArrayUtil.join("\n", lines).trim(); in parse() local
41 if ("".equals(text)) { in parse()
46 item.setText(text); in parse()

1234567