Home
last modified time | relevance | path

Searched refs:Uint (Results 1 – 8 of 8) sorted by relevance

/system/libcppbor/tests/
Dcppbor_test.cpp62 Uint val(testCase.first); in TEST()
70 EXPECT_EQ("\x00"s, Uint(0u).toString()); in TEST()
71 EXPECT_EQ("\x01"s, Uint(1u).toString()); in TEST()
72 EXPECT_EQ("\x0a"s, Uint(10u).toString()); in TEST()
73 EXPECT_EQ("\x17"s, Uint(23u).toString()); in TEST()
74 EXPECT_EQ("\x18\x18"s, Uint(24u).toString()); in TEST()
75 EXPECT_EQ("\x18\x19"s, Uint(25u).toString()); in TEST()
76 EXPECT_EQ("\x18\x64"s, Uint(100u).toString()); in TEST()
77 EXPECT_EQ("\x19\x03\xe8"s, Uint(1000u).toString()); in TEST()
78 EXPECT_EQ("\x1a\x00\x0f\x42\x40"s, Uint(1000000u).toString()); in TEST()
[all …]
/system/keymaster/contexts/
Dpure_soft_remote_provisioning_context.cpp97 result->add(cppbor::Tstr("system_patch_level"), cppbor::Uint(*os_patchlevel_)); in CreateDeviceInfo()
100 result->add(cppbor::Tstr("boot_patch_level"), cppbor::Uint(*boot_patchlevel_)); in CreateDeviceInfo()
103 result->add(cppbor::Tstr("vendor_patch_level"), cppbor::Uint(*vendor_patchlevel_)); in CreateDeviceInfo()
107 result->add(cppbor::Tstr("version"), cppbor::Uint(csrVersion)); in CreateDeviceInfo()
109 result->add(cppbor::Tstr("fused"), cppbor::Uint(0)); in CreateDeviceInfo()
/system/keymint/common/src/tag/
Dinfo.rs230 tt: TagType::Uint,
305 tt: TagType::Uint,
470 tt: TagType::Uint,
485 tt: TagType::Uint,
500 tt: TagType::Uint,
561 tt: TagType::Uint,
719 tt: TagType::Uint,
734 tt: TagType::Uint,
937 tt: TagType::Uint,
952 tt: TagType::Uint,
[all …]
/system/libcppbor/include/cppbor/
Dcppbor.h72 class Uint; variable
135 virtual Uint* asUint() { return nullptr; } in asUint()
136 const Uint* asUint() const { return const_cast<Item*>(this)->asUint(); } in asUint()
314 class Uint : public Int {
318 explicit Uint(uint64_t v) : mValue(v) {} in Uint() function
320 bool operator==(const Uint& other) const& { return mValue == other.mValue; }
324 Uint* asUint() override { return this; } in asUint()
339 std::unique_ptr<Item> clone() const override { return std::make_unique<Uint>(mValue); } in clone()
823 Uint* asUint() override { return mTaggedItem->asUint(); } in asUint()
1018 p = new Uint(static_cast<uint64_t>(v));
/system/libcppbor/
DREADME.md23 * `Uint` corresponds to major type 0, and can hold unsigned integers
30 * `Int` is an abstract base of `Uint` and `Nint` that facilitates
50 * Signed and unsigned integers convert to `Uint` or `Nint`, as
70 cppbor::Uint val(0);
94 an integer literal or variable, a `Uint` or `Nint` is added, depending
/system/security/provisioner/
Drkp_factory_extraction_lib_test.cpp202 EXPECT_THAT(actualVerifiedDeviceInfo->get("version"), Pointee(Eq(Uint(2)))); in TEST()
258 EXPECT_THAT(csr->get(0 /* version */), Pointee(Eq(Uint(3)))); in TEST()
/system/keymint/wire/src/
Dkeymint.rs932 x if x == TagType::Uint as i32 => TagType::Uint, in tag_type()
1062 Uint = 805306368, enumerator
/system/libcppbor/src/
Dcppbor_parse.cpp66 std::unique_ptr<Item> item = std::make_unique<Uint>(value); in handleUint()