/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...] |
H A D | Short.java | 135 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.
|
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 | StringToReal.java | 74 StringExponentPair result = new StringExponentPair(); 78 result.negative = (s.charAt(0) == '-'); 120 result.e = Integer.parseInt(exponentString); 122 result.e = -result.e; 128 result.zero = true; 130 result.infinity = true; 145 result.negative = true; 168 result.e -= end - decimal - 1; 181 if (result [all...] |
/libcore/luni/src/main/java/java/math/ |
H A D | BigDecimal.java | 363 * rounding mode and precision for the result of this operation. 395 * given as a character array. The result is rounded according to the 402 * rounding mode and precision for the result of this operation. 430 * representation. The result is rounded according to the specified math 434 * rounding mode and precision for the result of this operation. 529 * rounding mode and precision for the result of this operation. 544 * {@code val}. The scale of the result is {@code 0}. 552 * {@code val}. The scale of the result is {@code 0}. 555 * rounding mode and precision for the result of this operation. 585 * {@code unscaledVal * 10<sup>-scale</sup>). The result i [all...] |
H A D | BigInt.java | 158 StringBuilder result = new StringBuilder(length); 165 result.append(ch); 167 return result.toString();
|
H A D | BitLevel.java | 114 static void shiftLeftOneBit(int[] result, int[] source, int srcLen) { argument 118 result[i] = (val << 1) | carry; 122 result[srcLen] = carry; 154 // If the remainder is not zero, add 1 to the result 173 * @param result 185 static boolean shiftRight(int[] result, int resultLen, int[] source, int intCount, int count) { argument 191 System.arraycopy(source, intCount, result, 0, resultLen); 198 result[i] = ( source[i + intCount] >>> count ) 201 result[i] = ( source[i + intCount] >>> count );
|
H A D | Conversion.java | 79 char[] result = new char[resLengthInChars]; 97 result[--currentChar] = Character.forDigit( 102 result[--currentChar] = '0'; 117 result[--currentChar] = Character.forDigit(resDigit, 16); 121 while (result[currentChar] == '0') { 125 result[--currentChar] = '-'; 127 return new String(result, currentChar, resLengthInChars - currentChar); 144 char[] result; 179 result = new char[resLengthInChars + 1]; 191 result[ [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | AddressCache.java | 64 int result = 17; 65 result = 31 * result + mNetId; 66 result = 31 * result + mHostname.hashCode(); 67 return result;
|
H A D | CookieManager.java | 111 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()));
|
H A D | CookieStoreImpl.java | 66 List<HttpCookie> result = new ArrayList<HttpCookie>(); 76 result.add(cookie); 95 } else if (!result.contains(cookie)) { 96 result.add(cookie); 101 return Collections.unmodifiableList(result); 105 List<HttpCookie> result = new ArrayList<HttpCookie>(); 111 } else if (!result.contains(cookie)) { 112 result.add(cookie); 116 return Collections.unmodifiableList(result); 120 List<URI> result [all...] |
H A D | HttpCookie.java | 371 String result = pos < c ? forSubstring.substring(pos, c) : null; 373 return result; 406 String result = input.substring(pos, closeQuote); 408 return result; 412 String result = input.substring(pos, c); 414 return result; 738 StringBuilder result = new StringBuilder() 744 appendAttribute(result, "Path", path); 745 appendAttribute(result, "Domain", domain); 746 appendAttribute(result, "Por [all...] |
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...] |
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...] |
H A D | PlainDatagramSocketImpl.java | 156 int result = peekData(packet); 159 return result;
|
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 | URI.java | 756 StringBuilder result = new StringBuilder(""); 763 result.append(s.substring(prevIndex, index + 1)); 764 result.append(s.substring(index + 1, index + 3).toLowerCase(Locale.US)); 768 return result.toString(); 1102 URI result = duplicate(); 1103 result.path = normalizedPath; 1104 result.setSchemeSpecificPart(); 1105 return result; 1170 URI result = new URI(); 1171 result [all...] |
H A D | URLClassLoader.java | 586 ArrayList<URL> result = new ArrayList<URL>(); 593 handler.findResources(name, result); 595 return Collections.enumeration(result); 828 URLHandler result; 831 result = createURLJarHandler(nextCandidate); 833 result = createURLFileHandler(nextCandidate); 835 result = createURLHandler(nextCandidate); 837 if (result != null) { 838 handlerMap.put(nextCandidate, result); 839 handlerList.add(result); [all...] |
H A D | URLConnection.java | 786 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();
|
H A D | URLStreamHandler.java | 266 StringBuilder result = new StringBuilder(); 267 result.append(url.getProtocol()); 268 result.append(':'); 272 result.append("//"); 274 URI.AUTHORITY_ENCODER.appendPartiallyEncoded(result, authority); 276 result.append(authority); 283 URI.FILE_AND_QUERY_ENCODER.appendPartiallyEncoded(result, fileAndQuery); 285 result.append(fileAndQuery); 291 result.append('#'); 293 URI.ALL_LEGAL_ENCODER.appendPartiallyEncoded(result, re [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | ByteArrayBuffer.java | 167 char result = (char) Memory.peekShort(backingArray, arrayOffset + position, order); 169 return result; 198 int result = Memory.peekInt(backingArray, arrayOffset + position, order); 200 return result; 213 long result = Memory.peekLong(backingArray, arrayOffset + position, order); 215 return result; 228 short result = Memory.peekShort(backingArray, arrayOffset + position, order); 230 return result;
|
H A D | ByteBufferAsCharBuffer.java | 173 CharBuffer result = new ByteBufferAsCharBuffer(bb); 175 return result; 180 CharBuffer result = duplicate(); 181 result.limit(position + end); 182 result.position(position + start); 183 return result;
|
H A D | ByteBufferAsDoubleBuffer.java | 173 DoubleBuffer result = new ByteBufferAsDoubleBuffer(bb); 175 return result;
|
H A D | ByteBufferAsFloatBuffer.java | 172 FloatBuffer result = new ByteBufferAsFloatBuffer(bb); 174 return result;
|
H A D | ByteBufferAsIntBuffer.java | 173 IntBuffer result = new ByteBufferAsIntBuffer(bb); 175 return result;
|