Home
last modified time | relevance | path

Searched refs:Hash (Results 1 – 11 of 11) 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/core/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.h38 Scope* parent, const Reference<Type>& superType, const Hash* fileHash);
40 const Hash* getFileHash() const;
142 const Hash* mFileHash;
DAST.h48 AST(const Coordinator* coordinator, const Hash* fileHash);
64 const Hash* getFileHash() const;
205 const Hash* mFileHash;
DCoordinator.cpp263 *ast = new AST(this, &Hash::getHash(path)); in parseOptional()
813 Hash::lookupHash(hashPath, fqName.string(), &error, &fileExists); in checkHash()
824 Hash::clearHash(ast->getFilename()); in checkHash()
DInterface.cpp75 Scope* parent, const Reference<Type>& superType, const Hash* fileHash) in Interface()
82 const Hash* Interface::getFileHash() const { in getFileHash()
DAST.cpp38 AST::AST(const Coordinator* coordinator, const Hash* fileHash) in AST()
60 const Hash* AST::getFileHash() const { in getFileHash()
Dmain.cpp868 out << Hash::getHash(ast->getFilename()).hexString() << " " << fqName.string() << "\n"; in generateHashOutput()
/system/core/logd/
DLogTags.cpp470 size_t Hash = key2tag.hash_function()(Key); in nameToTag_locked() local
471 uint32_t Tag = Hash; in nameToTag_locked()
487 Tag = (Hash >> i); in nameToTag_locked()
489 if ((sizeof(Hash) <= 4) || ((Hash & (uint64_t(-1LL) << 32)) == 0)) { in nameToTag_locked()
490 Tag |= Hash << (32 - i); in nameToTag_locked()
493 Tag = Hash + i - 31; in nameToTag_locked()