/external/icu/icu4j/samples/src/com/ibm/icu/samples/util/timescale/ |
PivotDemo.java | 51 cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(0, UniversalTimeScale.JAVA_TIME), UniversalTimeScale.ICU4C_TIME)); 55 cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(-62164684800000L, UniversalTimeScale.JAVA_TIME), UniversalTimeScale.ICU4C_TIME)); 59 cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(-62135769600000L, UniversalTimeScale.JAVA_TIME), UniversalTimeScale.ICU4C_TIME)); 65 cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(0x80000000, UniversalTimeScale.UNIX_TIME), UniversalTimeScale.ICU4C_TIME)); 69 cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(0, UniversalTimeScale.UNIX_TIME), UniversalTimeScale.ICU4C_TIME)); 73 cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(0x7FFFFFFF, UniversalTimeScale.UNIX_TIME), UniversalTimeScale.ICU4C_TIME));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ObjectTest.java | 297 long[][] toLong = new long[3][3]; 307 if (count < toLong.length) { 308 toLong[count][0] = i; 309 toLong[count][1] = before; 310 toLong[count][2] = after; 313 if (error > (1000 + delay) || count == toLong.length) { 318 sb.append(toLong[j][0]); 320 sb.append(toLong[j][1]); 322 sb.append(toLong[j][2]); 324 sb.append(toLong[j][2] - toLong[j][1]) [all...] |
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/ |
CalculateLimits.java | 17 * used as arguments to <code>toLong</code> and <code>from</code>. 41 * The mimimum and maximum values for <code>toLong</code> are calulated by passing 84 if(UniversalTimeScale.toLong(UniversalTimeScale.from(minLong, scale), scale) != minLong) { 88 if(UniversalTimeScale.toLong(UniversalTimeScale.from(maxLong, scale), scale) != maxLong) { 93 if(UniversalTimeScale.toLong(min.longValue(), scale) != minLong) { 94 System.out.println("OOPS: toLong(toMin) != fromMin"); 97 if(UniversalTimeScale.toLong(max.longValue(), scale) != maxLong) { 98 System.out.println("OOPS: toLong(toMax) != fromMax");
|
/external/guava/guava/src/com/google/common/primitives/ |
UnsignedInts.java | 74 public static long toLong(int value) { 181 return (int) (toLong(dividend) / toLong(divisor)); 193 return (int) (toLong(dividend) % toLong(divisor));
|
UnsignedInteger.java | 21 import static com.google.common.primitives.UnsignedInts.toLong; 192 return toLong(value);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/ |
TimeScaleAPITest.java | 298 result = UniversalTimeScale.toLong(0L, -1); 299 errln("toLong(0L, -1) did not throw IllegalArgumentException."); 301 logln("PASS: UniversalTimeScale.toLong failed as expected"); 309 result = UniversalTimeScale.toLong(0L, scale); 310 logln("toLong(0L, " + scale + ") returned " + result); 312 errln("toLong(0L, " + scale + ") threw IllegalArgumentException."); 316 result = UniversalTimeScale.toLong(toMin, scale); 317 logln("toLong(toMin, " + scale + ") returned " + result); 319 errln("toLong(toMin, " + scale + ") threw IllegalArgumentException."); 324 result = UniversalTimeScale.toLong(toMin - 1, scale) [all...] |
TimeScaleDataTest.java | 42 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); 51 long result = UniversalTimeScale.toLong(toLimit, scale); 55 ", toLong(toLimit, scale) = " + result + ", fromLimit = " + fromLimit); 62 long local = UniversalTimeScale.toLong(universalEpoch, scale); 65 errln("toLong(epochOffset, scale): scale = " + scale + ", epochOffset = " + universalEpoch + 69 local = UniversalTimeScale.toLong(0, scale); 72 errln("toLong(0, scale): scale = " + scale + ", result = " + local); 231 millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); 239 errln("UniversalTimeScale.toLong(ticks[" + i + "], ICU4C)=" +
|
TimeScaleMonkeyTest.java | 95 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
TimeScaleAPITest.java | 294 result = UniversalTimeScale.toLong(0L, -1); 295 errln("toLong(0L, -1) did not throw IllegalArgumentException."); 297 logln("PASS: UniversalTimeScale.toLong failed as expected"); 305 result = UniversalTimeScale.toLong(0L, scale); 306 logln("toLong(0L, " + scale + ") returned " + result); 308 errln("toLong(0L, " + scale + ") threw IllegalArgumentException."); 312 result = UniversalTimeScale.toLong(toMin, scale); 313 logln("toLong(toMin, " + scale + ") returned " + result); 315 errln("toLong(toMin, " + scale + ") threw IllegalArgumentException."); 320 result = UniversalTimeScale.toLong(toMin - 1, scale) [all...] |
TimeScaleDataTest.java | 38 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); 47 long result = UniversalTimeScale.toLong(toLimit, scale); 51 ", toLong(toLimit, scale) = " + result + ", fromLimit = " + fromLimit); 58 long local = UniversalTimeScale.toLong(universalEpoch, scale); 61 errln("toLong(epochOffset, scale): scale = " + scale + ", epochOffset = " + universalEpoch + 65 local = UniversalTimeScale.toLong(0, scale); 68 errln("toLong(0, scale): scale = " + scale + ", result = " + local); 227 millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); 235 errln("UniversalTimeScale.toLong(ticks[" + i + "], ICU4C)=" +
|
TimeScaleMonkeyTest.java | 91 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale);
|
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/ |
UnsignedInteger.java | 21 import static com.google.common.primitives.UnsignedInts.toLong; 178 return toLong(value);
|
/external/caliper/caliper/src/main/java/com/google/caliper/util/ |
ShortDuration.java | 61 return ofPicos(toLong(picos, RoundingMode.HALF_UP)); 216 return toLong(new BigDecimal(picos).divide(divisor), roundingMode); 239 return ofPicos(toLong(product, roundingMode)); 344 private static long toLong(BigDecimal bd, RoundingMode roundingMode) {
|
/libcore/json/src/main/java/org/json/ |
JSON.java | 72 static Long toLong(Object value) {
|
JSONArray.java | 430 Long result = JSON.toLong(object); 451 Long result = JSON.toLong(object);
|
JSONObject.java | 515 Long result = JSON.toLong(object); 539 Long result = JSON.toLong(object);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CurrencyMetaInfo.java | 247 long toLong = to == null ? Long.MAX_VALUE : to.getTime(); 248 return new CurrencyFilter(this.region, this.currency, fromLong, toLong, this.tenderOnly);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
CurrencyMetaInfo.java | 266 long toLong = to == null ? Long.MAX_VALUE : to.getTime(); 267 return new CurrencyFilter(this.region, this.currency, fromLong, toLong, this.tenderOnly);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/ |
AbstractAppleMetaDataBox.java | 91 static long toLong(byte b) { 143 l += toLong(b) << (8 * (length - current++));
|
/external/pdfium/third_party/bigint/ |
BigInteger.hh | 74 long toLong () const;
|
/external/guava/guava/src/com/google/common/hash/ |
HashCode.java | 156 return UnsignedInts.toLong(hash);
|
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/ |
UnsignedIntsTest.java | 51 assertEquals(a, UnsignedInts.toLong((int) a));
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
UnsignedIntsTest.java | 54 assertEquals(a, UnsignedInts.toLong((int) a));
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
UniversalTimeScale.java | 440 public static long toLong(long universalTime, int timeScale)
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
UniversalTimeScale.java | 486 public static long toLong(long universalTime, int timeScale)
|