/external/rappor/client/javatest/com/google/android/rappor/ |
D | EncoderTest.java | 47 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/ |
D | PivotDemo.java | 53 …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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
D | TimeScaleAPITest.java | 310 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()
|
D | TimeScaleDataTest.java | 45 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()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/ |
D | TimeScaleAPITest.java | 313 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()
|
D | TimeScaleDataTest.java | 48 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()
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/ |
D | CalculateLimits.java | 86 … 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/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/ |
D | SystemProps.common.kt | 35 ): Int = systemProp(propertyName, defaultValue.toLong(), minValue.toLong(), maxValue.toLong()).toIn… in systemProp()
|
D | LockFreeTaskQueue.kt | 286 const val HEAD_MASK = MAX_CAPACITY_MASK.toLong() shl HEAD_SHIFT in isClosed() 288 const val TAIL_MASK = MAX_CAPACITY_MASK.toLong() shl TAIL_SHIFT in isClosed() 304 fun Long.updateHead(newHead: Int) = (this wo HEAD_MASK) or (newHead.toLong() shl HEAD_SHIFT) in isClosed() 305 fun Long.updateTail(newTail: Int) = (this wo TAIL_MASK) or (newTail.toLong() shl TAIL_SHIFT) in isClosed()
|
/external/guava/guava/src/com/google/common/primitives/ |
D | UnsignedInts.java | 79 public static long toLong(int value) { in toLong() method in UnsignedInts 282 return (int) (toLong(dividend) / toLong(divisor)); in divide() 296 return (int) (toLong(dividend) % toLong(divisor)); in remainder()
|
D | UnsignedInteger.java | 21 import static com.google.common.primitives.UnsignedInts.toLong; 186 return toLong(value); in longValue()
|
/external/guava/android/guava/src/com/google/common/primitives/ |
D | UnsignedInts.java | 79 public static long toLong(int value) { in toLong() method in UnsignedInts 282 return (int) (toLong(dividend) / toLong(divisor)); in divide() 296 return (int) (toLong(dividend) % toLong(divisor)); in remainder()
|
D | UnsignedInteger.java | 21 import static com.google.common.primitives.UnsignedInts.toLong; 186 return toLong(value); in longValue()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/ |
D | BlockingIOTerminationStressTest.kt | 30 Thread.sleep(rnd.nextInt(30).toLong()) in testTermination() 33 Thread.sleep(rnd.nextInt(5).toLong()) in testTermination()
|
D | WorkQueueStressTest.kt | 48 producerQueue.add(task(i.toLong()), globalQueue) in testStealing() 85 producerQueue.add(task(i.toLong()), fakeQueue) in testSingleProducerSingleStealer()
|
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/ |
D | NumbersBenchmark.kt | 79 fun primesRx() = generateRxPrimes().take(primes.toLong()).count().blockingGet() in <lambda>() 95 val numbers = rxNumbers().take(natural.toLong()) in <lambda>() 117 return rxNumbers().take(natural.toLong()) in <lambda>()
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/java8/ |
D | FunctionWithDefaultMethod.java | 26 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/ |
D | Zip.java | 188 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/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/src/ |
D | Channel.kt | 67 subscription.request((request - needRequested).toLong()) in consumeEach() 98 s.request((request - wasRequested).toLong()) in consumeEach()
|
/external/caliper/caliper/src/main/java/com/google/caliper/util/ |
D | ShortDuration.java | 61 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/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/ |
D | CoroutineScheduler.kt | 128 if (parkedWorkersStack.compareAndSet(top, updVersion or updIndex.toLong())) return in <lambda>() 156 if (parkedWorkersStack.compareAndSet(top, updVersion or updIndex.toLong())) return in <lambda>() 178 if (parkedWorkersStack.compareAndSet(top, updVersion or updIndex.toLong())) { in <lambda>() 263 .coerceAtMost(MAX_PARK_TIME_NS.toLong()).toInt() in <lambda>() 821 doPark(parkTimeNs.toLong()) in <lambda>()
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | UnsignedIntsTest.java | 55 assertEquals(value, UnsignedInts.toLong(UnsignedInts.checkedCast(value))); in testCheckedCast() 74 assertEquals(value, UnsignedInts.toLong(UnsignedInts.saturatedCast(value))); in testSaturatedCast() 84 assertEquals(a, UnsignedInts.toLong((int) a)); in testToLong()
|
/external/guava/android/guava-tests/test/com/google/common/primitives/ |
D | UnsignedIntsTest.java | 55 assertEquals(value, UnsignedInts.toLong(UnsignedInts.checkedCast(value))); in testCheckedCast() 74 assertEquals(value, UnsignedInts.toLong(UnsignedInts.saturatedCast(value))); in testSaturatedCast() 84 assertEquals(a, UnsignedInts.toLong((int) a)); in testToLong()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/ |
D | AbstractAppleMetaDataBox.java | 91 static long toLong(byte b) { in toLong() method in AbstractAppleMetaDataBox 143 l += toLong(b) << (8 * (length - current++)); in getValue()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/ |
D | IterableFlowAsFlowableTckTest.kt | 16 return Array(if (num >= Integer.MAX_VALUE) 1000000 else num.toInt()) { it.toLong() } in generate()
|