Home
last modified time | relevance | path

Searched refs:create (Results 1 – 25 of 149) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/java/util/random/
DRandomGeneratorFactoryTest.java123 RandomGenerator rng = factory.create(); in isDeprecated_consistency()
136 checkNextBoolean(rngFactory.create(seed), rngFactory.create(seed)); in checkConsistencyWithLongSeed()
137 checkNextInt(rngFactory.create(seed), rngFactory.create(seed)); in checkConsistencyWithLongSeed()
138 checkInts(rngFactory.create(seed), rngFactory.create(seed)); in checkConsistencyWithLongSeed()
139 checkNextLong(rngFactory.create(seed), rngFactory.create(seed)); in checkConsistencyWithLongSeed()
140 checkLongs(rngFactory.create(seed), rngFactory.create(seed)); in checkConsistencyWithLongSeed()
141 checkNextDouble(rngFactory.create(seed), rngFactory.create(seed)); in checkConsistencyWithLongSeed()
142 checkDoubles(rngFactory.create(seed), rngFactory.create(seed)); in checkConsistencyWithLongSeed()
150 checkNextBoolean(rngFactory.create(seedBytes), rngFactory.create(seedBytes)); in checkConsistencyWithBytesSeed()
151 checkNextInt(rngFactory.create(seedBytes), rngFactory.create(seedBytes)); in checkConsistencyWithBytesSeed()
[all …]
/libcore/ojluni/src/main/java/jdk/internal/math/
DFormattedFloatingDecimal.java187 mantissa = create(isNegative, nDigits + extraZeros + 2); in fillCompatible()
194 mantissa = create(isNegative, exp + 1 + t); in fillCompatible()
199 mantissa = create(isNegative, nDigits + 2); in fillCompatible()
209 mantissa = create(isNegative, zeros + 2 + t); in fillCompatible()
218 mantissa = create(isNegative, zeros + 2 + t); in fillCompatible()
224 this.mantissa = create(isNegative, 1); in fillCompatible()
229 mantissa = create(isNegative, nDigits + 1); in fillCompatible()
234 mantissa = create(isNegative, 3); in fillCompatible()
250 exponent = create(isNegExp,1); in fillCompatible()
253 exponent = create(isNegExp,2); in fillCompatible()
[all …]
/libcore/support/src/test/java/org/apache/harmony/testframework/
DSinkTester.java42 public abstract OutputStream create() throws Exception; in create() method in SinkTester
97 OutputStream out = create(); in sinkTestNoWriting()
105 OutputStream out = create(); in sinkTestWriteZeroBytes()
118 OutputStream out = create(); in sinkTestWriteByteByByte()
134 OutputStream out = create(); in sinkTestWriteArray()
156 OutputStream out = create(); in sinkTestWriteOffset()
184 OutputStream out = create(); in sinkTestWriteLargeArray()
193 OutputStream out = create(); in sinkTestWriteAfterClose()
208 OutputStream out = create(); in sinkTestWriteAfterCloseSuppressed()
DCharSinkTester.java42 public abstract Writer create() throws Exception; in create() method in CharSinkTester
96 Writer out = create(); in sinkTestNoWriting()
104 Writer out = create(); in sinkTestWriteZeroChars()
117 Writer out = create(); in sinkTestWriteCharByChar()
129 Writer out = create(); in sinkTestWriteArray()
141 Writer out = create(); in sinkTestWriteOffset()
172 Writer out = create(); in sinkTestWriteLargeArray()
181 Writer out = create(); in sinkTestWriteAfterClose()
196 Writer out = create(); in sinkTestWriteAfterCloseSuppressed()
DWrapperTester.java39 public abstract OutputStream create(OutputStream delegate) throws Exception; in create() method in WrapperTester
85 public OutputStream create() throws Exception { in create() method in WrapperTester.WrapperSinkTester
87 return WrapperTester.this.create(delegate); in create()
114 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaFlushSuppressed()
123 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaCloseSuppressed()
133 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaFlush()
149 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaClose()
170 OutputStream o = create(delegate); in wrapperTestCloseThrows()
182 OutputStream o = create(delegate); in wrapperTestCloseThrowsSuppressed()
DCharWrapperTester.java38 public abstract Writer create(Writer delegate) throws Exception; in create() method in CharWrapperTester
84 public Writer create() throws Exception { in create() method in CharWrapperTester.WrapperSinkTester
86 return CharWrapperTester.this.create(delegate); in create()
113 Writer o = create(delegate); in wrapperTestFlushThrowsViaFlushSuppressed()
122 Writer o = create(delegate); in wrapperTestFlushThrowsViaCloseSuppressed()
132 Writer o = create(delegate); in wrapperTestFlushThrowsViaFlush()
148 Writer o = create(delegate); in wrapperTestFlushThrowsViaClose()
169 Writer o = create(delegate); in wrapperTestCloseThrows()
181 Writer o = create(delegate); in wrapperTestCloseThrowsSuppressed()
/libcore/ojluni/src/test/java/net/SocketOptions/
DOptionsTest.java47 static TestClass create(SocketOption<?> option, Object testValue) { in create() method in OptionsTest.TestClass
59 TestClass.create(StandardSocketOptions.SO_KEEPALIVE, Boolean.TRUE),
60 TestClass.create(StandardSocketOptions.SO_SNDBUF, Integer.valueOf(10 * 100)),
61 TestClass.create(StandardSocketOptions.SO_RCVBUF, Integer.valueOf(8 * 100)),
62 TestClass.create(StandardSocketOptions.SO_REUSEADDR, Boolean.FALSE),
63 TestClass.create(StandardSocketOptions.SO_REUSEPORT, Boolean.FALSE),
64 TestClass.create(StandardSocketOptions.SO_LINGER, Integer.valueOf(80)),
65 TestClass.create(StandardSocketOptions.IP_TOS, Integer.valueOf(100))
69 TestClass.create(StandardSocketOptions.SO_RCVBUF, Integer.valueOf(8 * 100)),
70 TestClass.create(StandardSocketOptions.SO_REUSEADDR, Boolean.FALSE),
[all …]
/libcore/ojluni/src/main/java/java/time/
DPeriod.java174 return create(years, 0, 0); in ofYears()
187 return create(0, months, 0); in ofMonths()
201 return create(0, 0, Math.multiplyExact(weeks, 7)); in ofWeeks()
214 return create(0, 0, days); in ofDays()
229 return create(years, months, days); in of()
277 return create(years, months, days); in from()
336 return create(years, months, days); in parse()
393 private static Period create(int years, int months, int days) { in create() method in Period
557 return create(years, months, days); in withYears()
579 return create(years, months, days); in withMonths()
[all …]
DDuration.java176 return create(Math.multiplyExact(days, SECONDS_PER_DAY), 0); in ofDays()
191 return create(Math.multiplyExact(hours, SECONDS_PER_HOUR), 0); in ofHours()
206 return create(Math.multiplyExact(minutes, SECONDS_PER_MINUTE), 0); in ofMinutes()
219 return create(seconds, 0); in ofSeconds()
244 return create(secs, nos); in ofSeconds()
263 return create(secs, mos * 1000_000); in ofMillis()
282 return create(secs, nos); in ofNanos()
402 return create(negate, daysAsSecs, hoursAsSecs, minsAsSecs, seconds, nanos); in parse()
438 …private static Duration create(boolean negate, long daysAsSecs, long hoursAsSecs, long minsAsSecs,… in create() method in Duration
495 private static Duration create(long seconds, int nanoAdjustment) { in create() method in Duration
[all …]
DLocalTime.java339 return create(hour, minute, second, nanoOfSecond); in of()
381 return create(hours, minutes, (int) secondOfDay, 0); in ofSecondOfDay()
401 return create(hours, minutes, seconds, (int) nanoOfDay); in ofNanoOfDay()
474 private static LocalTime create(int hour, int minute, int second, int nanoOfSecond) { in create() method in LocalTime
891 return create(hour, minute, second, nano); in withHour()
908 return create(hour, minute, second, nano); in withMinute()
925 return create(hour, minute, second, nano); in withSecond()
942 return create(hour, minute, second, nanoOfSecond); in withNano()
1094 return create(newHour, minute, second, nano); in plusHours()
1119 return create(newHour, newMinute, second, nano); in plusMinutes()
[all …]
DInstant.java299 return create(epochSecond, 0); in ofEpochSecond()
325 return create(secs, nos); in ofEpochSecond()
341 return create(secs, mos * 1000_000); in ofEpochMilli()
401 private static Instant create(long seconds, int nanoOfSecond) { in create() method in Instant
704 return (nval != nanos ? create(seconds, nval) : this); in with()
708 return (nval != nanos ? create(seconds, nval) : this); in with()
710 … case NANO_OF_SECOND: return (newValue != nanos ? create(seconds, (int) newValue) : this); in with()
711 case INSTANT_SECONDS: return (newValue != seconds ? create(newValue, nanos) : this); in with()
/libcore/luni/src/test/java/libcore/dalvik/system/
DEmulatedStackFrameTest.java28 EmulatedStackFrame stackFrame = EmulatedStackFrame.create(MethodType.methodType( in testReaderWriter_allParamTypes()
59 EmulatedStackFrame stackFrame = EmulatedStackFrame.create(MethodType.methodType( in testRandomReaderWriter_allParamTypes()
124 EmulatedStackFrame stackFrame = EmulatedStackFrame.create( in testReaderWriter_allReturnTypes()
136 stackFrame = EmulatedStackFrame.create(MethodType.methodType(char.class)); in testReaderWriter_allReturnTypes()
143 stackFrame = EmulatedStackFrame.create(MethodType.methodType(short.class)); in testReaderWriter_allReturnTypes()
150 stackFrame = EmulatedStackFrame.create(MethodType.methodType(int.class)); in testReaderWriter_allReturnTypes()
156 stackFrame = EmulatedStackFrame.create(MethodType.methodType(long.class)); in testReaderWriter_allReturnTypes()
162 stackFrame = EmulatedStackFrame.create(MethodType.methodType(float.class)); in testReaderWriter_allReturnTypes()
168 stackFrame = EmulatedStackFrame.create(MethodType.methodType(double.class)); in testReaderWriter_allReturnTypes()
174 stackFrame = EmulatedStackFrame.create(MethodType.methodType(String.class)); in testReaderWriter_allReturnTypes()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DOutputStreamTesterTest.java84 public OutputStream create() throws IOException { in create() method in OutputStreamTesterTest.FileOutputStreamSinkTester
104 public OutputStream create() throws IOException { in create() method in OutputStreamTesterTest.ByteArrayOutputStreamSinkTester
119 public OutputStream create() throws IOException { in create() method in OutputStreamTesterTest.PipedOutputStreamSinkTester
148 public OutputStream create(OutputStream delegate) throws Exception { in create() method in OutputStreamTesterTest.FilterOutputStreamTester
164 public OutputStream create(OutputStream delegate) throws Exception { in create() method in OutputStreamTesterTest.BufferedOutputStreamTester
175 public OutputStream create(OutputStream delegate) throws Exception { in create() method in OutputStreamTesterTest.DataOutputStreamTester
186 public OutputStream create(OutputStream delegate) throws Exception { in create() method in OutputStreamTesterTest.ObjectOutputStreamTester
198 public OutputStream create(OutputStream delegate) throws Exception { in create() method in OutputStreamTesterTest.PrintStreamTester
DWriterTesterTest.java80 public Writer create() throws Exception { in create() method in WriterTesterTest.FileWriterCharSinkTester
96 public Writer create() throws Exception { in create() method in WriterTesterTest.CharArrayWriterCharSinkTester
112 public Writer create() throws IOException { in create() method in WriterTesterTest.PipedWriterCharSinkTester
144 public Writer create() throws Exception { in create() method in WriterTesterTest.StringWriterCharSinkTester
163 public Writer create(Writer delegate) throws Exception { in create() method in WriterTesterTest.BufferedWriterCharSinkTester
175 public Writer create(Writer delegate) throws Exception { in create() method in WriterTesterTest.FilterWriterCharSinkTester
188 public Writer create(Writer delegate) throws Exception { in create() method in WriterTesterTest.PrintWriterCharSinkTester
203 public Writer create() throws Exception { in create() method in WriterTesterTest.OutputStreamWriterCharSinkTester
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLEnginePair.java46 public static TestSSLEnginePair create() throws IOException { in create() method in TestSSLEnginePair
47 return create(null); in create()
50 public static TestSSLEnginePair create(Hooks hooks) throws IOException { in create() method in TestSSLEnginePair
51 return create(TestSSLContext.create(), hooks); in create()
54 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks) throws IOException { in create() method in TestSSLEnginePair
55 return create(c, hooks, null); in create()
58 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks, boolean[] finished) in create() method in TestSSLEnginePair
DTestSSLSessions.java65 public static final TestSSLSessions create() { in create() method in TestSSLSessions
70 TestSSLSocketPair s = TestSSLSocketPair.create(); in create()
/libcore/ojluni/src/test/java/util/Random/
DRandomTestCoverage.java93 RandomGenerator rng = factory.create(); in checkPredicates()
175 coverRandomGenerator(factory.create()); in coverFactory()
176 coverRandomGenerator(factory.create(12345L)); in coverFactory()
177 coverRandomGenerator(factory.create(new byte[] {1, 2, 3, 4, 5, 6, 7, 8})); in coverFactory()
197 coverStreamable((StreamableGenerator)factory.create()); in main()
202 coverSplittable((SplittableGenerator)factory.create()); in main()
207 coverJumpable((JumpableGenerator)factory.create()); in main()
212 coverLeapable((LeapableGenerator)factory.create()); in main()
217 coverArbitrarilyJumpable((ArbitrarilyJumpableGenerator)factory.create()); in main()
/libcore/ojluni/annotations/flagged_api/java/util/random/
DRandomGeneratorFactory.annotated.java69 public T create() { throw new RuntimeException("Stub!"); } in create() method in RandomGeneratorFactory
71 public T create(long seed) { throw new RuntimeException("Stub!"); } in create() method in RandomGeneratorFactory
73 public T create(byte[] seed) { throw new RuntimeException("Stub!"); } in create() method in RandomGeneratorFactory
/libcore/ojluni/src/main/java/sun/nio/cs/
DThreadLocalCoders.java50 abstract Object create(Object name); in create() method in ThreadLocalCoders.Cache
80 Object ob = create(name); in forName()
96 Object create(Object name) {
120 Object create(Object name) {
/libcore/luni/src/test/java/libcore/java/util/
DMapOfTest.java52 new SerializationTester<>(create(), golden).test(); in serializationCompatibility_empty()
63 new SerializationTester<>(create(entry("one", 1)), golden).test(); in serializationCompatibility_oneElement()
78 create(entry("one", 1), entry("two", 2), entry("three", 3), in serializationCompatibility_manyElements()
85 assertThrowsIae(() -> creator.create(entries)); in duplicates_sameKey()
90 assertThrowsIae(() -> creator.create(entries)); in duplicates_sameEntry()
99 assertThrowsIae(() -> creator.create(entries)); in duplicates_manyElements()
189 Map<K, V> actual = creator.create(entries); in assertBehaviorCommonToAllOfInstances()
237 private<K, V> Map<K, V> create(Map.Entry<K, V>... entries) { in create() method in MapOfTest
238 return creator.create(entries); in create()
264 <K, V> Map<K, V> create(Map.Entry<K, V>... e) { in create() method
[all …]
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClient.java107 public static FtpClient create() { in create() method in FtpClient
121 … public static FtpClient create(InetSocketAddress dest) throws FtpProtocolException, IOException { in create() method in FtpClient
122 FtpClient client = create(); in create()
139 public static FtpClient create(String dest) throws FtpProtocolException, IOException { in create() method in FtpClient
140 return create(new InetSocketAddress(dest, FTP_PORT)); in create()
/libcore/ojluni/src/main/java/sun/misc/
DLRUCache.java42 abstract protected V create(N name); in create() method in LRUCache
72 V ob = create(name); in forName()
/libcore/ojluni/src/main/java/java/lang/ref/
DCleaner.java178 public static Cleaner create() { in create() method in Cleaner
205 public static Cleaner create(ThreadFactory threadFactory) { in create() method in Cleaner
/libcore/ojluni/src/main/java/java/nio/file/
DTempFileHelper.java80 private static Path create(Path dir, in create() method in TempFileHelper
161 return create(dir, prefix, suffix, false, attrs); in createTempFile()
173 return create(dir, prefix, null, true, attrs); in createTempDirectory()
/libcore/ojluni/src/main/java/java/util/random/
DRandomGeneratorFactory.java604 public T create() {
624 public T create(long seed) {
629 return create();
646 public T create(byte[] seed) {
652 return create();

123456