Searched refs:Tstr (Results 1 – 9 of 9) sorted by relevance
/system/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.cpp | 79 result->add(cppbor::Tstr("brand"), cppbor::Tstr("Google")); in CreateDeviceInfo() 80 result->add(cppbor::Tstr("manufacturer"), cppbor::Tstr("Google")); in CreateDeviceInfo() 81 result->add(cppbor::Tstr("product"), cppbor::Tstr("Fake Product")); in CreateDeviceInfo() 82 result->add(cppbor::Tstr("model"), cppbor::Tstr("Fake Model")); in CreateDeviceInfo() 83 result->add(cppbor::Tstr("device"), cppbor::Tstr("Fake Device")); in CreateDeviceInfo() 85 result->add(cppbor::Tstr("bootloader_state"), cppbor::Tstr(*bootloader_state_)); in CreateDeviceInfo() 88 result->add(cppbor::Tstr("vb_state"), cppbor::Tstr(*verified_boot_state_)); in CreateDeviceInfo() 91 result->add(cppbor::Tstr("vbmeta_digest"), cppbor::Bstr(*vbmeta_digest_)); in CreateDeviceInfo() 94 result->add(cppbor::Tstr("os_version"), cppbor::Tstr(std::to_string(*os_version_))); in CreateDeviceInfo() 97 result->add(cppbor::Tstr("system_patch_level"), cppbor::Uint(*os_patchlevel_)); in CreateDeviceInfo() [all …]
|
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 129 EXPECT_EQ("\x60"s, Tstr("").toString()); in TEST() 130 EXPECT_EQ("\x61\x61"s, Tstr("a").toString()); in TEST() 131 EXPECT_EQ("\x61\x41"s, Tstr("A").toString()); in TEST() 132 EXPECT_EQ("\x64\x49\x45\x54\x46"s, Tstr("IETF").toString()); in TEST() 133 EXPECT_EQ("\x62\x22\x5c"s, Tstr("\"\\").toString()); in TEST() 134 EXPECT_EQ("\x62\xc3\xbc"s, Tstr("\xc3\xbc").toString()); in TEST() 135 EXPECT_EQ("\x63\xe6\xb0\xb4"s, Tstr("\xe6\xb0\xb4").toString()); in TEST() 136 EXPECT_EQ("\x64\xf0\x90\x85\x91"s, Tstr("\xf0\x90\x85\x91").toString()); in TEST() 137 EXPECT_EQ("\x64\x01\x02\x03\x04"s, Tstr("\x01\x02\x03\x04").toString()); in TEST() 330 EXPECT_EQ("\x60"s, details::makeItem(new Tstr(string()))->toString()); in TEST() [all …]
|
/system/libcppbor/include/cppbor/ |
D | cppbor.h | 75 class Tstr; variable 139 virtual Tstr* asTstr() { return nullptr; } in asTstr() 140 const Tstr* asTstr() const { return const_cast<Item*>(this)->asTstr(); } in asTstr() 495 class Tstr : public Item { 500 explicit Tstr(std::string v) : mValue(std::move(v)) {} in Tstr() function 503 explicit Tstr(const std::string_view& v) : mValue(v) {} in Tstr() function 506 explicit Tstr(const char* v) : mValue(std::string(v)) {} in Tstr() function 512 explicit Tstr(const std::pair<I1, I2>& pair) : mValue(pair.first, pair.second) {} in Tstr() function 518 Tstr(I1 begin, I2 end) : mValue(begin, end) {} in Tstr() function 520 bool operator==(const Tstr& other) const& { return mValue == other.mValue; } [all …]
|
/system/libcppbor/ |
D | README.md | 33 * `Tstr` corresponds to major type 3, a text string. 53 `std::pair<char iterator, char iterator>` convert to `Tstr`. 86 This creates a map with two entries, with `Tstr` keys "Outer1" and 88 `Array` containing a `Map` and a `Tstr`. The "Outer2" entry has a 93 C++ or C string, a `Tstr` entry is added. Where the caller provides
|
/system/security/provisioner/ |
D | rkp_factory_extraction_lib_test.cpp | 201 EXPECT_THAT(actualVerifiedDeviceInfo->get("product"), Pointee(Eq(Tstr("gShoe")))); in TEST() 266 const Tstr fingerprint(android::base::GetProperty("ro.build.fingerprint", "")); in TEST()
|
/system/libcppbor/src/ |
D | cppbor.cpp | 405 uint8_t* Tstr::encode(uint8_t* pos, const uint8_t* end) const { in encode() 411 void Tstr::encodeValue(EncodeCallback encodeCallback) const { in encodeValue()
|
D | cppbor_parse.cpp | 307 return handleString<Tstr>(addlData, begin, pos, end, "text string", parseClient); in parseRecursively()
|
/system/security/identity/ |
D | CredentialData.cpp | 279 const cppbor::Tstr* tstr = keyItem->asTstr(); in loadFromDisk() 331 const cppbor::Tstr* ecTstr = ecKeyItem->asTstr(); in loadFromDisk()
|
D | Credential.cpp | 870 const cppbor::Tstr* tstr = ((*array)[0])->asTstr(); in extractDocType()
|