Searched refs:Tstr (Results 1 – 11 of 11) sorted by relevance
/hardware/interfaces/identity/support/tests/ |
D | cppbor_test.cpp | 126 EXPECT_EQ("\x60"s, Tstr("").toString()); in TEST() 127 EXPECT_EQ("\x61\x61"s, Tstr("a").toString()); in TEST() 128 EXPECT_EQ("\x61\x41"s, Tstr("A").toString()); in TEST() 129 EXPECT_EQ("\x64\x49\x45\x54\x46"s, Tstr("IETF").toString()); in TEST() 130 EXPECT_EQ("\x62\x22\x5c"s, Tstr("\"\\").toString()); in TEST() 131 EXPECT_EQ("\x62\xc3\xbc"s, Tstr("\xc3\xbc").toString()); in TEST() 132 EXPECT_EQ("\x63\xe6\xb0\xb4"s, Tstr("\xe6\xb0\xb4").toString()); in TEST() 133 EXPECT_EQ("\x64\xf0\x90\x85\x91"s, Tstr("\xf0\x90\x85\x91").toString()); in TEST() 134 EXPECT_EQ("\x64\x01\x02\x03\x04"s, Tstr("\x01\x02\x03\x04").toString()); in TEST() 272 EXPECT_EQ("\x60"s, details::makeItem(new Tstr(string()))->toString()); in TEST() [all …]
|
D | IdentityCredentialSupportTest.cpp | 59 EXPECT_EQ("'Some text'", support::cborPrettyPrint(cppbor::Tstr("Some text").encode())); in TEST() 61 EXPECT_EQ("''", support::cborPrettyPrint(cppbor::Tstr("").encode())); in TEST() 97 cppbor::Array array2 = cppbor::Array(cppbor::Tstr("Some text"), cppbor::Nint(-42)); in TEST() 143 cppbor::Tstr("foo"), cppbor::Uint(42), in TEST()
|
/hardware/interfaces/identity/support/include/cppbor/ |
D | cppbor.h | 59 class Tstr; variable 117 virtual const Tstr* asTstr() const { return nullptr; } in asTstr() 338 class Tstr : public Item { 343 explicit Tstr(std::string v) : mValue(std::move(v)) {} in Tstr() function 346 explicit Tstr(const std::string_view& v) : mValue(v) {} in Tstr() function 349 explicit Tstr(const char* v) : mValue(std::string(v)) {} in Tstr() function 355 explicit Tstr(const std::pair<I1, I2>& pair) : mValue(pair.first, pair.second) {} in Tstr() function 361 Tstr(I1 begin, I2 end) : mValue(begin, end) {} in Tstr() function 363 bool operator==(const Tstr& other) const& { return mValue == other.mValue; } 366 const Tstr* asTstr() const override { return this; } in asTstr() [all …]
|
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
|
/hardware/interfaces/identity/support/src/ |
D | cppbor.cpp | 162 uint8_t* Tstr::encode(uint8_t* pos, const uint8_t* end) const { in encode() 168 void Tstr::encodeValue(EncodeCallback encodeCallback) const { in encodeValue()
|
D | cppbor_parse.cpp | 238 return handleString<Tstr>(addlData, begin, pos, end, "text string", parseClient); in parseRecursively()
|
/hardware/interfaces/identity/aidl/vts/ |
D | VtsIdentityTestUtils.h | 63 valueCbor = cppbor::Tstr(((const char*)value.data())).encode(); in TestEntryData()
|
D | VtsHalIdentityEndToEndTest.cpp | 88 const cppbor::Tstr* docTypeItem = (*arrayItem)[0]->asTstr(); in extractFromTestCredentialData() 318 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in TEST_P()
|
D | ReaderAuthTests.cpp | 263 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in retrieveData() 518 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in TEST_P()
|
D | UserAuthTests.cpp | 159 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in calcSessionTranscript()
|
/hardware/interfaces/identity/aidl/default/ |
D | IdentityCredential.cpp | 58 const cppbor::Tstr* docTypeItem = (*arrayItem)[0]->asTstr(); in initialize() 439 const cppbor::Tstr* nsKey = nsKeyItem->asTstr(); in startRetrieval() 450 const cppbor::Tstr* nameItem = innerMapKeyItem->asTstr(); in startRetrieval()
|