Home
last modified time | relevance | path

Searched refs:hasher (Results 1 – 11 of 11) sorted by relevance

/system/bt/gd/hci/
Daddress_with_type_test.cc38 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST() local
39 EXPECT_EQ(hasher(address_with_type_1), hasher(address_with_type_2)); in TEST()
52 struct std::hash<AddressWithType> hasher; in TEST() local
53 …EXPECT_NE(hasher(address_with_type), hasher(AddressWithType(Address::kEmpty, AddressType::PUBLIC_I… in TEST()
63 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST() local
64 EXPECT_NE(hasher(address_with_type_1), hasher(address_with_type_2)); in TEST()
Daddress_unittest.cc210 struct std::hash<bluetooth::hci::Address> hasher; in TEST() local
211 ASSERT_EQ(hasher(addr1), hasher(addr2)); in TEST()
222 struct std::hash<Address> hasher; in TEST() local
223 ASSERT_NE(hasher(addr1), hasher(Address::kEmpty)); in TEST()
228 struct std::hash<Address> hasher; in TEST() local
229 ASSERT_NE(hasher(addr1), hasher(Address::kAny)); in TEST()
233 struct std::hash<Address> hasher; in TEST() local
234 ASSERT_NE(hasher(Address::kEmpty), hasher(Address::kAny)); in TEST()
/system/update_engine/scripts/update_payload/
Dpayload.py35 def _ReadInt(file_obj, size, is_unsigned, hasher=None): argument
55 common.Read(file_obj, size, hasher=hasher))[0]
79 def ReadFromPayload(self, payload_file, hasher=None): argument
97 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
102 hasher=hasher)
104 hasher=hasher)
113 hasher=hasher)
158 hasher=self.manifest_hasher)
Dcommon.py120 def Read(file_obj, length, offset=None, hasher=None): argument
153 if hasher:
154 hasher.update(data)
Dapplier.py71 hasher = hashlib.sha256()
81 hasher.update(data)
88 actual_hash = hasher.digest()
Dchecker.py1145 offset=self.payload.data_offset, hasher=payload_hasher)
/system/memory/libmemunreachable/
DLeak.h45 std::hash<T> hasher;
46 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
/system/extras/verity/include/verity/
Dbuild_verity_tree.h29 HashTreeBuilder* hasher,
/system/core/fs_mgr/libfs_avb/
Dfs_avb.cpp56 Hasher hasher; in VerifyVbmetaDigest() local
58 hasher.update(vbmeta.data(), vbmeta.size()); in VerifyVbmetaDigest()
62 bool matched = (memcmp(hasher.finalize(), expected_digest, Hasher::DIGEST_SIZE) == 0); in VerifyVbmetaDigest()
72 Hasher hasher; in CalculateVbmetaDigest() local
74 hasher.update(vbmeta.data(), vbmeta.size()); in CalculateVbmetaDigest()
79 digest = BytesToHex(hasher.finalize(), Hasher::DIGEST_SIZE); in CalculateVbmetaDigest()
/system/core/adb/fastdeploy/deploypatchgenerator/
Ddeploy_patch_generator.cpp211 std::hash<uint64_t> hasher; in BuildIdenticalEntries() local
213 seed ^= hasher(digest.first) + 0x9e3779b9 + (seed << 6) + (seed >> 2); in BuildIdenticalEntries()
214 seed ^= hasher(digest.second) + 0x9e3779b9 + (seed << 6) + (seed >> 2); in BuildIdenticalEntries()
/system/update_engine/payload_generator/
Ddelta_diff_utils.cc888 HashCalculator hasher; in InitializePartitionInfo() local
889 TEST_AND_RETURN_FALSE(hasher.UpdateFile(part.path, part.size) == in InitializePartitionInfo()
891 TEST_AND_RETURN_FALSE(hasher.Finalize()); in InitializePartitionInfo()
892 const brillo::Blob& hash = hasher.raw_hash(); in InitializePartitionInfo()