Searched refs:result (Results 126 - 150 of 498) sorted by relevance

1234567891011>>

/libcore/luni/src/main/java/java/lang/
H A DShort.java135 short result = (short) intValue;
136 if (result == intValue) {
137 return valueOf(result);
213 short result = (short) intValue;
214 if (result == intValue) {
215 return result;
299 * maintains a cache of instances which may result in better performance.
/libcore/luni/src/main/java/java/security/cert/
H A DX509CertSelector.java230 byte[] result = new byte[issuerBytes.length];
231 System.arraycopy(issuerBytes, 0, result, 0, issuerBytes.length);
232 return result;
577 boolean[] result = new boolean[keyUsage.length];
578 System.arraycopy(keyUsage, 0, result, 0, keyUsage.length);
579 return result;
743 ArrayList<List<?>> result = new ArrayList<List<?>>();
750 result.add(list);
754 return result;
980 Collection<List<?>> result
[all...]
/libcore/luni/src/main/java/java/util/
H A DCurrency.java88 Currency result = getInstance(currencyCode);
89 localesToCurrencies.put(locale, result);
90 return result;
99 Set<Currency> result = new LinkedHashSet<Currency>();
102 result.add(Currency.getInstance(currencyCode));
104 return result;
H A DAbstractList.java55 E result = get(pos + 1);
57 return result;
125 E result = get(pos);
128 return result;
262 boolean result = fullList.addAll(location + offset,
264 if (result) {
268 return result;
278 boolean result = fullList.addAll(offset + size, collection);
279 if (result) {
283 return result;
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DTextImpl.java77 StringBuilder result = new StringBuilder();
79 n.appendDataTo(result);
81 return result.toString();
90 Text result = null;
98 result = this;
108 return result;
/libcore/luni/src/main/native/
H A Djava_io_File.cpp48 std::string result; local
49 if (!canonicalize_path(path.c_str(), result)) {
53 return env->NewStringUTF(result.c_str());
95 dirent* result = readdir(mDirStream); local
96 if (result != NULL) {
97 return result->d_name;
H A Djava_util_zip_CRC32.cpp31 jlong result = crc32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len); local
32 return result;
/libcore/luni/src/test/java/libcore/java/math/
H A DOldBigDecimalConvertTest.java289 int result = 0;
291 assertTrue("incorrect byteValue", bNumber == result);
297 int result = 0;
299 assertTrue("incorrect byteValue", bNumber == result);
319 int result = 0;
322 assertTrue("incorrect byteValue", bNumber == result);
327 int result = 0;
330 assertTrue("incorrect byteValue", bNumber == result);
335 int result = -1;
338 assertTrue("incorrect byteValue", bNumber == result);
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigDecimalConstructorsTest.java106 BigDecimal result = new BigDecimal(bA, mc);
107 assertEquals("incorrect value", res, result.unscaledValue().toString());
108 assertEquals("incorrect scale", resScale, result.scale());
123 BigDecimal result = new BigDecimal(bA, aScale, mc);
124 assertEquals("incorrect value", res, result.unscaledValue().toString());
125 assertEquals("incorrect scale", resScale, result.scale());
133 BigDecimal result = new BigDecimal(value);
136 assertEquals("incorrect value", res, result.toString());
137 assertEquals("incorrect scale", resScale, result.scale());
154 BigDecimal result
[all...]
H A DBigDecimalCompareTest.java42 String result = "123809648392384754573567356745735635678902957849027687.87678287";
43 assertEquals("incorrect value", result, aNumber.abs().toString());
52 String result = "123809648392384754573567356745735635678902957849027687.87678287";
53 assertEquals("incorrect value", result, aNumber.abs().toString());
65 String result = "1.23809648392385E+53";
68 assertEquals("incorrect value", result, res.toString());
81 String result = "1.2380964839238475457356735674573563567890E+53";
84 assertEquals("incorrect value", result, res.toString());
98 int result = 1;
99 assertEquals("incorrect result", resul
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfo.java290 int result = 1;
291 result = prime * result + getID().hashCode();
292 result = prime * result + Arrays.hashCode(mOffsets);
293 result = prime * result + Arrays.hashCode(mIsDsts);
294 result = prime * result + mRawOffset;
295 result
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DStringCaseMappingBenchmark.java127 char[] result = s.toCharArray();
129 c = result[i];
131 result[i] -= ('a' - 'A');
134 return new String(result);
147 char[] result = s.toCharArray();
149 c = result[i];
151 result[i] += ('a' - 'A');
154 return new String(result);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DStringTest.java281 int result = new String("a\uD800\uDC00b").offsetByCodePoints(0, 2);
282 assertEquals(3, result);
284 result = new String("abcd").offsetByCodePoints(3, -1);
285 assertEquals(2, result);
287 result = new String("a\uD800\uDC00b").offsetByCodePoints(0, 3);
288 assertEquals(4, result);
290 result = new String("a\uD800\uDC00b").offsetByCodePoints(3, -1);
291 assertEquals(1, result);
293 result = new String("a\uD800\uDC00b").offsetByCodePoints(3, 0);
294 assertEquals(3, result);
[all...]
/libcore/luni/src/main/java/java/net/
H A DCookieManager.java111 List<HttpCookie> result = new ArrayList<HttpCookie>();
116 result.add(cookie);
120 return cookiesToHeaders(result);
128 StringBuilder result = new StringBuilder();
136 result.append("$Version=\"1\"; ");
139 result.append(cookies.get(0).toString());
141 result.append("; ").append(cookies.get(i).toString());
144 return Collections.singletonMap("Cookie", Collections.singletonList(result.toString()));
/libcore/luni/src/main/java/java/security/
H A DMessageDigest.java95 MessageDigest result = (MessageDigest) spi;
96 result.algorithm = algorithm;
97 result.provider = provider;
98 return result;
160 MessageDigest result = (MessageDigest) spi;
161 result.algorithm = algorithm;
162 result.provider = provider;
163 return result;
242 * the buffer to store the result
/libcore/luni/src/main/java/libcore/io/
H A DStreams.java41 int result = in.read(buffer, 0, 1);
42 return (result != -1) ? buffer[0] & 0xff : -1;
200 StringBuilder result = new StringBuilder(80);
209 result.append((char) c);
211 int length = result.length();
212 if (length > 0 && result.charAt(length - 1) == '\r') {
213 result.setLength(length - 1);
215 return result.toString();
/libcore/luni/src/main/java/libcore/reflect/
H A DTypes.java50 Type[] result = types.getResolvedTypes();
51 return clone ? result.clone() : result;
83 StringBuilder result = new StringBuilder();
84 appendTypeName(result, types[0]);
86 result.append(',');
87 appendTypeName(result, types[i]);
89 return result.toString();
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DPBEKeySpecTest.java225 char[] result = pbeks.getPassword();
226 if (! Arrays.equals(password, result)) {
230 result[0] ++;
233 result[0] == pbeks.getPassword()[0]);
248 byte[] result = pbeks.getSalt();
249 if (! Arrays.equals(salt, result)) {
253 result[0] ++;
256 result[0] == pbeks.getSalt()[0]);
/libcore/support/src/test/java/tests/support/
H A DThrowingReader.java40 int result = super.read();
42 return result;
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunkHandler.java115 int result = 0;
117 result = ((result << 8) | (typeName.charAt(i) & 0xff));
119 return result;
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
H A Dnodeclonenodetrue.java75 java.util.List result = new java.util.ArrayList();
110 result.add(clonedChildName);
114 assertEquals("nowhitespace", expectedNoWhitespace, result);
116 assertEquals("whitespace", expectedWhitespace, result);
H A Dnodelisttraverselist.java69 java.util.List result = new java.util.ArrayList();
103 result.add(childName);
107 assertEquals("nowhitespace", expectedNoWhitespace, result);
109 assertEquals("whitespace", expectedWhitespace, result);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DInflaterInputStreamTest.java63 int result = 0;
71 while ((result = inflatIP.read()) != -1) {
72 buffer[i] = result;
99 int result = 0;
107 while ((result = inflatIP.read()) != -1) {
108 buffer[i] = result;
170 int result = 0;
180 while ((result = inflatIP.read()) != -1) {
181 buffer[i] = result;
197 int result
[all...]
/libcore/luni/src/main/java/java/nio/
H A DCharSequenceAdapter.java144 CharSequenceAdapter result = copy(this);
145 result.position = position + start;
146 result.limit = position + end;
147 return result;
H A DIoVec.java75 int result = Libcore.os.readv(fd, ioBuffers, offsets, byteCounts);
76 if (result == 0) {
77 result = -1;
79 return result;

Completed in 962 milliseconds

1234567891011>>