Home
last modified time | relevance | path

Searched refs:hashes (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java124 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()
/frameworks/base/core/java/android/util/
DArraySet.java95 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()
DArrayMap.java124 private static int binarySearchHashes(int[] hashes, int N, int hash) { in binarySearchHashes() argument
126 return ContainerHelpers.binarySearch(hashes, N, hash); in binarySearchHashes()
284 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { in freeArrays() argument
285 if (hashes.length == (BASE_SIZE*2)) { in freeArrays()
289 array[1] = hashes; in freeArrays()
299 } else if (hashes.length == BASE_SIZE) { in freeArrays()
303 array[1] = hashes; in freeArrays()
867 final int[] hashes = mHashes; in hashCode() local
872 result += hashes[i] ^ (value == null ? 0 : value.hashCode()); in hashCode()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DEncryptedBackupTask.java179 Set<ChunkHash> hashes = new HashSet<>(); in getChunkHashes() local
181 hashes.add(new ChunkHash(chunk.hash)); in getChunkHashes()
183 return hashes; in getChunkHashes()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java266 final ArrayList<byte[]> hashes = new ArrayList<>(); in loadFromXml() local
285 hashes.add(decoded); in loadFromXml()
305 mSigHashes = hashes; in loadFromXml()
/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java124 Metadata(long version, ArrayList<byte[]> hashes) { in Metadata() argument
126 sigHashes = hashes; in Metadata()
471 private static void writeSignatureHashArray(DataOutputStream out, ArrayList<byte[]> hashes) in writeSignatureHashArray() argument
474 out.writeInt(hashes.size()); in writeSignatureHashArray()
477 for (byte[] buffer : hashes) { in writeSignatureHashArray()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
DBackupFileBuilderTest.java566 private static ImmutableMap<ChunkHash, EncryptedChunk> getNewChunkMap(ChunkHash... hashes) { in getNewChunkMap() argument
568 for (ChunkHash hash : hashes) { in getNewChunkMap()
/frameworks/base/tools/protologtool/
DREADME.md90 for logging. This is achieved by replacing log message strings with their hashes and only loading t…