Home
last modified time | relevance | path

Searched refs:Builder (Results 1 – 25 of 54) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/util/
DCalendarBuilderTest.java37 Calendar.Builder builder = new Calendar.Builder(); in test_default_values()
45 Calendar.Builder builder = new Calendar.Builder(); in test_setCalendarType_iso8601()
58 Calendar.Builder builder = new Calendar.Builder(); in test_setCalendarType_invalid()
75 Calendar.Builder builder = new Calendar.Builder(); in test_setCalendarType_reset()
85 Calendar.Builder builder = new Calendar.Builder(); in test_setDate()
95 Calendar.Builder builder = new Calendar.Builder(); in test_setTimeOfDay()
108 Calendar.Builder builder = new Calendar.Builder(); in test_setWeekDate()
118 Calendar.Builder builder = new Calendar.Builder(); in test_setLenient()
135 Calendar.Builder builder = new Calendar.Builder(); in test_setLocale()
145 Calendar.Builder builder = new Calendar.Builder(); in test_setLocale_thTH()
[all …]
DLocaleTest.java55 Locale.Builder b = new Locale.Builder(); in test_extension_builder()
329 Locale.Builder b = new Locale.Builder(); in test_Builder_setLanguage()
335 b = new Locale.Builder(); in test_Builder_setLanguage()
361 b = new Locale.Builder(); in test_Builder_setLanguage()
366 b = new Locale.Builder(); in test_Builder_setLanguage()
373 Locale.Builder b = new Locale.Builder(); in test_Builder_setRegion()
379 b = new Locale.Builder(); in test_Builder_setRegion()
403 b = new Locale.Builder(); in test_Builder_setRegion()
408 b = new Locale.Builder(); in test_Builder_setRegion()
415 Locale.Builder b = new Locale.Builder(); in test_Builder_setVariant()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreBuilderTest.java95 KeyStore.Builder.newInstance(null, null); in testNewInstanceKeyStoreProtectionParameter()
102 KeyStore.Builder.newInstance(null, protPass); in testNewInstanceKeyStoreProtectionParameter()
108 KeyStore.Builder ksB; in testNewInstanceKeyStoreProtectionParameter()
112 KeyStore.Builder.newInstance(ks, null); in testNewInstanceKeyStoreProtectionParameter()
125 KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter()
132 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter()
136 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter()
210 KeyStore.Builder ksB; in testNewInstanceStringProviderFileProtectionParameter()
211 KeyStore.Builder ksB1; in testNewInstanceStringProviderFileProtectionParameter()
219 KeyStore.Builder.newInstance(null, defaultProvider, fl, protPass); in testNewInstanceStringProviderFileProtectionParameter()
[all …]
/libcore/ojluni/src/main/java/javax/net/ssl/
DKeyStoreBuilderParameters.java44 private final List<Builder> parameters;
53 public KeyStoreBuilderParameters(Builder builder) { in KeyStoreBuilderParameters()
66 public KeyStoreBuilderParameters(List<Builder> parameters) { in KeyStoreBuilderParameters()
72 new ArrayList<Builder>(parameters)); in KeyStoreBuilderParameters()
84 public List<Builder> getParameters() { in getParameters()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeBuilderTest.java55 List<Function<Integer, Node.Builder<Integer>>> ms = Arrays.asList( in createNodeBuilders()
63 for (Function<Integer, Node.Builder<Integer>> m : ms) { in createNodeBuilders()
72 public void testIteration(List<Integer> l, Function<Integer, Node.Builder<Integer>> m) { in testIteration()
73 Node.Builder<Integer> nb = m.apply(l.size()); in testIteration()
100 List<Function<Integer, Node.Builder<Integer>>> ms = Arrays.asList( in createIntNodeBuilders()
108 for (Function<Integer, Node.Builder<Integer>> m : ms) { in createIntNodeBuilders()
117 public void testIntIteration(List<Integer> l, Function<Integer, Node.Builder.OfInt> m) { in testIntIteration()
118 Node.Builder.OfInt nb = m.apply(l.size()); in testIntIteration()
150 List<Function<Integer, Node.Builder<Long>>> ms = Arrays.asList( in createLongNodeBuilders()
158 for (Function<Integer, Node.Builder<Long>> m : ms) { in createLongNodeBuilders()
[all …]
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DAclEntry.java98 public static final class Builder { class in AclEntry
104 private Builder(AclEntryType type, in Builder() method in AclEntry.Builder
140 public Builder setType(AclEntryType type) { in setType()
153 public Builder setPrincipal(UserPrincipal who) { in setPrincipal()
180 public Builder setPermissions(Set<AclEntryPermission> perms) { in setPermissions()
202 public Builder setPermissions(AclEntryPermission... perms) { in setPermissions()
225 public Builder setFlags(Set<AclEntryFlag> flags) { in setFlags()
247 public Builder setFlags(AclEntryFlag... flags) { in setFlags()
267 public static Builder newBuilder() { in newBuilder()
270 return new Builder(null, null, perms, flags); in newBuilder()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCalendar.annotated.java273 public static class Builder { class in Calendar
275 public Builder() { throw new RuntimeException("Stub!"); } in Builder() method in Calendar.Builder
277 @libcore.util.NonNull public java.util.Calendar.Builder setInstant(long instant) { throw new Runtim… in setInstant()
279 @libcore.util.NonNull public java.util.Calendar.Builder setInstant(@libcore.util.NonNull java.util.… in setInstant()
281 @libcore.util.NonNull public java.util.Calendar.Builder set(int field, int value) { throw new Runti… in set()
283 @libcore.util.NonNull public java.util.Calendar.Builder setFields(int @libcore.util.NonNull ... fie… in setFields()
285 @libcore.util.NonNull public java.util.Calendar.Builder setDate(int year, int month, int dayOfMonth… in setDate()
287 @libcore.util.NonNull public java.util.Calendar.Builder setTimeOfDay(int hourOfDay, int minute, int… in setTimeOfDay()
289 @libcore.util.NonNull public java.util.Calendar.Builder setTimeOfDay(int hourOfDay, int minute, int… in setTimeOfDay()
291 @libcore.util.NonNull public java.util.Calendar.Builder setWeekDate(int weekYear, int weekOfYear, i… in setWeekDate()
[all …]
DLocale.annotated.java214 public static final class Builder { class in Locale
216 public Builder() { throw new RuntimeException("Stub!"); } in Builder() method in Locale.Builder
218 @libcore.util.NonNull public java.util.Locale.Builder setLocale(@libcore.util.NonNull java.util.Loc… in setLocale()
220 @libcore.util.NonNull public java.util.Locale.Builder setLanguageTag(@libcore.util.NonNull java.lan… in setLanguageTag()
222 @libcore.util.NonNull public java.util.Locale.Builder setLanguage(@libcore.util.Nullable java.lang.… in setLanguage()
224 @libcore.util.NonNull public java.util.Locale.Builder setScript(@libcore.util.Nullable java.lang.St… in setScript()
226 @libcore.util.NonNull public java.util.Locale.Builder setRegion(@libcore.util.Nullable java.lang.St… in setRegion()
228 @libcore.util.NonNull public java.util.Locale.Builder setVariant(@libcore.util.Nullable java.lang.S… in setVariant()
230 @libcore.util.NonNull public java.util.Locale.Builder setExtension(char key, @libcore.util.Nullable… in setExtension()
232 @libcore.util.NonNull public java.util.Locale.Builder setUnicodeLocaleKeyword(@libcore.util.NonNull… in setUnicodeLocaleKeyword()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamBuilderTest.java93 Stream.Builder<Integer> sb = Stream.builder(); in testAfterBuilding()
105 Stream.Builder<Integer> sb = Stream.builder(); in testStreamBuilder()
111 Stream.Builder<Integer> sb = Stream.builder(); in testStreamBuilder()
113 Stream.Builder<Integer> _sb = sb.add(i); in testStreamBuilder()
155 IntStream.Builder sb = IntStream.builder(); in testIntAfterBuilding()
167 IntStream.Builder sb = IntStream.builder(); in testIntStreamBuilder()
173 IntStream.Builder sb = IntStream.builder(); in testIntStreamBuilder()
175 IntStream.Builder _sb = sb.add(i); in testIntStreamBuilder()
217 LongStream.Builder sb = LongStream.builder(); in testLongAfterBuilding()
229 LongStream.Builder sb = LongStream.builder(); in testLongStreamBuilder()
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestFlagExpectedOp.java31 static class Builder<T> { class in TestFlagExpectedOp
39 Builder(int flags) { in Builder() method in TestFlagExpectedOp.Builder
43 Builder<T> known(EnumSet<StreamOpFlag> known) { in known()
48 Builder<T> preserve(EnumSet<StreamOpFlag> preserve) { in preserve()
53 Builder<T> notKnown(EnumSet<StreamOpFlag> notKnown) { in notKnown()
58 Builder<T> shape(StreamShape shape) { in shape()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DTestFlagExpectedOp.java32 static class Builder<T> { class in TestFlagExpectedOp
40 Builder(int flags) { in Builder() method in TestFlagExpectedOp.Builder
44 Builder<T> known(EnumSet<StreamOpFlag> known) { in known()
49 Builder<T> preserve(EnumSet<StreamOpFlag> preserve) { in preserve()
54 Builder<T> notKnown(EnumSet<StreamOpFlag> notKnown) { in notKnown()
59 Builder<T> shape(StreamShape shape) { in shape()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java612 public static class Builder { class in Calendar
614 public Builder() { in Builder() method in Calendar.Builder
618 public java.util.Calendar.Builder setInstant(long instant) { in setInstant()
622 public java.util.Calendar.Builder setInstant(java.util.Date instant) { in setInstant()
626 public java.util.Calendar.Builder set(int field, int value) { in set()
630 public java.util.Calendar.Builder setFields(int... fieldValuePairs) { in setFields()
634 public java.util.Calendar.Builder setDate(int year, int month, int dayOfMonth) { in setDate()
638 public java.util.Calendar.Builder setTimeOfDay(int hourOfDay, int minute, int second) { in setTimeOfDay()
642 public java.util.Calendar.Builder setTimeOfDay( in setTimeOfDay()
647 public java.util.Calendar.Builder setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate()
[all …]
DLocale.java544 public static final class Builder { class in Locale
546 public Builder() { in Builder() method in Locale.Builder
550 public java.util.Locale.Builder setLocale(java.util.Locale locale) { in setLocale()
554 public java.util.Locale.Builder setLanguageTag(java.lang.String languageTag) { in setLanguageTag()
558 public java.util.Locale.Builder setLanguage(java.lang.String language) { in setLanguage()
562 public java.util.Locale.Builder setScript(java.lang.String script) { in setScript()
566 public java.util.Locale.Builder setRegion(java.lang.String region) { in setRegion()
570 public java.util.Locale.Builder setVariant(java.lang.String variant) { in setVariant()
574 public java.util.Locale.Builder setExtension(char key, java.lang.String value) { in setExtension()
578 public java.util.Locale.Builder setUnicodeLocaleKeyword( in setUnicodeLocaleKeyword()
[all …]
/libcore/ojluni/annotations/mmodule/java/util/
DLocale.annotated.java218 public static final class Builder { class in Locale
220 public Builder() { throw new RuntimeException("Stub!"); } in Builder() method in Locale.Builder
222 public java.util.Locale.Builder setLocale(java.util.Locale locale) { throw new RuntimeException("St… in setLocale()
224 public java.util.Locale.Builder setLanguageTag(java.lang.String languageTag) { throw new RuntimeExc… in setLanguageTag()
226 public java.util.Locale.Builder setLanguage(java.lang.String language) { throw new RuntimeException… in setLanguage()
228 public java.util.Locale.Builder setScript(java.lang.String script) { throw new RuntimeException("St… in setScript()
230 public java.util.Locale.Builder setRegion(java.lang.String region) { throw new RuntimeException("St… in setRegion()
232 public java.util.Locale.Builder setVariant(java.lang.String variant) { throw new RuntimeException("… in setVariant()
234 public java.util.Locale.Builder setExtension(char key, java.lang.String value) { throw new RuntimeE… in setExtension()
236 public java.util.Locale.Builder setUnicodeLocaleKeyword(java.lang.String key, java.lang.String type… in setUnicodeLocaleKeyword()
[all …]
/libcore/luni/src/main/java/libcore/content/type/
DMimeMap.java41 public static Builder builder() { in builder()
42 return new Builder(); in builder()
46 public Builder buildUpon() { in buildUpon()
47 return new Builder(mimeToExt, extToMime); in buildUpon()
226 public static final class Builder { class in MimeMap
233 Builder() { in Builder() method in MimeMap.Builder
243 Builder(Map<String, String> mimeToExt, Map<String, String> extToMime) { in Builder() method in MimeMap.Builder
328 public Builder put(@NonNull String mimeSpec, @NonNull List<@NonNull String> extensionSpecs) in put()
349 public Builder put(@NonNull String mimeSpec, @NonNull String extensionSpec) { in put()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java206 ROOT_CA = new Builder() in initCerts()
212 INTERMEDIATE_CA_EC = new Builder() in initCerts()
221 INTERMEDIATE_CA = new Builder() in initCerts()
229 SERVER = new Builder() in initCerts()
237 CLIENT_EC_RSA_CERTIFICATE = new Builder() in initCerts()
244 CLIENT_EC_EC_CERTIFICATE = new Builder() in initCerts()
251 CLIENT_CERTIFICATE = new Builder() in initCerts()
257 TestKeyStore rootCa2 = new Builder() in initCerts()
262 INTERMEDIATE_CA_2 = new Builder() in initCerts()
355 public static class Builder { class in TestKeyStore
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DNode.java127 Node.Builder<T> nodeBuilder = Nodes.builder(size, generator); in truncate()
190 interface Builder<T> extends Sink<T> { interface
203 interface OfInt extends Node.Builder<Integer>, Sink.OfInt {
211 interface OfLong extends Node.Builder<Long>, Sink.OfLong {
219 interface OfDouble extends Node.Builder<Double>, Sink.OfDouble {
362 Node.Builder.OfInt nodeBuilder = Nodes.intBuilder(size); in truncate()
435 Node.Builder.OfLong nodeBuilder = Nodes.longBuilder(size); in truncate()
510 Node.Builder.OfDouble nodeBuilder = Nodes.doubleBuilder(size); in truncate()
DDoubleStream.java726 public static Builder builder() { in builder()
851 public interface Builder extends DoubleConsumer { interface
877 default Builder add(double t) { in add()
DNodes.java166 static <T> Node.Builder<T> builder(long exactSizeIfKnown, IntFunction<T[]> generator) { in builder()
178 static <T> Node.Builder<T> builder() { in builder()
204 static Node.Builder.OfInt intBuilder(long exactSizeIfKnown) { in intBuilder()
215 static Node.Builder.OfInt intBuilder() { in intBuilder()
241 static Node.Builder.OfLong longBuilder(long exactSizeIfKnown) { in longBuilder()
252 static Node.Builder.OfLong longBuilder() { in longBuilder()
278 static Node.Builder.OfDouble doubleBuilder(long exactSizeIfKnown) { in doubleBuilder()
289 static Node.Builder.OfDouble doubleBuilder() { in doubleBuilder()
1196 implements Node.Builder<T> {
1248 implements Node<T>, Node.Builder<T> {
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DKeyStoreBuilderParametersTest.java34 new KeyStoreBuilderParameters((KeyStore.Builder) null); in test_Constructor01()
41 KeyStore.Builder bld = KeyStore.Builder.newInstance("testType", null, pp); in test_Constructor01()
/libcore/mmodules/core_platform_api/api/stable_platform/
Dcurrent-api.txt46 method public libcore.content.type.MimeMap.Builder buildUpon();
47 method public static libcore.content.type.MimeMap.Builder builder();
58 public static final class MimeMap.Builder {
60 …method public libcore.content.type.MimeMap.Builder put(@NonNull String, @NonNull java.util.List<ja…
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DForwardBuilder.java63 class ForwardBuilder extends Builder {
333 if (!currentState.isInitial() && Builder.USE_AIA) { in getMatchingCACerts()
359 if (Builder.USE_AIA == false) { in getCerts()
535 Builder.distance(tSubjectName, cIssuer1Name, -1); in compare()
537 Builder.distance(tSubjectName, cIssuer2Name, -1); in compare()
566 int distanceTto1 = Builder.distance in compare()
568 int distanceTto2 = Builder.distance in compare()
606 int hopsTto1 = Builder.hops in compare()
608 int hopsTto2 = Builder.hops in compare()
644 int distanceStoI1 = Builder.distance in compare()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronology.java211 Locale.Builder builder = new Locale.Builder().setLanguage("en").setRegion("CA"); in test_lookupLocale()
321 Locale.Builder builder = new Locale.Builder().setLanguage("en").setRegion("CA"); in test_ofLocaleByType()
330 Locale.Builder builder = new Locale.Builder().setLanguage("en").setRegion("CA"); in test_lookupLocale()
/libcore/ojluni/src/main/java/java/util/
DCalendar.java1068 public static class Builder { class in Calendar
1090 public Builder() { in Builder() method in Calendar.Builder
1106 public Builder setInstant(long instant) { in setInstant()
1130 public Builder setInstant(Date instant) { in setInstant()
1151 public Builder set(int field, int value) { in set()
1189 public Builder setFields(int... fieldValuePairs) { in setFields()
1227 public Builder setDate(int year, int month, int dayOfMonth) { in setDate()
1244 public Builder setTimeOfDay(int hourOfDay, int minute, int second) { in setTimeOfDay()
1265 public Builder setTimeOfDay(int hourOfDay, int minute, int second, int millis) { in setTimeOfDay()
1286 public Builder setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate()
[all …]
/libcore/ojluni/src/main/java/java/security/
DKeyStore.java1649 public static abstract class Builder { class in KeyStore
1657 protected Builder() { in Builder() method in KeyStore.Builder
1708 public static Builder newInstance(final KeyStore keyStore, in newInstance()
1716 return new Builder() { in newInstance()
1781 public static Builder newInstance(String type, Provider provider, in newInstance()
1801 private static final class FileBuilder extends Builder {
1946 public static Builder newInstance(final String type, in newInstance()
1952 return new Builder() { in newInstance()

123