Searched refs:hashes (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/backup/
H A DBackupUtils.java124 ArrayList<byte[]> hashes = new ArrayList<>(sigs.length);
126 hashes.add(hashSignature(s));
128 return hashes;
136 ArrayList<byte[]> hashes = new ArrayList<>(sigs.size());
138 hashes.add(hashSignature(s));
140 return hashes;
/frameworks/support/collection/src/main/java/androidx/collection/
H A DSimpleArrayMap.java72 private static int binarySearchHashes(int[] hashes, int N, int hash) { argument
74 return ContainerHelpers.binarySearch(hashes, N, hash);
197 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { argument
198 if (hashes.length == (BASE_SIZE*2)) {
202 array[1] = hashes;
212 } else if (hashes.length == BASE_SIZE) {
216 array[1] = hashes;
649 final int[] hashes = mHashes;
654 result += hashes[i] ^ (value == null ? 0 : value.hashCode());
H A DArraySet.java200 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { argument
201 if (hashes.length == (BASE_SIZE * 2)) {
205 array[1] = hashes;
217 } else if (hashes.length == BASE_SIZE) {
221 array[1] = hashes;
619 final int[] hashes = mHashes;
622 result += hashes[i];
/frameworks/base/core/java/android/util/
H A DArrayMap.java102 private static int binarySearchHashes(int[] hashes, int N, int hash) { argument
104 return ContainerHelpers.binarySearch(hashes, N, hash);
228 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { argument
229 if (hashes.length == (BASE_SIZE*2)) {
233 array[1] = hashes;
243 } else if (hashes.length == BASE_SIZE) {
247 array[1] = hashes;
757 final int[] hashes = mHashes;
762 result += hashes[i] ^ (value == null ? 0 : value.hashCode());
H A DArraySet.java211 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { argument
212 if (hashes.length == (BASE_SIZE * 2)) {
216 array[1] = hashes;
228 } else if (hashes.length == BASE_SIZE) {
232 array[1] = hashes;
631 final int[] hashes = mHashes;
634 result += hashes[i];
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutPackageInfo.java266 final ArrayList<byte[]> hashes = new ArrayList<>();
285 hashes.add(decoded);
305 mSigHashes = hashes;
/frameworks/base/services/backup/java/com/android/server/backup/
H A DPackageManagerBackupAgent.java124 Metadata(long version, ArrayList<byte[]> hashes) { argument
126 sigHashes = hashes;
468 private static void writeSignatureHashArray(DataOutputStream out, ArrayList<byte[]> hashes) argument
471 out.writeInt(hashes.size());
474 for (byte[] buffer : hashes) {
499 // This could be a "legacy" block of actual signatures rather than their hashes.
501 // if the blocks are all 256 bits (32 bytes) then we take them to be SHA-256 hashes;
516 // Replace with the hashes.

Completed in 154 milliseconds