/frameworks/ml/nn/common/operations/ |
D | Reshape.cpp | 43 bool depthToSpaceGeneric(const T* inputData, const Shape& inputShape, int32_t blockSize, in depthToSpaceGeneric() argument 46 tflite::optimized_ops::DepthToSpace(inputData, convertShapeToDims(inputShape), blockSize, in depthToSpaceGeneric() 51 int32_t blockSize, float* outputData, 54 int32_t blockSize, _Float16* outputData, 57 int32_t blockSize, uint8_t* outputData, 60 int32_t blockSize, int8_t* outputData, 64 bool spaceToDepthGeneric(const T* inputData, const Shape& inputShape, int32_t blockSize, in spaceToDepthGeneric() argument 67 tflite::optimized_ops::SpaceToDepth(inputData, convertShapeToDims(inputShape), blockSize, in spaceToDepthGeneric() 72 int32_t blockSize, float* outputData, 75 int32_t blockSize, _Float16* outputData, [all …]
|
/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 | 370 int blockSize = new StatFs(dir.getPath()).getBlockSize(); in testSizeLimits() local 373 int kb = blockSize * 10 / 1024; in testSizeLimits() 391 addRandomEntry(dropbox, "DropBoxTest0", blockSize - overhead); in testSizeLimits() 392 addRandomEntry(dropbox, "DropBoxTest0", blockSize - overhead); in testSizeLimits() 394 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits() 395 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits() 396 addRandomEntry(dropbox, "DropBoxTest1", blockSize * 2 - overhead); in testSizeLimits() 397 addRandomEntry(dropbox, "DropBoxTest1", blockSize - overhead); in testSizeLimits() 398 addRandomEntry(dropbox, "DropBoxTest1", blockSize * 20 - overhead); in testSizeLimits() 400 addRandomEntry(dropbox, "DropBoxTest2", blockSize * 4 - overhead); in testSizeLimits() [all …]
|
/frameworks/ml/nn/common/ |
D | OperationsUtils.cpp | 422 bool depthToSpacePrepare(const Shape& input, int32_t blockSize, Shape* output) { in depthToSpacePrepare() argument 424 NN_OPS_CHECK(blockSize > 0); in depthToSpacePrepare() 431 NN_OPS_CHECK(channels % (blockSize * blockSize) == 0); in depthToSpacePrepare() 433 output->dimensions = {batches, height * blockSize, width * blockSize, in depthToSpacePrepare() 434 channels / (blockSize * blockSize)}; in depthToSpacePrepare() 441 bool spaceToDepthPrepare(const Shape& input, int32_t blockSize, Shape* output) { in spaceToDepthPrepare() argument 443 NN_OPS_CHECK(blockSize > 0); in spaceToDepthPrepare() 450 NN_OPS_CHECK(height % blockSize == 0); in spaceToDepthPrepare() 451 NN_OPS_CHECK(width % blockSize == 0); in spaceToDepthPrepare() 454 output->dimensions = {batches, height / blockSize, width / blockSize, in spaceToDepthPrepare() [all …]
|
D | CpuExecutor.cpp | 872 int32_t blockSize = getScalarData<int32_t>(operands[ins[1]]); in executeOperation() local 887 if (!depthToSpacePrepare(input_tmp.shape(), blockSize, &outShape) || in executeOperation() 896 blockSize, reinterpret_cast<float*>(output_tmp.buffer), outShape); in executeOperation() 902 blockSize, reinterpret_cast<_Float16*>(output_tmp.buffer), outShape); in executeOperation() 908 blockSize, reinterpret_cast<uint8_t*>(output_tmp.buffer), outShape); in executeOperation() 914 blockSize, reinterpret_cast<int8_t*>(output_tmp.buffer), outShape); in executeOperation() 936 int32_t blockSize = getScalarData<int32_t>(operands[ins[1]]); in executeOperation() local 952 if (!spaceToDepthPrepare(input_tmp.shape(), blockSize, &outShape) || in executeOperation() 961 blockSize, reinterpret_cast<float*>(output_tmp.buffer), outShape); in executeOperation() 967 blockSize, reinterpret_cast<_Float16*>(output_tmp.buffer), outShape); in executeOperation() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaCodecInfo.java | 1709 @NonNull Size blockSize) { in PerformancePoint() argument 1710 checkPowerOfTwo(blockSize.getWidth(), "block width"); in PerformancePoint() 1711 checkPowerOfTwo(blockSize.getHeight(), "block height"); in PerformancePoint() 1713 mBlockSize = new Size(Utils.divUp(blockSize.getWidth(), 16), in PerformancePoint() 1714 Utils.divUp(blockSize.getHeight(), 16)); in PerformancePoint() 1717 Math.max(blockSize.getWidth(), 16)) in PerformancePoint() 1720 Math.max(blockSize.getHeight(), 16)) in PerformancePoint() 2205 Size blockSize = Utils.parseSize(map.get("block-size"), new Size(8, 8)); 2206 int BS = blockSize.getWidth() * blockSize.getHeight(); 2257 Size blockSize = new Size(mBlockWidth, mBlockHeight); [all …]
|
/frameworks/ml/nn/common/include/ |
D | OperationsUtils.h | 309 bool depthToSpacePrepare(const Shape& input, int32_t blockSize, Shape* output); 311 bool spaceToDepthPrepare(const Shape& input, int32_t blockSize, Shape* output); 347 int blockSize = 1; in transposeFirstTwoDimensions() local 349 blockSize *= getSizeOfDimension(shape, i); in transposeFirstTwoDimensions() 354 for (int k = 0; k < blockSize; ++k) { in transposeFirstTwoDimensions() 355 transposedBuffer[(j * firstDim + i) * blockSize + k] = in transposeFirstTwoDimensions() 356 buffer[(i * secondDim + j) * blockSize + k]; in transposeFirstTwoDimensions()
|
D | Operations.h | 90 bool depthToSpaceGeneric(const T* inputData, const Shape& inputShape, int32_t blockSize, 93 bool spaceToDepthGeneric(const T* inputData, const Shape& inputShape, int32_t blockSize, 101 bool batchToSpaceGeneric(const T* inputData, const Shape& inputShape, const int32_t* blockSize, 105 bool spaceToBatchGeneric(const T* inputData, const Shape& inputShape, const int32_t* blockSize,
|
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | Reshape.cpp | 37 int32_t blockSize = op->inputs[1]->value<int32_t>(); in spaceToDepthConstructor() local 38 auto outHeight = op->inputs[0]->dimensions[heightIndex].exactDiv(blockSize); in spaceToDepthConstructor() 39 auto outWidth = op->inputs[0]->dimensions[widthIndex].exactDiv(blockSize); in spaceToDepthConstructor() 40 auto outDepth = op->inputs[0]->dimensions[depthIndex] * (blockSize * blockSize); in spaceToDepthConstructor() 92 int32_t blockSize = op->inputs[1]->value<int32_t>(); in depthToSpaceConstructor() local 93 auto outHeight = op->inputs[0]->dimensions[heightIndex] * blockSize; in depthToSpaceConstructor() 94 auto outWidth = op->inputs[0]->dimensions[widthIndex] * blockSize; in depthToSpaceConstructor() 95 auto outDepth = op->inputs[0]->dimensions[depthIndex].exactDiv(blockSize * blockSize); in depthToSpaceConstructor()
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
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()
|
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);
|
/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/av/media/codec2/vndk/include/ |
D | C2AllocatorIon.h | 76 const UsageMapperFn &mapper, uint64_t minUsage, uint64_t maxUsage, uint64_t blockSize);
|
/frameworks/base/services/core/java/com/android/server/ |
D | DropBoxManagerService.java | 739 int flags, int blockSize) throws IOException { in EntryFile() argument 750 this.blocks = (int) ((file.length() + blockSize - 1) / blockSize); in EntryFile() 778 public EntryFile(File file, int blockSize) { in EntryFile() argument 827 this.blocks = (int) ((file.length() + blockSize - 1) / blockSize); in EntryFile()
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorIon.cpp | 526 const UsageMapperFn &mapper, uint64_t minUsage, uint64_t maxUsage, uint64_t blockSize) { in setUsageMapper() argument 536 mBlockSize = blockSize; in setUsageMapper()
|
D | C2Store.cpp | 142 size_t blockSize = getpagesize(); in UseComponentStoreForIonAllocator() local 165 blockSize = fsv.range.step.u32; in UseComponentStoreForIonAllocator() 186 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForIonAllocator()
|
/frameworks/av/media/extractors/mkv/ |
D | MatroskaExtractor.cpp | 2272 size_t blockSize = 0; in findThumbnails() local 2274 blockSize += iter.block()->GetFrame(k).len; in findThumbnails() 2277 if (blockSize > maxBlockSize) { in findThumbnails() 2278 maxBlockSize = blockSize; in findThumbnails()
|