Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/sun/security/x509/
DUtils.java37 String suffix) { in test_toString_bitArrayBasedClass() argument
38 testWithEachSinglePart(parts, objectCreator, prefix, suffix); in test_toString_bitArrayBasedClass()
39 testWithAllParts(parts, objectCreator, prefix, suffix); in test_toString_bitArrayBasedClass()
40 testWithNoParts(parts, objectCreator, prefix, suffix); in test_toString_bitArrayBasedClass()
41 testWithEveryOtherPart(parts, objectCreator, prefix, suffix); in test_toString_bitArrayBasedClass()
45 String[] parts, Function<byte[], Object> objectCreator, String prefix, String suffix) { in testWithEachSinglePart() argument
56 assertEquals(prefix + parts[i] + suffix, o.toString()); in testWithEachSinglePart()
61 String[] parts, Function<byte[], Object> objectCreator, String prefix, String suffix) { in testWithAllParts() argument
70 + suffix, objectCreator.apply(allOnes).toString()); in testWithAllParts()
74 String[] parts, Function<byte[], Object> objectCreator, String prefix, String suffix) { in testWithNoParts() argument
[all …]
DReasonFlagsTest.java44 String suffix = "]\n"; in testToString() local
46 Utils.test_toString_bitArrayBasedClass(parts, objectCreator, prefix, suffix); in testToString()
DNetscapeCertTypeExtensionTest.java62 String suffix = "]\n"; in testToString() local
70 Utils.test_toString_bitArrayBasedClass(parts, objectCreator, prefix, suffix); in testToString()
DKeyUsageExtensionTest.java48 String suffix = "]\n"; in testToString() local
56 Utils.test_toString_bitArrayBasedClass(parts, objectCreator, prefix, suffix); in testToString()
/libcore/ojluni/src/main/java/sun/security/x509/
DX509CertInfo.java375 String suffix = attrName.getSuffix(); in set() local
379 if (suffix == null) { in set()
382 version.set(suffix, val); in set()
387 if (suffix == null) { in set()
390 serialNum.set(suffix, val); in set()
395 if (suffix == null) { in set()
398 algId.set(suffix, val); in set()
407 if (suffix == null) { in set()
410 interval.set(suffix, val); in set()
419 if (suffix == null) { in set()
[all …]
DX509AttributeName.java40 private String suffix = null; field in X509AttributeName
54 suffix = name.substring(i + 1); in X509AttributeName()
69 return (suffix); in getSuffix()
/libcore/ojluni/src/main/java/java/util/
DHexFormat.java193 private final String suffix; field in HexFormat
205 private HexFormat(String delimiter, String prefix, String suffix, byte[] digits) { in HexFormat() argument
208 this.suffix = Objects.requireNonNull(suffix, "suffix"); in HexFormat()
247 return new HexFormat(delimiter, this.prefix, this.suffix, this.digits); in withDelimiter()
257 return new HexFormat(this.delimiter, prefix, this.suffix, this.digits); in withPrefix()
266 public HexFormat withSuffix(String suffix) { in withSuffix() argument
267 return new HexFormat(this.delimiter, this.prefix, suffix, this.digits); in withSuffix()
277 return new HexFormat(this.delimiter, this.prefix, this.suffix, UPPERCASE_DIGITS); in withUpperCase()
287 return new HexFormat(this.delimiter, this.prefix, this.suffix, LOWERCASE_DIGITS); in withLowerCase()
313 public String suffix() { in suffix() method in HexFormat
[all …]
DStringJoiner.java68 private final String suffix; field in StringJoiner
120 CharSequence suffix) { in StringJoiner() argument
123 Objects.requireNonNull(suffix, "The suffix must not be null"); in StringJoiner()
127 this.suffix = suffix.toString(); in StringJoiner()
171 final int addLen = prefix.length() + suffix.length(); in toString()
186 k += getChars(suffix, chars, k); in toString()
266 len + prefix.length() + suffix.length(); in length()
DResourceBundle.java3537 public final String toResourceName(String bundleName, String suffix) { in toResourceName() argument
3538 StringBuilder sb = new StringBuilder(bundleName.length() + 1 + suffix.length()); in toResourceName()
3539 sb.append(bundleName.replace('.', '/')).append('.').append(suffix); in toResourceName()
3543 private String toResourceName0(String bundleName, String suffix) { in toResourceName0() argument
3548 return toResourceName(bundleName, suffix); in toResourceName0()
/libcore/ojluni/src/main/java/java/nio/file/
DTempFileHelper.java57 private static Path generatePath(String prefix, String suffix, Path dir) { in generatePath() argument
60 Path name = dir.getFileSystem().getPath(prefix + Long.toString(n) + suffix); in generatePath()
82 String suffix, in create() argument
89 if (suffix == null) in create()
90 suffix = (createDirectory) ? "" : ".tmp"; in create()
127 f = generatePath(prefix, suffix, dir); in create()
157 String suffix, in createTempFile() argument
161 return create(dir, prefix, suffix, false, attrs); in createTempFile()
DFiles.java848 String suffix,
853 prefix, suffix, attrs);
893 String suffix,
897 return TempFileHelper.createTempFile(null, prefix, suffix, attrs);
/libcore/ojluni/src/test/java/util/StringJoiner/
DStringJoinerTest.java286 private void testCombos(String infix, String prefix, String suffix) { in testCombos() argument
287 StringJoiner sj = new StringJoiner(infix, prefix, suffix); in testCombos()
288 assertEquals(sj.toString(), prefix + suffix); in testCombos() local
291 sj = new StringJoiner(infix, prefix, suffix).setEmptyValue("<NONE>"); in testCombos()
297 assertEquals(sj.toString(), prefix + suffix); in testCombos() local
300 assertEquals(sj.toString(), prefix + infix + suffix); in testCombos() local
302 assertEquals(sj.toString(), prefix + infix + infix + "1" + suffix); in testCombos() local
305 assertEquals(sj.toString(), prefix + infix + infix + "1" + infix + suffix); in testCombos() local
307 sj = new StringJoiner(infix, prefix, suffix).setEmptyValue("<NONE>"); in testCombos()
309 assertEquals(sj.toString(), prefix + "1" + suffix); in testCombos() local
[all …]
/libcore/ojluni/src/test/java/util/HexFormat/
DHexFormatTest.java255 public void testToBytesThrowing(String value, String sep, String prefix, String suffix) { in testToBytesThrowing() argument
256 HexFormat hex = HexFormat.ofDelimiter(sep).withPrefix(prefix).withSuffix(suffix); in testToBytesThrowing()
339 public void testFormatter(String delimiter, String prefix, String suffix, in testFormatter() argument
345 assertTrue(res.endsWith(suffix), "Suffix not found"); in testFormatter()
347 delimiter.length() + suffix.length()) - delimiter.length(); in testFormatter()
353 int valueChars = prefix.length() + 2 + suffix.length(); in testFormatter()
357 assertTrue(value.endsWith(suffix), "wrong suffix"); in testFormatter()
387 public void testParseHexStringRange(String delimiter, String prefix, String suffix, in testParseHexStringRange() argument
395 int stride = prefix.length() + 2 + suffix.length() + delimiter.length(); in testParseHexStringRange()
408 public void testParseHexEmptyString(String delimiter, String prefix, String suffix, in testParseHexEmptyString() argument
[all …]
/libcore/ojluni/src/test/java/lang/String/CompactString/
DEndsWith.java80 public void testEndsWith(String str, String suffix, boolean expected) { in testEndsWith() argument
85 data.endsWith(suffix), in testEndsWith()
90 escapeNonASCIIs(suffix), source)); in testEndsWith()
/libcore/support/src/test/java/tests/util/
DClassLoaderBuilder.java126 String suffix = "!/" + manifestFile; in getApplicationClassPath() local
131 if (manifestString.endsWith(suffix)) { in getApplicationClassPath()
132 return manifestString.substring(0, manifestString.length() - suffix.length()); in getApplicationClassPath()
/libcore/ojluni/src/test/java/lang/String/
DIndent.java62 for (String suffix : ENDS) { in testIndent()
64 String input = prefix + " abc \n" + middle + "\n def \n" + suffix; in testIndent()
/libcore/tools/upstream/src/main/java/libcore/
DStandardRepositories.java108 String suffix = ".java"; in isJsr166() local
111 if (name.endsWith(suffix)) { in isJsr166()
112 name = name.substring(0, name.length() - suffix.length()); in isJsr166()
/libcore/ojluni/src/main/java/java/io/
DFile.java1893 static File generateFile(String prefix, String suffix, File dir) in generateFile() argument
1910 String name = prefix + Long.toString(n) + suffix; in generateFile()
1991 public static File createTempFile(String prefix, String suffix, in createTempFile() argument
1997 if (suffix == null) in createTempFile()
1998 suffix = ".tmp"; in createTempFile()
2006 f = TempDirectory.generateFile(prefix, suffix, tmpdir); in createTempFile()
2066 public static File createTempFile(String prefix, String suffix) in createTempFile() argument
2069 return createTempFile(prefix, suffix, null); in createTempFile()
/libcore/support/src/test/java/tests/support/
DSupport_GetLocal.java90 public static File createTempFile(String suffix) throws IOException { in createTempFile() argument
91 return File.createTempFile("hyts_", suffix, null); in createTempFile()
/libcore/luni/src/test/java/libcore/java/io/
DOldInputStreamReaderTest.java247 final byte[] suffix = { in test_readWhenCharacterSpansBuffer()
260 System.arraycopy(suffix, 0, bytes, prefixLength, suffix.length); in test_readWhenCharacterSpansBuffer()
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java854 String suffix = "";
860 suffix = suffix + ResourcesMgr.getString(".Principal.") +
869 suffix = suffix +
881 suffix += ResourcesMgr.getString
886 suffix += ResourcesMgr.getString
893 return s + suffix;
/libcore/ojluni/annotations/hiddenapi/java/io/
DFile.java244 java.lang.String prefix, java.lang.String suffix, java.io.File directory) in createTempFile() argument
249 public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix) in createTempFile() argument
372 java.lang.String prefix, java.lang.String suffix, java.io.File dir) in generateFile() argument
/libcore/ojluni/src/test/java/nio/file/Path/
DPathOps.java125 PathOps ends(String suffix) { in ends() argument
127 Path s = FileSystems.getDefault().getPath(suffix); in ends()
132 PathOps notEnds(String suffix) { in notEnds() argument
134 Path s = FileSystems.getDefault().getPath(suffix); in notEnds()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java123 public static File createTempFile(String suffix) throws IOException { in createTempFile() argument
124 return File.createTempFile("hyts_", suffix, null); in createTempFile()
/libcore/ojluni/annotations/sdk/nullability/java/io/
DFile.annotated.java134 …NonNull java.lang.String prefix, @libcore.util.Nullable java.lang.String suffix, @libcore.util.Nul… in createTempFile() argument
136 …NonNull java.lang.String prefix, @libcore.util.Nullable java.lang.String suffix) throws java.io.IO… in createTempFile() argument

12