/libcore/luni/src/test/java/libcore/java/util/ |
D | CalendarBuilderTest.java | 37 Calendar.Builder builder = new Calendar.Builder(); in test_default_values() local 40 assertEquals(expected, builder.build()); in test_default_values() 45 Calendar.Builder builder = new Calendar.Builder(); in test_setCalendarType_iso8601() local 46 builder.setCalendarType("iso8601"); in test_setCalendarType_iso8601() 53 assertEquals(expected, builder.build()); in test_setCalendarType_iso8601() 58 Calendar.Builder builder = new Calendar.Builder(); in test_setCalendarType_invalid() local 60 builder.setCalendarType(null); in test_setCalendarType_invalid() 67 builder.setCalendarType(unsupported); in test_setCalendarType_invalid() 75 Calendar.Builder builder = new Calendar.Builder(); in test_setCalendarType_reset() local 76 builder.setCalendarType("gregorian"); in test_setCalendarType_reset() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeFormatterBuilder.java | 99 private DateTimeFormatterBuilder builder; field in TestDateTimeFormatterBuilder 103 builder = new DateTimeFormatterBuilder(); in setUp() 109 DateTimeFormatter f = builder.toFormatter(); in test_toFormatter_empty() 116 builder.parseCaseSensitive(); in test_parseCaseSensitive() 117 DateTimeFormatter f = builder.toFormatter(); in test_parseCaseSensitive() 123 builder.parseCaseInsensitive(); in test_parseCaseInsensitive() 124 DateTimeFormatter f = builder.toFormatter(); in test_parseCaseInsensitive() 131 builder.parseStrict(); in test_parseStrict() 132 DateTimeFormatter f = builder.toFormatter(); in test_parseStrict() 138 builder.parseLenient(); in test_parseLenient() [all …]
|
D | AbstractTestPrinterParser.java | 85 protected DateTimeFormatterBuilder builder; field in AbstractTestPrinterParser 94 builder = new DateTimeFormatterBuilder(); in setUp() 102 builder.parseCaseSensitive(); in setCaseSensitive() 104 builder.parseCaseInsensitive(); in setCaseSensitive() 110 builder.parseStrict(); in setStrict() 112 builder.parseLenient(); in setStrict() 117 return builder.toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() 121 return builder.appendLiteral(c).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() 125 return builder.appendLiteral(s).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() 129 return builder.appendText(field).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() [all …]
|
D | TestPadPrinterDecorator.java | 77 builder.padNext(3, '-').appendLiteral('Z'); in test_print_emptyCalendrical() 83 builder.padNext(3, '-').appendLiteral('Z'); in test_print_fullDateTime() 90 builder.padNext(3, '-').appendLiteral('Z'); in test_print_append() 97 builder.padNext(1, '-').appendLiteral('Z'); in test_print_noPadRequiredSingle() 103 builder.padNext(5, '-').appendLiteral('Z'); in test_print_padRequiredSingle() 109 builder.padNext(4, '-').appendLiteral("WXYZ"); in test_print_noPadRequiredMultiple() 115 builder.padNext(5, '-').appendLiteral("WXYZ"); in test_print_padRequiredMultiple() 122 builder.padNext(3, '-').appendLiteral("WXYZ"); in test_print_overPad() 128 builder.padNext(5, ' ').appendLiteral('Y'); in test_toString1() 133 builder.padNext(5, '-').appendLiteral('Y'); in test_toString2()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | AbstractBasicFileAttributeView.java | 140 AttributesBuilder builder) in addRequestedBasicAttributes() argument 142 if (builder.match(SIZE_NAME)) in addRequestedBasicAttributes() 143 builder.add(SIZE_NAME, attrs.size()); in addRequestedBasicAttributes() 144 if (builder.match(CREATION_TIME_NAME)) in addRequestedBasicAttributes() 145 builder.add(CREATION_TIME_NAME, attrs.creationTime()); in addRequestedBasicAttributes() 146 if (builder.match(LAST_ACCESS_TIME_NAME)) in addRequestedBasicAttributes() 147 builder.add(LAST_ACCESS_TIME_NAME, attrs.lastAccessTime()); in addRequestedBasicAttributes() 148 if (builder.match(LAST_MODIFIED_TIME_NAME)) in addRequestedBasicAttributes() 149 builder.add(LAST_MODIFIED_TIME_NAME, attrs.lastModifiedTime()); in addRequestedBasicAttributes() 150 if (builder.match(FILE_KEY_NAME)) in addRequestedBasicAttributes() [all …]
|
D | UnixFileAttributeViews.java | 190 AttributesBuilder builder) in addRequestedPosixAttributes() argument 192 addRequestedBasicAttributes(attrs, builder); in addRequestedPosixAttributes() 193 if (builder.match(PERMISSIONS_NAME)) in addRequestedPosixAttributes() 194 builder.add(PERMISSIONS_NAME, attrs.permissions()); in addRequestedPosixAttributes() 195 if (builder.match(OWNER_NAME)) in addRequestedPosixAttributes() 196 builder.add(OWNER_NAME, attrs.owner()); in addRequestedPosixAttributes() 197 if (builder.match(GROUP_NAME)) in addRequestedPosixAttributes() 198 builder.add(GROUP_NAME, attrs.group()); in addRequestedPosixAttributes() 205 AttributesBuilder builder = in readAttributes() local 208 addRequestedPosixAttributes(attrs, builder); in readAttributes() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatterBuilder.java | 94 private DateTimeFormatterBuilder builder; field in TCKDateTimeFormatterBuilder 98 builder = new DateTimeFormatterBuilder(); in setUp() 104 DateTimeFormatter f = builder.toFormatter(); in test_toFormatter_empty() 111 DateTimeFormatter f = builder in test_parseDefaulting_entireDate() 120 DateTimeFormatter f = builder in test_parseDefaulting_yearOptionalMonthOptionalDay() 134 builder.parseDefaulting(null, 1); in test_parseDefaulting_null() 140 builder.appendValue(null); in test_appendValue_1arg_null() 146 builder.appendValue(null, 3); in test_appendValue_2arg_null() 151 builder.appendValue(DAY_OF_MONTH, 0); in test_appendValue_2arg_widthTooSmall() 156 builder.appendValue(DAY_OF_MONTH, 20); in test_appendValue_2arg_widthTooBig() [all …]
|
D | TCKPadPrinterParser.java | 82 private DateTimeFormatterBuilder builder; field in TCKPadPrinterParser 87 builder = new DateTimeFormatterBuilder(); in setUp() 94 builder.padNext(3, '-').appendLiteral('Z'); in test_parse_negativePosition() 95 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(-1)); in test_parse_negativePosition() 100 builder.padNext(3, '-').appendLiteral('Z'); in test_parse_offEndPosition() 101 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(4)); in test_parse_offEndPosition() 131 builder.padNext(3, '#').appendValue(MONTH_OF_YEAR, 1, 3, SignStyle.NORMAL); in test_parseStrict() 132 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseStrict() 172 builder.parseLenient().padNext(3, '#').appendValue(MONTH_OF_YEAR, 1, 3, SignStyle.NORMAL); in test_parseLenient() 173 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseLenient() [all …]
|
D | TCKChronoPrinterParser.java | 86 private DateTimeFormatterBuilder builder; field in TCKChronoPrinterParser 91 builder = new DateTimeFormatterBuilder(); in setUp() 98 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(-1)); in test_parse_negativePosition() 103 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(4)); in test_parse_offEndPosition() 122 builder.appendChronologyId(); in test_parseValid_caseSensitive() 123 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseValid_caseSensitive() 131 builder.appendChronologyId(); in test_parseValid_caseSensitive_lowercaseRejected() 132 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseSensitive_lowercaseRejected() 140 builder.parseCaseInsensitive().appendChronologyId(); in test_parseValid_caseInsensitive() 141 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseInsensitive() [all …]
|
D | TCKZoneIdPrinterParser.java | 94 private DateTimeFormatterBuilder builder; field in TCKZoneIdPrinterParser 99 builder = new DateTimeFormatterBuilder(); in setUp() 117 builder.appendZoneId(); in test_print() 118 String output = builder.toFormatter().format(zdt); in test_print() 125 builder.appendPattern("VV"); in test_print_pattern_VV() 126 String output = builder.toFormatter().format(zdt); in test_print_pattern_VV() 133 builder.appendPattern("V"); in test_print_pattern_V1rejected() 138 builder.appendPattern("VVV"); in test_print_pattern_V3rejected() 143 builder.appendPattern("VVVV"); in test_print_pattern_V4rejected() 148 builder.appendPattern("VVVVV"); in test_print_pattern_V5rejected() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidStringReaderTest.java | 43 StringBuilder builder = new StringBuilder(); in read() local 47 builder.append((char) r); in read() 49 return builder.toString(); in read() 63 StringBuilder builder = new StringBuilder(); in skipRead() local 68 builder.append((char) r); in skipRead() 70 return builder.toString(); in skipRead() 76 StringBuilder builder = new StringBuilder(); in markRead() local 86 builder.append((char) r); in markRead() 88 return builder.toString(); in markRead()
|
D | OldAndroidByteArrayInputStreamTest.java | 46 StringBuilder builder = new StringBuilder(); in read() local 50 builder.append((char) r); in read() 52 return builder.toString(); in read() 66 StringBuilder builder = new StringBuilder(); in skipRead() local 71 builder.append((char) r); in skipRead() 73 return builder.toString(); in skipRead() 79 StringBuilder builder = new StringBuilder(); in markRead() local 89 builder.append((char) r); in markRead() 91 return builder.toString(); in markRead()
|
D | OldAndroidCharArrayReaderTest.java | 45 StringBuilder builder = new StringBuilder(); in read() local 49 builder.append((char) r); in read() 51 return builder.toString(); in read() 65 StringBuilder builder = new StringBuilder(); in skipRead() local 70 builder.append((char) r); in skipRead() 72 return builder.toString(); in skipRead() 78 StringBuilder builder = new StringBuilder(); in markRead() local 88 builder.append((char) r); in markRead() 90 return builder.toString(); in markRead()
|
D | OldAndroidBufferedReaderTest.java | 68 StringBuilder builder = new StringBuilder(); in read() local 72 builder.append((char) r); in read() 74 return builder.toString(); in read() 88 StringBuilder builder = new StringBuilder(); in skipRead() local 93 builder.append((char) r); in skipRead() 95 return builder.toString(); in skipRead() 101 StringBuilder builder = new StringBuilder(); in markRead() local 111 builder.append((char) r); in markRead() 113 return builder.toString(); in markRead()
|
D | OldAndroidPushbackInputStreamTest.java | 60 StringBuilder builder = new StringBuilder(); in read() local 64 builder.append((char) r); in read() 66 return builder.toString(); in read() 80 StringBuilder builder = new StringBuilder(); in skipRead() local 85 builder.append((char) r); in skipRead() 87 return builder.toString(); in skipRead() 93 StringBuilder builder = new StringBuilder(); in markRead() local 103 builder.append((char) r); in markRead() 105 return builder.toString(); in markRead()
|
D | OldAndroidLineNumberReaderTest.java | 82 StringBuilder builder = new StringBuilder(); in read() local 86 builder.append((char) r); in read() 88 return builder.toString(); in read() 102 StringBuilder builder = new StringBuilder(); in skipRead() local 107 builder.append((char) r); in skipRead() 109 return builder.toString(); in skipRead() 115 StringBuilder builder = new StringBuilder(); in markRead() local 125 builder.append((char) r); in markRead() 127 return builder.toString(); in markRead()
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | IsSupported.java | 32 DocumentBuilder builder; field in IsSupported 39 builder = factory.getBuilder(); in setUp() 47 builder = null; in tearDown() 61 doc = (Document) load("staff", builder); in testIsSupported1() 70 doc = (Document) load("staff", builder); in testIsSupported2() 79 doc = (Document) load("staff", builder); in testIsSupported4() 88 doc = (Document) load("staff", builder); in testIsSupported5() 97 doc = (Document) load("staff", builder); in testIsSupported6() 106 doc = (Document) load("staff", builder); in testIsSupported7() 115 doc = (Document) load("staff", builder); in testIsSupported9() [all …]
|
D | ImportNode.java | 66 DocumentBuilder builder; field in ImportNode 73 builder = factory.getBuilder(); in setUp() 81 builder = null; in tearDown() 110 doc = (Document) load("staffNS", builder); in _testImportNode1() 111 aNewDoc = (Document) load("staffNS", builder); in _testImportNode1() 143 doc = (Document) load("staffNS", builder); in testImportNode2() 144 aNewDoc = (Document) load("staffNS", builder); in testImportNode2() 165 doc = (Document) load("staffNS", builder); in testImportNode3() 166 aNewDoc = (Document) load("staffNS", builder); in testImportNode3() 187 doc = (Document) load("staff", builder); in testImportNode4() [all …]
|
D | Prefix.java | 51 DocumentBuilder builder; field in Prefix 58 builder = factory.getBuilder(); in setUp() 66 builder = null; in tearDown() 80 doc = (Document) load("staffNS", builder); in testGetPrefix1() 91 doc = (Document) load("staffNS", builder); in testGetPrefix2() 104 doc = (Document) load("staffNS", builder); in testGetPrefix3() 116 doc = (Document) load("staffNS", builder); in testGetPrefix4() 127 doc = (Document) load("staffNS", builder); in testGetPrefix5() 147 doc = (Document) load("staffNS", builder); in _testGetPrefix6() 165 doc = (Document) load("staffNS", builder); in testGetPrefix7() [all …]
|
D | DocumentImportNode.java | 39 DocumentBuilder builder; field in DocumentImportNode 46 builder = factory.getBuilder(); in setUp() 54 builder = null; in tearDown() 98 doc = (Document) load("staffNS", builder); in testImportNode2() 99 docImported = (Document) load("staff", builder); in testImportNode2() 178 doc = (Document) load("staffNS", builder); in testImportNode5() 179 docImported = (Document) load("staff", builder); in testImportNode5() 195 doc = (Document) load("staffNS", builder); in testImportNode6() 211 doc = (Document) load("staffNS", builder); in testImportNode7() 231 doc = (Document) load("staffNS", builder); in testImportNode8() [all …]
|
D | DocumentGetElementsByTagnameNS.java | 33 DocumentBuilder builder; field in DocumentGetElementsByTagnameNS 40 builder = factory.getBuilder(); in setUp() 48 builder = null; in tearDown() 67 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS1() 80 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS2() 91 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS3() 101 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS4() 109 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS5()
|
D | GetElementsByTagNameNS.java | 51 DocumentBuilder builder; field in GetElementsByTagNameNS 58 builder = factory.getBuilder(); in setUp() 66 builder = null; in tearDown() 74 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS1() 86 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS2() 118 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS3() 141 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS4() 155 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS5() 162 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS6() 170 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS7() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CharsetUtf8Benchmark.java | 39 StringBuilder builder = new StringBuilder(); in makeUnicodeRange() local 42 builder.append(UCharacter.toString(codePoint)); in makeUnicodeRange() 46 String str = builder.toString(); in makeUnicodeRange() 47 builder = new StringBuilder(); in makeUnicodeRange() 49 builder.append(str); in makeUnicodeRange() 51 return builder.toString().getBytes(); in makeUnicodeRange()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
D | DocumentBuilderFactoryImpl.java | 72 DocumentBuilderImpl builder = new DocumentBuilderImpl(); in newDocumentBuilder() local 73 builder.setCoalescing(isCoalescing()); in newDocumentBuilder() 74 builder.setIgnoreComments(isIgnoringComments()); in newDocumentBuilder() 75 builder.setIgnoreElementContentWhitespace(isIgnoringElementContentWhitespace()); in newDocumentBuilder() 76 builder.setNamespaceAware(isNamespaceAware()); in newDocumentBuilder() 80 return builder; in newDocumentBuilder()
|
/libcore/luni/src/test/java/libcore/libcore/content/type/ |
D | MimeMapTest.java | 50 emptyMap = MimeMap.builder().build(); in setUp() 72 mimeMap = MimeMap.builder() in caseNormalization_key() 95 mimeMap = MimeMap.builder() in caseNormalization_value() 107 mimeMap = MimeMap.builder() in unmapped() 125 MimeMap.setDefaultSupplier(() -> MimeMap.builder().put("mime/sup", "sup").build()); in getDefault_afterSetDefaultSupplier() 153 mimeMap = MimeMap.builder() in buildUpon() 200 MimeMap a = MimeMap.builder() in put() 204 MimeMap b = MimeMap.builder() in put() 222 checkPut_noExtensions(MimeMap.builder().put("text/plain", "txt").build()); in put_noExtensions() 252 assertThrowsNpe(() -> MimeMap.builder().put(null, "ext")); in put_String_String_nullOrEmpty() [all …]
|