Home
last modified time | relevance | path

Searched refs:asSimple (Results 1 – 6 of 6) sorted by relevance

/system/keymaster/km_openssl/
Dattestation_record.cpp1512 const cppbor::Simple* simple_value = value_item->asSimple(); in parse_eat_record()
1577 if (value_item->asSimple() == nullptr || !value_item->asSimple()->asBool()->value()) { in parse_eat_record()
1589 ASSERT_OR_RETURN_ERROR((*array_value)[4]->asSimple()->asBool()->value() == false, in parse_eat_record()
1591 verified_or_self_signed = (*array_value)[0]->asSimple()->asBool()->value(); in parse_eat_record()
1593 (*array_value)[1]->asSimple()->asBool()->value(), in parse_eat_record()
1596 (*array_value)[2]->asSimple()->asBool()->value(), in parse_eat_record()
1599 (*array_value)[3]->asSimple()->asBool()->value(), in parse_eat_record()
1732 if (value_item->asSimple() == nullptr || !value_item->asSimple()->asBool()->value()) { in parse_submod_values()
1738 if (value_item->asSimple() == nullptr || !value_item->asSimple()->asBool()->value()) { in parse_submod_values()
1744 if (value_item->asSimple() == nullptr || !value_item->asSimple()->asBool()->value()) { in parse_submod_values()
[all …]
/system/libcppbor/tests/
Dcppbor_test.cpp723 EXPECT_EQ(nullptr, item->asSimple()); in TEST()
744 EXPECT_EQ(nullptr, item->asSimple()); in TEST()
765 EXPECT_EQ(nullptr, item->asSimple()); in TEST()
786 EXPECT_EQ(nullptr, item->asSimple()); in TEST()
806 EXPECT_NE(nullptr, item->asSimple()); in TEST()
814 EXPECT_EQ(cppbor::BOOLEAN, item->asSimple()->simpleType()); in TEST()
816 EXPECT_NE(nullptr, item->asSimple()->asBool()); in TEST()
818 EXPECT_EQ(nullptr, item->asSimple()->asNull()); in TEST()
821 EXPECT_FALSE(item->asSimple()->asBool()->value()); in TEST()
833 EXPECT_EQ(nullptr, item->asSimple()); in TEST()
[all …]
/system/libcppbor/src/
Dcppbor.cpp240 const Bool* asBool = item->asSimple()->asBool(); in prettyPrintInternal()
241 const Null* asNull = item->asSimple()->asNull(); in prettyPrintInternal()
354 return *asSimple() == *(other.asSimple()); in operator ==()
/system/libcppbor/include/cppbor/
Dcppbor.h143 virtual Simple* asSimple() { return nullptr; } in asSimple() function
144 const Simple* asSimple() const { return const_cast<Item*>(this)->asSimple(); } in asSimple() function
830 using Item::asSimple;
831 Simple* asSimple() override { return mTaggedItem->asSimple(); } in asSimple() function
866 Simple* asSimple() override { return this; } in asSimple() function
/system/keymaster/cppcose/
Dcppcose.cpp509 if (!ciphertext->asSimple() || !ciphertext->asSimple()->asNull()) { in getSenderPubKeyFromCoseEncrypt()
/system/security/identity/
DCredentialData.cpp152 const cppbor::Simple* simple = ((*array)[2])->asSimple(); in parseSacp()