Home
last modified time | relevance | path

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

12

/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.java238 carrierConfigRuleString(getHash(CERT_1)), carrierConfigRuleString(getHash(CERT_2))); in setupCarrierPrivilegesTrackerWithCarrierConfigUids()
247 setupSimLoadedRules(ruleWithHashOnly(getHash(CERT_1)), ruleWithHashOnly(getHash(CERT_2))); in setupCarrierPrivilegesTrackerWithSimLoadedUids()
390 carrierConfigRuleString(getHash(CERT_1)), carrierConfigRuleString(getHash(CERT_2))); in testCarrierConfigUpdated()
456 carrierConfigRuleString(getHash(CERT_1), PACKAGE_1), in testCarrierConfigUpdatedExplicitPackageNames()
457 carrierConfigRuleString(getHash(CERT_2), PACKAGE_1)); in testCarrierConfigUpdatedExplicitPackageNames()
469 carrierConfigRuleString(getHash(CERT_1), PACKAGE_1), in testCarrierConfigUpdatedExplicitPackageNames()
470 carrierConfigRuleString(getHash(CERT_2), PACKAGE_1, PACKAGE_2)); in testCarrierConfigUpdatedExplicitPackageNames()
489 setupSimLoadedRules(ruleWithHashOnly(getHash(CERT_1)), ruleWithHashOnly(getHash(CERT_2))); in testSimCardStateChanged()
508 setupSimLoadedRules(ruleWithHashOnly(getHash(CERT_1)), ruleWithHashOnly(getHash(CERT_2))); in testSimApplicationStateChanged()
662 setupSimLoadedRules(ruleWithHashOnly(getHash(CERT_1))); in testSimStateChangedSimStateAbsentThenLoadedWithUpdatedRules()
[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()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DLayerState.cpp67 size_t LayerState::getHash() const { in getHash() function in android::compositionengine::impl::planner::LayerState
73 android::hashCombineSingleHashed(hash, field->getHash()); in getHash()
171 android::hashCombineSingleHashed(hash, layer->getHash()); in getNonBufferHash()
DCachedSet.cpp60 : mState(state), mHash(state->getHash()), mLastUpdate(lastUpdate) {} in Layer()
63 : mFingerprint(layer->getHash()), mLastUpdate(lastUpdate) { in CachedSet()
68 : mFingerprint(layer.getHash()), in CachedSet()
DPredictor.cpp36 if (mLayers[i].getHash() == other[i]->getHash()) { in getApproximateMatch()
/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/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DLayerState.h89 virtual size_t getHash() const = 0;
172 size_t getHash() const override {
223 size_t getHash() const;
DCachedSet.h50 NonBufferHash getHash() const { return mHash; } in getHash() function
/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.java363 public String getHash() { in getHash() method in DownloadRequest
DMbmsDownloadReceiver.java199 String expectedTokenFileName = request.getHash() + DOWNLOAD_TOKEN_SUFFIX; in verifyIntentContents()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DLayerStateTest.cpp98 EXPECT_EQ(lhs.getHash(), rhs.getHash()); in verifyUniqueDifferingFields()
106 EXPECT_NE(lhs.getHash(), rhs.getHash()); in verifyNonUniqueDifferingFields()

12