Searched refs:hashes (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/core/java/com/android/server/backup/ |
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()
|
/frameworks/base/core/java/android/util/ |
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()
|
D | ArrayMap.java | 124 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/ |
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()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageInfo.java | 266 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/ |
D | PackageManagerBackupAgent.java | 124 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/ |
D | BackupFileBuilderTest.java | 566 private static ImmutableMap<ChunkHash, EncryptedChunk> getNewChunkMap(ChunkHash... hashes) { in getNewChunkMap() argument 568 for (ChunkHash hash : hashes) { in getNewChunkMap()
|
/frameworks/base/tools/protologtool/ |
D | README.md | 90 for logging. This is achieved by replacing log message strings with their hashes and only loading t…
|