Home
last modified time | relevance | path

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

/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreManagerTest.java161 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testGetCreateSession() local
162 blobData.prepare(); in testGetCreateSession()
164 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testGetCreateSession()
168 blobData.delete(); in testGetCreateSession()
174 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testCreateBlobHandle_invalidArguments() local
175 blobData.prepare(); in testCreateBlobHandle_invalidArguments()
176 final BlobHandle handle = blobData.getBlobHandle(); in testCreateBlobHandle_invalidArguments()
189 blobData.delete(); in testCreateBlobHandle_invalidArguments()
210 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testAbandonSession() local
211 blobData.prepare(); in testAbandonSession()
[all …]
DBlobStoreManagerBoundsTest.java61 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testPakageNameExceedsLimit() local
62 blobData.prepare(); in testPakageNameExceedsLimit()
64 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testPakageNameExceedsLimit()
76 blobData.delete(); in testPakageNameExceedsLimit()
82 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testCertificateExceedsLimit() local
83 blobData.prepare(); in testCertificateExceedsLimit()
85 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testCertificateExceedsLimit()
98 blobData.delete(); in testCertificateExceedsLimit()
/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()