/aosp12/art/test/920-objects/src/art/ |
H A D | Test920.java | 59 int hashes[] = new int[objects.length]; in testObjectHash() local 62 hashes[i] = getObjectHashCode(objects[i]); in testObjectHash() 68 if (hashes[i] != ihash) { in testObjectHash() 69 throw new RuntimeException(objects[i] + ": " + hashes[i] + " vs " + ihash); in testObjectHash() 78 if (hashes[i] != newhash) { in testObjectHash() 79 throw new RuntimeException(objects[i] + ": " + hashes[i] + " vs " + newhash); in testObjectHash()
|
/aosp12/system/tools/hidl/hashing/ |
H A D | Hash.cpp | 34 static std::map<std::string, Hash> hashes; in getMutableHash() local 36 auto it = hashes.find(path); in getMutableHash() 38 if (hashes.find(path) == hashes.end()) { in getMutableHash() 39 it = hashes.insert(it, {path, Hash(path)}); in getMutableHash() 110 auto it = hashes.find(fqName); in lookup() 112 if (it == hashes.end()) { in lookup() 155 file->hashes[fqName].push_back(hash); in readHashFile() 161 std::map<std::string, std::vector<std::string>> hashes; member
|
/aosp12/frameworks/base/services/core/java/com/android/server/backup/ |
H A D | BackupUtils.java | 124 ArrayList<byte[]> hashes = new ArrayList<>(sigs.length); in hashSignatureArray() local 126 hashes.add(hashSignature(s)); in hashSignatureArray() 128 return hashes; in hashSignatureArray() 136 ArrayList<byte[]> hashes = new ArrayList<>(sigs.size()); in hashSignatureArray() local 138 hashes.add(hashSignature(s)); in hashSignatureArray() 140 return hashes; in hashSignatureArray()
|
/aosp12/system/extras/libfec/ |
H A D | fec_verity.cpp | 104 uint64_t hashes = file_size / FEC_BLOCKSIZE; in verity_get_size() local 108 level_hashes[level] = hashes; in verity_get_size() 111 hashes = fec_div_round_up(hashes * padded_digest_size, FEC_BLOCKSIZE); in verity_get_size() 112 total += hashes; in verity_get_size() 115 } while (hashes > 1); in verity_get_size() 241 uint32_t hashes[levels]; in verify_tree() local 243 verity_get_size(data_blocks * FEC_BLOCKSIZE, NULL, hashes, in verify_tree() 250 uint32_t blocks = hashes[levels - i]; in verify_tree() 276 uint32_t blocks = hashes[levels - i]; in verify_tree()
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | ArraySet.java | 95 private int binarySearch(int[] hashes, int hash) { in binarySearch() argument 97 return ContainerHelpers.binarySearch(hashes, mSize, hash); in binarySearch() 249 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { in freeArrays() argument 250 if (hashes.length == (BASE_SIZE * 2)) { in freeArrays() 254 array[1] = hashes; in freeArrays() 266 } else if (hashes.length == BASE_SIZE) { in freeArrays() 270 array[1] = hashes; in freeArrays() 813 final int[] hashes = mHashes; in hashCode() local 816 result += hashes[i]; in hashCode()
|
H A D | ArrayMap.java | 125 private static int binarySearchHashes(int[] hashes, int N, int hash) { in binarySearchHashes() argument 127 return ContainerHelpers.binarySearch(hashes, N, hash); in binarySearchHashes() 285 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { in freeArrays() argument 286 if (hashes.length == (BASE_SIZE*2)) { in freeArrays() 290 array[1] = hashes; in freeArrays() 300 } else if (hashes.length == BASE_SIZE) { in freeArrays() 304 array[1] = hashes; in freeArrays() 868 final int[] hashes = mHashes; in hashCode() local 873 result += hashes[i] ^ (value == null ? 0 : value.hashCode()); in hashCode()
|
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
H A D | VerifyPackageTask.java | 139 List<byte[]> hashes = new LinkedList<>(); in computeHashesOfAllSignatures() local 142 hashes.add(hash); in computeHashesOfAllSignatures() 144 return hashes; in computeHashesOfAllSignatures()
|
/aosp12/packages/modules/Virtualization/authfs/src/fsverity/ |
H A D | builder.rs | 120 let hashes = in calculate_root_hash() localVariable 122 if hashes.len() != 1 { in calculate_root_hash() 125 Ok(hashes.into_iter().next().unwrap()) in calculate_root_hash()
|
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
H A D | EncryptedBackupTask.java | 179 Set<ChunkHash> hashes = new HashSet<>(); in getChunkHashes() local 181 hashes.add(new ChunkHash(chunk.hash)); in getChunkHashes() 183 return hashes; in getChunkHashes()
|
/aosp12/bootable/recovery/fuse_sideload/ |
H A D | fuse_sideload.cpp | 95 hashes; // SHA-256 hash of each block (all zeros if block hasn't been read yet) member 263 const SHA256Digest& blockhash = fd->hashes[block]; in fetch_block() 275 fd->hashes[block] = hash; in fetch_block() 376 fd.hashes.resize(fd.file_blocks); in run_fuse_sideload()
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | ShortcutPackageInfo.java | 267 final ArrayList<byte[]> hashes = new ArrayList<>(); in loadFromXml() local 286 hashes.add(decoded); in loadFromXml() 306 mSigHashes = hashes; in loadFromXml()
|
/aosp12/system/tools/aidl/metadata/include/aidl/ |
H A D | metadata.h | 35 std::vector<std::string> hashes; member
|
/aosp12/system/tools/aidl/metadata/ |
H A D | test.cpp | 40 EXPECT_THAT(info->hashes, ElementsAre("13e24b2fac6a979971819fba2ab0d6d7c4182122", in TEST()
|
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | PackageManagerBackupAgent.java | 124 Metadata(long version, ArrayList<byte[]> hashes) { in Metadata() argument 126 sigHashes = hashes; in Metadata() 473 private static void writeSignatureHashArray(DataOutputStream out, ArrayList<byte[]> hashes) in writeSignatureHashArray() argument 476 out.writeInt(hashes.size()); in writeSignatureHashArray() 479 for (byte[] buffer : hashes) { in writeSignatureHashArray()
|
/aosp12/system/security/ondevice-signing/proto/ |
H A D | odsign_info.proto | 22 // Map of artifact files to their hashes
|
/aosp12/system/tools/aidl/build/ |
H A D | aidl_interface_metadata_singleton.go | 130 "hashes": strings.Join(
|
/aosp12/system/apex/shim/ |
H A D | README.md | 15 file called `hash.txt` with a list of allowed SHA512 hashes of versions shim
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/ |
H A D | LayerState.h | 146 Hashes hashes = OutputLayerState::getDefaultHashes()) 147 : mReader(reader), mToStrings(toStrings), mEquals(equals), mHashes(hashes) {}
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/ |
H A D | BackupFileBuilderTest.java | 566 private static ImmutableMap<ChunkHash, EncryptedChunk> getNewChunkMap(ChunkHash... hashes) { in getNewChunkMap() argument 568 for (ChunkHash hash : hashes) { in getNewChunkMap()
|
/aosp12/system/libhidl/transport/base/1.0/ |
H A D | IBase.hal | 124 * Returns hashes of the source HAL files that define the interfaces of the
|
/aosp12/frameworks/base/tools/protologtool/ |
H A D | README.md | 90 for logging. This is achieved by replacing log message strings with their hashes and only loading t…
|
/aosp12/system/update_engine/ |
H A D | README.md | 70 payload can easily be verified cryptographically (mostly through SHA256 hashes). 85 During the download, the updater client hashes the downloaded bytes and when the 387 help with generating metadata and payload hashes or signing the payloads given
|
/aosp12/system/core/fastboot/fuzzy_fastboot/ |
H A D | README.md | 196 - **value** - The command that hashes a partition. Note that the name of the partition will be appe…
|
/aosp12/bionic/ |
H A D | android-changes-for-ndk-developers.md | 99 ## GNU hashes (Availible in API level >= 23)
|
/aosp12/hardware/interfaces/drm/1.0/ |
H A D | IDrmPlugin.hal | 384 * Set the MAC algorithm to be used for computing hashes in a session.
|