Home
last modified time | relevance | path

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

12

/aosp12/packages/modules/NeuralNetworks/common/operations/
H A DReshape.cpp43 bool depthToSpaceGeneric(const T* inputData, const Shape& inputShape, int32_t blockSize, in depthToSpaceGeneric() argument
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
72 int32_t blockSize, float* outputData,
75 int32_t blockSize, _Float16* outputData,
78 int32_t blockSize, uint8_t* outputData,
81 int32_t blockSize, int8_t* outputData,
[all …]
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
H A DAesXCbcImpl.java59 int blockSize = mCipher.getBlockSize(); in mac() local
60 boolean isPaddingNeeded = dataToSign.length % blockSize != 0; in mac()
64 paddedData = padData(dataToSign, blockSize); in mac()
78 int numMessageBlocks = paddedData.length / blockSize; in mac()
84 message = Arrays.copyOfRange(paddedData, i * blockSize, i * blockSize + blockSize); in mac()
99 message = Arrays.copyOfRange(paddedData, paddedData.length - blockSize, paddedData.length); in mac()
127 private static byte[] padData(byte[] dataToSign, int blockSize) { in padData() argument
129 int padLen = (dataLen + blockSize - 1) / blockSize * blockSize - dataLen; in padData()
H A DIkeCipher.java91 int blockSize) { in IkeCipher() argument
99 mBlockSize = blockSize == BLOCK_SIZE_NOT_SPECIFIED ? mCipher.getBlockSize() : blockSize; in IkeCipher()
H A DIkeCombinedModeCipher.java65 int blockSize) { in IkeCombinedModeCipher() argument
66 super(algorithmId, keyLength, ivLength, algorithmName, true /*isAead*/, saltLen, blockSize); in IkeCombinedModeCipher()
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DPacketUtils.java424 payload.length, cipher.ivLen, cipher.blockSize, icvLen * 8); in length()
502 public final int blockSize; field in PacketUtils.EspCipher
510 this.blockSize = blockSize; in EspCipher()
522 final int paddedLen = calculateEspEncryptedLength(payload.length, blockSize); in getPaddedPayload()
567 return getPaddedPayload(nextHeader, payload, blockSize); in getCipherText()
572 public EspCryptCipher(String algoName, int blockSize, byte[] key, int ivLen) { in EspCryptCipher() argument
573 this(algoName, blockSize, key, ivLen, SALT_LEN_UNUSED); in EspCryptCipher()
577 super(algoName, blockSize, key, ivLen, saltLen); in EspCryptCipher()
610 cipher.doFinal(getPaddedPayload(nextHeader, payload, blockSize)); in getCipherText()
626 super(algoName, blockSize, key, ivLen, saltLen); in EspAeadCipher()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DDropBoxTest.java441 int kb = blockSize * 10 / 1024; in testSizeLimits()
486 assertEquals(blockSize - overhead, getEntrySize(e0)); in testSizeLimits()
487 assertEquals(blockSize - overhead, getEntrySize(e1)); in testSizeLimits()
495 assertEquals(blockSize - overhead, getEntrySize(e3)); in testSizeLimits()
497 assertEquals(blockSize - overhead, getEntrySize(e5)); in testSizeLimits()
504 assertEquals(blockSize - overhead, getEntrySize(e8)); in testSizeLimits()
505 assertEquals(blockSize - overhead, getEntrySize(e9)); in testSizeLimits()
529 assertEquals(blockSize - overhead, getEntrySize(t0)); in testSizeLimits()
531 assertEquals(blockSize - overhead, getEntrySize(t2)); in testSizeLimits()
543 int kb = blockSize * 10 / 1024; in testAgeLimits()
[all …]
/aosp12/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()
/aosp12/packages/modules/NeuralNetworks/common/
H A DOperationsUtils.cpp420 bool depthToSpacePrepare(const Shape& input, int32_t blockSize, Shape* output) { in depthToSpacePrepare() argument
422 NN_OPS_CHECK(blockSize > 0); in depthToSpacePrepare()
429 NN_OPS_CHECK(channels % (blockSize * blockSize) == 0); in depthToSpacePrepare()
431 output->dimensions = {batches, height * blockSize, width * blockSize, in depthToSpacePrepare()
432 channels / (blockSize * blockSize)}; in depthToSpacePrepare()
439 bool spaceToDepthPrepare(const Shape& input, int32_t blockSize, Shape* output) { in spaceToDepthPrepare() argument
441 NN_OPS_CHECK(blockSize > 0); in spaceToDepthPrepare()
448 NN_OPS_CHECK(height % blockSize == 0); in spaceToDepthPrepare()
449 NN_OPS_CHECK(width % blockSize == 0); in spaceToDepthPrepare()
452 output->dimensions = {batches, height / blockSize, width / blockSize, in spaceToDepthPrepare()
[all …]
H A DCpuExecutor.cpp816 int32_t blockSize = getScalarData<int32_t>(operands[ins[1]]); in executeOperation() local
880 int32_t blockSize = getScalarData<int32_t>(operands[ins[1]]); in executeOperation() local
1101 const RunTimeOperandInfo& blockSize = operands[ins[1]]; in executeOperation() local
1119 blockSize.shape(), &outShape) || in executeOperation()
1128 reinterpret_cast<const int32_t*>(blockSize.buffer), in executeOperation()
1135 reinterpret_cast<const int32_t*>(blockSize.buffer), in executeOperation()
1142 reinterpret_cast<const int32_t*>(blockSize.buffer), in executeOperation()
1149 reinterpret_cast<const int32_t*>(blockSize.buffer), in executeOperation()
1172 const RunTimeOperandInfo& blockSize = operands[ins[1]]; in executeOperation() local
1201 reinterpret_cast<const int32_t*>(blockSize.buffer), in executeOperation()
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DCacheStorageUsageInfo.java64 long blockSize = stat.getBlockSize(); in loadStorageInfo() local
68 mTotalBytes = blockSize * totalBlocks; in loadStorageInfo()
69 mUsedBytes = blockSize * (totalBlocks - availableBlocks); in loadStorageInfo()
/aosp12/frameworks/base/media/java/android/media/
H A DMediaCodecInfo.java2370 int BS = blockSize.getWidth() * blockSize.getHeight(); in equivalentVP9Level()
2428 blockSize = Utils.parseSize(map.get("block-size"), blockSize); in parseFromInfo()
2496 Long.MAX_VALUE, blockSize.getWidth(), blockSize.getHeight(), in parseFromInfo()
2511 / blockSize.getWidth() / blockSize.getHeight())); in parseFromInfo()
2516 / blockSize.getWidth() / blockSize.getHeight())); in parseFromInfo()
2549 / blockSize.getWidth() / blockSize.getHeight())); in parseFromInfo()
3137 maxBlocks, maxBlocksPerSecond, blockSize, blockSize, in applyLevelLimits()
3208 maxBlocks = Utils.divUp(maxBlocks, blockSize * blockSize); in applyLevelLimits()
3214 blockSize, blockSize, in applyLevelLimits()
3395 maxBlocks = Utils.divUp(maxBlocks, blockSize * blockSize); in applyLevelLimits()
[all …]
/aosp12/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
H A DWritingService.java136 int blockSize = getQueryParam(data, "block", DEFAULT_BLOCK_SIZE); in onBind() local
138 Log.i(TAG, "Block Size: " + blockSize); in onBind()
141 if (fileSize % blockSize != 0) { in onBind()
146 StringBuilder builder = new StringBuilder(blockSize); in onBind()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeEncryptedPayloadBodyTest.java274 int blockSize = 16; in testCalculatePaddingPlaintextShorterThanBlockSize() local
279 IkeEncryptedPayloadBody.calculatePadding(plainTextLength, blockSize); in testCalculatePaddingPlaintextShorterThanBlockSize()
285 int blockSize = 16; in testCalculatePaddingPlaintextInBlockSize() local
290 IkeEncryptedPayloadBody.calculatePadding(plainTextLength, blockSize); in testCalculatePaddingPlaintextInBlockSize()
296 int blockSize = 16; in testCalculatePaddingPlaintextLongerThanBlockSize() local
301 IkeEncryptedPayloadBody.calculatePadding(plainTextLength, blockSize); in testCalculatePaddingPlaintextLongerThanBlockSize()
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dsparse_table.h31 BufferWithExtendableBuffer *const contentTableBuffer, const int blockSize, in SparseTable() argument
34 mBlockSize(blockSize), mDataSize(dataSize) {} in SparseTable()
/aosp12/packages/modules/NeuralNetworks/common/include/
H A DOperationsUtils.h293 bool depthToSpacePrepare(const Shape& input, int32_t blockSize, Shape* output);
295 bool spaceToDepthPrepare(const Shape& input, int32_t blockSize, Shape* output);
331 int blockSize = 1; in transposeFirstTwoDimensions() local
333 blockSize *= getSizeOfDimension(shape, i); in transposeFirstTwoDimensions()
338 for (int k = 0; k < blockSize; ++k) { in transposeFirstTwoDimensions()
339 transposedBuffer[(j * firstDim + i) * blockSize + k] = in transposeFirstTwoDimensions()
340 buffer[(i * secondDim + j) * blockSize + k]; in transposeFirstTwoDimensions()
H A DOperations.h94 bool depthToSpaceGeneric(const T* inputData, const Shape& inputShape, int32_t blockSize,
97 bool spaceToDepthGeneric(const T* inputData, const Shape& inputShape, int32_t blockSize,
105 bool batchToSpaceGeneric(const T* inputData, const Shape& inputShape, const int32_t* blockSize,
109 bool spaceToBatchGeneric(const T* inputData, const Shape& inputShape, const int32_t* blockSize,
/aosp12/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/
H A DReshape.cpp37 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()
/aosp12/system/extras/zram-perf/
H A Dzram-perf.cpp60 size_t blockSize = 0; in getSize() local
61 int result = ioctl(m_fd, BLKGETSIZE, &blockSize); in getSize()
65 return blockSize * kSectorSize; in getSize()
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeEncryptedPayloadBody.java345 static byte[] calculatePadding(int dataToEncryptLength, int blockSize) { in calculatePadding() argument
348 int padLength = (unpaddedLen + blockSize - 1) / blockSize * blockSize - unpaddedLen; in calculatePadding()
/aosp12/system/tools/hidl/host_utils/
H A DFormatter.cpp169 size_t blockSize = block.computeSize(false); in printBlock() local
170 if (blockSize + lineStart < lineLength) { in printBlock()
176 blockSize = block.computeSize(true); in printBlock()
177 if ((blockSize + getIndentation() + mSpacesPerIndent + prefixSize) < lineLength) { in printBlock()
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
H A DCea708Parser.java339 int blockSize = data[pos] & 0x1f; in parseDtvCcPacket() local
350 if (pos + blockSize > limit) { in parseDtvCcPacket()
360 if (blockSize > 0 in parseDtvCcPacket()
364 serviceNumber, blockSize + mDiscoveredNumBytes.get(serviceNumber, 0)); in parseDtvCcPacket()
382 if (blockSize == 0 || serviceNumber != mListenServiceNumber) { in parseDtvCcPacket()
383 pos += blockSize; in parseDtvCcPacket()
389 int blockLimit = pos + blockSize; in parseDtvCcPacket()
/aosp12/frameworks/av/media/libeffects/dynamicsproc/dsp/
H A 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()
H A 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);
/aosp12/frameworks/base/media/native/midi/
H A Damidi.cpp405 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()
/aosp12/build/soong/finder/fs/
H A Dreaddir.go29 blockSize = 4096 const
43 buf := make([]byte, blockSize)

12