Home
last modified time | relevance | path

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

12

/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 …]
/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/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/main/java/java/security/spec/
DEncodedKeySpec.java50 byte[] ret = new byte[encodedKey.length]; in getEncoded()
51 System.arraycopy(encodedKey, 0, ret, 0, ret.length); in getEncoded()
52 return ret; in getEncoded()
DRSAMultiPrimePrivateCrtKeySpec.java151 RSAOtherPrimeInfo[] ret = in getOtherPrimeInfo() local
153 System.arraycopy(otherPrimeInfo, 0, ret, 0, ret.length); in getOtherPrimeInfo()
154 return ret; in getOtherPrimeInfo()
DEllipticCurve.java156 byte[] ret = new byte[seed.length]; in getSeed()
157 System.arraycopy(seed, 0, ret, 0, ret.length); in getSeed()
158 return ret; in getSeed()
DECFieldF2m.java237 int[] ret = new int[ks.length]; in getMidTermsOfReductionPolynomial() local
238 System.arraycopy(ks, 0, ret, 0, ret.length); in getMidTermsOfReductionPolynomial()
239 return ret; in getMidTermsOfReductionPolynomial()
/libcore/luni/src/main/java/java/security/cert/
DPolicyQualifierInfo.java71 byte[] ret = new byte[encoded.length]; in getEncoded()
72 System.arraycopy(encoded, 0, ret, 0, encoded.length); in getEncoded()
73 return ret; in getEncoded()
96 byte[] ret = new byte[policyQualifier.length]; in getPolicyQualifier()
97 System.arraycopy(policyQualifier, 0, ret, 0, policyQualifier.length); in getPolicyQualifier()
98 return ret; in getPolicyQualifier()
/libcore/luni/src/main/java/java/util/
DResourceBundle.java318 ResourceBundle ret = processGetBundle(baseName, targetLocale, loader, in getBundle() local
321 if (ret != null) { in getBundle()
322 loaderCache.put(bundleName, ret); in getBundle()
323 ret.lastLoadTime = System.currentTimeMillis(); in getBundle()
324 return ret; in getBundle()
344 ResourceBundle ret = null; in processGetBundle() local
376 if (ret == null) { in processGetBundle()
377 ret = bundle; in processGetBundle()
378 currentBundle = ret; in processGetBundle()
388 if ((ret == null) in processGetBundle()
[all …]
/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 …]
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 …]
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()
291 DoubleBuffer ret = buf.get(array); in testGetdoubleArray() local
293 assertSame(ret, buf); in testGetdoubleArray()
364 DoubleBuffer ret = buf.get(array, 0, array.length); in testGetdoubleArrayintint() local
367 assertSame(ret, buf); in testGetdoubleArrayintint()
[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 …]
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/luni/src/main/native/
Djava_math_NativeBN.cpp168 …ic void NativeBN_BN_bin2bn(JNIEnv* env, jclass, jbyteArray arr, int len, jboolean neg, jlong ret) { in NativeBN_BN_bin2bn() argument
169 if (!oneValidHandle(env, ret)) return; in NativeBN_BN_bin2bn()
174 BN_bin2bn(reinterpret_cast<const unsigned char*>(bytes.get()), len, toBigNum(ret)); in NativeBN_BN_bin2bn()
176 BN_set_negative(toBigNum(ret), true); in NativeBN_BN_bin2bn()
189 BIGNUM* ret = toBigNum(ret0); in NativeBN_litEndInts2bn() local
190 bn_check_top(ret); in NativeBN_litEndInts2bn()
202 if ((tmpInts != NULL) && (bn_wexpand(ret, wlen) != NULL)) { in NativeBN_litEndInts2bn()
205 ret->d[wlen - 1] = tmpInts[--len]; in NativeBN_litEndInts2bn()
209 ret->d[i/2] = ((unsigned long long)tmpInts[i+1] << 32) | tmpInts[i]; in NativeBN_litEndInts2bn()
213 int i = len; do { i--; ret->d[i] = tmpInts[i]; } while (i > 0); in NativeBN_litEndInts2bn()
[all …]
/libcore/luni/src/main/java/java/net/
DProxy.java148 int ret = 0; in hashCode() local
149 ret += type.hashCode(); in hashCode()
151 ret += address.hashCode(); in hashCode()
153 return ret; in hashCode()
DURI.java619 int ret; in compareTo() local
627 ret = scheme.compareToIgnoreCase(uri.scheme); in compareTo()
628 if (ret != 0) { in compareTo()
629 return ret; in compareTo()
639 ret = schemeSpecificPart.compareTo(uri.schemeSpecificPart); in compareTo()
640 if (ret != 0) { in compareTo()
641 return ret; in compareTo()
660 ret = userInfo.compareTo(uri.userInfo); in compareTo()
661 if (ret != 0) { in compareTo()
662 return ret; in compareTo()
[all …]
/libcore/luni/src/main/java/java/security/
DSecureRandom.java294 int ret = 0; in next() local
298 ret = (next[i] & 0xFF) | (ret << 8); in next()
300 ret = ret >>> (bytes*8 - numBits); in next()
301 return ret; in next()
/libcore/luni/src/main/java/java/lang/
DMath.java1260 int ret = bits >> absDigits; in shiftIntBits() local
1264 ret = ret + 1; in shiftIntBits()
1267 if ((ret & 0x1) == 1) { in shiftIntBits()
1268 ret = ret + 1; in shiftIntBits()
1272 return ret; in shiftIntBits()
1286 long ret = bits >> absDigits; in shiftLongBits() local
1292 ret = ret + 1; in shiftLongBits()
1295 if ((ret & 0x1) == 1) { in shiftLongBits()
1296 ret = ret + 1; in shiftLongBits()
1300 return ret; in shiftLongBits()
/libcore/luni/src/main/java/java/lang/ref/
DReferenceQueue.java52 Reference<? extends T> ret = head; in poll() local
61 ret.queueNext = null; in poll()
62 return ret; in poll()

12