/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | AbstractPreferencesTest.java | 937 byte[] result = out.toByteArray(); 938 ByteArrayInputStream in = new ByteArrayInputStream(result); 971 byte[] result = out.toByteArray(); 972 ByteArrayInputStream in = new ByteArrayInputStream(result); 1630 int result = changed; 1632 return result;
|
/libcore/luni/src/main/native/ |
H A D | libcore_icu_ICU.cpp | 347 ScopedLocalRef<jobjectArray> result(env, env->NewObjectArray(size, JniConstants::stringClass, NULL)); 353 env->SetObjectArrayElement(result.get(), i, s.get()); 358 setStringArrayField(env, obj, fieldName, result.get()); 758 UnicodeString result(generator->getBestPattern(skeletonHolder.unicodeString(), status)); 763 return env->NewString(result.getBuffer(), result.length());
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ThreadPoolExecutorTest.java | 1390 * completed submit of callable returns result 1399 String result = future.get(); 1400 assertSame(TEST_STRING, result); 1424 * completed submit of (runnable, result) returns result 1433 String result = future.get(); 1434 assertSame(TEST_STRING, result); 1517 * invokeAny(c) returns result of some task 1528 String result = e.invokeAny(l); 1529 assertSame(TEST_STRING, result); [all...] |
H A D | ForkJoinPoolTest.java | 321 * Completed submit(ForkJoinTask) returns result 433 * Completed submit(callable) returns result 463 * Completed submit(runnable, result) returns result 700 * invokeAny(c) returns result of some task in c if at least one completes 708 String result = e.invokeAny(l); 709 assertSame(TEST_STRING, result); 880 * timed invokeAny(c) returns result of some task in c 888 String result = e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS); 889 assertSame(TEST_STRING, result); [all...] |
H A D | FutureTaskTest.java | 166 PublicFutureTask(Runnable runnable, Object result) { argument 167 this(runnable, result, new AtomicInteger(0)); 169 private PublicFutureTask(final Runnable runnable, Object result, argument 175 }}, result);
|
H A D | JSR166TestCase.java | 757 T result = realCall(); 759 return result;
|
/libcore/json/src/test/java/org/json/ |
H A D | JSONObjectTest.java | 905 Set<String> result = new HashSet<String>(); 907 result.add(keys.next()); 909 result.add(keys.next()); 911 assertEquals(new HashSet<String>(Arrays.asList("foo", "bar")), result);
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | JarURLConnectionImpl.java | 141 JarFile result = null;
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | CipherTest.java | 220 // A 25-byte input could result in at least 4 8-byte blocks 221 int result = cipher.getOutputSize(25); 222 assertTrue("Output size too small", result > 31); 224 // A 8-byte input should result in 2 8-byte blocks 225 result = cipher.getOutputSize(8); 226 assertTrue("Output size too small", result > 15);
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | DomTest.java | 985 * then attaches the adopted node in the proper place. The net result should 1715 String result = writer.toString(); 1723 Matcher attributeMatcher = Pattern.compile(" a:standard=\"[^\"]+\"").matcher(result); 1725 result = result.substring(0, attributeMatcher.start()) 1726 + result.substring(attributeMatcher.end()); 1727 int insertionPoint = result.indexOf(" deluxe=\""); 1728 result = result.substring(0, insertionPoint) 1730 + result [all...] |
/libcore/luni/src/test/java/libcore/java/nio/ |
H A D | BufferTest.java | 49 MappedByteBuffer result = ch.map(FileChannel.MapMode.READ_WRITE, 0, size); 51 return result; 196 StringBuilder result = new StringBuilder(); 198 result.append(String.format("%02x", (int) b.get(i))); 200 return result.toString();
|
/libcore/luni/src/main/java/java/util/ |
H A D | LinkedList.java | 873 E result = link.data; 875 return result;
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
H A D | OldMatcherTest.java | 613 String result = p.matcher("mama").region(2, 4).replaceFirst("mi"); 614 assertEquals("mima", result);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | DoubleTest.java | 187 double result; 190 result = Double.parseDouble(originalDoubleString); 191 rawBits = Double.doubleToLongBits(result); 192 convertedString = new Double(result).toString(); 767 + ">.The expected result should be:<" + expectedString 828 + ">.The expected result should be:<" + expectedString 892 + ">.The expected result should be:<" + expectedString 956 + ">.The expected result should be:<" + expectedString 1020 + ">.The expected result should be:<" + expectedString 1084 + ">.The expected result shoul [all...] |
H A D | FloatTest.java | 90 float result = Float.parseFloat(originalFloatString); 91 rawBits = Float.floatToIntBits(result); 92 assertEquals("Original float(" + originalFloatString + ") Converted float(" + result 479 + ">.The expected result should be:<" + expectedString 528 + ">.The expected result should be:<" + expectedString 578 + ">.The expected result should be:<" + expectedString 628 + ">.The expected result should be:<" + expectedString 678 + ">.The expected result should be:<" + expectedString 728 + ">.The expected result should be:<" + expectedString 778 + ">.The expected result shoul [all...] |
H A D | StrictMathTest.java | 192 assertEquals("If the sign is NaN, the result should be positive.", 195 assertTrue("The result should be NaN.", Double.isNaN(StrictMath 206 "If the sign is positive, the result should be positive.", 211 "If the sign is negative, the result should be negative.", 217 assertTrue("The result should be NaN.", Double.isNaN(StrictMath 257 assertEquals("If the sign is NaN, the result should be positive.", 260 assertTrue("The result should be NaN.", Float.isNaN(StrictMath 270 "If the sign is positive, the result should be positive.", 275 "If the sign is negative, the result should be negative.", 281 assertTrue("The result shoul [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
H A D | CharsetTest.java | 175 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result. 190 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result. 224 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result. 239 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result. 250 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result. 265 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result. 272 byte[] result = new byte[ints.length]; 274 result[i] = (byte) ints[i]; 276 return result;
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLEngineTest.java | 99 SSLEngineResult result = sslEngine.unwrap(input, output); 100 assertEquals(SSLEngineResult.Status.BUFFER_UNDERFLOW, result.getStatus()); 101 assertEquals(SSLEngineResult.HandshakeStatus.NEED_UNWRAP, result.getHandshakeStatus());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | FileTest.java | 119 assertEquals("Assert 1: wrong path result ", path.getPath(), file 219 assertEquals("wrong result 1", ref1.getPath(), file1.getPath()); 221 assertEquals("wrong result 2", ref1.getPath(), file2.getPath()); 225 assertEquals("wrong result 3", ref1.getPath(), file3.getPath()); 227 assertEquals("wrong result 4", ref1.getPath(), file4.getPath()); 232 assertEquals("wrong result 5", ref2.getPath(), file5.getPath()); 243 assertEquals("wrong result 1", ref1.getPath(), file1.getPath()); 245 assertEquals("wrong result 2", ref1.getPath(), file2.getPath()); 249 assertEquals("wrong result 3", ref1.getPath(), file3.getPath()); 251 assertEquals("wrong result [all...] |
/libcore/luni/src/test/java/libcore/java/sql/ |
H A D | OldStatementTest.java | 233 assertEquals("different result for statement no. "+i, results[i], res); 654 int[] result = { 1, 1, 1, 1, 1, 1, 1, 1 }; 682 assertTrue(java.util.Arrays.equals(result, resArray));
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 829 StringBuilder result = new StringBuilder(); 836 result.append((char) value); 838 return result.toString(); 2430 List<String> result = new ArrayList<String>(); 2432 result.add(certificate.getSubjectDN() + " " + certificate.getSerialNumber()); 2434 return result.toString();
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ForkJoinPool.java | 92 * <td> <b>Await and obtain result</b></td> 122 * pools with greater than the maximum number result in 2470 * Performs the given task, returning its result upon completion. 2480 * @return the task's result 2556 public <T> ForkJoinTask<T> submit(Runnable task, T result) { argument 2557 ForkJoinTask<T> job = new ForkJoinTask.AdaptedRunnable<T>(task, result); 2649 * yet terminated. The result returned by this method may differ 2823 * to collection {@code c} may result in elements being in
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
H A D | ObjectInputStreamTest.java | 1420 FieldReplacementTestClass result =
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | FormatterTest.java | 2364 // result can't be predicted on RI, so skip this test 4194 String result = f.toString(); 4196 assertEquals(expected, result);
|