/libcore/luni/src/main/java/java/io/ |
H A D | CharArrayWriter.java | 125 * method are not reflected in the result. 131 char[] result = new char[count]; 132 System.arraycopy(buf, 0, result, 0, count); 133 return result; 140 * calling this method are not reflected in the result.
|
/libcore/luni/src/main/java/java/lang/ |
H A D | Math.java | 96 * argument within the range {@code [0..pi]}. The returned result is within 97 * 1 ulp (unit in the last place) of the real result. 114 * within the range {@code [-pi/2..pi/2]}. The returned result is within 1 115 * ulp (unit in the last place) of the real result. 132 * argument within the range {@code [-pi/2..pi/2]}. The returned result is 133 * within 1 ulp (unit in the last place) of the real result. 153 * representation of the rectangular coordinates (x,y). The returned result 154 * is within 2 ulps (units in the last place) of the real result. 227 * The returned result is within 1 ulp (unit in the last place) of the real 228 * result [all...] |
/libcore/luni/src/main/java/java/util/prefs/ |
H A D | Preferences.java | 115 PreferencesFactory result = ServiceLoader.loadFromSystemProperty(PreferencesFactory.class); 116 if (result != null) { 117 return result; 610 * The value is stored in its string form, which is the result of invoking 633 * The value is stored in its string form, which is the result of invoking 656 * The value is stored in its string form, which is the result of invoking 679 * The value is stored in its string form, which is the result of invoking
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | InflaterInputStream.java | 158 int result = inf.inflate(buffer, byteOffset, byteCount); 160 if (result > 0) { 161 return result; 170 // If result == 0, fill() and try again 218 * A result of 1 does not guarantee that further bytes can be returned,
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | RuleBasedCollatorICU.java | 119 StringBuilder result = new StringBuilder(); 121 result.append(ch); 123 return result.toString();
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | Base64.java | 123 byte[] result = new byte[outIndex]; 124 System.arraycopy(out, 0, result, 0, outIndex); 125 return result;
|
H A D | StrictLineReader.java | 145 * this end of line marker is not included in the result. 235 int result = in.read(buf, 0, buf.length); 236 if (result == -1) { 240 end = result;
|
/libcore/luni/src/test/java/libcore/util/ |
H A D | CollectionUtilsTest.java | 68 List<T> result = new ArrayList<T>(); 70 result.add(t); 72 return result;
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | NamespacedAttributesLookupTest.java | 101 final List<String> result = new ArrayList<String>(); 133 result.add(serialized.toString()); 137 return result;
|
/libcore/support/src/test/java/tests/util/ |
H A D | ClassLoaderBuilder.java | 141 List<URL> result = new ArrayList<URL>(); 143 result.add(new File(pathElement).toURI().toURL()); 145 return result;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | InflaterTest.java | 328 byte[] result = new byte[100]; 333 decLen = infl1.inflate(result); 339 assertEquals(codedString, new String(result, 0, decLen)); 344 decLen = infl2.inflate(result); 426 byte[] result = new byte[100]; 431 decLen = infl1.inflate(result, 10, 11); 437 assertEquals(codedString, new String(result, 10, decLen)); 442 decLen = infl2.inflate(result, 10, 11); 568 "needsInput give the wrong boolean value as a result of no input buffer", 581 "needsInput give wrong boolean value as a result o [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldDateFormatTest.java | 381 Date result = (Date) df.parseObject(df.format(current), pp); 383 assertEquals("Dates are different.", current.getDate(), result.getDate()); 384 assertEquals("Days are different.", current.getDay(), result.getDay()); 385 assertEquals("Months are different.", current.getMonth(), result.getMonth()); 386 assertEquals("Years are different.", current.getYear(), result.getYear()); 387 assertEquals("Hours are different", current.getHours(), result.getHours()); 388 assertEquals("Minutes are diffetrent,", current.getMinutes(), result.getMinutes()); 390 assertTrue("Parse operation return null", result != null); 398 result = (Date) df.parseObject(partialCorrect, pp); 399 assertTrue("Parse operation return not-null", result [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | Locale.java | 659 * state being replaced by the parsed result of {@code value}. For example, 1035 String result = ICU.getDisplayCountry(this, locale); 1036 if (result == null) { // TODO: do we need to do this, or does ICU do it for us? 1037 result = ICU.getDisplayCountry(this, Locale.getDefault()); 1039 return result; 1073 String result = ICU.getDisplayLanguage(this, locale); 1074 if (result == null) { // TODO: do we need to do this, or does ICU do it for us? 1075 result = ICU.getDisplayLanguage(this, Locale.getDefault()); 1077 return result; 1174 String result [all...] |
H A D | Vector.java | 500 int result = 1; 502 result = (31 * result) 505 return result; 695 E result = (E) elementData[location]; 704 return result; 875 E result = (E) elementData[location]; 877 return result; 972 Object[] result = new Object[elementCount]; 973 System.arraycopy(elementData, 0, result, [all...] |
/libcore/benchmarks/src/benchmarks/ |
H A D | XmlParseBenchmark.java | 115 int result = 0; 118 result++; 120 result += countDomElements(node.getFirstChild()); 122 return result;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | ReaderTest.java | 46 int result = mockReader.read(charBuffer); 47 assertEquals(0, result); 61 int result = mockReader.read(charBuffer); 62 assertEquals(CHARBUFFER_REMAINING, result);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
H A D | CharsetEncoder2Test.java | 166 CoderResult result = encoder.encode(char1, bytes, false); 168 assertTrue(result.isUnderflow()); 171 result = encoder.encode(char2, bytes, true); 172 assertTrue(result.isUnderflow()); 204 // ByteBuffer buf = <result>
|
/libcore/luni/src/main/java/java/net/ |
H A D | ServerSocket.java | 267 StringBuilder result = new StringBuilder(64); 268 result.append("ServerSocket["); 270 return result.append("unbound]").toString(); 272 return result.append("addr=")
|
H A D | InetAddress.java | 243 InetAddress result = parseNumericAddressNoThrow(host); 244 if (result != null) { 245 result = disallowDeprecatedFormats(host, result); 246 if (result == null) { 249 return new InetAddress[] { result }; 271 // We need to return inet_pton(3)'s result to ensure that numbers assumed to be octal 419 // Do we have a result cached? 423 // A cached positive result. 426 // A cached negative result [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | SecureRandom.java | 313 SecureRandom result = internalSecureRandom; 314 if (result == null) { 316 internalSecureRandom = result = new SecureRandom(); 318 return result.generateSeed(numBytes);
|
/libcore/luni/src/main/java/java/util/logging/ |
H A D | Handler.java | 66 Object result = null; 68 return result; 71 result = Class.forName(className).newInstance(); 75 return result;
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldStreamTokenizerTest.java | 103 String result = tokenizer.toString(); 104 Assert.assertEquals("Token['-'], line 1", result); 121 String result = tokenizer.toString(); 122 Assert.assertEquals("Token[Hello], line 1", result);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
H A D | CharsetDecoderTest.java | 80 byte[] result = new byte[arr.length + 1]; 81 result[0] = b; 82 System.arraycopy(arr, 0, result, 1, arr.length); 83 return result;
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | SecretKeySpecTest.java | 191 byte[] result = ks.getEncoded(); 192 if (! Arrays.equals(key, result)) { 196 result[0] ++; 199 result[0] == ks.getEncoded()[0]);
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Exec.java | 67 StringBuilder result = new StringBuilder(); 69 result.append(File.pathSeparator); 70 result.append(element); 72 return result.toString();
|