Home
last modified time | relevance | path

Searched refs:getHash (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunk/
DChunkListingMapTest.java37 private static final ChunkHash CHUNK_A_HASH = getHash("CHUNK_A");
38 private static final ChunkHash CHUNK_B_HASH = getHash("CHUNK_B");
39 private static final ChunkHash CHUNK_C_HASH = getHash("CHUNK_C");
65 assertThat(mChunkListingMap.hasChunk(getHash("CHUNK_D"))).isFalse(); in hasChunk_isFalseForNonexistentChunks()
66 assertThat(mChunkListingMap.hasChunk(getHash(""))).isFalse(); in hasChunk_isFalseForNonexistentChunks()
91 assertThat(mChunkListingMap.getChunkEntry(getHash("Hey"))).isNull(); in getChunkListing_isNullForNonExistentChunks()
97 chunkListing.chunks[0] = newChunk(CHUNK_A_HASH.getHash(), CHUNK_A_LENGTH); in createFromFixture()
98 chunkListing.chunks[1] = newChunk(CHUNK_B_HASH.getHash(), CHUNK_B_LENGTH); in createFromFixture()
99 chunkListing.chunks[2] = newChunk(CHUNK_C_HASH.getHash(), CHUNK_C_LENGTH); in createFromFixture()
103 private static ChunkHash getHash(String name) { in getHash() method in ChunkListingMapTest
DChunkHashTest.java42 byte[] hash = chunkHash.getHash(); in testGetHash_returnsHash()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java183 setupCarrierConfigCerts(getHash(CERT_1), getHash(CERT_2)); in setupCarrierPrivilegesTrackerWithCarrierConfigUids()
191 setupSimLoadedCerts(getHash(CERT_1), getHash(CERT_2)); in setupCarrierPrivilegesTrackerWithSimLoadedUids()
276 new String[] {getHash(CERT_1), getHash(CERT_2)}); in testCarrierConfigUpdated()
330 .thenReturn(Arrays.asList(getHash(CERT_1), getHash(CERT_2))); in testSimCardStateChanged()
348 .thenReturn(Arrays.asList(getHash(CERT_1), getHash(CERT_2))); in testSimApplicationStateChanged()
397 setupCarrierConfigCerts(getHash(CERT_1)); in testPackageAdded()
411 setupCarrierConfigCerts(getHash(CERT_1), getHash(CERT_2)); in testPackageAddedMultipleUsers()
427 setupCarrierConfigCerts(getHash(CERT_1), getHash(CERT_2)); in testPackageReplaced()
444 setupCarrierConfigCerts(getHash(CERT_1), getHash(CERT_2)); in testPackageAddedOrReplacedNoSignatures()
465 setupCarrierConfigCerts(getHash(CERT_1), getHash(CERT_2)); in testPackageAddedOrReplacedSignatureChanged()
[all …]
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunk/
DChunkHash.java44 public byte[] getHash() { in getHash() method in ChunkHash
68 return lexicographicalCompareUnsignedBytes(getHash(), other.getHash()); in compareTo()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/kv/
DKeyValueListingBuilderTest.java84 assertThat(listing.entries[0].hash).isEqualTo(TEST_HASH_1.getHash()); in build_returnsCorrectListing()
100 assertThat(listing.entries[0].hash).isEqualTo(TEST_HASH_1.getHash()); in addAll_addsAllPairsInMap()
102 assertThat(listing.entries[1].hash).isEqualTo(TEST_HASH_2.getHash()); in addAll_addsAllPairsInMap()
DDecryptedChunkKvOutputTest.java105 .forEachOrdered(hash -> digest.update(hash.getHash())); in getDigest_returnsDigestOfSortedHashes()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
DChunkHasherTest.java56 byte[] hash = chunkHash.getHash(); in computeHash_returnsHmacForData()
67 byte[] hash = mChunkHasher.computeHash(TEST_DATA).getHash(); in computeHash_generates256BitHmac()
DProtoStoreTest.java84 keyValueListing.entries[0].hash = TEST_HASH_1.getHash(); in differentStoreTypes_operateSimultaneouslyWithoutInterfering()
102 assertThat(actualKeyValueListing.entries[0].hash).isEqualTo(TEST_HASH_1.getHash()); in differentStoreTypes_operateSimultaneouslyWithoutInterfering()
244 chunk.hash = entry.getKey().getHash(); in createChunkListing()
DChunkEncryptorTest.java112 byte[] generatedHash = chunk.key().getHash(); in encrypt_generatesHmacOfPlaintext()
DBackupFileBuilderTest.java610 byte[] chunkHash = encryptedChunk.key().getHash(); in createChunkFor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageWallpaperRenderer.java146 Log.v(TAG, "WallpaperTexture: release 0x" + getHash() in use()
159 private String getHash() { in getHash() method in ImageWallpaperRenderer.WallpaperTexture
169 return "{" + getHash() + ", " + mRefCount.get() + "}"; in toString()
/frameworks/base/core/java/android/security/net/config/
DDirectoryCertificateSource.java140 String hash = getHash(subj);
168 String hash = getHash(subj);
191 private String getHash(X500Principal name) {
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DKvBackupEncrypterTest.java199 messageDigest.update(sortedHashes.get(0).getHash()); in backup_returnsMessageDigestOverChunkHashes()
200 messageDigest.update(sortedHashes.get(1).getHash()); in backup_returnsMessageDigestOverChunkHashes()
201 messageDigest.update(sortedHashes.get(2).getHash()); in backup_returnsMessageDigestOverChunkHashes()
212 .isEqualTo(getChunkHash(TEST_KEY_1, TEST_VALUE_1).getHash()); in getNewKeyValueListing_noExistingBackup_returnsCorrectListing()
215 .isEqualTo(getChunkHash(TEST_KEY_2, TEST_VALUE_2).getHash()); in getNewKeyValueListing_noExistingBackup_returnsCorrectListing()
DEncryptedFullBackupTaskTest.java95 CryptoTestUtils.newChunk(TEST_CHUNK_HASH_1.getHash(), TEST_CHUNK_LENGTH_1)); in setUp()
102 CryptoTestUtils.newChunk(TEST_CHUNK_HASH_1.getHash(), TEST_CHUNK_LENGTH_1), in setUp()
103 CryptoTestUtils.newChunk(TEST_CHUNK_HASH_2.getHash(), TEST_CHUNK_LENGTH_2)); in setUp()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DBackupFileBuilder.java200 addChunk(chunkHash.getHash(), oldChunk.getLength()); in writeChunkToFileAndListing()
208 addChunk(chunkHash.getHash(), length); in writeChunkToFileAndListing()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/kv/
DKeyValueListingBuilder.java44 entry.hash = hash.getHash(); in addPair()
DDecryptedChunkKvOutput.java84 digest.update(hash.getHash()); in getDigest()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DKvBackupEncrypter.java161 messageDigest.update(hash.getHash()); in createMessageDigest()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/
DCryptoTestUtils.java57 return newChunk(hash.getHash(), length); in newChunk()
/frameworks/base/telephony/java/android/telephony/mbms/
DDownloadRequest.java365 public String getHash() { in getHash() method in DownloadRequest
DMbmsDownloadReceiver.java199 String expectedTokenFileName = request.getHash() + DOWNLOAD_TOKEN_SUFFIX; in verifyIntentContents()
/frameworks/base/telephony/java/android/telephony/
DMbmsDownloadSession.java1060 String downloadTokenFileName = request.getHash() in getDownloadRequestTokenPath()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt62425 Landroid/security/net/config/DirectoryCertificateSource;->getHash(Ljavax/security/auth/x500/X500Pri…
68327 Landroid/telephony/mbms/DownloadRequest;->getHash()Ljava/lang/String;
76821 Landroid/view/textclassifier/SelectionSessionLogger$SignatureParser;->getHash(Ljava/lang/String;)I
Dboot-image-profile.txt17448 HSPLandroid/security/net/config/DirectoryCertificateSource;->getHash(Ljavax/security/auth/x500/X500…