Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dcom_android_internal_content_FileSystemUtils.cpp45 bool punchWithBlockAlignment(borrowed_fd fd, uint64_t start, uint64_t length, uint64_t blockSize) { in punchWithBlockAlignment() argument
52 start = align_up(start, blockSize); in punchWithBlockAlignment()
53 end = align_down(end, blockSize); in punchWithBlockAlignment()
61 if (alignedLength < blockSize) { in punchWithBlockAlignment()
86 uint64_t blockSize = beforePunch.st_blksize; in punchHoles() local
131 if (punchLen < blockSize) { in punchHoles()
185 if (!punchWithBlockAlignment(fd, punchStartOffset, punchLen, blockSize)) { in punchHoles()
271 uint64_t blockSize = beforePunch.st_blksize; in punchHolesInZip() local
279 if (extraFieldLen < blockSize) { in punchHolesInZip()
327 if (punchLen > blockSize) { in punchHolesInZip()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
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()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java439 int blockSize = new StatFs(dir.getPath()).getBlockSize(); in testSizeLimits() local
442 int kb = blockSize * 10 / 1024; in testSizeLimits()
460 addRandomEntry(dropbox, "DropBoxTest0", blockSize - overhead); in testSizeLimits()
461 addRandomEntry(dropbox, "DropBoxTest0", blockSize - overhead); in testSizeLimits()
463 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits()
464 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits()
465 addRandomEntry(dropbox, "DropBoxTest1", blockSize * 2 - overhead); in testSizeLimits()
466 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits()
467 addRandomEntry(dropbox, "DropBoxTest1", blockSize * 20 - overhead); in testSizeLimits()
469 addRandomEntry(dropbox, "DropBoxTest2", blockSize * 4 - overhead); in testSizeLimits()
[all …]
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java2255 @NonNull Size blockSize) { in PerformancePoint() argument
2256 checkPowerOfTwo(blockSize.getWidth(), "block width"); in PerformancePoint()
2257 checkPowerOfTwo(blockSize.getHeight(), "block height"); in PerformancePoint()
2259 mBlockSize = new Size(Utils.divUp(blockSize.getWidth(), 16), in PerformancePoint()
2260 Utils.divUp(blockSize.getHeight(), 16)); in PerformancePoint()
2263 Math.max(blockSize.getWidth(), 16)) in PerformancePoint()
2266 Math.max(blockSize.getHeight(), 16)) in PerformancePoint()
2766 Size blockSize = Utils.parseSize(map.get("block-size"), new Size(8, 8));
2767 int BS = blockSize.getWidth() * blockSize.getHeight();
2818 Size blockSize = new Size(mBlockWidth, mBlockHeight);
[all …]
/frameworks/av/media/libeffects/dynamicsproc/dsp/
DDPFrequency.h102 void initBuffers(unsigned int blockSize, unsigned int overlapSize, unsigned int halfFftSize,
127 void configure(size_t blockSize, size_t overlapSize, size_t samplingRate);
DDPFrequency.cpp54 void ChannelBuffer::initBuffers(unsigned int blockSize, unsigned int overlapSize, in initBuffers() argument
57 blockSize, overlapSize, halfFftSize); in initBuffers()
60 mBlockSize = blockSize; in initBuffers()
137 void DPFrequency::configure(size_t blockSize, size_t overlapSize, in configure() argument
140 mBlockSize = blockSize; in configure()
146 if (!powerof2(blockSize)) { in configure()
148 mBlockSize = 1 << (32 - __builtin_clz(blockSize)); in configure()
/frameworks/base/media/native/midi/
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()
/frameworks/av/media/codec2/vndk/include/
DC2DmaBufAllocator.h85 uint64_t blockSize);
DC2AllocatorIon.h81 const UsageMapperFn &mapper, uint64_t minUsage, uint64_t maxUsage, uint64_t blockSize);
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp107 BlockSize blockSize = -1; member
817 header.blockIdx == 0 && header.blockSize == 0) { in receiver()
825 if (header.fileIdx < 0 || header.blockSize <= 0 || header.blockType < 0 || in receiver()
854 .dataSize = static_cast<uint16_t>(header.blockSize), in receiver()
858 remainingData = remainingData.subspan(header.blockSize); in receiver()
967 header.blockSize = in readHeader()
/frameworks/av/media/codec2/vndk/
DC2Store.cpp199 size_t blockSize = getpagesize(); in UseComponentStoreForIonAllocator() local
222 blockSize = fsv.range.step.u32; in UseComponentStoreForIonAllocator()
243 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForIonAllocator()
252 size_t blockSize = getpagesize(); in UseComponentStoreForDmaBufAllocator() local
278 blockSize = fsv.range.step.u32; in UseComponentStoreForDmaBufAllocator()
302 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForDmaBufAllocator()
DC2DmaBufAllocator.cpp320 uint64_t maxUsage, uint64_t blockSize) { in setUsageMapper() argument
328 mBlockSize = blockSize; in setUsageMapper()
DC2AllocatorIon.cpp521 const UsageMapperFn &mapper, uint64_t minUsage, uint64_t maxUsage, uint64_t blockSize) { in setUsageMapper() argument
531 mBlockSize = blockSize; in setUsageMapper()
/frameworks/base/services/core/java/com/android/server/
DDropBoxManagerService.java934 int flags, int blockSize) throws IOException { in EntryFile() argument
945 this.blocks = (int) ((file.length() + blockSize - 1) / blockSize); in EntryFile()
973 public EntryFile(File file, int blockSize) { in EntryFile() argument
1022 this.blocks = (int) ((file.length() + blockSize - 1) / blockSize); in EntryFile()
/frameworks/av/media/codec2/sfplugin/
DCCodecBufferChannel.h311 size_t blockSize = 0);
DCCodecBufferChannel.cpp245 size_t blockSize) { in queueInputBufferInternal() argument
356 encryptedBlock->share(0, blockSize, C2Fence()))); in queueInputBufferInternal()
/frameworks/base/services/incremental/
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()
/frameworks/av/media/module/extractors/mkv/
DMatroskaExtractor.cpp2320 size_t blockSize = 0; in findThumbnails() local
2322 blockSize += iter.block()->GetFrame(k).len; in findThumbnails()
2325 if (blockSize > maxBlockSize) { in findThumbnails()
2326 maxBlockSize = blockSize; in findThumbnails()