/libcore/luni/src/test/java/tests/java/sql/ |
H A D | UpdateFunctionalityTest.java | 116 ResultSet result = statement.executeQuery(selectQuery); 117 while (result.next()) { 119 result.getString("field1")); 121 result.close(); 141 ResultSet result = statement.executeQuery(selectQuery); 142 while (result.next()) { 143 int id = result.getInt("id"); 144 String field1 = result.getString("field1"); 153 result.close(); 174 ResultSet result [all...] |
H A D | SelectFunctionalityTest.java | 132 ResultSet result = statement.executeQuery(sql); 135 while (result.next()) { 136 int id = result.getInt("finteger"); 138 DatabaseCreator.defaultString + id, result 141 DatabaseCreator.defaultCharacter + id, result 146 // .valueOf(id + 0.1), result.getBigDecimal("fdecimal")); 148 // .valueOf(id + 0.1), result.getBigDecimal("fnumeric")); 149 // assertEquals("expected value doesn't equal actual", id, result 152 .valueOf(id + 0.1).floatValue(), result.getFloat("ffloat")); 154 .valueOf(id + 0.1).doubleValue(), result [all...] |
/libcore/benchmarks/src/benchmarks/ |
H A D | MethodInvocationBenchmark.java | 39 int result = 0; 41 result = getField(); 43 return result; 47 int result = 0; 49 result = field; 51 return result; 74 int result = 0; 76 result = "hello, world!".length(); 78 return result;
|
/libcore/dex/src/main/java/com/android/dex/ |
H A D | Mutf8.java | 67 long result = 0; 72 ++result; 74 result += 2; 76 result += 3; 78 if (shortLength && result > 65535) { 82 return result; 111 byte[] result = new byte[utfCount]; 112 encode(result, 0, s); 113 return result;
|
H A D | Leb128.java | 82 int result = 0; 89 result |= (cur & 0x7f) << (count * 7); 99 if (((signBits >> 1) & result) != 0 ) { 100 result |= signBits; 103 return result; 110 int result = 0; 116 result |= (cur & 0x7f) << (count * 7); 124 return result;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | BigIntegerModPowTest.java | 72 BigInteger result = aNumber.modPow(exp, modulus); 74 resBytes = result.toByteArray(); 78 assertEquals("incorrect sign", 1, result.signum()); 95 BigInteger result = aNumber.modPow(exp, modulus); 97 resBytes = result.toByteArray(); 101 assertEquals("incorrect sign", 1, result.signum()); 172 BigInteger result = aNumber.modInverse(modulus); 174 resBytes = result.toByteArray(); 178 assertEquals("incorrect sign", 1, result.signum()); 192 BigInteger result [all...] |
H A D | BigIntegerNotTest.java | 42 BigInteger result = aNumber.andNot(bNumber); 44 resBytes = result.toByteArray(); 48 assertEquals("incorrect sign", 1, result.signum()); 62 BigInteger result = aNumber.andNot(bNumber); 64 resBytes = result.toByteArray(); 68 assertEquals("incorrect sign", 1, result.signum()); 82 BigInteger result = aNumber.andNot(bNumber); 84 resBytes = result.toByteArray(); 88 assertEquals("incorrect sign", 1, result.signum()); 102 BigInteger result [all...] |
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | RandomPrivateKeyX509ExtendedKeyManager.java | 50 PrivateKey result; 60 result = cachedKeys.get(cacheKey); 61 if (result == null) { 64 result = keyPairGenerator.generateKeyPair().getPrivate(); 65 cachedKeys.put(cacheKey, result); 73 result = keyPairGenerator.generateKeyPair().getPrivate(); 76 result = null; 80 result = null; 83 return result;
|
H A D | TestTrustManager.java | 40 TrustManager[] result = trustManagers.clone(); 41 for (int i = 0; i < result.length; i++) { 42 result[i] = wrap(result[i]); 44 return result; 109 X509Certificate[] result = trustManager.getAcceptedIssuers(); 110 out.print("TestTrustManager.getAcceptedIssuers result=" + result.length); 111 return result;
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | StringBenchmark.java | 34 StringBuilder result = new StringBuilder(length); 36 result.append((char) i); 38 return result.toString();
|
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | CharsetDecoder.java | 50 * indicate the stop reason, and the invoker can identify the result and choose 186 CoderResult result = decode(in, out, true); 187 if (result == CoderResult.OVERFLOW) { 191 checkCoderResult(result); 194 result = flush(out); 195 if (result == CoderResult.OVERFLOW) { 198 checkCoderResult(result); 207 * checks the result whether it needs to throw CharacterCodingException. 209 private void checkCoderResult(CoderResult result) throws CharacterCodingException { argument 210 if (result [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | AbstractCollection.java | 48 * returned as result of this method call, {@code false} otherwise. If this 73 boolean result = false; 77 result = true; 80 return result; 274 boolean result = false; 279 result = true; 282 return result; 315 boolean result = false; 320 result = true; 323 return result; [all...] |
/libcore/luni/src/main/java/java/util/prefs/ |
H A D | NodeSet.java | 23 Node result = null; 25 result = list.get(index); 31 return result;
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
H A D | PSource.java | 102 byte[] result = new byte[p.length]; 103 System.arraycopy(p, 0, result, 0, p.length); 104 return result;
|
H A D | SecretKeySpec.java | 138 byte[] result = new byte[key.length]; 139 System.arraycopy(key, 0, result, 0, key.length); 140 return result; 150 int result = algorithm.length(); 152 result += element; 154 return result;
|
/libcore/luni/src/main/java/org/apache/harmony/security/ |
H A D | PublicKeyImpl.java | 56 byte[] result = new byte[encoding.length]; 57 System.arraycopy(encoding, 0, result, 0, encoding.length); 58 return result;
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | ServerSocketTest.java | 27 // On Unix, the receive timeout is inherited by the result of accept(2). 30 final Socket[] result = new Socket[1]; 34 result[0] = ss.accept(); 44 assertEquals(0, result[0].getSoTimeout());
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONArray.java | 317 Boolean result = JSON.toBoolean(object); 318 if (result == null) { 321 return result; 338 Boolean result = JSON.toBoolean(object); 339 return result != null ? result : fallback; 351 Double result = JSON.toDouble(object); 352 if (result == null) { 355 return result; 372 Double result [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | EnumSetTest.java | 245 boolean result = set.add(EnumFoo.a); 247 assertTrue("Return value should be true", result); 249 result = set.add(EnumFoo.a); 251 assertFalse("Return value should be false", result); 280 result = hugeSet.add(HugeEnum.a); 281 assertTrue(result); 283 result = hugeSet.add(HugeEnum.a); 284 assertFalse(result); 308 result = hugeSet.add(HugeEnum.mm); 309 assertTrue(result); [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | X509PublicKey.java | 62 int result = 1; 63 result = prime * result + ((algorithm == null) ? 0 : algorithm.hashCode()); 64 result = prime * result + Arrays.hashCode(encoded); 65 return result;
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
H A D | HprofData.java | 92 int result = 17; 93 result = 31 * result + objectId; 94 result = 31 * result + threadId; 95 result = 31 * result + hashCode(threadName); 96 result = 31 * result + hashCode(groupName); 97 result [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | SequenceInputStream.java | 139 int result = in.read(); 140 if (result >= 0) { 141 return result; 179 int result = in.read(buffer, byteOffset, byteCount); 180 if (result >= 0) { 181 return result;
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | HeapBufferIterator.java | 56 byte result = buffer[offset + position]; 58 return result; 62 int result = Memory.peekInt(buffer, offset + position, order); 64 return result; 74 short result = Memory.peekShort(buffer, offset + position, order); 76 return result;
|
H A D | NioBufferIterator.java | 54 byte result = Memory.peekByte(address + position); 56 return result; 60 int result = Memory.peekInt(address + position, swap); 62 return result; 71 short result = Memory.peekShort(address + position, swap); 73 return result;
|
/libcore/luni/src/main/java/java/text/ |
H A D | DecimalFormatSymbols.java | 360 int result = 17; 361 result = 31*result + zeroDigit; 362 result = 31*result + digit; 363 result = 31*result + decimalSeparator; 364 result = 31*result + groupingSeparator; 365 result [all...] |