/libcore/libart/src/main/java/java/lang/reflect/ |
H A D | Proxy.java | 91 * different order result in different generated classes. The interfaces 180 Class<?> result; 182 result = loader.proxyCache.get(interfaceSet); 183 if (result == null) { 185 result = generateProxy(name, interfaces, loader, methodsArray, exceptionsArray); 186 loader.proxyCache.put(interfaceList, result); 190 return result; 283 List<Method> result = new ArrayList<Method>(); 285 result.add(Object.class.getMethod("equals", Object.class)); 286 result [all...] |
/libcore/luni/src/main/java/java/lang/ |
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...] |
H A D | HexStringParser.java | 90 long result = parser.parse(hexString, true); 91 return Double.longBitsToDouble(result); 99 int result = (int) parser.parse(hexString, false); 100 return Float.intBitsToFloat(result); 205 long result = exponent + offset; 207 if (expSign * Long.signum(offset) > 0 && expSign * Long.signum(result) < 0) { 210 exponent = result; 252 * The value is rounded up or down to the nearest infinitely precise result. 257 String result = abandonedNumber.replaceAll("0+", ""); 258 boolean moreThanZero = (result [all...] |
H A D | Integer.java | 190 int result = parse(string, i, base, negative); 191 return valueOf(result); 405 int result = 0; 412 if (max > result) { 415 int next = result * radix - digit; 416 if (next > result) { 419 result = next; 422 result = -result; 423 if (result < [all...] |
H A D | Long.java | 177 long result = parse(string, i, base, negative); 178 return valueOf(result); 358 long result = 0; 365 if (max > result) { 368 long next = result * radix - digit; 369 if (next > result) { 372 result = next; 375 result = -result; 376 if (result < [all...] |
/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;
|
H A D | SimpleBuilderTest.java | 47 String result = (node instanceof Text ? ((Text) node).getData() : ""); 51 result = result + getTextContent(child); 55 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...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | SequenceInputStreamTest.java | 137 int result = si.read(); 138 assertEquals(-1, result); 173 int result = sis.read(array, 0, 5); 174 assertEquals(-1, result);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | StringBufferTest.java | 470 int result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(0, 2); 471 assertEquals(3, result); 473 result = new StringBuffer("abcd").offsetByCodePoints(3, -1); 474 assertEquals(2, result); 476 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(0, 3); 477 assertEquals(4, result); 479 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(3, -1); 480 assertEquals(1, result); 482 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(3, 0); 483 assertEquals(3, result); [all...] |
H A D | String2Test.java | 363 byte[] result = null; 367 result = string.getBytes("8859_1"); 369 assertEquals((byte) i, result[0]); 376 assertTrue(result[0] == '?' || result[0] == 0x1a); 381 result = string.getBytes("UTF8"); 384 result.length == length); 387 (i < 0x80 && result[0] == i) 390 && result[0] == (byte) (0xc0 | ((i & 0x7c0) >> 6)) && result[ [all...] |
/libcore/json/src/test/java/org/json/ |
H A D | ParsingTest.java | 225 JSONObject result = new JSONObject(); 227 result.put((String) keyValuePairs[i], keyValuePairs[i+1]); 229 return result; 251 List<Object> result = new ArrayList<Object>(); 253 result.add(canonicalize(array.opt(i))); 255 return result; 258 Map<String, Object> result = new HashMap<String, Object>(); 261 result.put(key, canonicalize(object.get(key))); 263 return result;
|
/libcore/luni/src/main/java/java/nio/ |
H A D | CharArrayBuffer.java | 129 CharBuffer result = duplicate(); 130 result.limit(position + end); 131 result.position(position + start); 132 return result;
|
/libcore/luni/src/main/java/java/util/regex/ |
H A D | Splitter.java | 35 * Returns a result equivalent to {@code s.split(separator, limit)} if it's able 61 // Unlike Perl, which considers the result of splitting the empty string to be the empty 91 // Collect the result parts. 92 String[] result = new String[separatorCount + 1]; 96 result[i] = input.substring(begin, end); 100 result[separatorCount] = input.substring(begin, lastPartEnd); 101 return result; 110 // Unlike Perl, which considers the result of splitting the empty string to be the empty
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | GZIPInputStream.java | 228 int result = in.read(scratch, 0, max); 229 if (result == -1) { 233 crc.update(scratch, 0, result); 235 length -= result; 274 int result; 277 while ((result = in.read()) > 0) { 279 crc.update(result); 282 if (result == -1) { 287 crc.update(result);
|
/libcore/luni/src/main/java/javax/xml/validation/ |
H A D | SchemaFactory.java | 218 SchemaFactory result = (SchemaFactory) type.newInstance(); 219 if (result == null || !result.isSchemaLanguageSupported(schemaLanguage)) { 222 return result; 581 * The same result would be achieved if all these sources were
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldAndroidStreamTokenizerTest.java | 77 String result = tokenizer.toString(); 78 assertEquals("Token['-'], line 1", result); 90 result = tokenizer2.toString(); 91 assertEquals("Token[Hello], line 1", result);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | RC2ParameterSpecTest.java | 126 byte[] result = ps.getIV(); 127 if (! Arrays.equals(iv, result)) { 131 result[0] ++; 134 result[0] == ps.getIV()[0]);
|
/libcore/support/src/test/java/tests/http/ |
H A D | MockResponse.java | 46 MockResponse result = (MockResponse) super.clone(); 47 result.headers = new ArrayList<String>(result.headers); 48 return result;
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_TestWebData.java | 48 byte[] result = new byte[byteCount]; 49 for (int i = 0; i < result.length; ++i) { 50 result[i] = (byte) i; 52 return result;
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 69 * against one update clobbering the result of another operation. For 103 CopyOnWriteArrayList result = (CopyOnWriteArrayList) super.clone(); 104 result.elements = result.elements.clone(); 105 return result; 201 CowIterator<E> result = new CowIterator<E>(snapshot, 0, snapshot.length); 202 result.index = index; 203 return result; 411 E result = (E) newElements[index]; 414 return result; [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | File.java | 252 * Note that this is a best-effort result; the only way to be certain is 718 * The result for a directory is not defined. 733 * represented by this file. The result is {@code null} if this file is not 766 List<String> result = new ArrayList<String>(filenames.length); 769 result.add(filename); 772 return result.toArray(new String[result.size()]); 777 * file. The result is {@code null} if this file is not a directory. The 823 List<File> result = new ArrayList<File>(files.length); 826 result [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | InflaterOutputStreamTest.java | 188 byte[] result = os.toByteArray(); 190 assertEquals(bytes1[i], result[i]); 200 result = os.toByteArray(); 202 assertEquals(bytes2[i], result[bytes1.length + i]); 219 String result = new String(os.toByteArray()); 220 assertEquals(testString, result); 249 String result = new String(os.toByteArray()); 250 assertEquals(testString, result);
|