Home
last modified time | relevance | path

Searched refs:dataLength (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/telephony/java/com/android/internal/telephony/
DWspTypeDecoder.java200 int dataLength; field in WspTypeDecoder
224 dataLength = index - startIndex + 1; in decodeTextString()
226 stringValue = new String(wspData, startIndex + 1, dataLength - 2); in decodeTextString()
228 stringValue = new String(wspData, startIndex, dataLength - 1); in decodeTextString()
247 dataLength = index - startIndex + 1; in decodeTokenText()
248 stringValue = new String(wspData, startIndex, dataLength - 1); in decodeTokenText()
267 dataLength = 1; in decodeShortInteger()
290 dataLength = 1 + lengthMultiOctet; in decodeLongInteger()
331 dataLength = index - startIndex + 1; in decodeUintvarInteger()
350 dataLength = 1; in decodeValueLength()
[all …]
DRIL.java275 byte[] dataLength = new byte[4]; field in RIL.RILSender
334 dataLength[0] = dataLength[1] = 0; in handleMessage()
335 dataLength[2] = (byte)((data.length >> 8) & 0xff); in handleMessage()
336 dataLength[3] = (byte)((data.length) & 0xff); in handleMessage()
340 s.getOutputStream().write(dataLength); in handleMessage()
/frameworks/base/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c158 size_t dataLength = encryptedKeyLength - AES_BLOCK_SIZE; in FwdLockGlue_EncryptKey() local
161 memcpy((unsigned char *)pEncryptedKey + dataLength, initVector, AES_BLOCK_SIZE); in FwdLockGlue_EncryptKey()
162 AES_cbc_encrypt(pEncryptedKey, pEncryptedKey, dataLength, &encryptionRoundKeys, in FwdLockGlue_EncryptKey()
177 size_t dataLength = encryptedKeyLength - AES_BLOCK_SIZE; in FwdLockGlue_DecryptKey() local
178 unsigned char *pData = malloc(dataLength); in FwdLockGlue_DecryptKey()
181 memcpy(pData, pEncryptedKey, dataLength); in FwdLockGlue_DecryptKey()
182 memcpy(initVector, (const unsigned char *)pEncryptedKey + dataLength, AES_BLOCK_SIZE); in FwdLockGlue_DecryptKey()
183 AES_cbc_encrypt(pData, pData, dataLength, &decryptionRoundKeys, initVector, in FwdLockGlue_DecryptKey()
/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java168 int dataLength = (int) (mFile.length() - WAV_HEADER_LENGTH); in done() local
170 makeWavHeader(mSampleRateInHz, mAudioFormat, mChannelCount, dataLength)); in done()
191 int dataLength) { in makeWavHeader() argument
203 header.putInt(dataLength + WAV_HEADER_LENGTH - 8); // RIFF chunk size in makeWavHeader()
214 header.putInt(dataLength); in makeWavHeader()
/frameworks/base/drm/jni/
Dandroid_drm_DrmManagerClient.cpp49 JNIEnv* env, jobject object, const char* fieldName, int* dataLength);
52 JNIEnv* env, jbyteArray byteArray, int* dataLength);
104 JNIEnv* env, jobject object, const char* fieldName, int* dataLength) { in getByteArrayValue() argument
106 *dataLength = 0; in getByteArrayValue()
115 *dataLength = length; in getByteArrayValue()
116 if (0 < *dataLength) { in getByteArrayValue()
125 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) { in getByteArrayValue() argument
130 *dataLength = length; in getByteArrayValue()
131 if (0 < *dataLength) { in getByteArrayValue()
402 int dataLength = 0; in android_drm_DrmManagerClient_saveRights() local
[all …]
/frameworks/base/media/libstagefright/codecs/avc/enc/
DAVCEncoder.cpp422 uint32_t dataLength = outputBuffer->size(); in read() local
428 dataLength -= 4; in read()
438 encoderStatus = PVAVCEncodeNAL(mHandle, outPtr, &dataLength, &type); in read()
447 outputBuffer->set_range(0, dataLength + 4); in read()
448 outPtr += (dataLength + 4); // 4 bytes for next start code in read()
449 dataLength = outputBuffer->size() - in read()
458 dataLength + outputBuffer->range_length() + 4); in read()
556 dataLength = outputBuffer->size(); // Reset the output buffer length in read()
557 encoderStatus = PVAVCEncodeNAL(mHandle, outPtr, &dataLength, &type); in read()
574 dataLength = 0; in read()
[all …]
/frameworks/base/core/java/android/nfc/
DLlcpPacket.java74 int dataLength = in.readInt();
75 byte[] data = new byte[dataLength];
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/
DM4vH263Encoder.cpp384 int32_t dataLength = outputBuffer->size(); in read() local
388 if (!PVGetVolHeader(mHandle, outPtr, &dataLength, 0)) { in read()
392 LOGV("Output VOL header: %d bytes", dataLength); in read()
394 outputBuffer->set_range(0, dataLength); in read()
461 &modTimeMs, outPtr, &dataLength, &nLayer) || in read()
477 outputBuffer->set_range(0, dataLength); in read()
/frameworks/base/media/libstagefright/
DAACWriter.cpp357 ssize_t dataLength = buffer->range_length(); in threadFunc() local
359 if (writeAdtsHeader(kAdtsHeaderLength + dataLength) != OK || in threadFunc()
360 dataLength != write(mFd, data, dataLength)) { in threadFunc()
/frameworks/base/include/drm/
Ddrm_framework_common.h74 DrmBuffer(char* dataBytes, int dataLength) : in DrmBuffer() argument
76 length(dataLength) { in DrmBuffer()
/frameworks/base/libs/rs/driver/
DrsdBcc.h63 size_t dataLength);
68 size_t dataLength);
DrsdBcc.cpp460 uint32_t slot, void *data, size_t dataLength) { in rsdScriptSetGlobalVar() argument
471 memcpy(destPtr, data, dataLength); in rsdScriptSetGlobalVar()
/frameworks/base/core/java/com/google/android/mms/pdu/
DPduComposer.java983 int dataLength = 0; // Just for safety... in makeMessageBody() local
988 dataLength = partData.length; in makeMessageBody()
998 dataLength += len; in makeMessageBody()
1009 if (dataLength != (attachment.getLength() - headerLength)) { in makeMessageBody()
1015 appendUintvarInteger(dataLength); in makeMessageBody()
DPduParser.java746 int dataLength = parseUnsignedInt(pduDataStream); in parseParts() local
800 if (dataLength > 0) { in parseParts()
801 byte[] partData = new byte[dataLength]; in parseParts()
803 pduDataStream.read(partData, 0, dataLength); in parseParts()
/frameworks/base/media/libstagefright/mpeg2ts/
DATSParser.cpp668 unsigned dataLength = in parsePES() local
671 if (br->numBitsLeft() < dataLength * 8) { in parsePES()
674 br->numBitsLeft(), dataLength * 8); in parsePES()
679 CHECK_GE(br->numBitsLeft(), dataLength * 8); in parsePES()
682 PTS_DTS_flags, PTS, DTS, br->data(), dataLength); in parsePES()
684 br->skipBits(dataLength * 8); in parsePES()
/frameworks/base/media/mtp/
DMtpDevice.h109 bool writeDataHeader(MtpOperationCode operation, int dataLength);
DMtpDevice.cpp809 bool MtpDevice::writeDataHeader(MtpOperationCode operation, int dataLength) { in writeDataHeader() argument
812 return (!mData.writeDataHeader(mRequestOut, dataLength)); in writeDataHeader()
/frameworks/base/cmds/keystore/
Dkeystore.cpp204 size_t dataLength = mBlob.length + sizeof(mBlob.length); in encryptBlob() local
206 size_t digestedLength = ((dataLength + AES_BLOCK_SIZE - 1) in encryptBlob()
213 memset(mBlob.value + mBlob.length, 0, digestedLength - dataLength); in encryptBlob()
/frameworks/base/libs/rs/
Drs_hal.h98 size_t dataLength);