Home
last modified time | relevance | path

Searched refs:suffix (Results 1 – 25 of 41) sorted by relevance

12

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DJavadoc.kt245 val suffix = existingDoc.substring(offset) in insertInto() constant
248 …if (suffix.startsWith("\n") || suffix.startsWith(" \n")) "" else if (suffix == "*/") "\n" else if … in insertInto()
260 if (suffix == "*/") " */" else suffix in insertInto()
262 prefix + middle + suffix in insertInto()
736 val suffix = element.text in handleTag() constant
737 if (suffix.contains("(") && suffix.contains(")")) { in handleTag()
738 expandArgumentList(element, suffix, sb) in handleTag()
740 sb.append(suffix) in handleTag()
769 val suffix = referenceText.substring(className.length) in handleTag() constant
770 if (suffix.contains("(") && suffix.contains(")")) { in handleTag()
[all …]
DPsiTypePrinter.kt132 …val suffix = if (bound == null) null else getCanonicalText(bound, elementAnnotations).removeSuffix… in <lambda>() constant
133 return getText(type, suffix, elementAnnotations) in <lambda>()
154 suffix: String?, in <lambda>()
158 if (annotations.isEmpty() && suffix == null) return "?" in <lambda>()
162 if (suffix == null) { in <lambda>()
165 if (suffix == JAVA_LANG_OBJECT && in <lambda>()
172 sb.append(suffix) in <lambda>()
182 suffix: String in <lambda>()
184 val sb = StringBuilder(prefix.length + suffix.length) in <lambda>()
190 sb.append(suffix) in <lambda>()
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java341 public static File createTempFile(String prefix, String suffix) throws IOException { in createTempFile() argument
342 return internalCreateTempFile(prefix, suffix, null); in createTempFile()
352 public static File createTempFile(String prefix, String suffix, File parentDir) in createTempFile() argument
354 return internalCreateTempFile(prefix, suffix, parentDir); in createTempFile()
360 private static File internalCreateTempFile(String prefix, String suffix, File parentDir) in internalCreateTempFile() argument
364 if (suffix != null) { in internalCreateTempFile()
366 overflowLength += suffix.length(); in internalCreateTempFile()
370 + "truncating it.", prefix, suffix); in internalCreateTempFile()
373 if (suffix.length() >= overflowLength) { in internalCreateTempFile()
375 overflowLength -= suffix.length(); in internalCreateTempFile()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DRuntimeRestartCollectorTest.java551 private static void ensureNoMetricWithKeySuffix(Map<String, Metric> metrics, String suffix) { in ensureNoMetricWithKeySuffix() argument
560 suffix))); in ensureNoMetricWithKeySuffix()
568 Map<String, Metric> metrics, String suffix) { in getStringMetricValuesByKeySuffix() argument
576 suffix)) in getStringMetricValuesByKeySuffix()
587 Map<String, Metric> metrics, String suffix) { in getIntMetricValuesByKeySuffix() argument
588 return getStringMetricValuesByKeySuffix(metrics, suffix) in getIntMetricValuesByKeySuffix()
599 Map<String, Metric> metrics, String suffix) { in getLongMetricValuesByKeySuffix() argument
600 return getStringMetricValuesByKeySuffix(metrics, suffix) in getLongMetricValuesByKeySuffix()
606 private static boolean hasPrefixAndSuffix(String target, String prefix, String suffix) { in hasPrefixAndSuffix() argument
607 return target.startsWith(prefix) && target.endsWith(suffix); in hasPrefixAndSuffix()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DClangCodeCoverageListenerTest.java414 for (String suffix : suffixes) { in checkListContainsSuffixes()
417 if (item.endsWith(suffix)) { in checkListContainsSuffixes()
424 fail("List " + list.toString() + " does not contain suffix '" + suffix + "'"); in checkListContainsSuffixes()
429 void checkListDoesNotContainSuffix(List<String> list, String suffix) { in checkListDoesNotContainSuffix() argument
431 if (item.endsWith(suffix)) { in checkListDoesNotContainSuffix()
432 fail("List " + list.toString() + " should not contain suffix '" + suffix + "'"); in checkListDoesNotContainSuffix()
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/
Dota_runner_factory.py183 suffix = ''
186 suffix = '_%s' % config['ota_map'][android_device.serial]
188 ota_package_key = '%s%s' % (key, suffix)
190 if suffix is not '':
195 'ACTS config.' % (android_device.serial, suffix[1:],
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardHelper.java211 String suffix = String.format("_shard_index_%s", index); in rescheduleConfig() local
213 suffix = shardConfig.getCommandOptions().getHostLogSuffix() + suffix; in rescheduleConfig()
215 shardConfig.getCommandOptions().setHostLogSuffix(suffix); in rescheduleConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFileUtilFuncTest.java444 private File createTempFile(String prefix, String suffix) throws IOException { in createTempFile() argument
445 File tempFile = FileUtil.createTempFile(prefix, suffix); in createTempFile()
450 private File createTempFile(String prefix, String suffix, File parentDir) throws IOException { in createTempFile() argument
451 File tempFile = FileUtil.createTempFile(prefix, suffix, parentDir); in createTempFile()
DZipUtil2Test.java141 private File createTempFile(String prefix, String suffix) throws IOException { in createTempFile() argument
142 File tempFile = FileUtil.createTempFile(prefix, suffix); in createTempFile()
DFileUtilTest.java166 final String suffix = "logcat-android.support.v7.widget.GridLayoutManagerWrapContent" in testCreateTempFile_filenameTooLongEdge() local
170 testFile = FileUtil.createTempFile(prefix, suffix); in testCreateTempFile_filenameTooLongEdge()
DZipUtilTest.java531 private File createTempFile(String prefix, String suffix) throws IOException { in createTempFile() argument
532 File tempFile = FileUtil.createTempFile(prefix, suffix); in createTempFile()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DAlignmentRules.java49 public static AlignmentRule constantForSuffix(@Nonnull String suffix, int alignment) { in constantForSuffix() argument
50 Preconditions.checkArgument(!suffix.isEmpty(), "suffix.isEmpty()"); in constantForSuffix()
53 return (String path) -> path.endsWith(suffix) ? alignment : AlignmentRule.NO_ALIGNMENT; in constantForSuffix()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DRuntimeRestartCollector.java280 private String createMetricKey(String suffix, String serial) { in createMetricKey() argument
282 ? String.join(METRIC_SEP, METRIC_PREFIX, serial, suffix) in createMetricKey()
283 : String.join(METRIC_SEP, METRIC_PREFIX, suffix); in createMetricKey()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java1303 String suffix; in getJcaSignatureAlgorithm() local
1305 suffix = "RSA"; in getJcaSignatureAlgorithm()
1307 suffix = "DSA"; in getJcaSignatureAlgorithm()
1309 suffix = "ECDSA"; in getJcaSignatureAlgorithm()
1322 return jcaDigestAlg + "with" + suffix; in getJcaSignatureAlgorithm()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java459 LinkedList<String> suffix = new LinkedList<>(line.subList(idx, line.size())); in expandLongMacro() local
460 suffix.remove(0); in expandLongMacro()
466 expanded.addAll(suffix); in expandLongMacro()
DCommandOptions.java505 public void setHostLogSuffix(String suffix) { in setHostLogSuffix() argument
506 mHostLogSuffix = suffix; in setHostLogSuffix()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiLint.kt1260 fun ensureContextNameSuffix(cls: ClassItem, suffix: String) { in <lambda>()
1261 if (!cls.simpleName().endsWith(suffix)) { in <lambda>()
1264 "Inconsistent class name; should be `<Foo>$suffix`, was `${cls.simpleName()}`" in <lambda>()
3221 for (suffix in badParameterClassNames) { in <lambda>() constant
3222 if (qualifiedName.endsWith(suffix) && !((qualifiedName.endsWith("Params") || in <lambda>()
/tools/acloud/internal/lib/
Dutils.py291 def GenerateUniqueName(prefix=None, suffix=None): argument
304 if suffix:
305 name = "-".join([name, suffix])
Dota_tools.py210 prefix="misc_info_", suffix=".txt",
286 prefix="system-qemu-config_", suffix=".txt",
/tools/test/graphicsbenchmark/functional_tests/native/
DAndroid.bp39 suffix: "32",
42 suffix: "64",
/tools/external_updater/
Dupdater_utils.py79 prefix, version, suffix = match.group('prefix', 'version', 'suffix')
81 return (versions, str(prefix), str(suffix))
/tools/repohooks/tools/
Dcheckpatch.pl5770 my $suffix = "";
5773 $suffix .= 'U' if ($cast =~ /\bunsigned\b/);
5775 $suffix .= 'LL';
5777 $suffix .= 'L';
5779 $fixed[$fixlinenr] =~ s/\Q$cast\E$const\b/$newconst$suffix/;
Dcpplint.py4459 for suffix in ('test.cc', 'regtest.cc', 'unittest.cc',
4461 if (filename.endswith(suffix) and len(filename) > len(suffix) and
4462 filename[-len(suffix) - 1] in ('-', '_')):
4463 return filename[:-len(suffix) - 1]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DFakeTest.java176 final String suffix = m.group(4); in decode() local
183 nextState.append(suffix); in decode()
/tools/acloud/public/
Ddevice_driver.py85 suffix=self._cfg.disk_image_name)
141 suffix=self._cfg.disk_image_name)

12