/system/tools/hidl/hashing/ |
D | Hash.cpp | 31 const std::vector<uint8_t> Hash::kEmptyHash = std::vector<uint8_t>(SHA256_DIGEST_LENGTH, 0); 33 Hash& Hash::getMutableHash(const std::string& path) { in getMutableHash() 34 static std::map<std::string, Hash> hashes; in getMutableHash() 39 it = hashes.insert(it, {path, Hash(path)}); in getMutableHash() 45 const Hash& Hash::getHash(const std::string& path) { in getHash() 49 void Hash::clearHash(const std::string& path) { in clearHash() 66 Hash::Hash(const std::string& path) : mPath(path), mHash(sha256File(path)) {} in Hash() function in android::Hash 68 std::string Hash::hexString(const std::vector<uint8_t>& hash) { in hexString() 77 std::string Hash::hexString() const { in hexString() 81 const std::vector<uint8_t>& Hash::raw() const { in raw() [all …]
|
D | Android.bp | 19 srcs: ["Hash.cpp"],
|
/system/tools/hidl/hashing/include/hidl-hash/ |
D | Hash.h | 24 struct Hash { struct 28 static const Hash& getHash(const std::string& path); 45 Hash(const std::string& path); 47 static Hash& getMutableHash(const std::string& path);
|
/system/memory/libmemunreachable/ |
D | Allocator.h | 203 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>> 205 std::unordered_map<Key, T, Hash, KeyEqual, Allocator<std::pair<const Key, T>>>; 207 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>> 208 using unordered_set = std::unordered_set<Key, Hash, KeyEqual, Allocator<Key>>;
|
/system/tools/hidl/ |
D | Interface.h | 42 Scope* parent, const Reference<Type>& superType, const Hash* fileHash); 44 const Hash* getFileHash() const; 144 const Hash* mFileHash;
|
D | AST.h | 54 AST(const Coordinator* coordinator, const Hash* fileHash); 71 const Hash* getFileHash() const; 232 const Hash* mFileHash;
|
D | Coordinator.cpp | 256 *ast = new AST(this, &Hash::getHash(path)); in parseOptional() 824 Hash::lookupHash(hashPath, fqName.string(), &error, &fileExists); in checkHash() 841 Hash::clearHash(ast->getFilename()); in checkHash()
|
D | Interface.cpp | 47 Scope* parent, const Reference<Type>& superType, const Hash* fileHash) in Interface() 54 const Hash* Interface::getFileHash() const { in getFileHash()
|
D | AST.cpp | 42 AST::AST(const Coordinator* coordinator, const Hash* fileHash) in AST() 69 const Hash* AST::getFileHash() const { in getFileHash()
|
D | main.cpp | 948 out << Hash::getHash(ast->getFilename()).hexString() << " " << fqName.string() << "\n"; in generateHashOutput()
|
/system/tools/aidl/build/ |
D | message_check_integrity.txt | 4 Above AIDL file(s) has changed, resulting in a different hash. Hash values may
|
/system/core/logd/ |
D | LogTags.cpp | 453 size_t Hash = key2tag.hash_function()(Key); in nameToTag_locked() local 454 uint32_t Tag = Hash; in nameToTag_locked() 470 Tag = (Hash >> i); in nameToTag_locked() 472 if ((sizeof(Hash) <= 4) || ((Hash & (uint64_t(-1LL) << 32)) == 0)) { in nameToTag_locked() 473 Tag |= Hash << (32 - i); in nameToTag_locked() 476 Tag = Hash + i - 31; in nameToTag_locked()
|
/system/tools/aidl/ |
D | generate_ndk.cpp | 335 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethodDefinition() 423 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethodDefinition() 623 if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateServerSource() 730 if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateInterfaceSource() 790 if (!options.Hash().empty()) { in GenerateClientHeader() 826 } else if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateServerHeader() 876 if (!options.Hash().empty()) { in GenerateInterfaceHeader() 877 out << "static inline const std::string " << kHash << " = \"" << options.Hash() << "\";\n"; in GenerateInterfaceHeader() 911 } else if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateInterfaceHeader()
|
D | generate_cpp.cpp | 189 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in BuildMetaMethodDecl() 449 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in DefineClientMetaTransaction() 656 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in HandleServerMetaTransaction() 762 if (!options.Hash().empty()) { in BuildServerSource() 867 if (!options.Hash().empty()) { in BuildClientHeader() 912 if (!options.Hash().empty()) { in BuildServerHeader() 961 if (!options.Hash().empty()) { in BuildInterfaceHeader() 963 code << "const std::string HASH = \"" << options.Hash() << "\";\n"; in BuildInterfaceHeader() 1048 if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in BuildInterfaceHeader()
|
D | options.h | 124 string Hash() const { return hash_; } in Hash() function
|
D | generate_java_binder.cpp | 334 if (!options.Hash().empty()) { in ProxyClass() 777 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in generate_methods() 807 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in generate_methods() 855 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in generate_methods() 1022 if (m->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in generate_default_impl_class() 1065 if (!options.Hash().empty()) { in generate_binder_interface_class() 1067 code << "public static final String HASH = \"" << options.Hash() << "\";\n"; in generate_binder_interface_class()
|
D | aidl.cpp | 652 if (!options.Hash().empty()) { in load_and_validate_aidl()
|