/system/libcppbor/include/cppbor/ |
D | cppbor.h | 73 class Item; variable 125 class Item { 127 virtual ~Item() {} in ~Item() 136 const Int* asInt() const { return const_cast<Item*>(this)->asInt(); } in asInt() 138 const Uint* asUint() const { return const_cast<Item*>(this)->asUint(); } in asUint() 140 const Nint* asNint() const { return const_cast<Item*>(this)->asNint(); } in asNint() 142 const Tstr* asTstr() const { return const_cast<Item*>(this)->asTstr(); } in asTstr() 144 const Bstr* asBstr() const { return const_cast<Item*>(this)->asBstr(); } in asBstr() 146 const Simple* asSimple() const { return const_cast<Item*>(this)->asSimple(); } in asSimple() 148 const Bool* asBool() const { return const_cast<Item*>(this)->asBool(); } in asBool() [all …]
|
D | cppbor_parse.h | 23 using ParseResult = std::tuple<std::unique_ptr<Item> /* result */, const uint8_t* /* newPos */, 170 virtual ParseClient* item(std::unique_ptr<Item>& item, const uint8_t* hdrBegin, 184 virtual ParseClient* itemEnd(std::unique_ptr<Item>& item, const uint8_t* hdrBegin,
|
/system/libcppbor/src/ |
D | cppbor_parse.cpp | 69 std::unique_ptr<Item> item = std::make_unique<Uint>(value); in handleUint() 81 std::unique_ptr<Item> item = std::make_unique<Nint>(-1 - static_cast<int64_t>(value)); in handleNint() 89 std::unique_ptr<Item> item = std::make_unique<Bool>(value == TRUE); in handleBool() 96 std::unique_ptr<Item> item = std::make_unique<Null>(); in handleNull() 112 std::unique_ptr<Item> item = std::make_unique<T>(valueBegin, valueBegin + length); in handleString() 119 static IncompleteItem* cast(Item* item); 122 virtual void add(std::unique_ptr<Item> item) = 0; 123 virtual std::unique_ptr<Item> finalize() && = 0; 133 void add(std::unique_ptr<Item> item) override { in add() 137 virtual std::unique_ptr<Item> finalize() && override { in finalize() [all …]
|
D | cppbor.cpp | 56 bool cborAreAllElementsNonCompound(const Item* compoundItem) { in cborAreAllElementsNonCompound() 60 const Item* entry = (*array)[n].get(); in cborAreAllElementsNonCompound() 91 bool prettyPrintInternal(const Item* item, string& out, size_t indent, size_t maxBStrSize, in prettyPrintInternal() 321 bool Item::operator==(const Item& other) const& { in operator ==() 454 std::unique_ptr<Item> Array::clone() const { in clone() 491 bool Map::keyLess(const Item* a, const Item* b) { in keyLess() 507 void recursivelyCanonicalize(std::unique_ptr<Item>& item) { in recursivelyCanonicalize() 552 std::unique_ptr<Item> Map::clone() const { in clone() 561 std::unique_ptr<Item> SemanticTag::clone() const { in clone() 602 string prettyPrint(const Item* item, size_t maxBStrSize, const vector<string>& mapKeysToNotPrint) { in prettyPrint()
|
/system/libcppbor/ |
D | README.md | 17 LibCppBor represents CBOR data items as instances of the `Item` class or, 18 more precisely, as instances of subclasses of `Item`, since `Item` is a 19 pure interface. The subclasses of `Item` correspond almost one-to-one 35 variable-length array of `Item`s. 37 variable-length array of pairs of `Item`s. 62 The set of `encode` methods in `Item` provide the interface for 65 below) is to construct an `Item` which models the data to be encoded, 92 LibCppBor `Item` subclass instances is done. Where the caller provides a 118 There are several variations of `Item::encode`, all of which 190 * std::unique_ptr<Item> that points to the parsed item, or is nullptr [all …]
|
/system/extras/simpleperf/ |
D | SampleDisplayer.h | 193 struct Item { struct 211 Item item; in AddDisplayFunction() argument 221 Item item; in AddDisplayFunction() 293 std::vector<Item> display_v_;
|
/system/keymaster/include/keymaster/cppcose/ |
D | cppcose.h | 290 ErrMsgOr<bytevec /* payload */> verifyAndParseCoseMac0(const cppbor::Item* macItem, 322 getSenderPubKeyFromCoseEncrypt(const cppbor::Item* encryptItem); 324 getSenderPubKeyFromCoseEncrypt(const std::unique_ptr<cppbor::Item>& encryptItem) { in getSenderPubKeyFromCoseEncrypt() 329 decryptCoseEncrypt(const bytevec& key, const cppbor::Item* encryptItem, const bytevec& aad);
|
/system/security/identity/ |
D | CredentialData.cpp | 143 optional<SecureAccessControlProfile> parseSacp(const cppbor::Item& item) { in parseSacp() 174 optional<AuthKeyData> parseAuthKeyData(const cppbor::Item& item) { in parseAuthKeyData() 210 vector<int32_t> parseAccessControlProfileIds(const cppbor::Item& item) { in parseAccessControlProfileIds() 229 optional<vector<vector<uint8_t>>> parseEncryptedChunks(const cppbor::Item& item) { in parseEncryptedChunks() 314 const std::unique_ptr<cppbor::Item>& item = (*array)[m]; in loadFromDisk() 379 const std::unique_ptr<cppbor::Item>& item = (*array)[m]; in loadFromDisk()
|
/system/security/provisioner/ |
D | rkp_factory_extraction_lib_test.cpp | 49 std::ostream& operator<<(std::ostream& os, const Item& item) { in operator <<() 53 std::ostream& operator<<(std::ostream& os, const std::unique_ptr<Item>& item) { in operator <<() 57 std::ostream& operator<<(std::ostream& os, const Item* item) { in operator <<()
|
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 211 EXPECT_TRUE((details::is_unique_ptr_of_subclass_of_v<Item, std::unique_ptr<Bool>>::value)); in TEST() 212 EXPECT_TRUE((details::is_unique_ptr_of_subclass_of_v<Item, std::unique_ptr<Map>>::value)); in TEST() 213 EXPECT_TRUE((details::is_unique_ptr_of_subclass_of_v<Item, std::unique_ptr<Array>>::value)); in TEST() 215 (details::is_unique_ptr_of_subclass_of_v<Item, std::unique_ptr<SemanticTag>>::value)); in TEST() 716 unique_ptr<Item> item = details::makeItem(10); in TEST() 737 unique_ptr<Item> item = details::makeItem(-10); in TEST() 758 unique_ptr<Item> item = details::makeItem("hello"); in TEST() 779 unique_ptr<Item> item = details::makeItem(vec); in TEST() 799 unique_ptr<Item> item = details::makeItem(false); in TEST() 826 unique_ptr<Item> item(new Map); in TEST() [all …]
|
/system/authgraph/wire/src/ |
D | fragmentation.rs | 43 type Item = Vec<u8>; typedef 44 fn next(&mut self) -> Option<Self::Item> { in next() argument
|
/system/nfc/tools/casimir/src/ |
D | packets.rs | 123 pub fn into_stream(self) -> impl Stream<Item = anyhow::Result<Vec<u8>>> { in into_stream() argument 131 pub type StreamRefMut<'a> = Pin<&'a mut dyn Stream<Item = anyhow::Result<Vec<u8>>>>;
|
/system/security/keystore2/src/ |
D | permission.rs | 196 type Item = KeyPerm; typedef 198 fn next(&mut self) -> Option<Self::Item> { in next() argument 255 type Item = KeyPerm; typedef
|
D | legacy_importer.rs | 897 T: IntoIterator<Item = KeyParameter>, in augment_legacy_characteristics_file_with_key_characteristics() argument
|
/system/secretkeeper/dice_policy/building/src/ |
D | lib.rs | 97 ) -> impl Iterator<Item = Result<Cow<ConstraintSpec>, Error>> { in expand() argument
|
/system/keymaster/cppcose/ |
D | cppcose.cpp | 266 ErrMsgOr<bytevec /* payload */> verifyAndParseCoseMac0(const cppbor::Item* macItem, in verifyAndParseCoseMac0() 492 getSenderPubKeyFromCoseEncrypt(const cppbor::Item* coseEncrypt) { in getSenderPubKeyFromCoseEncrypt() 575 ErrMsgOr<bytevec> decryptCoseEncrypt(const bytevec& key, const cppbor::Item* coseEncrypt, in decryptCoseEncrypt()
|
/system/media/audio_utils/include/audio_utils/ |
D | mutex.h | 680 template <typename Item, typename Payload, size_t N> 683 using item_payload_pair_t = std::pair<thread_atomic<Item>, thread_atomic<Payload>>; 695 void push(const Item& item, const Payload& payload) { in push() 719 bool remove(const Item& item) { in remove()
|