Home
last modified time | relevance | path

Searched refs:longValue (Results 1 – 25 of 267) sorted by relevance

1234567891011

/external/proguard/src/proguard/evaluation/value/
DNegatedLongValue.java30 private final LongValue longValue; field in NegatedLongValue
36 public NegatedLongValue(LongValue longValue) in NegatedLongValue() argument
38 this.longValue = longValue; in NegatedLongValue()
46 return longValue; in negate()
56 this.longValue.equals(((NegatedLongValue)object).longValue); in equals()
63 longValue.hashCode(); in hashCode()
69 return "-"+longValue; in toString()
/external/guava/android/guava-tests/test/com/google/common/primitives/
DUnsignedLongTest.java63 UnsignedLongs.toString(value), value, UnsignedLong.fromLongBits(value).longValue()); in testAsUnsignedAndLongValueAreInverses()
84 assertEquals(value, UnsignedLong.valueOf(value).longValue()); in testValueOfLong()
152 long expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).longValue(); in testPlus()
154 assertEquals(expected, unsignedSum.longValue()); in testPlus()
165 aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).longValue(); in testMinus()
167 assertEquals(expected, unsignedSub.longValue()); in testMinus()
178 aUnsigned.bigIntegerValue().multiply(bUnsigned.bigIntegerValue()).longValue(); in testTimes()
180 assertEquals(expected, unsignedMul.longValue()); in testTimes()
192 aUnsigned.bigIntegerValue().divide(bUnsigned.bigIntegerValue()).longValue(); in testDividedBy()
194 assertEquals(expected, unsignedDiv.longValue()); in testDividedBy()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedLongTest.java63 UnsignedLongs.toString(value), value, UnsignedLong.fromLongBits(value).longValue()); in testAsUnsignedAndLongValueAreInverses()
84 assertEquals(value, UnsignedLong.valueOf(value).longValue()); in testValueOfLong()
152 long expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).longValue(); in testPlus()
154 assertEquals(expected, unsignedSum.longValue()); in testPlus()
165 aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).longValue(); in testMinus()
167 assertEquals(expected, unsignedSub.longValue()); in testMinus()
178 aUnsigned.bigIntegerValue().multiply(bUnsigned.bigIntegerValue()).longValue(); in testTimes()
180 assertEquals(expected, unsignedMul.longValue()); in testTimes()
192 aUnsigned.bigIntegerValue().divide(bUnsigned.bigIntegerValue()).longValue(); in testDividedBy()
194 assertEquals(expected, unsignedDiv.longValue()); in testDividedBy()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DProto2UnknownEnumValueTest.java79 1901, unknown.getField(singularField.getNumber()).getVarintList().get(0).longValue()); in testUnknownEnumValues()
81 1902, unknown.getField(repeatedField.getNumber()).getVarintList().get(0).longValue()); in testUnknownEnumValues()
83 1903, unknown.getField(repeatedField.getNumber()).getVarintList().get(1).longValue()); in testUnknownEnumValues()
105 1901, unknown.getField(singularField.getNumber()).getVarintList().get(0).longValue()); in testExtensionUnknownEnumValues()
107 1902, unknown.getField(repeatedField.getNumber()).getVarintList().get(0).longValue()); in testExtensionUnknownEnumValues()
109 1903, unknown.getField(repeatedField.getNumber()).getVarintList().get(1).longValue()); in testExtensionUnknownEnumValues()
DTestBadIdentifiersLite.java82 .longValue()); in testConflictingFieldNames()
87 .longValue()); in testConflictingFieldNames()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/
DFrequency.java136 obj = Long.valueOf(((Integer) v).longValue()); in addValue()
143 freqTable.put(obj, Long.valueOf(count.longValue() + 1)); in addValue()
170 addValue(Long.valueOf(v.longValue())); in addValue()
220 result += iterator.next().longValue(); in getSumFreq()
247 return getCount(((Integer) v).longValue()); in getCount()
253 result = count.longValue(); in getCount()
397 return getCumFreq(((Integer) v).longValue()); in getCumFreq()
409 result = value.longValue(); in getCumFreq()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DAttributeValueTest.java56 public Object apply(Long longValue) { in stringAttributeValue()
87 public Object apply(Long longValue) { in booleanAttributeValue()
118 public Object apply(Long longValue) { in longAttributeValue()
119 assertThat(longValue).isEqualTo(123456L); in longAttributeValue()
149 public Object apply(Long longValue) { in doubleAttributeValue()
188 public Object apply(Long longValue) { in doubleAttributeValue_DeprecatedMatchFunction()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/
DCalculateLimits.java64 long minLong = min.longValue(); in main()
65 long maxLong = max.longValue(); in main()
95 if(UniversalTimeScale.toLong(min.longValue(), scale) != minLong) { in main()
99 if(UniversalTimeScale.toLong(max.longValue(), scale) != maxLong) { in main()
/external/guava/android/guava/src/com/google/common/primitives/
DUnsignedInteger.java185 public long longValue() { in longValue() method in UnsignedInteger
195 return longValue(); in floatValue()
204 return longValue(); in doubleValue()
209 return BigInteger.valueOf(longValue()); in bigIntegerValue()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedInteger.java185 public long longValue() { in longValue() method in UnsignedInteger
195 return longValue(); in floatValue()
204 return longValue(); in doubleValue()
209 return BigInteger.valueOf(longValue()); in bigIntegerValue()
/external/guava/android/guava-tests/test/com/google/common/math/
DLongMathTest.java59 assertEquals(expectedResult.longValue(), LongMath.ceilingPowerOfTwo(x)); in testCeilingPowerOfTwo()
73 assertEquals(expectedResult.longValue(), LongMath.floorPowerOfTwo(x)); in testFloorPowerOfTwo()
117 .longValue(), in testConstantMaxPowerOfSqrt2Unsigned()
398 assertEquals(LongMath.pow(i, exp), valueOf(i).pow(exp).longValue()); in testPow()
410 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).longValue(); in testDivNonZero()
500 assertEquals(valueOf(x).mod(valueOf(m)).longValue(), LongMath.mod(x, m)); in testMod()
646 assertEquals(expectedResult.longValue(), LongMath.checkedPow(b, exp)); in testCheckedPow()
721 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testFactorial()
742 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testBinomial()
754 assertEquals(BigIntegerMath.binomial(n, k).longValue(), LongMath.binomial(n, k)); in testBinomial_exhaustiveNotOverflowing()
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DLongMathTest.java59 assertEquals(expectedResult.longValue(), LongMath.ceilingPowerOfTwo(x)); in testCeilingPowerOfTwo()
73 assertEquals(expectedResult.longValue(), LongMath.floorPowerOfTwo(x)); in testFloorPowerOfTwo()
117 .longValue(), in testConstantMaxPowerOfSqrt2Unsigned()
398 assertEquals(LongMath.pow(i, exp), valueOf(i).pow(exp).longValue()); in testPow()
410 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).longValue(); in testDivNonZero()
500 assertEquals(valueOf(x).mod(valueOf(m)).longValue(), LongMath.mod(x, m)); in testMod()
646 assertEquals(expectedResult.longValue(), LongMath.checkedPow(b, exp)); in testCheckedPow()
721 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testFactorial()
742 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testBinomial()
754 assertEquals(BigIntegerMath.binomial(n, k).longValue(), LongMath.binomial(n, k)); in testBinomial_exhaustiveNotOverflowing()
[all …]
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DFloatValueImpl.java95 public long longValue() { in longValue() method in FloatValueImpl
141 long longValue = (long)value; in checkedLongValue() local
142 if (longValue != value) { in checkedLongValue()
DDoubleValueImpl.java95 public long longValue() { in longValue() method in DoubleValueImpl
140 long longValue = (long)value; in checkedLongValue() local
141 if (longValue != value) { in checkedLongValue()
DPrimitiveValueImpl.java42 abstract public long longValue(); in longValue() method in PrimitiveValueImpl
68 return longValue(); in checkedLongValue()
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java146 key, (k, value) -> updaterFunction.applyAsLong((value == null) ? 0L : value.longValue())); in updateAndGet()
163 long oldValue = (value == null) ? 0L : value.longValue(); in getAndUpdate()
224 return (result == null) ? 0L : result.longValue(); in remove()
262 return map.values().stream().mapToLong(Long::longValue).sum(); in sum()
328 return noValue.get() ? 0L : result.longValue(); in putIfAbsent()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipUtilTest.java173 assertEquals(0, big0.longValue()); in testLongToBig()
174 assertEquals(1, big1.longValue()); in testLongToBig()
175 assertEquals(0xFFFFFFFFL, big2.longValue()); in testLongToBig()
176 assertEquals(0x80000000L, big3.longValue()); in testLongToBig()
177 assertEquals(Long.MAX_VALUE, big4.longValue()); in testLongToBig()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/
DLongGaugeImplTest.java113 LABEL_VALUES, Point.create(Value.longValue(500), TEST_TIME), null))); in getOrCreateTimeSeries()
129 .isEqualTo(Value.longValue(-133)); in getOrCreateTimeSeries_WithNegativePointValues()
151 DEFAULT_LABEL_VALUES, Point.create(Value.longValue(400), TEST_TIME), null))); in getDefaultTimeSeries()
163 LABEL_VALUES, Point.create(Value.longValue(0), TEST_TIME), null))); in removeTimeSeries()
231 LABEL_VALUES, Point.create(Value.longValue(3), TEST_TIME), null)); in multipleMetrics_GetMetric()
234 DEFAULT_LABEL_VALUES, Point.create(Value.longValue(100), TEST_TIME), null)); in multipleMetrics_GetMetric()
237 LABEL_VALUES1, Point.create(Value.longValue(-120), TEST_TIME), null)); in multipleMetrics_GetMetric()
/external/libtextclassifier/jni/com/google/android/textclassifier/
DNamedVariant.java40 private long longValue; field in NamedVariant
58 this.longValue = value; in NamedVariant()
125 return longValue; in getLong()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DAttributeValue.java62 public static AttributeValue longAttributeValue(long longValue) { in longAttributeValue() argument
63 return AttributeValueLong.create(longValue); in longAttributeValue()
196 static AttributeValue create(Long longValue) { in create() argument
198 Utils.checkNotNull(longValue, "longValue")); in create()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatRoundTripTest.java167 s = fmt.format(value.longValue()); in _test()
186 s2 = fmt.format(n.longValue()); in _test()
231 aa = a.longValue(); in proportionalError()
236 bb = b.longValue(); in proportionalError()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatRoundTripTest.java164 s = fmt.format(value.longValue()); in _test()
183 s2 = fmt.format(n.longValue()); in _test()
228 aa = a.longValue(); in proportionalError()
233 bb = b.longValue(); in proportionalError()
/external/smali/smalidea/src/main/java/org/jf/smalidea/debugging/value/
DLazyPrimitiveValue.java67 @Override public long longValue() { in longValue() method in LazyPrimitiveValue
68 return getValue().longValue(); in longValue()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipEightByteInteger.java116 return value.longValue(); in getLongValue()
143 final long val = value.longValue(); in getBytes()
166 return getValue(bytes, offset).longValue(); in getLongValue()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/
DGetValuesTest.java135 long longValue = fieldValue.getLongValue(); in testGetValues001() local
136 logWriter.println("=> Long value = " + longValue); in testGetValues001()
139 assertEquals("Invalid Long value,", expectedLongValue, longValue); in testGetValues001()

1234567891011