Home
last modified time | relevance | path

Searched refs:blobHandle (Results 1 – 10 of 10) sorted by relevance

/cts/tests/BlobStore/helper-app/src/com/android/cts/blob/helper/
DBlobStoreTestService.java57 public int commit(BlobHandle blobHandle, ParcelFileDescriptor input, int accessTypeFlags, in commit() argument
62 final long sessionId = blobStoreManager.createSession(blobHandle); in commit()
69 Log.d(TAG, "Committing session: " + sessionId + "; blob: " + blobHandle); in commit()
80 public ParcelFileDescriptor openBlob(BlobHandle blobHandle) { in openBlob() argument
84 return blobStoreManager.openBlob(blobHandle); in openBlob()
104 public void acquireLease(BlobHandle blobHandle) { in acquireLease() argument
108 Utils.acquireLease(BlobStoreTestService.this, blobHandle, "Test description"); in acquireLease()
109 assertThat(blobStoreManager.getLeasedBlobs()).contains(blobHandle); in acquireLease()
116 public void releaseLease(BlobHandle blobHandle) { in releaseLease() argument
120 Utils.releaseLease(BlobStoreTestService.this, blobHandle); in releaseLease()
[all …]
/cts/tests/BlobStore/aidl/com/android/cts/blob/
DICommandReceiver.aidl23 int commit(in BlobHandle blobHandle, in ParcelFileDescriptor input, int accessTypeFlags, in commit() argument
25 ParcelFileDescriptor openBlob(in BlobHandle blobHandle); in openBlob() argument
28 void acquireLease(in BlobHandle blobHandle); in acquireLease() argument
29 void releaseLease(in BlobHandle blobHandle); in releaseLease() argument
/cts/hostsidetests/blobstore/test-apps/BlobStoreHostTestHelper/src/com/android/cts/device/blob/
DDataCleanupTest.java111 final BlobHandle blobHandle = getBlobHandleFromArgs(); in testOpenBlob() local
112 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobHandle)) { in testOpenBlob()
119 final BlobHandle blobHandle = getBlobHandleFromArgs(); in testOpenBlob_shouldThrow() local
121 () -> mBlobStoreManager.openBlob(blobHandle)); in testOpenBlob_shouldThrow()
126 final BlobHandle blobHandle = getBlobHandleFromArgs(); in testRecommitBlob() local
127 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobHandle)) { in testRecommitBlob()
130 final long sessionId = createSession(blobHandle); in testRecommitBlob()
160 private void addBlobHandleToResults(BlobHandle blobHandle) { in addBlobHandleToResults() argument
163 Base64.getEncoder().encodeToString(blobHandle.getSha256Digest())); in addBlobHandleToResults()
164 results.putLong(KEY_EXPIRY, blobHandle.getExpiryTimeMillis()); in addBlobHandleToResults()
[all …]
DBaseBlobStoreDeviceTest.java56 protected long createSession(BlobHandle blobHandle) throws Exception { in createSession() argument
57 final long sessionId = mBlobStoreManager.createSession(blobHandle); in createSession()
DDataPersistenceTest.java86 final BlobHandle blobHandle = readBlobHandleFromDisk(); in testCommitSessionAndAcquireLease() local
87 mBlobStoreManager.acquireLease(blobHandle, "test desc"); in testCommitSessionAndAcquireLease()
92 final BlobHandle blobHandle = readBlobHandleFromDisk(); in testOpenBlob() local
93 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobHandle)) { in testOpenBlob()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DAppSearchBlobHandleCtsTest.java44 AppSearchBlobHandle blobHandle = in testCreateBlobHandle() local
46 assertThat(blobHandle.getPackageName()).isEqualTo("package1"); in testCreateBlobHandle()
47 assertThat(blobHandle.getDatabaseName()).isEqualTo("db1"); in testCreateBlobHandle()
48 assertThat(blobHandle.getNamespace()).isEqualTo("ns"); in testCreateBlobHandle()
49 assertThat(blobHandle.getSha256Digest()).isEqualTo(digest); in testCreateBlobHandle()
117 AppSearchBlobHandle blobHandle = in testBlobHandleToString() local
128 assertThat(blobHandle.toString()).isEqualTo(expectedString); in testBlobHandleToString()
DOpenBlobForReadResponseTest.java123 AppSearchBlobHandle blobHandle = in testAccessPfdAfterClose() local
127 .setResult(blobHandle, mSuccessResult) in testAccessPfdAfterClose()
DOpenBlobForWriteResponseTest.java123 AppSearchBlobHandle blobHandle = in testAccessPfdAfterClose() local
127 .setResult(blobHandle, mSuccessResult) in testAccessPfdAfterClose()
DGenericDocumentCtsTest.java1721 AppSearchBlobHandle blobHandle = in testDocumentGetPropertyNamesWithBlobHandleValue() local
1732 .setPropertyBlobHandle("blobKey1", blobHandle) in testDocumentGetPropertyNamesWithBlobHandleValue()
/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreManagerTest.java1807 BlobHandle blobHandle) throws Exception { in commitSession() argument
1808 commitSession(sessionId, session, blobHandle, true /* expectSuccess */); in commitSession()
1812 BlobHandle blobHandle, boolean expectSuccess) throws Exception { in commitSession() argument
1813 Log.d(TAG, "Committing session: " + sessionId + "; blob: " + blobHandle); in commitSession()