Home
last modified time | relevance | path

Searched refs:Hash (Results 1 – 17 of 17) sorted by relevance

/system/tools/hidl/hashing/
DHash.cpp31 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 …]
DAndroid.bp19 srcs: ["Hash.cpp"],
/system/tools/hidl/hashing/include/hidl-hash/
DHash.h24 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/
DAllocator.h203 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/
DInterface.h42 Scope* parent, const Reference<Type>& superType, const Hash* fileHash);
44 const Hash* getFileHash() const;
144 const Hash* mFileHash;
DAST.h54 AST(const Coordinator* coordinator, const Hash* fileHash);
71 const Hash* getFileHash() const;
232 const Hash* mFileHash;
DCoordinator.cpp256 *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()
DInterface.cpp47 Scope* parent, const Reference<Type>& superType, const Hash* fileHash) in Interface()
54 const Hash* Interface::getFileHash() const { in getFileHash()
DAST.cpp42 AST::AST(const Coordinator* coordinator, const Hash* fileHash) in AST()
69 const Hash* AST::getFileHash() const { in getFileHash()
Dmain.cpp948 out << Hash::getHash(ast->getFilename()).hexString() << " " << fqName.string() << "\n"; in generateHashOutput()
/system/tools/aidl/build/
Dmessage_check_integrity.txt4 Above AIDL file(s) has changed, resulting in a different hash. Hash values may
/system/core/logd/
DLogTags.cpp453 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/
Dgenerate_ndk.cpp335 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()
Dgenerate_cpp.cpp189 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()
Doptions.h124 string Hash() const { return hash_; } in Hash() function
Dgenerate_java_binder.cpp334 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()
Daidl.cpp652 if (!options.Hash().empty()) { in load_and_validate_aidl()