Searched refs:result (Results 351 - 375 of 498) sorted by relevance

<<11121314151617181920

/libcore/luni/src/main/java/javax/xml/validation/
H A DValidator.java97 * result to the specified output.
161 * @param result
170 * (in which case <tt>source.getNode()==result.getNode()</tt>),
197 public abstract void validate(Source source, Result result) throws SAXException, IOException; argument
/libcore/luni/src/main/java/libcore/net/
H A DUriCodec.java87 * Encodes {@code s} and appends the result to {@code builder}.
157 StringBuilder result = new StringBuilder(s.length());
176 result.append(new String(out.toByteArray(), charset));
182 result.append(c);
186 return result.toString();
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLClassLoaderTest.java127 URL [] result = tucl.getURLs();
129 i, result.length);
130 for(int j = 0; j < result.length; j++) {
132 urls[j], result[j]);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DRC5ParameterSpecTest.java195 byte[] result = ps.getIV();
196 if (! Arrays.equals(iv, result)) {
200 result[0] ++;
203 result[0] == ps.getIV()[0]);
/libcore/benchmarks/src/benchmarks/regression/
H A DByteBufferBenchmark.java49 ByteBuffer result = null;
52 result = ByteBuffer.allocateDirect(size);
55 result = ByteBuffer.allocate(size);
68 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size());
71 result.order(byteOrder.byteOrder);
72 result.position(aligned ? 0 : 1);
73 return result;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DBufferedReaderTest.java152 int result = br.read(carray);
153 assertEquals(3, result);
162 result = br.read(carray);
163 assertEquals("Assert 4:", 4, result);
329 int result = bufin.read(new char[2], 0, 2);
330 assertTrue("Incorrect result: " + result, result == 1);
H A DOutputStreamWriterTest.java103 String result = out.toString("utf-8");
104 assertEquals(source, result);
469 byte[] result = out.toByteArray();
471 isr = new InputStreamReader(new ByteArrayInputStream(result),
518 byte[] result = out.toByteArray();
520 isr = new InputStreamReader(new ByteArrayInputStream(result),
647 String result = out.getEncoding();
648 assertNull(result);
657 result = out.getEncoding();
658 assertEquals("UTF-16BE", result);
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DStringBuffer2Test.java490 StringBuffer result = new StringBuffer();
491 result.append("\"");
493 result.append(" 0x" + Integer.toHexString(in.charAt(i)));
495 result.append("\"");
496 return result.toString();
/libcore/luni/src/main/java/java/net/
H A DURLConnection.java786 StringBuilder result = new StringBuilder(typeString);
787 for (int i = 0; i < result.length(); i++) {
789 char c = result.charAt(i);
791 result.setCharAt(i, '_');
794 return result.toString();
/libcore/luni/src/main/java/java/util/logging/
H A DLogManager.java474 Logger result = getLogger(name);
475 if (result == null) {
476 result = new Logger(name, resourceBundleName);
477 addLogger(result);
479 return result;
H A DLogger.java105 * result.
320 Logger result = new Logger(null, resourceBundleName);
321 result.isNamed = false;
323 logManager.setParent(result, logManager.getLogger(""));
324 return result;
382 Logger result = LogManager.getLogManager()
384 result.initResourceBundle(resourceBundleName);
385 return result;
629 * isLoggable() method, so that affect the result of log methods.
789 * @param result
792 exiting(String sourceClass, String sourceMethod, Object result) argument
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DICU.java292 char[] result = new char[3];
302 result[resultIndex++] = 'd';
305 result[resultIndex++] = 'M';
308 result[resultIndex++] = 'y';
329 return result;
449 static native boolean initLocaleDataNative(String languageTag, LocaleData result); argument
/libcore/luni/src/test/java/com/android/org/bouncycastle/jce/provider/
H A DCertBlacklistTest.java208 StringBuilder result = new StringBuilder();
211 if (result.length() != 0) {
212 result.append(",");
214 result.append(value);
216 blacklistToFile(result.toString());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DCharsetDecoderTest.java414 CoderResult result = decoder.decode(in, out, endOfInput);
415 assertTrue(result.isUnmappable());
467 CoderResult result = decoder.decode(in, out, endOfInput);
468 assertTrue(result.isMalformed());
616 CoderResult result = decoder.flush(out);
617 assertSame(result, CoderResult.UNDERFLOW);
803 String result;
805 result = new String(input, "UTF-8");
809 if (result.startsWith("malform")) {
814 } else if (result
[all...]
H A DCharsetEncoderTest.java297 CoderResult result = encoder.flush(out);
821 byte[] result = new byte[ba.length * times];
823 System.arraycopy(ba, 0, result, i * ba.length, ba.length);
825 return result;
1025 boolean result = flushed;
1027 return result;
1050 String result = new String(input);
1051 if (result.startsWith("malform")) {
1057 } else if (result.startsWith("unmap")) {
1063 } else if (result
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DHashtableTest.java276 // Object result = en.nextElement();
277 // assertNull("unexpected: " + result, result);
279 // result = en.nextElement();
280 // assertNull("unexpected: " + result, result);
281 // result = en.nextElement();
282 // assertTrue("unexpected: " + result, "b".equals(result));
406 String result
[all...]
H A DLinkedListTest.java837 Iterator result = testList.descendingIterator();
840 result.remove();
848 assertEquals(testObjLast, result.next());
854 result = testList.descendingIterator();
855 assertEquals(testObjFour, result.next());
856 assertEquals(testObjLast, result.next());
857 assertEquals(testObjThree, result.next());
858 assertEquals(testObjOne, result.next());
859 assertEquals(testObjTwo, result.next());
860 assertTrue(result
[all...]
H A DArrayListTest.java698 String[] result = new String[5];
699 list.toArray(result);
700 assertTrue("Removed wrong element 3", Arrays.equals(result,
792 String result = l.toString();
793 assertTrue("should contain self ref", result.indexOf("(this") > -1);
928 String[] result = new String[5];
929 list.toArray(result);
930 assertTrue("Removed wrong element 3", Arrays.equals(result,
983 String[] result = new String[6];
984 mal.toArray(result);
[all...]
/libcore/luni/src/main/java/java/util/prefs/
H A DXMLParser.java118 InputSource result = new InputSource(new StringReader(
120 result.setSystemId(PREFS_DTD_NAME);
121 return result;
399 NodeList result = null;
435 result = new NodeSet(input.iterator());
437 return result;
445 Properties result = new Properties();
459 result.setProperty(key, value);
470 return result;
/libcore/luni/src/main/java/java/util/
H A DHashMap.java215 * not round the result up to a power of two; the caller must do this!
219 int result = (size >> 1) + size; // Multiply by 3/2 to allow for growth
221 // boolean expr is equivalent to result >= 0 && result<MAXIMUM_CAPACITY
222 return (result & ~(MAXIMUM_CAPACITY-1))==0 ? result : MAXIMUM_CAPACITY;
236 HashMap<K, V> result;
238 result = (HashMap<K, V>) super.clone();
244 result.makeTable(table.length);
245 result
[all...]
/libcore/luni/src/main/java/java/lang/
H A DCharacter.java1592 * maintains a cache of instances which may result in better performance.
1720 * surrogates, then the result is indeterminate. The
2099 int result = 0;
2106 result++;
2110 result++;
2112 return result;
2140 int result = 0;
2147 result++;
2151 result++;
2153 return result;
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DChoiceFormatTest.java363 Number result = f1.parse("Greater than two", pos);
364 assertTrue("Not a Double1", result instanceof Double);
365 assertTrue("Wrong value ~>2", result.doubleValue() == ChoiceFormat
369 assertTrue("Incorrect result", Double.isNaN(f1.parse("12one", pos)
373 result = f1.parse("12one and two", pos);
374 assertTrue("Not a Double2", result instanceof Double);
375 assertEquals("Ignored parse position", 1.0D, result.doubleValue(), 0.0D);
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDocumentImpl.java390 NodeListImpl result = new NodeListImpl();
391 getElementsByTagName(result, name);
392 return result;
396 NodeListImpl result = new NodeListImpl();
397 getElementsByTagNameNS(result, namespaceURI, localName);
398 return result;
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DReflectionTest.java406 List<String> result = new ArrayList<String>();
408 result.add(method.getName());
410 return result;
414 int result = 0;
417 result++;
420 return result;
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DZipFileTest.java117 // Write the result to a file.
153 // Write the result to a file.
224 File result = createTemporaryZipFile();
229 ZipOutputStream out = createZipOutputStream(result);
246 return result;
250 File result = File.createTempFile("ZipFileTest", "zip");
251 result.deleteOnExit();
252 return result;

Completed in 695 milliseconds

<<11121314151617181920