Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 54) 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/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/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()
45 ret = stat(subFile.c_str(), &sb); in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
46 if (ret == -1) { in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
73 long ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in Java_libcore_java_io_FileTest_installSeccompFilter() local
75 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/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/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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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/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/main/java/java/math/
DNativeBN.java42 public static native void BN_bin2bn(byte[] s, int len, boolean neg, long ret); in BN_bin2bn() argument
47 public static native void litEndInts2bn(int[] ints, int len, boolean neg, long ret); in litEndInts2bn() argument
49 public static native void twosComp2bn(byte[] s, int len, long ret); in twosComp2bn() argument
118 public static native void BN_mod_inverse(long ret, long a, long n); in BN_mod_inverse() argument
122 public static native void BN_generate_prime_ex(long ret, int bits, boolean safe, in BN_generate_prime_ex() argument
/libcore/ojluni/src/main/native/
DFileInputStream.c132 jlong ret; in FileInputStream_available0() local
138 if (available(fd, &ret)) { in FileInputStream_available0()
139 if (ret > INT_MAX) { in FileInputStream_available0()
140 ret = (jlong) INT_MAX; in FileInputStream_available0()
142 return jlong_to_jint(ret); in FileInputStream_available0()
DNativeThread.c101 int ret; in NativeThread_signal() local
103 ret = thr_kill((thread_t)thread, INTERRUPT_SIGNAL); in NativeThread_signal()
105 ret = pthread_kill((pthread_t)thread, INTERRUPT_SIGNAL); in NativeThread_signal()
107 if (ret != 0) in NativeThread_signal()
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()
127 int ret; in Inflater_inflateBytes() local
146 ret = inflate(strm, Z_PARTIAL_FLUSH); in Inflater_inflateBytes()
150 switch (ret) { in Inflater_inflateBytes()
Dlinux_close.cpp115 int ret; \
121 ret = FUNC; \
126 } while (ret == -1 && errno == EINTR); \
127 return ret; \
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java892 int ret = (int) mhAsSpreader.invoke("a", "b", "c", new String[]{}); in testSpreaders_reference() local
893 assertEquals(42, ret); in testSpreaders_reference()
896 ret = (int) mhAsSpreader.invoke("a", "b", new String[]{"c"}); in testSpreaders_reference()
897 assertEquals(42, ret); in testSpreaders_reference()
900 ret = (int) mhAsSpreader.invoke("a", new String[]{"b", "c"}); in testSpreaders_reference()
901 assertEquals(42, ret); in testSpreaders_reference()
904 ret = (int) mhAsSpreader.invoke(new String[]{"a", "b", "c"}); in testSpreaders_reference()
905 assertEquals(42, ret); in testSpreaders_reference()
918 ret = (int) mhAsSpreader.invoke(new String[]{"a", "b"}); in testSpreaders_reference()
924 ret = (int) mhAsSpreader.invoke("a", new String[]{"b", "c"}); in testSpreaders_reference()
[all …]
/libcore/luni/src/main/native/
Djava_math_NativeBN.cpp177 …ic void NativeBN_BN_bin2bn(JNIEnv* env, jclass, jbyteArray arr, int len, jboolean neg, jlong ret) { in NativeBN_BN_bin2bn() argument
178 if (!oneValidHandle(env, ret)) return; in NativeBN_BN_bin2bn()
183 if (!BN_bin2bn(reinterpret_cast<const unsigned char*>(bytes.get()), len, toBigNum(ret))) { in NativeBN_BN_bin2bn()
188 BN_set_negative(toBigNum(ret), neg); in NativeBN_BN_bin2bn()
193 BIGNUM* ret = toBigNum(ret0); in NativeBN_litEndInts2bn() local
206 if (!BN_le2bn(tmpBytes, numBytes, ret)) { in NativeBN_litEndInts2bn()
210 BN_set_negative(ret, neg); in NativeBN_litEndInts2bn()
215 BIGNUM* ret = toBigNum(ret0); in NativeBN_twosComp2bn() local
223 BN_zero(ret); in NativeBN_twosComp2bn()
229 if (!BN_bin2bn(bytesTmp, bytesLen, ret)) { in NativeBN_twosComp2bn()
[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.java196 String ret = fmt.parse(text, TemporalQueries.zone()).getId(); in test_ParseText() local
201 text, ret, expected); in test_ParseText()
203 assertEquals(ret, expected); in test_ParseText()
232 String ret = fmt.parse(text, TemporalQueries.zone()).getId(); in parse() local
235 if (ret.equals(expected) || in parse()
236 ret.equals(zid) || in parse()
237 ret.equals(ZoneName.toZid(zid)) || in parse()
238 ret.equals(expected.replace("UTC", "UCT"))) { in parse()
245 zid, text, ret, expected); in parse()
/libcore/ojluni/src/main/java/sun/misc/
DRegexpPool.java58 public void add(String re, Object ret) throws REException { in add() argument
59 add(re, ret, false); in add()
74 public void replace(String re, Object ret) { in replace() argument
76 add(re, ret, true); in replace()
165 private void add(String re, Object ret, boolean replace) throws REException { in add() argument
188 p.result = ret; in add()
/libcore/ojluni/src/main/java/java/util/
DBase64.java263 int ret = encode0(src, 0, src.length, dst); in encode() local
264 if (ret != dst.length) in encode()
265 return Arrays.copyOf(dst, ret); in encode()
336 int ret = 0; in encode() local
338 ret = encode0(buffer.array(), in encode()
346 ret = encode0(src, 0, src.length, dst); in encode()
348 if (ret != dst.length) in encode()
349 dst = Arrays.copyOf(dst, ret); in encode()
526 int ret = decode0(src, 0, src.length, dst); in decode() local
527 if (ret != dst.length) { in decode()
[all …]

123