Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/common/operations/
DReshape.cpp43 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 …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
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()
DIkeCipher.java91 int blockSize) { in IkeCipher() argument
99 mBlockSize = blockSize == BLOCK_SIZE_NOT_SPECIFIED ? mCipher.getBlockSize() : blockSize; in IkeCipher()
DIkeCombinedModeCipher.java65 int blockSize) { in IkeCombinedModeCipher() argument
66 super(algorithmId, keyLength, ivLength, algorithmName, true /*isAead*/, saltLen, blockSize); in IkeCombinedModeCipher()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java424 payload.length, cipher.ivLen, cipher.blockSize, icvLen * 8); in length()
502 public final int blockSize; field in PacketUtils.EspCipher
508 public EspCipher(String algoName, int blockSize, byte[] key, int ivLen, int saltLen) { in EspCipher() argument
510 this.blockSize = blockSize; in EspCipher()
521 public static byte[] getPaddedPayload(int nextHeader, byte[] payload, int blockSize) { in getPaddedPayload() argument
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()
576 public EspCryptCipher(String algoName, int blockSize, byte[] key, int ivLen, int saltLen) { in EspCryptCipher() argument
[all …]
/packages/modules/NeuralNetworks/common/
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 …]
DCpuExecutor.cpp816 int32_t blockSize = getScalarData<int32_t>(operands[ins[1]]); in executeOperation() local
831 if (!depthToSpacePrepare(input_tmp.shape(), blockSize, &outShape) || in executeOperation()
840 blockSize, reinterpret_cast<float*>(output_tmp.buffer), outShape); in executeOperation()
846 blockSize, reinterpret_cast<_Float16*>(output_tmp.buffer), outShape); in executeOperation()
852 blockSize, reinterpret_cast<uint8_t*>(output_tmp.buffer), outShape); in executeOperation()
858 blockSize, reinterpret_cast<int8_t*>(output_tmp.buffer), outShape); in executeOperation()
880 int32_t blockSize = getScalarData<int32_t>(operands[ins[1]]); in executeOperation() local
896 if (!spaceToDepthPrepare(input_tmp.shape(), blockSize, &outShape) || in executeOperation()
905 blockSize, reinterpret_cast<float*>(output_tmp.buffer), outShape); in executeOperation()
911 blockSize, reinterpret_cast<_Float16*>(output_tmp.buffer), outShape); in executeOperation()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
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()
/packages/modules/NeuralNetworks/common/include/
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()
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,
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/
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()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCacheStorageUsageInfo.java64 long blockSize = stat.getBlockSize(); in loadStorageInfo() local
68 mTotalBytes = blockSize * totalBlocks; in loadStorageInfo()
69 mUsedBytes = blockSize * (totalBlocks - availableBlocks); in loadStorageInfo()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
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()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBody.java345 static byte[] calculatePadding(int dataToEncryptLength, int blockSize) { in calculatePadding() argument
348 int padLength = (unpaddedLen + blockSize - 1) / blockSize * blockSize - unpaddedLen; in calculatePadding()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dsparse_table.h31 BufferWithExtendableBuffer *const contentTableBuffer, const int blockSize, in SparseTable() argument
34 mBlockSize(blockSize), mDataSize(dataSize) {} in SparseTable()
/packages/modules/adb/client/
Dincremental_server.cpp439 int16_t blockSize; in SendDataBlock() local
443 blockSize = compressedSize; in SendDataBlock()
448 blockSize = bytesRead; in SendDataBlock()
455 header->block_size = toBigEndian(blockSize); in SendDataBlock()
460 Send(header, ResponseHeader::responseSizeFor(blockSize), flush); in SendDataBlock()