Merge "Promote getLeasedBlobs() to be a public API." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
082b1f7bed
@@ -563,12 +563,10 @@ public class BlobStoreManager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the {@link BlobHandle BlobHandles} corresponding to the data blobs that
|
* Return the {@link BlobHandle BlobHandles} corresponding to the data blobs that
|
||||||
* the calling app has acquired a lease on using {@link #acquireLease(BlobHandle, int)} or
|
* the calling app currently has a lease on.
|
||||||
* one of it's other variants.
|
|
||||||
*
|
*
|
||||||
* @hide
|
* @return a list of {@link BlobHandle BlobHandles} that the caller has a lease on.
|
||||||
*/
|
*/
|
||||||
@TestApi
|
|
||||||
@NonNull
|
@NonNull
|
||||||
public List<BlobHandle> getLeasedBlobs() throws IOException {
|
public List<BlobHandle> getLeasedBlobs() throws IOException {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -7605,6 +7605,7 @@ package android.app.blob {
|
|||||||
method public void acquireLease(@NonNull android.app.blob.BlobHandle, @IdRes int) throws java.io.IOException;
|
method public void acquireLease(@NonNull android.app.blob.BlobHandle, @IdRes int) throws java.io.IOException;
|
||||||
method public void acquireLease(@NonNull android.app.blob.BlobHandle, @NonNull CharSequence) throws java.io.IOException;
|
method public void acquireLease(@NonNull android.app.blob.BlobHandle, @NonNull CharSequence) throws java.io.IOException;
|
||||||
method @IntRange(from=1) public long createSession(@NonNull android.app.blob.BlobHandle) throws java.io.IOException;
|
method @IntRange(from=1) public long createSession(@NonNull android.app.blob.BlobHandle) throws java.io.IOException;
|
||||||
|
method @NonNull public java.util.List<android.app.blob.BlobHandle> getLeasedBlobs() throws java.io.IOException;
|
||||||
method @IntRange(from=0) public long getRemainingLeaseQuotaBytes();
|
method @IntRange(from=0) public long getRemainingLeaseQuotaBytes();
|
||||||
method @NonNull public android.os.ParcelFileDescriptor openBlob(@NonNull android.app.blob.BlobHandle) throws java.io.IOException;
|
method @NonNull public android.os.ParcelFileDescriptor openBlob(@NonNull android.app.blob.BlobHandle) throws java.io.IOException;
|
||||||
method @NonNull public android.app.blob.BlobStoreManager.Session openSession(@IntRange(from=1) long) throws java.io.IOException;
|
method @NonNull public android.app.blob.BlobStoreManager.Session openSession(@IntRange(from=1) long) throws java.io.IOException;
|
||||||
|
|||||||
@@ -598,7 +598,6 @@ package android.app.blob {
|
|||||||
|
|
||||||
public class BlobStoreManager {
|
public class BlobStoreManager {
|
||||||
method @Nullable public android.app.blob.LeaseInfo getLeaseInfo(@NonNull android.app.blob.BlobHandle) throws java.io.IOException;
|
method @Nullable public android.app.blob.LeaseInfo getLeaseInfo(@NonNull android.app.blob.BlobHandle) throws java.io.IOException;
|
||||||
method @NonNull public java.util.List<android.app.blob.BlobHandle> getLeasedBlobs() throws java.io.IOException;
|
|
||||||
method public void waitForIdle(long) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException;
|
method public void waitForIdle(long) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user