Home
last modified time | relevance | path

Searched refs:availableBytes (Results 1 – 10 of 10) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerStressTest.java161 int availableBytes = blockSize * availableBlocks; in testDownloadToCacheWithAlmostFullCache() local
162 Log.i(TAG, "INITIAL stage, available space in /cache: " + availableBytes); in testDownloadToCacheWithAlmostFullCache()
169 if (DOWNLOAD_FILE_SIZE <= availableBytes) { in testDownloadToCacheWithAlmostFullCache()
170 int writeSizeBytes = availableBytes - (DOWNLOAD_FILE_SIZE / 2); in testDownloadToCacheWithAlmostFullCache()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/base/
H A DRootInfo.java99 public long availableBytes; field in RootInfo
125 availableBytes = -1; in reset()
154 availableBytes = in.readLong(); in read()
175 out.writeLong(availableBytes); in write()
216 newRoot.availableBytes = root.availableBytes; in copyRootInfo()
237 root.availableBytes = getCursorLong(cursor, Root.COLUMN_AVAILABLE_BYTES); in fromRootsCursor()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DRootItem.java89 if (TextUtils.isEmpty(summaryText) && root.availableBytes >= 0) { in bindView()
91 Formatter.formatFileSize(context, root.availableBytes)); in bindView()
/aosp12/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DExternalStorageProvider.java509 long availableBytes = -1; in queryRoots() local
513 availableBytes = getContext() in queryRoots()
520 availableBytes = root.path.getUsableSpace(); in queryRoots()
523 row.add(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots()
/aosp12/packages/services/Mtp/src/com/android/mtp/
H A DMtpDatabase.java172 long availableBytes = 0; in queryRoots() local
184 availableBytes += storageCursor.getLong(availableIndex); in queryRoots()
188 values.put(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
H A DProvidersCache.java141 availableBytes = -1; in generateRecentsRoot()
212 assert (recentRoot.availableBytes == -1);
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestProvidersAccess.java102 availableBytes = -1;
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/services/
H A DCopyJob.java286 if (root.availableBytes >= 0) { in verifySpaceAvailable()
287 available = (batchSize <= root.availableBytes); in verifySpaceAvailable()
/aosp12/frameworks/native/include/binder/
H A DParcel.h1070 const size_t availableBytes = dataAvail(); // coarse bound on vector size.
1071 if (static_cast<size_t>(size) > availableBytes) return BAD_VALUE;
/aosp12/frameworks/native/libs/binder/include/binder/
H A DParcel.h1070 const size_t availableBytes = dataAvail(); // coarse bound on vector size.
1071 if (static_cast<size_t>(size) > availableBytes) return BAD_VALUE;