Home
last modified time | relevance | path

Searched refs:Tstr (Results 1 – 11 of 11) sorted by relevance

/hardware/interfaces/identity/support/tests/
Dcppbor_test.cpp126 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 …]
DIdentityCredentialSupportTest.cpp59 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/
Dcppbor.h59 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 …]
DREADME.md33 * `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/
Dcppbor.cpp162 uint8_t* Tstr::encode(uint8_t* pos, const uint8_t* end) const { in encode()
168 void Tstr::encodeValue(EncodeCallback encodeCallback) const { in encodeValue()
Dcppbor_parse.cpp238 return handleString<Tstr>(addlData, begin, pos, end, "text string", parseClient); in parseRecursively()
/hardware/interfaces/identity/aidl/vts/
DVtsIdentityTestUtils.h63 valueCbor = cppbor::Tstr(((const char*)value.data())).encode(); in TestEntryData()
DVtsHalIdentityEndToEndTest.cpp88 const cppbor::Tstr* docTypeItem = (*arrayItem)[0]->asTstr(); in extractFromTestCredentialData()
318 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in TEST_P()
DReaderAuthTests.cpp263 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in retrieveData()
518 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in TEST_P()
DUserAuthTests.cpp159 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in calcSessionTranscript()
/hardware/interfaces/identity/aidl/default/
DIdentityCredential.cpp58 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()