Searched refs:Nint (Results 1 – 7 of 7) sorted by relevance
/hardware/interfaces/identity/support/tests/ |
D | cppbor_test.cpp | 86 EXPECT_EQ("\x20"s, Nint(-1).toString()); in TEST() 87 EXPECT_EQ("\x28"s, Nint(-9).toString()); in TEST() 88 EXPECT_EQ("\x29"s, Nint(-10).toString()); in TEST() 89 EXPECT_EQ("\x36"s, Nint(-23).toString()); in TEST() 90 EXPECT_EQ("\x37"s, Nint(-24).toString()); in TEST() 91 EXPECT_EQ("\x38\x18"s, Nint(-25).toString()); in TEST() 92 EXPECT_EQ("\x38\x62"s, Nint(-99).toString()); in TEST() 93 EXPECT_EQ("\x38\x63"s, Nint(-100).toString()); in TEST() 94 EXPECT_EQ("\x39\x03\xe6"s, Nint(-999).toString()); in TEST() 95 EXPECT_EQ("\x39\x03\xe7"s, Nint(-1000).toString()); in TEST() [all …]
|
D | IdentityCredentialSupportTest.cpp | 78 EXPECT_EQ("-42", support::cborPrettyPrint(cppbor::Nint(-42).encode())); in TEST() 81 support::cborPrettyPrint(cppbor::Nint(std::numeric_limits<int64_t>::min()).encode())); in TEST() 97 cppbor::Array array2 = cppbor::Array(cppbor::Tstr("Some text"), cppbor::Nint(-42)); in TEST()
|
/hardware/interfaces/identity/support/include/cppbor/ |
D | cppbor.h | 57 class Nint; variable 116 virtual const Nint* asNint() const { return nullptr; } in asNint() 252 class Nint : public Int { 256 explicit Nint(int64_t v); 258 bool operator==(const Nint& other) const& { return mValue == other.mValue; } 261 const Nint* asNint() const override { return this; } in asNint() 274 virtual std::unique_ptr<Item> clone() const override { return std::make_unique<Nint>(mValue); } in clone() 728 p = new Nint(v);
|
D | README.md | 25 * `Nint` corresponds to major type 1. It can only hold values from -1 30 * `Int` is an abstract base of `Uint` and `Nint` that facilitates 50 * Signed and unsigned integers convert to `Uint` or `Nint`, as 94 an integer literal or variable, a `Uint` or `Nint` is added, depending
|
/hardware/interfaces/identity/support/src/ |
D | cppbor.cpp | 132 Nint::Nint(int64_t v) : mValue(v) { in Nint() function in cppbor::Nint
|
D | cppbor_parse.cpp | 71 std::unique_ptr<Item> item = std::make_unique<Nint>(-1 - static_cast<uint64_t>(value)); in handleNint()
|
/hardware/interfaces/identity/aidl/vts/ |
D | VtsIdentityTestUtils.h | 79 valueCbor = cppbor::Nint(-value).encode(); in TestEntryData()
|