Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunk/
DChunkTest.java45 mChunkHashA = getHash(CHUNK_A); in setUp()
51 out.write(ChunksMetadataProto.Chunk.HASH, mChunkHashA.getHash()); in testReadFromProto_readsCorrectly()
59 assertThat(chunk.getHash()).isEqualTo(mChunkHashA.getHash()); in testReadFromProto_readsCorrectly()
69 out.write(ChunksMetadataProto.Chunk.HASH, mChunkHashA.getHash()); in testReadFromProto_whenFieldsWrittenInReversedOrder_readsCorrectly()
76 assertThat(chunk.getHash()).isEqualTo(mChunkHashA.getHash()); in testReadFromProto_whenFieldsWrittenInReversedOrder_readsCorrectly()
86 assertThat(chunk.getHash()).asList().hasSize(0); in testReadFromProto_whenEmptyProto_returnsEmptyHash()
93 out.write(ChunksMetadataProto.Chunk.HASH, mChunkHashA.getHash()); in testReadFromProto_whenOnlyHashSet_returnsChunkWithOnlyHash()
100 assertThat(chunk.getHash()).isEqualTo(mChunkHashA.getHash()); in testReadFromProto_whenOnlyHashSet_returnsChunkWithOnlyHash()
114 assertThat(chunk.getHash()).isEqualTo(new byte[] {}); in testReadFromProto_whenOnlyLengthSet_returnsChunkWithOnlyLength()
118 private ChunkHash getHash(String name) { in getHash() method in ChunkTest
DChunkListingMapTest.java54 mChunkHashA = getHash(CHUNK_A); in setUp()
55 mChunkHashB = getHash(CHUNK_B); in setUp()
56 mChunkHashC = getHash(CHUNK_C); in setUp()
87 ChunkHash chunkHashEmpty = getHash(""); in testHasChunk_whenChunkNotInListing_returnsFalse()
188 out.write(ChunksMetadataProto.Chunk.HASH, chunkHash.getHash()); in writeToProtoOutputStream()
193 private 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/services/backup/java/com/android/server/backup/encryption/chunk/
DChunkHash.java43 public byte[] getHash() { in getHash() method in ChunkHash
67 return lexicographicalCompareUnsignedBytes(getHash(), other.getHash()); in compareTo()
DChunk.java51 public byte[] getHash() { in getHash() method in Chunk
DChunkListingMap.java52 entries.put(new ChunkHash(chunk.getHash()), new Entry(start, chunk.getLength())); in readFromProto()
/frameworks/base/services/robotests/backup/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()
DChunkEncryptorTest.java112 byte[] generatedHash = chunk.key().getHash(); in encrypt_generatesHmacOfPlaintext()
/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/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/core/java/android/view/textclassifier/
DSelectionSessionLogger.java299 static int getHash(@Nullable String signature) { in getHash() method in SelectionSessionLogger.SignatureParser
/frameworks/base/telephony/java/android/telephony/
DMbmsDownloadSession.java1127 String downloadTokenFileName = request.getHash() in getDownloadRequestTokenPath()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt62428 Landroid/security/net/config/DirectoryCertificateSource;->getHash(Ljavax/security/auth/x500/X500Pri…
68330 Landroid/telephony/mbms/DownloadRequest;->getHash()Ljava/lang/String;
76824 Landroid/view/textclassifier/SelectionSessionLogger$SignatureParser;->getHash(Ljava/lang/String;)I