Searched refs:getAllocatableBytes (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java362 return (params.sizeBytes <= storage.getAllocatableBytes(target,
469 final long availBytes = storageManager.getAllocatableBytes(new File(vol.path),
527 return (params.sizeBytes <= storage.getAllocatableBytes(target,
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageHelperTests.java96 Mockito.when(storageManager.getAllocatableBytes(Mockito.eq(internalFile), Mockito.anyInt()))
98 Mockito.when(storageManager.getAllocatableBytes(Mockito.eq(adoptedFile), Mockito.anyInt()))
100 Mockito.when(storageManager.getAllocatableBytes(Mockito.eq(publicFile), Mockito.anyInt()))
/frameworks/base/core/java/android/os/storage/
H A DStorageManager.java1638 * @see #getAllocatableBytes(UUID, int)
1702 public @BytesLong long getAllocatableBytes(@NonNull UUID storageUuid) method in class:StorageManager
1704 return getAllocatableBytes(storageUuid, 0);
1711 public long getAllocatableBytes(@NonNull UUID storageUuid, method in class:StorageManager
1714 return mStorageManager.getAllocatableBytes(convert(storageUuid), flags);
1727 public long getAllocatableBytes(@NonNull File path, method in class:StorageManager
1729 return getAllocatableBytes(getUuidForPath(path), flags);
1738 * {@link #getAllocatableBytes(UUID, int)} will fail.
1756 * @see #getAllocatableBytes(UUID, int)
1794 * {@link #getAllocatableBytes(UUI
[all...]
H A DIStorageManager.aidl296 long getAllocatableBytes(String volumeUuid, int flags) = 77;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DMockStorageManager.java494 public long getAllocatableBytes(String path, int flags) { method in class:MockStorageManager
/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java3295 public long getAllocatableBytes(String volumeUuid, int flags) { method in class:StorageManagerService
3355 final long allocatableBytes = getAllocatableBytes(volumeUuid, flags);

Completed in 110 milliseconds