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.cc207 struct std::hash<bluetooth::hci::Address> hasher; in TEST() local
208 EXPECT_EQ(hasher(addr1), hasher(addr2)); in TEST()
219 struct std::hash<Address> hasher; in TEST() local
220 EXPECT_NE(hasher(addr1), hasher(Address::kEmpty)); in TEST()
225 struct std::hash<Address> hasher; in TEST() local
226 EXPECT_NE(hasher(addr1), hasher(Address::kAny)); in TEST()
230 struct std::hash<Address> hasher; in TEST() local
231 EXPECT_NE(hasher(Address::kEmpty), hasher(Address::kAny)); in TEST()
/system/update_engine/scripts/update_payload/
Dpayload.py34 def _ReadInt(file_obj, size, is_unsigned, hasher=None): argument
54 common.Read(file_obj, size, hasher=hasher))[0]
78 def ReadFromPayload(self, payload_file, hasher=None): argument
96 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
101 hasher=hasher)
103 hasher=hasher)
112 hasher=hasher)
158 hasher=self.manifest_hasher)
Dcommon.py124 def Read(file_obj, length, offset=None, hasher=None): argument
157 if hasher:
158 hasher.update(data)
Dapplier.py73 hasher = hashlib.sha256()
83 hasher.update(data)
90 actual_hash = hasher.digest()
Dchecker.py1277 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.cc1042 HashCalculator hasher; in InitializePartitionInfo() local
1043 TEST_AND_RETURN_FALSE(hasher.UpdateFile(part.path, part.size) == in InitializePartitionInfo()
1045 TEST_AND_RETURN_FALSE(hasher.Finalize()); in InitializePartitionInfo()
1046 const brillo::Blob& hash = hasher.raw_hash(); in InitializePartitionInfo()