Searched refs:availableBytes (Results 1 – 10 of 10) sorted by relevance
161 int availableBytes = blockSize * availableBlocks; in testDownloadToCacheWithAlmostFullCache() local162 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()
99 public long availableBytes; field in RootInfo125 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()
89 if (TextUtils.isEmpty(summaryText) && root.availableBytes >= 0) { in bindView()91 Formatter.formatFileSize(context, root.availableBytes)); in bindView()
509 long availableBytes = -1; in queryRoots() local513 availableBytes = getContext() in queryRoots()520 availableBytes = root.path.getUsableSpace(); in queryRoots()523 row.add(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots()
172 long availableBytes = 0; in queryRoots() local184 availableBytes += storageCursor.getLong(availableIndex); in queryRoots()188 values.put(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots()
141 availableBytes = -1; in generateRecentsRoot()212 assert (recentRoot.availableBytes == -1);
102 availableBytes = -1;
286 if (root.availableBytes >= 0) { in verifySpaceAvailable()287 available = (batchSize <= root.availableBytes); in verifySpaceAvailable()
1070 const size_t availableBytes = dataAvail(); // coarse bound on vector size.1071 if (static_cast<size_t>(size) > availableBytes) return BAD_VALUE;