Home
last modified time | relevance | path

Searched refs:Bool (Results 1 – 9 of 9) sorted by relevance

/hardware/interfaces/identity/support/tests/
Dcppbor_test.cpp108 EXPECT_EQ("\xf4"s, Bool(false).toString()); in TEST()
109 EXPECT_EQ("\xf5"s, Bool(true).toString()); in TEST()
462 EXPECT_NE(val, Bool(false)); in TEST()
475 EXPECT_NE(val, Bool(false)); in TEST()
489 EXPECT_NE(val, Bool(false)); in TEST()
503 EXPECT_NE(val, Bool(false)); in TEST()
508 TEST(EqualityTest, Bool) { in TEST() argument
509 Bool val(false); in TEST()
510 EXPECT_EQ(val, Bool(false)); in TEST()
517 EXPECT_NE(val, Bool(true)); in TEST()
[all …]
DIdentityCredentialSupportTest.cpp69 EXPECT_EQ("true", support::cborPrettyPrint(cppbor::Bool(true).encode())); in TEST()
71 EXPECT_EQ("false", support::cborPrettyPrint(cppbor::Bool(false).encode())); in TEST()
/hardware/interfaces/identity/support/include/cppbor/
Dcppbor.h62 class Bool; variable
590 virtual const Bool* asBool() const { return nullptr; }; in asBool()
598 class Bool : public Simple {
602 explicit Bool(bool v) : mValue(v) {} in Bool() function
604 bool operator==(const Bool& other) const& { return mValue == other.mValue; }
607 const Bool* asBool() const override { return this; } in asBool()
621 virtual std::unique_ptr<Item> clone() const override { return std::make_unique<Bool>(mValue); } in clone()
725 p = new Bool(v);
DREADME.md40 * `Bool` is the only currently-implemented subclass of `Simple`.
56 * `bool` converts to `Bool`.
89 `Bool` value.
/hardware/interfaces/identity/aidl/vts/
DVtsIdentityTestUtils.h72 valueCbor = cppbor::Bool(value).encode(); in TestEntryData()
DVtsHalIdentityEndToEndTest.cpp89 const cppbor::Bool* testCredentialItem = in extractFromTestCredentialData()
/hardware/interfaces/identity/aidl/default/
DIdentityCredential.cpp59 const cppbor::Bool* testCredentialItem = in initialize()
452 const cppbor::Bool* intentToRetainItem = in startRetrieval()
/hardware/interfaces/identity/support/src/
Dcppbor_parse.cpp79 std::unique_ptr<Item> item = std::make_unique<Bool>(value == TRUE); in handleBool()
DIdentityCredentialSupport.cpp311 const cppbor::Bool* asBool = item->asSimple()->asBool(); in cborPrettyPrintInternal()