Home
last modified time | relevance | path

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

/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DUtils.java101 BlobHandle blobHandle, CharSequence description) throws IOException { in acquireLease() argument
104 blobStoreManager.acquireLease(blobHandle, description); in acquireLease()
106 final LeaseInfo leaseInfo = blobStoreManager.getLeaseInfo(blobHandle); in acquireLease()
112 BlobHandle blobHandle, int descriptionResId) throws IOException { in acquireLease() argument
115 blobStoreManager.acquireLease(blobHandle, descriptionResId); in acquireLease()
117 final LeaseInfo leaseInfo = blobStoreManager.getLeaseInfo(blobHandle); in acquireLease()
123 BlobHandle blobHandle, CharSequence description, in acquireLease() argument
127 blobStoreManager.acquireLease(blobHandle, description, expiryTimeMs); in acquireLease()
129 final LeaseInfo leaseInfo = blobStoreManager.getLeaseInfo(blobHandle); in acquireLease()
135 BlobHandle blobHandle, int descriptionResId, in acquireLease() argument
[all …]
/frameworks/base/apex/blobstore/framework/java/android/app/blob/
DBlobStoreManager.java212 public @IntRange(from = 1) long createSession(@NonNull BlobHandle blobHandle) in createSession() argument
215 return mService.createSession(blobHandle, mContext.getOpPackageName()); in createSession()
280 public @NonNull ParcelFileDescriptor openBlob(@NonNull BlobHandle blobHandle) in openBlob() argument
283 return mService.openBlob(blobHandle, mContext.getOpPackageName()); in openBlob()
336 public void acquireLease(@NonNull BlobHandle blobHandle, @IdRes int descriptionResId, in acquireLease() argument
339 mService.acquireLease(blobHandle, descriptionResId, null, leaseExpiryTimeMillis, in acquireLease()
399 public void acquireLease(@NonNull BlobHandle blobHandle, @NonNull CharSequence description, in acquireLease() argument
402 mService.acquireLease(blobHandle, INVALID_RES_ID, description, leaseExpiryTimeMillis, in acquireLease()
453 public void acquireLease(@NonNull BlobHandle blobHandle, @IdRes int descriptionResId) in acquireLease() argument
455 acquireLease(blobHandle, descriptionResId, 0); in acquireLease()
[all …]
DIBlobStoreManager.aidl43 LeaseInfo getLeaseInfo(in BlobHandle blobHandle, in String packageName); in getLeaseInfo() argument
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerService.java281 BlobMetadata getBlobForTest(BlobHandle blobHandle) { in getBlobForTest() argument
283 return mBlobsMap.get(blobHandle); in getBlobForTest()
348 private long createSessionInternal(BlobHandle blobHandle, in createSessionInternal() argument
359 sessionId, blobHandle, callingUid, callingPackage, in createSessionInternal()
363 Slog.v(TAG, "Created session for " + blobHandle in createSessionInternal()
401 private ParcelFileDescriptor openBlobInternal(BlobHandle blobHandle, int callingUid, in openBlobInternal() argument
404 final BlobMetadata blobMetadata = mBlobsMap.get(blobHandle); in openBlobInternal()
416 throw new SecurityException("Caller not allowed to access " + blobHandle in openBlobInternal()
452 private void acquireLeaseInternal(BlobHandle blobHandle, int descriptionResId, in acquireLeaseInternal() argument
464 if (leaseExpiryTimeMillis != 0 && blobHandle.expiryTimeMillis != 0 in acquireLeaseInternal()
[all …]
DBlobStoreSession.java128 private BlobStoreSession(Context context, long sessionId, BlobHandle blobHandle, in BlobStoreSession() argument
132 this.mBlobHandle = blobHandle; in BlobStoreSession()
140 BlobStoreSession(Context context, long sessionId, BlobHandle blobHandle, in BlobStoreSession() argument
142 this(context, sessionId, blobHandle, ownerUid, ownerPackageName, in BlobStoreSession()
613 BlobHandle blobHandle = null; in createFromXml() local
617 blobHandle = BlobHandle.createFromXml(in); in createFromXml()
623 if (blobHandle == null) { in createFromXml()
633 blobHandle, ownerUid, ownerPackageName, creationTimeMs, stateChangeListener); in createFromXml()
DBlobMetadata.java114 BlobMetadata(Context context, long blobId, BlobHandle blobHandle) { in BlobMetadata() argument
117 this.mBlobHandle = blobHandle; in BlobMetadata()
734 BlobHandle blobHandle = null; in createFromXml() local
740 blobHandle = BlobHandle.createFromXml(in); in createFromXml()
751 if (blobHandle == null) { in createFromXml()
756 final BlobMetadata blobMetadata = new BlobMetadata(context, blobId, blobHandle); in createFromXml()
/frameworks/base/apct-tests/perftests/blobstore/src/com/android/perftests/blob/
DBlobStorePerfTests.java256 private void deleteBlob(BlobHandle blobHandle) throws Exception { in deleteBlob() argument
259 blobHandle.algorithm, in deleteBlob()
260 Base64.getEncoder().encodeToString(blobHandle.digest), in deleteBlob()
261 blobHandle.label, in deleteBlob()
262 blobHandle.expiryTimeMillis, in deleteBlob()
263 blobHandle.tag)); in deleteBlob()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/
DBlobStoreManagerServiceTest.java365 long sessionId, File sessionFile, BlobHandle blobHandle) { in createBlobStoreSessionMock() argument
371 doReturn(blobHandle).when(session).getBlobHandle(); in createBlobStoreSessionMock()
377 BlobHandle blobHandle, boolean hasValidLeases) { in createBlobMetadataMock() argument
382 doReturn(blobHandle).when(blobMetadata).getBlobHandle(); in createBlobMetadataMock()
388 private void addBlob(BlobHandle blobHandle, BlobMetadata blobMetadata) { in addBlob() argument
389 doReturn(blobHandle).when(blobMetadata).getBlobHandle(); in addBlob()