Home
last modified time | relevance | path

Searched refs:SimpleValue (Results 1 – 25 of 40) sorted by relevance

12

/external/cbor-java/src/main/java/co/nstant/in/cbor/model/
DSimpleValue.java5 public class SimpleValue extends Special { class
9 public static final SimpleValue FALSE = new SimpleValue(
11 public static final SimpleValue TRUE = new SimpleValue(SimpleValueType.TRUE);
12 public static final SimpleValue NULL = new SimpleValue(SimpleValueType.NULL);
13 public static final SimpleValue UNDEFINED = new SimpleValue(
18 public SimpleValue(SimpleValueType simpleValueType) { in SimpleValue() method in SimpleValue
24 public SimpleValue(int value) { in SimpleValue() method in SimpleValue
41 if (object instanceof SimpleValue) { in equals()
42 SimpleValue other = (SimpleValue) object; in equals()
/external/cbor-java/src/test/java/co/nstant/in/cbor/model/
DSimpleValueTest.java18 SimpleValue simpleValue = new SimpleValue(i); in testHashcode()
30 SimpleValue simpleValue1 = new SimpleValue(i); in testEquals1()
31 SimpleValue simpleValue2 = new SimpleValue(i); in testEquals1()
38 SimpleValue simpleValue = new SimpleValue(0); in testEquals2()
39 assertFalse(simpleValue.equals(new SimpleValue(1))); in testEquals2()
/external/cbor-java/src/main/java/co/nstant/in/cbor/decoder/
DSpecialDecoder.java7 import co.nstant.in.cbor.model.SimpleValue;
33 return SimpleValue.FALSE; in decode()
35 return SimpleValue.TRUE; in decode()
37 return SimpleValue.NULL; in decode()
39 return SimpleValue.UNDEFINED; in decode()
41 return new SimpleValue(initialByte & 31); in decode()
53 return new SimpleValue(nextSymbol()); in decode()
/external/cbor-java/src/test/java/co/nstant/in/cbor/examples/
DExample44Test.java14 import co.nstant.in.cbor.model.SimpleValue;
27 encoder.encode(SimpleValue.UNDEFINED); in shouldEncode()
36 Assert.assertTrue(dataItem instanceof SimpleValue); in shouldDecode()
37 SimpleValue simpleValue = (SimpleValue) dataItem; in shouldDecode()
38 Assert.assertEquals(SimpleValue.UNDEFINED, simpleValue); in shouldDecode()
DExample42Test.java14 import co.nstant.in.cbor.model.SimpleValue;
27 encoder.encode(SimpleValue.TRUE); in shouldEncode()
36 Assert.assertTrue(dataItem instanceof SimpleValue); in shouldDecode()
37 SimpleValue simpleValue = (SimpleValue) dataItem; in shouldDecode()
38 Assert.assertEquals(SimpleValue.TRUE, simpleValue); in shouldDecode()
DExample47Test.java14 import co.nstant.in.cbor.model.SimpleValue;
21 private static final SimpleValue VALUE = new SimpleValue(255);
38 Assert.assertTrue(dataItem instanceof SimpleValue); in shouldDecode()
39 SimpleValue simpleValue = (SimpleValue) dataItem; in shouldDecode()
DExample45Test.java14 import co.nstant.in.cbor.model.SimpleValue;
21 private static final SimpleValue VALUE = new SimpleValue(16);
37 Assert.assertTrue(dataItem instanceof SimpleValue); in shouldDecode()
38 SimpleValue simpleValue = (SimpleValue) dataItem; in shouldDecode()
DExample46Test.java14 import co.nstant.in.cbor.model.SimpleValue;
21 private static final SimpleValue VALUE = new SimpleValue(24);
37 Assert.assertTrue(dataItem instanceof SimpleValue); in shouldDecode()
38 SimpleValue simpleValue = (SimpleValue) dataItem; in shouldDecode()
DExample43Test.java14 import co.nstant.in.cbor.model.SimpleValue;
27 encoder.encode(SimpleValue.NULL); in shouldEncode()
36 Assert.assertTrue(dataItem instanceof SimpleValue); in shouldDecode()
37 SimpleValue simpleValue = (SimpleValue) dataItem; in shouldDecode()
38 Assert.assertEquals(SimpleValue.NULL, simpleValue); in shouldDecode()
DExample41Test.java14 import co.nstant.in.cbor.model.SimpleValue;
27 encoder.encode(SimpleValue.FALSE); in shouldEncode()
36 Assert.assertTrue(dataItem instanceof SimpleValue); in shouldDecode()
37 SimpleValue simpleValue = (SimpleValue) dataItem; in shouldDecode()
38 Assert.assertEquals(SimpleValue.FALSE, simpleValue); in shouldDecode()
DExample75Test.java17 import co.nstant.in.cbor.model.SimpleValue;
31 .add(SimpleValue.BREAK)
32 .add(SimpleValue.BREAK)
DExample74Test.java17 import co.nstant.in.cbor.model.SimpleValue;
26 .add(SimpleValue.BREAK)
/external/cbor-java/src/main/java/co/nstant/in/cbor/encoder/
DSpecialEncoder.java9 import co.nstant.in.cbor.model.SimpleValue;
34 SimpleValue simpleValue = (SimpleValue) dataItem; in encode()
71 if (!(dataItem instanceof SimpleValue)) { in encode()
74 SimpleValue simpleValueNextByte = (SimpleValue) dataItem; in encode()
DByteStringEncoder.java9 import co.nstant.in.cbor.model.SimpleValue;
26 encoder.encode(SimpleValue.NULL); in encode()
DUnicodeStringEncoder.java9 import co.nstant.in.cbor.model.SimpleValue;
27 encoder.encode(SimpleValue.NULL); in encode()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestJsonSerialize2.java26 static class SimpleValue { class in TestJsonSerialize2
29 public SimpleValue(String str) { value = str; } in SimpleValue() method in TestJsonSerialize2.SimpleValue
33 static class ActualValue extends SimpleValue
48 static class SimpleValueSerializer extends JsonSerializer<SimpleValue> {
50 public void serialize(SimpleValue value, JsonGenerator jgen, SerializerProvider provider) in serialize()
56 @JsonSerialize(contentAs=SimpleValue.class)
59 @JsonSerialize(contentAs=SimpleValue.class)
70 @JsonSerialize(contentAs=SimpleValue.class)
90 @JsonSerialize(contentAs=SimpleValue.class)
/external/cbor-java/src/test/java/co/nstant/in/cbor/decoder/
DSimpleValueDecoderTest.java15 import co.nstant.in.cbor.model.SimpleValue;
24 encoder.encode(SimpleValue.TRUE); in shouldDecodeBoolean()
25 encoder.encode(SimpleValue.FALSE); in shouldDecodeBoolean()
38 SimpleValue simpleValue = (SimpleValue) special; in shouldDecodeBoolean()
/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp54 struct SimpleValue { struct
57 SimpleValue(Instruction *I) : Inst(I) { in SimpleValue() function
80 template <> struct DenseMapInfo<SimpleValue> {
81 static inline SimpleValue getEmptyKey() { in getEmptyKey()
84 static inline SimpleValue getTombstoneKey() { in getTombstoneKey()
87 static unsigned getHashValue(SimpleValue Val);
88 static bool isEqual(SimpleValue LHS, SimpleValue RHS);
92 unsigned DenseMapInfo<SimpleValue>::getHashValue(SimpleValue Val) { in getHashValue()
139 bool DenseMapInfo<SimpleValue>::isEqual(SimpleValue LHS, SimpleValue RHS) { in isEqual()
255 BumpPtrAllocator, ScopedHashTableVal<SimpleValue, Value *>> AllocatorTy;
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp96 struct SimpleValue { struct
99 SimpleValue(Instruction *I) : Inst(I) { in SimpleValue() function
125 template <> struct DenseMapInfo<SimpleValue> {
126 static inline SimpleValue getEmptyKey() { in getEmptyKey()
130 static inline SimpleValue getTombstoneKey() { in getTombstoneKey()
134 static unsigned getHashValue(SimpleValue Val);
135 static bool isEqual(SimpleValue LHS, SimpleValue RHS);
203 static unsigned getHashValueImpl(SimpleValue Val) { in getHashValueImpl()
291 unsigned DenseMapInfo<SimpleValue>::getHashValue(SimpleValue Val) { in getHashValue()
303 static bool isEqualImpl(SimpleValue LHS, SimpleValue RHS) { in isEqualImpl()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp98 struct SimpleValue { struct
101 SimpleValue(Instruction *I) : Inst(I) { in SimpleValue() argument
127 template <> struct DenseMapInfo<SimpleValue> {
128 static inline SimpleValue getEmptyKey() { in getEmptyKey()
132 static inline SimpleValue getTombstoneKey() { in getTombstoneKey()
136 static unsigned getHashValue(SimpleValue Val);
137 static bool isEqual(SimpleValue LHS, SimpleValue RHS);
190 static unsigned getHashValueImpl(SimpleValue Val) { in getHashValueImpl()
289 unsigned DenseMapInfo<SimpleValue>::getHashValue(SimpleValue Val) { in getHashValue()
301 static bool isEqualImpl(SimpleValue LHS, SimpleValue RHS) { in isEqualImpl()
[all …]
/external/cbor-java/src/main/java/co/nstant/in/cbor/builder/
DByteStringBuilder.java3 import co.nstant.in.cbor.model.SimpleValue;
18 getParent().addChunk(SimpleValue.BREAK); in end()
DUnicodeStringBuilder.java3 import co.nstant.in.cbor.model.SimpleValue;
18 getParent().addChunk(SimpleValue.BREAK); in end()
DAbstractBuilder.java17 import co.nstant.in.cbor.model.SimpleValue;
57 return SimpleValue.TRUE; in convert()
59 return SimpleValue.FALSE; in convert()
/external/llvm/docs/TableGen/
DLangRef.rst179 Value: `SimpleValue` `ValueSuffix`*
196 :token:`SimpleValue` has a number of forms:
200 SimpleValue: `TokIdentifier`
245 SimpleValue: `TokInteger`
250 SimpleValue: `TokString`+
256 SimpleValue: `TokCodeFragment`
261 SimpleValue: "?"
266 SimpleValue: "{" `ValueList` "}"
274 SimpleValue: `ClassID` "<" `ValueListNE` ">"
281 SimpleValue: "[" `ValueList` "]" ["<" `Type` ">"]
[all …]
/external/cbor-java/src/test/java/co/nstant/in/cbor/builder/
DArrayBuilderTest.java16 import co.nstant.in.cbor.model.SimpleValue;
32 assertTrue(array.getDataItems().get(0) instanceof SimpleValue); in shouldAddBoolean() local
33 assertTrue(array.getDataItems().get(1) instanceof SimpleValue); in shouldAddBoolean() local

12