Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 61) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java32 Object ret = null; in test_getLjava_lang_ObjectI() local
35 ret = Array.get(x, 0); in test_getLjava_lang_ObjectI()
40 1, ((Integer) ret).intValue()); in test_getLjava_lang_ObjectI()
42 ret = Array.get(new Object(), 0); in test_getLjava_lang_ObjectI()
52 ret = Array.get(x, 4); in test_getLjava_lang_ObjectI()
63 ret = null; in test_getLjava_lang_ObjectI()
66 ret = Array.get(y, 0); in test_getLjava_lang_ObjectI()
71 1, ((Integer) ret).intValue()); in test_getLjava_lang_ObjectI()
73 ret = Array.get(new Object(), 0); in test_getLjava_lang_ObjectI()
83 ret = Array.get(y, 4); in test_getLjava_lang_ObjectI()
[all …]
DInvocationTargetExceptionTest.java137 Object ret = mth.invoke(new TestMethod(), new Object[0]); in test_ConstructorLjava_lang_Throwable() local
159 Object ret = mth.invoke(new TestMethod(), new Object[0]); in test_ConstructorLjava_lang_ThrowableLjava_lang_String() local
180 Object ret = mth.invoke(new TestMethod(), new Object[0]); in test_getTargetException() local
201 Object ret = mth.invoke(new TestMethod(), new Object[0]); in test_getCause() local
/libcore/ojluni/src/main/native/
DFileInputStream.c94 jlong ret; in Java_java_io_FileInputStream_position0() local
101 if ((ret = IO_Lseek(fd, 0L, SEEK_CUR)) == -1) { in Java_java_io_FileInputStream_position0()
104 return ret; in Java_java_io_FileInputStream_position0()
164 jlong ret; in Java_java_io_FileInputStream_available0() local
170 if (available(fd, &ret)) { in Java_java_io_FileInputStream_available0()
171 if (ret > INT_MAX) { in Java_java_io_FileInputStream_available0()
172 ret = (jlong) INT_MAX; in Java_java_io_FileInputStream_available0()
173 } else if (ret < 0) { in Java_java_io_FileInputStream_available0()
174 ret = 0; in Java_java_io_FileInputStream_available0()
176 return jlong_to_jint(ret); in Java_java_io_FileInputStream_available0()
DInflater.c70 int ret = inflateInit2(strm, nowrap ? -MAX_WBITS : MAX_WBITS); in Inflater_init() local
71 switch (ret) { in Inflater_init()
80 (ret == Z_VERSION_ERROR) ? in Inflater_init()
83 (ret == Z_STREAM_ERROR) ? in Inflater_init()
135 jint ret; in doInflate() local
143 ret = inflate(strm, Z_PARTIAL_FLUSH); in doInflate()
144 return ret; in doInflate()
148 jint inputLen, jint outputLen, jint ret ) in checkInflateStatus() argument
155 switch (ret) { in checkInflateStatus()
196 jint ret; in Inflater_inflateBytesBytes() local
[all …]
DNativeThread.c108 int ret; in NativeThread_signal() local
110 ret = thr_kill((thread_t)thread, INTERRUPT_SIGNAL); in NativeThread_signal()
112 ret = pthread_kill((pthread_t)thread, INTERRUPT_SIGNAL); in NativeThread_signal()
114 if (ret != 0) in NativeThread_signal()
Dlinux_close.cpp116 int ret; \
122 ret = FUNC; \
127 } while (ret == -1 && errno == EINTR); \
128 return ret; \
DUnixDomainSockets.c78 int ret; in unixSocketAddressToSockaddr() local
87 ret = -1; in unixSocketAddressToSockaddr()
91 ret = 0; in unixSocketAddressToSockaddr()
94 return ret; in unixSocketAddressToSockaddr()
/libcore/luni/src/test/native/
Dlibcore_java_io_FileTest.cpp37 int ret = stat(subDir.c_str(), &sb); in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs() local
38 if (ret == -1) { in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
47 ret = stat(subFile.c_str(), &sb); in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
48 if (ret == -1) { in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
77 long ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in Java_libcore_java_io_FileTest_installSeccompFilter() local
79 return ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); in Java_libcore_java_io_FileTest_installSeccompFilter()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/support/
DP.java34 String ret = null; in findProp() local
37 ret = (String) b.getObject(key); in findProp()
40 if (ret == null && !cls.equals(Object.class) && !cls.isPrimitive()) { in findProp()
41 ret = findProp(cls.getSuperclass(), key); in findProp()
43 return ret; in findProp()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DAbstractBufferTest.java51 Buffer ret = baseBuf.clear(); in testClear() local
52 assertSame(ret, baseBuf); in testClear()
72 Buffer ret = baseBuf.flip(); in testFlip() local
73 assertSame(ret, baseBuf); in testFlip()
122 Buffer ret = baseBuf.limit(baseBuf.limit());
123 assertSame(ret, baseBuf);
172 Buffer ret = baseBuf.mark();
173 assertSame(ret, baseBuf);
244 Buffer ret = baseBuf.position(0);
245 assertSame(ret, baseBuf);
[all …]
DShortBufferTest.java112 ShortBuffer ret = buf.compact(); in testCompact() local
113 assertSame(ret, buf); in testCompact()
128 ret = buf.compact(); in testCompact()
129 assertSame(ret, buf); in testCompact()
145 ret = buf.compact(); in testCompact()
146 assertSame(ret, buf); in testCompact()
260 ShortBuffer ret = buf.get(array); in testGetshortArray() local
262 assertSame(ret, buf); in testGetshortArray()
327 ShortBuffer ret = buf.get(array, 0, array.length); in testGetshortArrayintint() local
330 assertSame(ret, buf); in testGetshortArrayintint()
[all …]
DIntBufferTest.java113 IntBuffer ret = buf.compact(); in testCompact() local
114 assertSame(ret, buf); in testCompact()
129 ret = buf.compact(); in testCompact()
130 assertSame(ret, buf); in testCompact()
146 ret = buf.compact(); in testCompact()
147 assertSame(ret, buf); in testCompact()
261 IntBuffer ret = buf.get(array); in testGetintArray() local
263 assertSame(ret, buf); in testGetintArray()
340 IntBuffer ret = buf.get(array, 0, array.length); in testGetintArrayintint() local
343 assertSame(ret, buf); in testGetintArrayintint()
[all …]
DFloatBufferTest.java114 FloatBuffer ret = buf.compact(); in testCompact() local
115 assertSame(ret, buf); in testCompact()
130 ret = buf.compact(); in testCompact()
131 assertSame(ret, buf); in testCompact()
147 ret = buf.compact(); in testCompact()
148 assertSame(ret, buf); in testCompact()
281 FloatBuffer ret = buf.get(array); in testGetfloatArray() local
283 assertSame(ret, buf); in testGetfloatArray()
362 FloatBuffer ret = buf.get(array, 0, array.length); in testGetfloatArrayintint() local
365 assertSame(ret, buf); in testGetfloatArrayintint()
[all …]
DLongBufferTest.java113 LongBuffer ret = buf.compact(); in testCompact() local
114 assertSame(ret, buf); in testCompact()
129 ret = buf.compact(); in testCompact()
130 assertSame(ret, buf); in testCompact()
146 ret = buf.compact(); in testCompact()
147 assertSame(ret, buf); in testCompact()
261 LongBuffer ret = buf.get(array); in testGetlongArray() local
263 assertSame(ret, buf); in testGetlongArray()
341 LongBuffer ret = buf.get(array, 0, array.length); in testGetlongArrayintint() local
344 assertSame(ret, buf); in testGetlongArrayintint()
[all …]
DDoubleBufferTest.java137 DoubleBuffer ret = buf.compact(); in testCompact() local
138 assertSame(ret, buf); in testCompact()
153 ret = buf.compact(); in testCompact()
154 assertSame(ret, buf); in testCompact()
170 ret = buf.compact(); in testCompact()
171 assertSame(ret, buf); in testCompact()
302 DoubleBuffer ret = buf.get(array);
304 assertSame(ret, buf);
375 DoubleBuffer ret = buf.get(array, 0, array.length);
378 assertSame(ret, buf);
[all …]
DCharBufferTest.java142 CharBuffer ret = buf.compact(); in testCompact() local
143 assertSame(ret, buf); in testCompact()
158 ret = buf.compact(); in testCompact()
159 assertSame(ret, buf); in testCompact()
175 ret = buf.compact(); in testCompact()
176 assertSame(ret, buf); in testCompact()
323 CharBuffer ret = buf.get(array); in testGetcharArray() local
325 assertSame(ret, buf); in testGetcharArray()
396 CharBuffer ret = buf.get(array, 0, array.length); in testGetcharArrayintint() local
399 assertSame(ret, buf); in testGetcharArrayintint()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/support/
DP.java17 String ret = null; in findProp() local
20 ret = (String)b.getObject(key); in findProp()
23 if (ret == null && !cls.equals(Object.class) && !cls.isPrimitive()) { in findProp()
24 ret = findProp(cls.getSuperclass(), key); in findProp()
26 return ret; in findProp()
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidPipedStreamTest.java122 int ret; in testB()
127 ret = in.read(readBytes, nread, readBytes.length - nread); in testB()
129 if (ret == -1) { in testB()
132 nread += ret; in testB()
205 int ret; in testC()
210 ret = in.read(readBytes, nread, readBytes.length - nread); in testC()
212 if (ret == -1) { in testC()
215 nread += ret; in testC()
284 int ret = n1 + n2; in next() local
286 n1 = ret; in next()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DEncryptedPrivateKeyInfoData.java1198 byte[] ret = includingAlgParameters ? validEPKIEncodings in getValidEncryptedPrivateKeyInfoEncoding()
1200 if (ret != null) { in getValidEncryptedPrivateKeyInfoEncoding()
1201 return ret.clone(); in getValidEncryptedPrivateKeyInfoEncoding()
1221 byte[] ret = validAPEncodings.get(algNameUC); in getParametersEncoding()
1222 if (ret != null) { in getParametersEncoding()
1223 return ret; in getParametersEncoding()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java919 int ret = (int) mhAsSpreader.invoke("a", "b", "c", new String[]{}); in testSpreaders_reference() local
920 assertEquals(42, ret); in testSpreaders_reference()
923 ret = (int) mhAsSpreader.invoke("a", "b", new String[]{"c"}); in testSpreaders_reference()
924 assertEquals(42, ret); in testSpreaders_reference()
927 ret = (int) mhAsSpreader.invoke("a", new String[]{"b", "c"}); in testSpreaders_reference()
928 assertEquals(42, ret); in testSpreaders_reference()
931 ret = (int) mhAsSpreader.invoke(new String[]{"a", "b", "c"}); in testSpreaders_reference()
932 assertEquals(42, ret); in testSpreaders_reference()
945 ret = (int) mhAsSpreader.invoke(new String[]{"a", "b"}); in testSpreaders_reference()
951 ret = (int) mhAsSpreader.invoke("a", new String[]{"b", "c"}); in testSpreaders_reference()
[all …]
/libcore/ojluni/src/test/java/util/Base64/
DTestBase64.java270 int ret = enc.encode(orig, buf); in test() local
271 checkEqual(ret, encoded.length, in test()
273 buf = Arrays.copyOf(buf, ret); in test()
279 ret = dec.decode(encoded, buf); in test()
280 checkEqual(ret, orig.length, in test()
282 buf = Arrays.copyOf(buf, ret); in test()
459 byte[] ret = dec.decode(srcA); in testDecodeUnpadded()
460 if (ret[0] != 'A') in testDecodeUnpadded()
462 ret = dec.decode(srcAA); in testDecodeUnpadded()
463 if (ret[0] != 'A' && ret[1] != 'A') in testDecodeUnpadded()
[all …]
/libcore/ojluni/src/main/java/java/io/
DStreamTokenizer.java794 String ret;
797 ret = "EOF";
800 ret = "EOL";
803 ret = sval;
806 ret = "n=" + nval;
809 ret = "NOTHING";
820 ret = sval;
827 ret = new String(s);
831 return "Token[" + ret + "], line " + LINENO;
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneTextPrinterParser.java240 String ret = fmt.parse(text, TemporalQueries.zone()).getId(); in test_ParseText() local
245 text, ret, expected); in test_ParseText()
247 assertEquals(ret, expected); in test_ParseText()
276 String ret = fmt.parse(text, TemporalQueries.zone()).getId(); in parse() local
279 if (ret.equals(expected) || in parse()
280 ret.equals(zid) || in parse()
281 ret.equals(ZoneName.toZid(zid)) || in parse()
282 ret.equals(expected.replace("UTC", "UCT"))) { in parse()
289 zid, text, ret, expected); in parse()
/libcore/ojluni/src/test/java/lang/invoke/
DMethodHandlesGeneralTest.java102 …void testFindStatic(Class<?> defc, Class<?> ret, String name, Class<?>... params) throws Throwable… in testFindStatic() argument
104 testFindStatic((Boolean)ac[0], (Lookup)ac[1], defc, ret, name, params); in testFindStatic() local
108 …void testFindStatic(Lookup lookup, Class<?> defc, Class<?> ret, String name, Class<?>... params) t… in testFindStatic() argument
109 testFindStatic(true, lookup, defc, ret, name, params); in testFindStatic()
112 …void testFindStatic(boolean positive, Lookup lookup, Class<?> defc, Class<?> ret, String name, Cla… in testFindStatic() argument
115 MethodType type = MethodType.methodType(ret, params); in testFindStatic()
196 …void testFindVirtual(Class<?> defc, Class<?> ret, String name, Class<?>... params) throws Throwabl… in testFindVirtual() argument
198 testFindVirtual(rcvc, defc, ret, name, params); in testFindVirtual()
201 …void testFindVirtual(Class<?> rcvc, Class<?> defc, Class<?> ret, String name, Class<?>... params) … in testFindVirtual() argument
203 testFindVirtual((Boolean)ac[0], (Lookup)ac[1], rcvc, defc, ret, name, params); in testFindVirtual() local
[all …]
/libcore/ojluni/src/main/java/java/util/
DBase64.java292 int ret = encode0(src, 0, src.length, dst); in encode() local
293 if (ret != dst.length) in encode()
294 return Arrays.copyOf(dst, ret); in encode()
365 int ret = 0; in encode() local
367 ret = encode0(buffer.array(), in encode()
375 ret = encode0(src, 0, src.length, dst); in encode()
377 if (ret != dst.length) in encode()
378 dst = Arrays.copyOf(dst, ret); in encode()
565 int ret = decode0(src, 0, src.length, dst); in decode() local
566 if (ret != dst.length) { in decode()
[all …]

123