Home
last modified time | relevance | path

Searched refs:UnsignedInteger (Results 1 – 25 of 49) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedIntegerTest.java62 UnsignedInts.toString(value), value, UnsignedInteger.fromIntBits(value).intValue()); in testFromIntBitsAndIntValueAreInverses()
70 UnsignedInts.toString(value), expected, UnsignedInteger.fromIntBits(value).longValue()); in testFromIntBitsLongValue()
80 assertEquals(value, UnsignedInteger.valueOf(value).longValue()); in testValueOfLong()
94 assertEquals(value, UnsignedInteger.valueOf(BigInteger.valueOf(value)).longValue()); in testValueOfBigInteger()
104 UnsignedInteger unsignedValue = UnsignedInteger.fromIntBits(value); in testToString()
113 UnsignedInteger value = UnsignedInteger.fromIntBits(l); in testToStringRadix()
123 UnsignedInteger value = UnsignedInteger.fromIntBits(l); in testToStringRadixQuick()
131 UnsignedInteger unsignedValue = UnsignedInteger.fromIntBits(value); in testFloatValue()
138 UnsignedInteger unsignedValue = UnsignedInteger.fromIntBits(value); in testDoubleValue()
146 UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a); in testPlus()
[all …]
/external/guava/android/guava-tests/test/com/google/common/primitives/
DUnsignedIntegerTest.java62 UnsignedInts.toString(value), value, UnsignedInteger.fromIntBits(value).intValue()); in testFromIntBitsAndIntValueAreInverses()
70 UnsignedInts.toString(value), expected, UnsignedInteger.fromIntBits(value).longValue()); in testFromIntBitsLongValue()
80 assertEquals(value, UnsignedInteger.valueOf(value).longValue()); in testValueOfLong()
94 assertEquals(value, UnsignedInteger.valueOf(BigInteger.valueOf(value)).longValue()); in testValueOfBigInteger()
104 UnsignedInteger unsignedValue = UnsignedInteger.fromIntBits(value); in testToString()
113 UnsignedInteger value = UnsignedInteger.fromIntBits(l); in testToStringRadix()
123 UnsignedInteger value = UnsignedInteger.fromIntBits(l); in testToStringRadixQuick()
131 UnsignedInteger unsignedValue = UnsignedInteger.fromIntBits(value); in testFloatValue()
138 UnsignedInteger unsignedValue = UnsignedInteger.fromIntBits(value); in testDoubleValue()
146 UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a); in testPlus()
[all …]
/external/guava/android/guava/src/com/google/common/primitives/
DUnsignedInteger.java42 public final class UnsignedInteger extends Number implements Comparable<UnsignedInteger> { class
43 public static final UnsignedInteger ZERO = fromIntBits(0);
44 public static final UnsignedInteger ONE = fromIntBits(1);
45 public static final UnsignedInteger MAX_VALUE = fromIntBits(-1);
49 private UnsignedInteger(int value) { in UnsignedInteger() method in UnsignedInteger
66 public static UnsignedInteger fromIntBits(int bits) { in fromIntBits()
67 return new UnsignedInteger(bits); in fromIntBits()
74 public static UnsignedInteger valueOf(long value) { in valueOf()
88 public static UnsignedInteger valueOf(BigInteger value) { in valueOf()
104 public static UnsignedInteger valueOf(String string) { in valueOf()
[all …]
/external/guava/guava/src/com/google/common/primitives/
DUnsignedInteger.java42 public final class UnsignedInteger extends Number implements Comparable<UnsignedInteger> { class
43 public static final UnsignedInteger ZERO = fromIntBits(0);
44 public static final UnsignedInteger ONE = fromIntBits(1);
45 public static final UnsignedInteger MAX_VALUE = fromIntBits(-1);
49 private UnsignedInteger(int value) { in UnsignedInteger() method in UnsignedInteger
66 public static UnsignedInteger fromIntBits(int bits) { in fromIntBits()
67 return new UnsignedInteger(bits); in fromIntBits()
74 public static UnsignedInteger valueOf(long value) { in valueOf()
88 public static UnsignedInteger valueOf(BigInteger value) { in valueOf()
104 public static UnsignedInteger valueOf(String string) { in valueOf()
[all …]
/external/cbor-java/src/test/java/co/nstant/in/cbor/model/
DUnsignedIntegerTest.java19 shouldEncodeAndDecode(String.valueOf(i), new UnsignedInteger(i)); in shouldEncodeAndDecode()
21 shouldEncodeAndDecode(String.valueOf(maxInteger), new UnsignedInteger(maxInteger)); in shouldEncodeAndDecode()
26 new UnsignedInteger(-1); in shouldNotAcceptNegativeValues()
31 UnsignedInteger unsignedInteger = new UnsignedInteger(BigInteger.ZERO); in testToString()
37 UnsignedInteger unsignedInteger = new UnsignedInteger(BigInteger.ZERO); in testEquals1()
44 UnsignedInteger unsignedInteger1 = new UnsignedInteger(BigInteger.valueOf(i)); in testEquals2()
45 UnsignedInteger unsignedInteger2 = new UnsignedInteger(BigInteger.valueOf(i)); in testEquals2()
52 UnsignedInteger unsignedInteger = new UnsignedInteger(BigInteger.ZERO); in testEquals3()
58 UnsignedInteger unsignedInteger = new UnsignedInteger(BigInteger.ZERO); in testHashcode()
DRationalNumberTest.java13 new RationalNumber(null, new UnsignedInteger(1)); in shouldThrowIfNumeratorIsNull()
18 new RationalNumber(new UnsignedInteger(1), null); in shouldThrowIfDenominatorIsNull()
23 new RationalNumber(new UnsignedInteger(1), new UnsignedInteger(0)); in shouldThrowIfDenominatorIsZero()
28 UnsignedInteger one = new UnsignedInteger(1); in shouldSetNumeratorAndDenominator()
29 UnsignedInteger two = new UnsignedInteger(2); in shouldSetNumeratorAndDenominator()
/external/cbor-java/src/main/java/co/nstant/in/cbor/decoder/
DUnsignedIntegerDecoder.java7 import co.nstant.in.cbor.model.UnsignedInteger;
9 public class UnsignedIntegerDecoder extends AbstractDecoder<UnsignedInteger> {
16 public UnsignedInteger decode(int initialByte) throws CborException { in decode()
17 return new UnsignedInteger(getLengthAsBigInteger(initialByte)); in decode()
/external/cbor-java/src/test/java/co/nstant/in/cbor/
DEncoderDecoderTest.java10 import co.nstant.in.cbor.model.UnsignedInteger;
16 UnsignedInteger a = new UnsignedInteger(1); in test()
29 UnsignedInteger a = new UnsignedInteger(1); in testTagging()
DDatemItemListenerTest.java12 import co.nstant.in.cbor.model.UnsignedInteger;
28 assertTrue(dataItem instanceof UnsignedInteger); in shouldDecodeZero()
/external/cbor-java/src/test/java/co/nstant/in/cbor/encoder/
DRationalNumberEncoderTest.java18 import co.nstant.in.cbor.model.UnsignedInteger;
22 private static final UnsignedInteger ONE = new UnsignedInteger(1);
23 private static final UnsignedInteger TWO = new UnsignedInteger(2);
/external/cbor-java/src/test/java/co/nstant/in/cbor/builder/
DMapBuilderTest.java15 import co.nstant.in.cbor.model.UnsignedInteger;
40 .putMap(new UnsignedInteger(15)) in testMapBuilder()
46 .putArray(new UnsignedInteger(18)) in testMapBuilder()
51 .startArray(new UnsignedInteger(2)).end() in testMapBuilder()
76 assertEquals(keys[1], new UnsignedInteger(1)); in startMapInMap()
/external/cbor-java/src/main/java/co/nstant/in/cbor/model/
DUnsignedInteger.java5 public class UnsignedInteger extends Number { class
7 public UnsignedInteger(long value) { in UnsignedInteger() method in UnsignedInteger
12 public UnsignedInteger(BigInteger value) { in UnsignedInteger() method in UnsignedInteger
/external/cbor-java/src/test/java/co/nstant/in/cbor/decoder/
DCborDecoderTest.java22 import co.nstant.in.cbor.model.UnsignedInteger;
146 …assertEquals(new RationalNumber(new UnsignedInteger(1), new UnsignedInteger(2)), decoder.decodeNex… in shouldDecodeRationalNumber()
155 UnsignedInteger expected = new UnsignedInteger(2); in shouldDecodeTaggedTags()
175 … RationalNumber expected = new RationalNumber(new UnsignedInteger(1), new UnsignedInteger(2)); in shouldDecodeTaggedRationalNumber()
DUnsignedIntegerDecoderTest.java19 import co.nstant.in.cbor.model.UnsignedInteger;
38 assertTrue(dataItem instanceof UnsignedInteger); in shouldDecodeBigNumbers()
39 assertEquals(value, ((UnsignedInteger) dataItem).getValue()); in shouldDecodeBigNumbers()
DMapDecoderTest.java14 import co.nstant.in.cbor.model.UnsignedInteger;
41 assertEquals(map.get(new UnsignedInteger(1)), new UnsignedInteger(2)); in shouldUseLastOfDuplicateKeysByDefault()
/external/cbor-java/src/main/java/co/nstant/in/cbor/encoder/
DUnsignedIntegerEncoder.java8 import co.nstant.in.cbor.model.UnsignedInteger;
10 public class UnsignedIntegerEncoder extends AbstractEncoder<UnsignedInteger> {
17 public void encode(UnsignedInteger dataItem) throws CborException { in encode()
/external/llvm-project/flang/include/flang/Common/
Dformat.h46 UnsignedInteger, // value in integerValue_ in ENUM_CLASS() argument
182 previousTokenWasInt_ = token_.kind() == TokenKind::UnsignedInteger; in NextToken()
217 token_.set_kind(TokenKind::UnsignedInteger); in NextToken()
449 if (token_.kind() == TokenKind::UnsignedInteger) { in check_w()
470 if (token_.kind() != TokenKind::UnsignedInteger) { in check_m()
488 if (token_.kind() != TokenKind::UnsignedInteger) { in check_d()
501 if (token_.kind() != TokenKind::UnsignedInteger) { in check_e()
539 if (token_.kind() == TokenKind::UnsignedInteger) { in Check()
611 if (token_.kind() == TokenKind::UnsignedInteger) { in Check()
638 if (token_.kind() != TokenKind::UnsignedInteger) { in Check()
[all …]
/external/perfetto/src/trace_processor/importers/ftrace/
Dbinder_tracker.cc108 inserter->AddArg(calling_tid_, Variadic::UnsignedInteger(tid)); in Transaction()
167 inserter->AddArg(dest_thread_, Variadic::UnsignedInteger(pid)); in TransactionReceived()
171 Variadic::UnsignedInteger(reply_slice_id->value)); in TransactionReceived()
182 inserter->AddArg(dest_slice_id_, Variadic::UnsignedInteger( in TransactionReceived()
245 inserter->AddArg(data_size_, Variadic::UnsignedInteger(data_size)); in TransactionAllocBuf()
246 inserter->AddArg(offsets_size_, Variadic::UnsignedInteger(offsets_size)); in TransactionAllocBuf()
/external/cbor-java/src/main/java/co/nstant/in/cbor/builder/
DAbstractBuilder.java21 import co.nstant.in.cbor.model.UnsignedInteger;
41 return new UnsignedInteger(value); in convert()
51 return new UnsignedInteger(value); in convert()
/external/cbor-java/src/test/java/co/nstant/in/cbor/examples/
DExample49Test.java16 import co.nstant.in.cbor.model.UnsignedInteger;
29 DataItem di = new UnsignedInteger(1363896240); in Example49Test()
DExample12Test.java16 import co.nstant.in.cbor.model.UnsignedInteger;
27 encoder.encode(new UnsignedInteger(new BigInteger( in shouldEncode()
/external/cbor-java/src/main/java/co/nstant/in/cbor/
DCborEncoder.java24 import co.nstant.in.cbor.model.UnsignedInteger;
93 unsignedIntegerEncoder.encode((UnsignedInteger) dataItem); in encode()
/external/guava/android/guava-testlib/test/com/google/common/testing/anotherpackage/
DForwardingWrapperTesterTest.java27 import com.google.common.primitives.UnsignedInteger;
443 UnsignedInteger ui, in foo()
475 UnsignedInteger ui, in foo()
/external/guava/guava-testlib/test/com/google/common/testing/anotherpackage/
DForwardingWrapperTesterTest.java27 import com.google.common.primitives.UnsignedInteger;
443 UnsignedInteger ui, in foo()
475 UnsignedInteger ui, in foo()
/external/perfetto/src/trace_processor/importers/proto/
Dtrack_event_parser.cc88 Variadic::UnsignedInteger(value)); in AddUnsignedInteger()
1060 Variadic::UnsignedInteger(legacy_event_.unscoped_id())); in ParseLegacyEventAsRawEvent()
1064 Variadic::UnsignedInteger(legacy_event_.global_id())); in ParseLegacyEventAsRawEvent()
1068 Variadic::UnsignedInteger(legacy_event_.local_id())); in ParseLegacyEventAsRawEvent()
1121 Variadic::UnsignedInteger(*legacy_passthrough_utid_), in ParseTrackEventArgs()
1167 Variadic::UnsignedInteger(annotation.uint_value())); in ParseDebugAnnotationValue()
1316 Variadic::UnsignedInteger(line_number)); in ParseTaskExecutionArgs()
1343 Variadic::UnsignedInteger(line_number)); in AddSourceLocationArgs()
1625 Variadic::UnsignedInteger(decoder.crash_trace_id())); in ParseChromeProcessDescriptor()

12