/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerStressTest.java | 159 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/ |
D | DropBoxTest.java | 438 int blockSize = new StatFs(dir.getPath()).getBlockSize(); in testSizeLimits() local 441 int kb = blockSize * 10 / 1024; in testSizeLimits() 459 addRandomEntry(dropbox, "DropBoxTest0", blockSize - overhead); in testSizeLimits() 460 addRandomEntry(dropbox, "DropBoxTest0", blockSize - overhead); in testSizeLimits() 462 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits() 463 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits() 464 addRandomEntry(dropbox, "DropBoxTest1", blockSize * 2 - overhead); in testSizeLimits() 465 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits() 466 addRandomEntry(dropbox, "DropBoxTest1", blockSize * 20 - overhead); in testSizeLimits() 468 addRandomEntry(dropbox, "DropBoxTest2", blockSize * 4 - overhead); in testSizeLimits() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaCodecInfo.java | 1860 @NonNull Size blockSize) { in PerformancePoint() argument 1861 checkPowerOfTwo(blockSize.getWidth(), "block width"); in PerformancePoint() 1862 checkPowerOfTwo(blockSize.getHeight(), "block height"); in PerformancePoint() 1864 mBlockSize = new Size(Utils.divUp(blockSize.getWidth(), 16), in PerformancePoint() 1865 Utils.divUp(blockSize.getHeight(), 16)); in PerformancePoint() 1868 Math.max(blockSize.getWidth(), 16)) in PerformancePoint() 1871 Math.max(blockSize.getHeight(), 16)) in PerformancePoint() 2369 Size blockSize = Utils.parseSize(map.get("block-size"), new Size(8, 8)); 2370 int BS = blockSize.getWidth() * blockSize.getHeight(); 2421 Size blockSize = new Size(mBlockWidth, mBlockHeight); [all …]
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPFrequency.h | 102 void initBuffers(unsigned int blockSize, unsigned int overlapSize, unsigned int halfFftSize, 127 void configure(size_t blockSize, size_t overlapSize, size_t samplingRate);
|
D | DPFrequency.cpp | 54 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/ |
D | amidi.cpp | 405 size_t blockSize = AMIDI_BUFFER_SIZE; in AMidiInputPort_sendWithTimestamp() local 406 blockSize = std::min(blockSize, numBytes - numSent); in AMidiInputPort_sendWithTimestamp() 409 AMIDI_makeSendBuffer(writeBuffer, data + numSent, blockSize, timestamp); in AMidiInputPort_sendWithTimestamp()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_pm_PackageManagerShellCommandDataLoader.cpp | 107 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()
|
/frameworks/av/media/codec2/vndk/include/ |
D | C2AllocatorIon.h | 81 const UsageMapperFn &mapper, uint64_t minUsage, uint64_t maxUsage, uint64_t blockSize);
|
D | C2DmaBufAllocator.h | 85 uint64_t blockSize);
|
/frameworks/base/services/core/java/com/android/server/ |
D | DropBoxManagerService.java | 857 int flags, int blockSize) throws IOException { in EntryFile() argument 868 this.blocks = (int) ((file.length() + blockSize - 1) / blockSize); in EntryFile() 896 public EntryFile(File file, int blockSize) { in EntryFile() argument 945 this.blocks = (int) ((file.length() + blockSize - 1) / blockSize); in EntryFile()
|
/frameworks/av/media/codec2/vndk/ |
D | C2Store.cpp | 188 size_t blockSize = getpagesize(); in UseComponentStoreForIonAllocator() local 211 blockSize = fsv.range.step.u32; in UseComponentStoreForIonAllocator() 232 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForIonAllocator() 241 size_t blockSize = getpagesize(); in UseComponentStoreForDmaBufAllocator() local 267 blockSize = fsv.range.step.u32; in UseComponentStoreForDmaBufAllocator() 291 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForDmaBufAllocator()
|
D | C2DmaBufAllocator.cpp | 316 uint64_t maxUsage, uint64_t blockSize) { in setUsageMapper() argument 324 mBlockSize = blockSize; in setUsageMapper()
|
D | C2AllocatorIon.cpp | 516 const UsageMapperFn &mapper, uint64_t minUsage, uint64_t maxUsage, uint64_t blockSize) { in setUsageMapper() argument 526 mBlockSize = blockSize; in setUsageMapper()
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecBufferChannel.h | 245 size_t blockSize = 0);
|
D | CCodecBufferChannel.cpp | 200 size_t blockSize) { in queueInputBufferInternal() argument 279 encryptedBlock->share(0, blockSize, C2Fence()))); in queueInputBufferInternal()
|
/frameworks/base/services/incremental/ |
D | IncrementalService.cpp | 66 static constexpr auto blockSize = 4096; member 105 return (s & (Constants::blockSize - 1)) == 0; in isPageAligned() 2131 const int numBlocks = (data.size() + constants().blockSize - 1) / constants().blockSize; in setFileContent() 2134 const auto blockSize = std::min<long>(constants().blockSize, data.size()); in setFileContent() local 2140 .dataSize = static_cast<uint32_t>(blockSize), in setFileContent() 2143 data = data.subspan(blockSize); in setFileContent()
|
/frameworks/av/media/extractors/mkv/ |
D | MatroskaExtractor.cpp | 2281 size_t blockSize = 0; in findThumbnails() local 2283 blockSize += iter.block()->GetFrame(k).len; in findThumbnails() 2286 if (blockSize > maxBlockSize) { in findThumbnails() 2287 maxBlockSize = blockSize; in findThumbnails()
|