Home
last modified time | relevance | path

Searched refs:toLong (Results 1 – 25 of 55) sorted by relevance

123

/external/rappor/client/javatest/com/google/android/rappor/
DEncoderTest.java47 private static long toLong(byte[] bytes) { in toLong() method in EncoderTest
421 toLong( in testEncoderEncodeBits_identity()
435 toLong( in testEncoderEncodeBits_identity()
466 toLong( in testEncoderEncodeBoolean_identity()
480 toLong( in testEncoderEncodeBoolean_identity()
497 toLong( in testEncoderEncodeOrdinal_identity()
511 toLong( in testEncoderEncodeOrdinal_identity()
556 toLong( in testEncoderEncodeString_identity()
572 toLong( in testEncoderEncodeString_identity()
595 assertEquals(0b000011000000L, toLong(cohortProbeEncoder.encodeString("Whizbang"))); in testEncoderEncodeString_identity()
[all …]
/external/icu/icu4j/samples/src/com/ibm/icu/samples/util/timescale/
DPivotDemo.java53 …cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(0, UniversalTimeScale.JAVA_T… in main()
57 …cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(-62164684800000L, UniversalT… in main()
61 …cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(-62135769600000L, UniversalT… in main()
67 …cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(0x80000000, UniversalTimeSca… in main()
71 …cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(0, UniversalTimeScale.UNIX_T… in main()
75 …cal.setTimeInMillis(UniversalTimeScale.toLong(UniversalTimeScale.from(0x7FFFFFFF, UniversalTimeSca… in main()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedInts.java74 public static long toLong(int value) { in toLong() method in UnsignedInts
181 return (int) (toLong(dividend) / toLong(divisor)); in divide()
193 return (int) (toLong(dividend) % toLong(divisor)); in remainder()
DUnsignedInteger.java21 import static com.google.common.primitives.UnsignedInts.toLong;
192 return toLong(value); in longValue()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/
DTimeScaleAPITest.java313 result = UniversalTimeScale.toLong(0L, -1); in TestToLong()
324 result = UniversalTimeScale.toLong(0L, scale); in TestToLong()
331 result = UniversalTimeScale.toLong(toMin, scale); in TestToLong()
339 result = UniversalTimeScale.toLong(toMin - 1, scale); in TestToLong()
347 result = UniversalTimeScale.toLong(toMax, scale); in TestToLong()
355 result = UniversalTimeScale.toLong(toMax + 1, scale); in TestToLong()
364 result = UniversalTimeScale.toLong(0L, UniversalTimeScale.MAX_SCALE); in TestToLong()
DTimeScaleDataTest.java48 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in roundTripTest()
57 long result = UniversalTimeScale.toLong(toLimit, scale); in toLimitTest()
68 long local = UniversalTimeScale.toLong(universalEpoch, scale); in epochOffsetTest()
75 local = UniversalTimeScale.toLong(0, scale); in epochOffsetTest()
241 …millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); in TestDotNet()
DTimeScaleMonkeyTest.java102 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in TestRoundTrip()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
DTimeScaleAPITest.java310 result = UniversalTimeScale.toLong(0L, -1); in TestToLong()
321 result = UniversalTimeScale.toLong(0L, scale); in TestToLong()
328 result = UniversalTimeScale.toLong(toMin, scale); in TestToLong()
336 result = UniversalTimeScale.toLong(toMin - 1, scale); in TestToLong()
344 result = UniversalTimeScale.toLong(toMax, scale); in TestToLong()
352 result = UniversalTimeScale.toLong(toMax + 1, scale); in TestToLong()
361 result = UniversalTimeScale.toLong(0L, UniversalTimeScale.MAX_SCALE); in TestToLong()
DTimeScaleDataTest.java45 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in roundTripTest()
54 long result = UniversalTimeScale.toLong(toLimit, scale); in toLimitTest()
65 long local = UniversalTimeScale.toLong(universalEpoch, scale); in epochOffsetTest()
72 local = UniversalTimeScale.toLong(0, scale); in epochOffsetTest()
238 …millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); in TestDotNet()
DTimeScaleMonkeyTest.java99 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in TestRoundTrip()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/
DCalculateLimits.java86 … if(UniversalTimeScale.toLong(UniversalTimeScale.from(minLong, scale), scale) != minLong) { in main()
90 … if(UniversalTimeScale.toLong(UniversalTimeScale.from(maxLong, scale), scale) != maxLong) { in main()
95 if(UniversalTimeScale.toLong(min.longValue(), scale) != minLong) { in main()
99 if(UniversalTimeScale.toLong(max.longValue(), scale) != maxLong) { in main()
/external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/java8/
DFunctionWithDefaultMethod.java26 static <T extends Number> Function<T, Long> toLong() { in toLong() method
55 return ints.stream().map(inc(add)).map(toLong()).collect(Collectors.toList()); in add()
/external/turbine/java/com/google/turbine/zip/
DZip.java188 long cdsize = UnsignedInts.toLong(eocd.getInt(index + ENDSIZ)); in ZipIterable()
250 long offset = UnsignedInts.toLong(cd.getInt(cdindex + CENOFF)); in data()
260 UnsignedInts.toLong(cd.getInt(cdindex + CENSIZ)), in data()
267 UnsignedInts.toLong(cd.getInt(cdindex + CENLEN)), in data()
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DShortDuration.java61 return ofPicos(toLong(picos, RoundingMode.HALF_UP)); in of()
216 return toLong(new BigDecimal(picos).divide(divisor), roundingMode); in to()
239 return ofPicos(toLong(product, roundingMode)); in times()
344 private static long toLong(BigDecimal bd, RoundingMode roundingMode) { in toLong() method in ShortDuration
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DUnsignedInteger.java21 import static com.google.common.primitives.UnsignedInts.toLong;
178 return toLong(value); in longValue()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/
DAbstractAppleMetaDataBox.java91 static long toLong(byte b) { in toLong() method in AbstractAppleMetaDataBox
143 l += toLong(b) << (8 * (length - current++)); in getValue()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCurrencyMetaInfo.java251 long toLong = to == null ? Long.MAX_VALUE : to.getTime(); in withDateRange() local
252 … return new CurrencyFilter(this.region, this.currency, fromLong, toLong, this.tenderOnly); in withDateRange()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCurrencyMetaInfo.java269 long toLong = to == null ? Long.MAX_VALUE : to.getTime(); in withDateRange() local
270 … return new CurrencyFilter(this.region, this.currency, fromLong, toLong, this.tenderOnly); in withDateRange()
/external/icu/icu4c/source/i18n/
Dnumparse_parsednumber.cpp78 return static_cast<double>(quantity.toLong()); in getDouble()
Dnumber_decimalquantity.h150 int64_t toLong(bool truncateIfOverflow = false) const;
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DParsedNumber.java163 return quantity.toLong(false); in getNumber()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java247 return isNegative() ? -toLong(true) : toLong(true); in getPluralOperand()
580 public long toLong(boolean truncateIfOverflow) { in toLong() method in DecimalQuantity_AbstractBCD
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java245 return isNegative() ? -toLong(true) : toLong(true); in getPluralOperand()
578 public long toLong(boolean truncateIfOverflow) { in toLong() method in DecimalQuantity_AbstractBCD
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DParsedNumber.java161 return quantity.toLong(false); in getNumber()
/external/eigen/unsupported/Eigen/
DMPRealSupport136 { return x.toLong(); }
139 { return int(x.toLong()); }

123