/libcore/support/src/test/java/tests/io/ |
H A D | MockOs.java | 90 Deque<InvocationHandler> result = threadFaults.get(methodName); 91 if (result == null) { 92 result = new ArrayDeque<InvocationHandler>(); 93 threadFaults.put(methodName, result); 95 return result;
|
/libcore/luni/src/main/java/java/io/ |
H A D | BufferedReader.java | 145 int result = in.read(buf, 0, buf.length); 146 if (result > 0) { 149 end = result; 151 return result; 321 * don't read into smaller buffers because that could result in 393 StringBuilder result = new StringBuilder(end - pos + 80); 394 result.append(buf, pos, end - pos); 399 return (result.length() > 0) ? result.toString() : null; 406 result [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | Integer.java | 187 int result = parse(string, i, base, negative); 188 return valueOf(result); 370 int result = 0, length = string.length(); 376 if (max > result) { 379 int next = result * radix - digit; 380 if (next > result) { 383 result = next; 386 result = -result; 387 if (result < [all...] |
H A D | StrictMath.java | 323 * <i> {@code y}</i><sup>{@code 2}</sup>{@code )}. The final result is 347 * 754 rules. The result is {@code x-round(x/p)*p} where {@code round(x/p)} 576 * Returns the closest double approximation of the result of raising 626 * Returns the double conversion of the result of rounding the argument to 645 * Returns the result of rounding the argument to an integer. The result is 668 * Returns the result of rounding the argument to an integer. The result is 694 * argument is returned as result. 717 * argument is returned as result [all...] |
/libcore/luni/src/main/java/org/apache/harmony/crypto/internal/ |
H A D | NullCipherSpi.java | 100 byte[] result = new byte[inputLen]; 101 System.arraycopy(input, inputOffset, result, 0, inputLen); 102 return result; 123 int result = input.limit() - input.position(); 129 return result; 145 int result = engineUpdate(input, inputOffset, inputLen, output, 147 return result;
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
H A D | X509CertFactoryImpl.java | 128 ArrayList<Certificate> result = new ArrayList<Certificate>(); 155 if (result.size() == 0) { 161 return result; 176 if (result.size() == 0) { 184 return result; 188 result.add(getCertificate(inStream)); 190 result.add(getCertificate(encoding)); 196 if (result.size() != 0) { 198 return result; 201 return result; [all...] |
H A D | X509CRLEntryImpl.java | 85 byte[] result = new byte[encoding.length]; 86 System.arraycopy(encoding, 0, result, 0, encoding.length); 87 return result;
|
/libcore/luni/src/main/java/java/util/ |
H A D | Date.java | 706 StringBuilder result = new StringBuilder(); 707 result.append(localeData.shortWeekdayNames[cal.get(Calendar.DAY_OF_WEEK)]); 708 result.append(' '); 709 result.append(localeData.shortMonthNames[cal.get(Calendar.MONTH)]); 710 result.append(' '); 711 appendTwoDigits(result, cal.get(Calendar.DAY_OF_MONTH)); 712 result.append(' '); 713 appendTwoDigits(result, cal.get(Calendar.HOUR_OF_DAY)); 714 result.append(':'); 715 appendTwoDigits(result, ca [all...] |
/libcore/harmony-tests/src/test/java/tests/api/java/math/ |
H A D | BigDecimalTest.java | 506 BigDecimal result = multi1.multiply(multi2); 507 assertTrue("123.45908 * 2.345 is not correct: " + result, result 509 && result.scale() == multi1.scale() + multi2.scale()); 512 result = multi1.multiply(multi2); 513 assertTrue("34656 * 2 is not correct", result.toString().equals( 515 && result.scale() == 0); 518 result = multi1.multiply(multi2); 519 assertTrue("-2.345E-02 * -134E130 is not correct " + result.doubleValue(), 520 result [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | HostnameVerifierBenchmark.java | 84 byte[][] result = new byte[certificates.length][]; 86 result[i] = certificates[i].getEncoded(); 88 return result; 93 Certificate[] result = new Certificate[encodedCertificates.length]; 95 result[i] = certificateFactory.generateCertificate( 98 return result;
|
/libcore/luni/src/main/java/java/nio/ |
H A D | ByteBufferAsCharBuffer.java | 174 CharBuffer result = new ByteBufferAsCharBuffer(bb); 176 return result; 181 CharBuffer result = duplicate(); 182 result.limit(position + end); 183 result.position(position + start); 184 return result;
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | IoUtils.java | 144 File result = new File(System.getProperty("java.io.tmpdir"), candidateName); 145 if (result.mkdir()) { 146 return result; 266 byte[] result = new byte[count]; 267 System.arraycopy(bytes, 0, result, 0, count); 268 return result;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/luni/tests/java/util/ |
H A D | ScannerTest.java | 517 MatchResult result ; 526 result = s.match(); 527 assertEquals(2, result.start()); 528 assertEquals(3, result.end()); 529 assertEquals(2, result.start(0)); 530 assertEquals(3, result.end(0)); 531 assertEquals("2", result.group()); 532 assertEquals("2", result.group(0)); 533 assertEquals(0, result.groupCount()); 535 result [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | OpenSSLMessageDigestJDK.java | 81 byte[] result = new byte[size]; 82 NativeCrypto.EVP_DigestFinal(getCtx(), result, 0); 84 return result;
|
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DexPathList.java | 139 * result.) 160 ArrayList<File> result = splitPaths(path, System.getProperty("java.library.path"), true); 161 return result.toArray(new File[result.size()]); 175 ArrayList<File> result = new ArrayList<File>(); 177 splitAndAdd(path1, wantDirectories, result); 178 splitAndAdd(path2, wantDirectories, result); 179 return result; 184 * and filtering and adding to a result. 301 File result [all...] |
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
H A D | hc_nodeappendchilddocfragment.java | 75 java.util.List result = new java.util.ArrayList(); 105 result.add(childName); 108 assertEqualsAutoCase("element", "nodeNames", expected, result);
|
H A D | hc_nodeclonenodetrue.java | 76 java.util.List result = new java.util.ArrayList(); 94 result.add(clonedChildName); 96 assertEquals("clone", expected, result);
|
H A D | hc_nodeinsertbeforenewchildexists.java | 83 java.util.List result = new java.util.ArrayList(); 99 result.add(childName); 102 assertEqualsAutoCase("element", "childNames", expected, result);
|
H A D | nodeappendchilddocfragment.java | 71 java.util.List result = new java.util.ArrayList(); 101 result.add(childName); 104 assertEquals("elementNames", expected, result);
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
H A D | getElementsByTagNameNS03.java | 79 java.util.List result = new java.util.ArrayList(); 102 result.add(childName); 104 assertEquals("nodeNames", expectedResult, result);
|
H A D | getElementsByTagNameNS10.java | 81 java.util.List result = new java.util.ArrayList(); 105 result.add(childName); 107 assertEquals("nodeNames", expectedResult, result);
|
/libcore/luni/src/main/java/java/net/ |
H A D | NetworkInterface.java | 248 SocketException result = new SocketException(); 249 result.initCause(ex); 250 throw result; 317 List<NetworkInterface> result = new ArrayList<NetworkInterface>(); 336 result.add(interfaces[counter]); 339 return result; 489 byte[] result = new byte[s.length()/3]; 490 for (int i = 0; i < result.length; ++i) { 491 result[i] = (byte) Integer.parseInt(s.substring(3*i, 3*i + 2), 16); 494 for (int i = 0; i < result [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs10/ |
H A D | CertificationRequest.java | 73 byte[] result = new byte[signature.length]; 74 System.arraycopy(signature, 0, result, 0, signature.length); 75 return result;
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | NodeTest.java | 76 List<Node> result = new ArrayList<Node>(); 77 traverse(subtree, result); 78 return result;
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | GetElementsByTagNameNS.java | 100 List<String> result = new ArrayList<String>(); 123 result.add(childName); 125 assertEquals("nodeNames", expectedResult, result); 132 List<String> result = new ArrayList<String>(); 146 result.add(childName); 148 assertEquals("nodeNames", expectedResult, result); 207 List<String> result = new ArrayList<String>(); 232 result.add(childName); 234 assertEquals("nodeNames", expectedResult, result); 242 List<String> result [all...] |