Searched refs:blobData (Results 1 – 4 of 4) sorted by relevance
154 final FakeBlobData blobData = new FakeBlobData.Builder(mContext).build(); in testGetCreateSession() local155 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() local168 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() local204 blobData.prepare(); in testAbandonSession()[all …]
49 final FakeBlobData blobData = new FakeBlobData.Builder(mContext) in testBlobStoreOps() local54 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() argument70 final long sessionId = createSession(blobData.getBlobHandle()); in commitBlob()72 blobData.writeToSession(session); in commitBlob()
44 final FakeBlobData blobData = new FakeBlobData.Builder(mContext) in testCreateSession() local48 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() local72 blobData.writeToSession(session, PARTIAL_FILE_LENGTH_BYTES, in testOpenSessionAndWrite()73 blobData.getFileSize() - PARTIAL_FILE_LENGTH_BYTES); in testOpenSessionAndWrite()
46 final FakeBlobData blobData = new FakeBlobData.Builder(mContext) in testCreateSession() local50 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() local88 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()