Home
last modified time | relevance | path

Searched refs:blobData (Results 1 – 4 of 4) sorted by relevance

/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreManagerTest.java154 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testGetCreateSession() local
155 blobData.prepare(); in testGetCreateSession()
157 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testGetCreateSession()
161 blobData.delete(); in testGetCreateSession()
167 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testCreateBlobHandle_invalidArguments() local
168 blobData.prepare(); in testCreateBlobHandle_invalidArguments()
169 final BlobHandle handle = blobData.getBlobHandle(); in testCreateBlobHandle_invalidArguments()
182 blobData.delete(); in testCreateBlobHandle_invalidArguments()
203 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testAbandonSession() local
204 blobData.prepare(); in testAbandonSession()
[all …]
/cts/hostsidetests/blobstore/test-apps/BlobStoreHostTestHelper/src/com/android/cts/device/blob/
DAtomTest.java49 final FakeBlobData blobData = new FakeBlobData.Builder(mContext) in testBlobStoreOps() local
54 blobData.prepare(); in testBlobStoreOps()
57 commitBlob(blobData); in testBlobStoreOps()
60 mBlobStoreManager.acquireLease(blobData.getBlobHandle(), "", leaseExpiryMs); in testBlobStoreOps()
63 mBlobStoreManager.openBlob(blobData.getBlobHandle()); in testBlobStoreOps()
65 blobData.delete(); in testBlobStoreOps()
69 private void commitBlob(FakeBlobData blobData) throws Exception { in commitBlob() argument
70 final long sessionId = createSession(blobData.getBlobHandle()); in commitBlob()
72 blobData.writeToSession(session); in commitBlob()
DDataPersistenceTest.java44 final FakeBlobData blobData = new FakeBlobData.Builder(mContext) in testCreateSession() local
48 blobData.prepare(); in testCreateSession()
50 final long sessionId = createSession(blobData.getBlobHandle()); in testCreateSession()
53 blobData.writeToSession(session, 0, PARTIAL_FILE_LENGTH_BYTES); in testCreateSession()
56 writeBlobHandleToDisk(blobData.getBlobHandle()); in testCreateSession()
66 final FakeBlobData blobData = new FakeBlobData.Builder(mContext) in testOpenSessionAndWrite() local
72 blobData.writeToSession(session, PARTIAL_FILE_LENGTH_BYTES, in testOpenSessionAndWrite()
73 blobData.getFileSize() - PARTIAL_FILE_LENGTH_BYTES); in testOpenSessionAndWrite()
DDataCleanupTest.java46 final FakeBlobData blobData = new FakeBlobData.Builder(mContext) in testCreateSession() local
50 blobData.prepare(); in testCreateSession()
52 final long sessionId = createSession(blobData.getBlobHandle()); in testCreateSession()
55 blobData.writeToSession(session, 0, PARTIAL_FILE_LENGTH_BYTES); in testCreateSession()
83 final FakeBlobData blobData = new FakeBlobData.Builder(mContext) in testCommitBlob() local
88 blobData.prepare(); in testCommitBlob()
90 final long sessionId = createSession(blobData.getBlobHandle()); in testCommitBlob()
93 blobData.writeToSession(session); in testCommitBlob()
106 addBlobHandleToResults(blobData.getBlobHandle()); in testCommitBlob()