Home
last modified time | relevance | path

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

12345

/libcore/ojluni/src/main/java/sun/misc/
DFormattedFloatingDecimal.java169 mantissa = create(isNegative, nDigits + extraZeros + 2); in fillCompatible()
176 mantissa = create(isNegative, exp + 1 + t); in fillCompatible()
181 mantissa = create(isNegative, nDigits + 2); in fillCompatible()
191 mantissa = create(isNegative, zeros + 2 + t); in fillCompatible()
200 mantissa = create(isNegative, zeros + 2 + t); in fillCompatible()
206 this.mantissa = create(isNegative, 1); in fillCompatible()
211 mantissa = create(isNegative, nDigits + 1); in fillCompatible()
216 mantissa = create(isNegative, 3); in fillCompatible()
232 exponent = create(isNegExp,1); in fillCompatible()
235 exponent = create(isNegExp,2); in fillCompatible()
[all …]
DLRUCache.java42 abstract protected V create(N name); in create() method in LRUCache
72 V ob = create(name); in forName()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSessionTest.java28 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSocket_TestSSLSessions_create()
37 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getApplicationBufferSize()
45 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getCipherSuite()
62 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getCreationTime()
79 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getId()
95 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getLastAccessedTime()
111 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getLocalCertificates()
124 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getLocalPrincipal()
135 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getPacketBufferSize()
143 TestSSLSessions s = TestSSLSessions.create(); in test_SSLSession_getPeerCertificateChain()
[all …]
DSSLEngineTest.java76 TestSSLContext.create().clientContext.createSSLEngine()); in test_SSLEngine_defaultConfiguration()
80 TestSSLContext c = TestSSLContext.create(); in test_SSLEngine_getSupportedCipherSuites_returnsCopies()
114 final TestSSLEnginePair engines = TestSSLEnginePair.create(null /* hooks */); in test_SSLEngine_underflowsOnEmptyBuffersAfterHandshake()
174 cWithWrongPrivateKeys = TestSSLContext.create(testKeyStore, testKeyStore); in test_SSLEngine_getSupportedCipherSuites_connect()
215 pair = TestSSLEnginePair.create(c, new TestSSLEnginePair.Hooks() { in test_SSLEngine_getSupportedCipherSuites_connect()
252 p = TestSSLEnginePair.create( in test_SSLEngine_getSupportedCipherSuites_connect()
364 TestSSLContext c = TestSSLContext.create(); in test_SSLEngine_getEnabledCipherSuites_returnsCopies()
371 TestSSLContext c = TestSSLContext.create(); in test_SSLEngine_setEnabledCipherSuites_storesCopy()
381 TestSSLContext c = TestSSLContext.create(); in test_SSLEngine_setEnabledCipherSuites()
413 TestSSLContext c = TestSSLContext.create(); in test_SSLEngine_getSupportedProtocols_returnsCopies()
[all …]
DSSLSessionContextTest.java60 TestSSLContext c = TestSSLContext.create(); in test_SSLSessionContext_getIds()
64 TestSSLSocketPair s = TestSSLSocketPair.create(); in test_SSLSessionContext_getIds()
81 TestSSLContext c = TestSSLContext.create(); in test_SSLSessionContext_getSession()
98 TestSSLSocketPair s = TestSSLSocketPair.create(); in test_SSLSessionContext_getSession()
115 TestSSLContext c = TestSSLContext.create(); in test_SSLSessionContext_getSessionCacheSize()
122 TestSSLSocketPair s = TestSSLSocketPair.create(); in test_SSLSessionContext_getSessionCacheSize()
131 TestSSLContext c = TestSSLContext.create(); in test_SSLSessionContext_setSessionCacheSize_noConnect()
154 TestSSLSocketPair s = TestSSLSocketPair.create(); in test_SSLSessionContext_setSessionCacheSize_oneConnect()
166 TestSSLContext c = TestSSLContext.create(); in test_SSLSessionContext_setSessionCacheSize_dynamic()
247 TestSSLContext c = TestSSLContext.create(); in test_SSLSessionContext_getSessionTimeout()
[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/luni/src/test/java/dalvik/system/
DEmulatedStackFrameTest.java26 EmulatedStackFrame stackFrame = EmulatedStackFrame.create(MethodType.methodType( in testReaderWriter_allParamTypes()
57 EmulatedStackFrame stackFrame = EmulatedStackFrame.create( in testReaderWriter_allReturnTypes()
69 stackFrame = EmulatedStackFrame.create(MethodType.methodType(char.class)); in testReaderWriter_allReturnTypes()
76 stackFrame = EmulatedStackFrame.create(MethodType.methodType(short.class)); in testReaderWriter_allReturnTypes()
83 stackFrame = EmulatedStackFrame.create(MethodType.methodType(int.class)); in testReaderWriter_allReturnTypes()
89 stackFrame = EmulatedStackFrame.create(MethodType.methodType(long.class)); in testReaderWriter_allReturnTypes()
95 stackFrame = EmulatedStackFrame.create(MethodType.methodType(float.class)); in testReaderWriter_allReturnTypes()
101 stackFrame = EmulatedStackFrame.create(MethodType.methodType(double.class)); in testReaderWriter_allReturnTypes()
107 stackFrame = EmulatedStackFrame.create(MethodType.methodType(String.class)); in testReaderWriter_allReturnTypes()
115 EmulatedStackFrame stackFrame = EmulatedStackFrame.create( in testReaderWriter_wrongTypes()
[all …]
/libcore/ojluni/src/main/java/java/time/
DPeriod.java176 return create(years, 0, 0); in ofYears()
189 return create(0, months, 0); in ofMonths()
203 return create(0, 0, Math.multiplyExact(weeks, 7)); in ofWeeks()
216 return create(0, 0, days); in ofDays()
231 return create(years, months, days); in of()
279 return create(years, months, days); in from()
338 return create(years, months, days); in parse()
391 private static Period create(int years, int months, int days) { in create() method in Period
555 return create(years, months, days); in withYears()
577 return create(years, months, days); in withMonths()
[all …]
DDuration.java173 return create(Math.multiplyExact(days, SECONDS_PER_DAY), 0); in ofDays()
188 return create(Math.multiplyExact(hours, SECONDS_PER_HOUR), 0); in ofHours()
203 return create(Math.multiplyExact(minutes, SECONDS_PER_MINUTE), 0); in ofMinutes()
216 return create(seconds, 0); in ofSeconds()
241 return create(secs, nos); in ofSeconds()
260 return create(secs, mos * 1000_000); in ofMillis()
279 return create(secs, nos); in ofNanos()
399 return create(negate, daysAsSecs, hoursAsSecs, minsAsSecs, seconds, nanos); in parse()
435 …private static Duration create(boolean negate, long daysAsSecs, long hoursAsSecs, long minsAsSecs,… in create() method in Duration
492 private static Duration create(long seconds, int nanoAdjustment) { in create() method in Duration
[all …]
DLocalTime.java337 return create(hour, minute, second, nanoOfSecond); in of()
357 return create(hours, minutes, (int) secondOfDay, 0); in ofSecondOfDay()
377 return create(hours, minutes, seconds, (int) nanoOfDay); in ofNanoOfDay()
450 private static LocalTime create(int hour, int minute, int second, int nanoOfSecond) { in create() method in LocalTime
868 return create(hour, minute, second, nano); in withHour()
885 return create(hour, minute, second, nano); in withMinute()
902 return create(hour, minute, second, nano); in withSecond()
919 return create(hour, minute, second, nanoOfSecond); in withNano()
1071 return create(newHour, minute, second, nano); in plusHours()
1096 return create(newHour, newMinute, second, nano); in plusMinutes()
[all …]
DInstant.java298 return create(epochSecond, 0); in ofEpochSecond()
324 return create(secs, nos); in ofEpochSecond()
340 return create(secs, mos * 1000_000); in ofEpochMilli()
400 private static Instant create(long seconds, int nanoOfSecond) { in create() method in Instant
705 return (nval != nanos ? create(seconds, nval) : this); in with()
709 return (nval != nanos ? create(seconds, nval) : this); in with()
711 … case NANO_OF_SECOND: return (newValue != nanos ? create(seconds, (int) newValue) : this); in with()
712 case INSTANT_SECONDS: return (newValue != seconds ? create(newValue, nanos) : this); in with()
/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/main/java/java/nio/charset/
DCoderResult.java198 protected abstract CoderResult create(int len); in create() method in CoderResult.Cache
212 e = create(len); in get()
222 public CoderResult create(int len) {
241 public CoderResult create(int len) {
/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/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/luni/src/main/java/libcore/util/
DBasicLruCache.java58 result = create(key); in get()
117 protected V create(K key) { in create() method in BasicLruCache
DNativeAllocationRegistry.java128 Cleaner cleaner = Cleaner.create(referent, new CleanerThunk(nativePtr)); in registerNativeAllocation()
171 Cleaner cleaner = Cleaner.create(referent, thunk); in registerNativeAllocation()
/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/sun/nio/fs/
DUnixChannelFactory.java62 boolean create; field in UnixChannelFactory.Flags
77 case CREATE : flags.create = true; break; in toFlags()
213 if (flags.create) in open()
226 if (!flags.create || x.errno() != ENOENT) in open()

12345