Home
last modified time | relevance | path

Searched refs:blockSize (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerStressTest.java159 int blockSize = fs.getBlockSize(); in testDownloadToCacheWithAlmostFullCache() local
161 int availableBytes = blockSize * availableBlocks; in testDownloadToCacheWithAlmostFullCache()
164 byte[] buffer = new byte[blockSize]; in testDownloadToCacheWithAlmostFullCache()
172 int writeSizeBlocks = writeSizeBytes / blockSize; in testDownloadToCacheWithAlmostFullCache()
193 long spaceAvailable = fs.getAvailableBlocks() * blockSize; in testDownloadToCacheWithAlmostFullCache()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DDropBoxTest.java442 int kb = blockSize * 10 / 1024; in testSizeLimits()
487 assertEquals(blockSize - overhead, getEntrySize(e0)); in testSizeLimits()
488 assertEquals(blockSize - overhead, getEntrySize(e1)); in testSizeLimits()
496 assertEquals(blockSize - overhead, getEntrySize(e3)); in testSizeLimits()
498 assertEquals(blockSize - overhead, getEntrySize(e5)); in testSizeLimits()
505 assertEquals(blockSize - overhead, getEntrySize(e8)); in testSizeLimits()
506 assertEquals(blockSize - overhead, getEntrySize(e9)); in testSizeLimits()
530 assertEquals(blockSize - overhead, getEntrySize(t0)); in testSizeLimits()
532 assertEquals(blockSize - overhead, getEntrySize(t2)); in testSizeLimits()
544 int kb = blockSize * 10 / 1024; in testAgeLimits()
[all …]
/aosp14/frameworks/base/media/java/android/media/
H A DMediaCodecInfo.java2582 int BS = blockSize.getWidth() * blockSize.getHeight(); in equivalentVP9Level()
2640 blockSize = Utils.parseSize(map.get("block-size"), blockSize); in parseFromInfo()
2708 Long.MAX_VALUE, blockSize.getWidth(), blockSize.getHeight(), in parseFromInfo()
2723 / blockSize.getWidth() / blockSize.getHeight())); in parseFromInfo()
2728 / blockSize.getWidth() / blockSize.getHeight())); in parseFromInfo()
2761 / blockSize.getWidth() / blockSize.getHeight())); in parseFromInfo()
3349 maxBlocks, maxBlocksPerSecond, blockSize, blockSize, in applyLevelLimits()
3420 maxBlocks = Utils.divUp(maxBlocks, blockSize * blockSize); in applyLevelLimits()
3426 blockSize, blockSize, in applyLevelLimits()
3607 maxBlocks = Utils.divUp(maxBlocks, blockSize * blockSize); in applyLevelLimits()
[all …]
/aosp14/frameworks/base/media/native/midi/
H A Damidi.cpp417 size_t blockSize = AMIDI_BUFFER_SIZE; in AMidiInputPort_sendWithTimestamp() local
418 blockSize = std::min(blockSize, numBytes - numSent); in AMidiInputPort_sendWithTimestamp()
421 AMIDI_makeSendBuffer(writeBuffer, data + numSent, blockSize, timestamp); in AMidiInputPort_sendWithTimestamp()
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp107 BlockSize blockSize = -1; member
819 header.blockIdx == 0 && header.blockSize == 0) { in receiver()
827 if (header.fileIdx < 0 || header.blockSize <= 0 || header.blockType < 0 || in receiver()
856 .dataSize = static_cast<uint16_t>(header.blockSize), in receiver()
860 remainingData = remainingData.subspan(header.blockSize); in receiver()
969 header.blockSize = in readHeader()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DDropBoxManagerService.java891 int flags, int blockSize) throws IOException { in EntryFile() argument
902 this.blocks = (int) ((file.length() + blockSize - 1) / blockSize); in EntryFile()
930 public EntryFile(File file, int blockSize) { in EntryFile() argument
979 this.blocks = (int) ((file.length() + blockSize - 1) / blockSize); in EntryFile()
/aosp14/frameworks/base/services/incremental/
H A DIncrementalService.cpp66 static constexpr auto blockSize = 4096; member
105 return (s & (Constants::blockSize - 1)) == 0; in isPageAligned()
2151 const int numBlocks = (data.size() + constants().blockSize - 1) / constants().blockSize; in setFileContent()
2154 const auto blockSize = std::min<long>(constants().blockSize, data.size()); in setFileContent() local
2160 .dataSize = static_cast<uint32_t>(blockSize), in setFileContent()
2163 data = data.subspan(blockSize); in setFileContent()