Home
last modified time | relevance | path

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

12

/frameworks/av/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/wilhelm/src/itf/
DIAndroidBufferQueue.c54 static SLresult setItems(SLuint32 dataLength, in setItems() argument
195 if (dataLength > 0) { in setItems()
217 if (dataLength > 0) { in setItems()
297 SLuint32 dataLength, in IAndroidBufferQueue_Enqueue() argument
302 SL_LOGD("IAndroidBufferQueue_Enqueue pData=%p dataLength=%d", pData, dataLength); in IAndroidBufferQueue_Enqueue()
304 if ((dataLength > 0) && (NULL == pData)) { in IAndroidBufferQueue_Enqueue()
305 SL_LOGE("Enqueue failure: non-zero data length %u but NULL data pointer", dataLength); in IAndroidBufferQueue_Enqueue()
310 } else if ((0 == dataLength) && (0 == itemsLength)) { in IAndroidBufferQueue_Enqueue()
324 if (dataLength % MPEG2_TS_PACKET_SIZE == 0) { in IAndroidBufferQueue_Enqueue()
328 if ((dataLength > 0) && (*(SLuint8 *)pData != MPEG2_TS_PACKET_SYNC)) { in IAndroidBufferQueue_Enqueue()
[all …]
/frameworks/rs/driver/
DrsdBcc.cpp105 uint32_t slot, void *data, size_t dataLength) { in rsdScriptSetGlobalVar() argument
107 cs->setGlobalVar(slot, data, dataLength); in rsdScriptSetGlobalVar()
111 uint32_t slot, void *data, size_t dataLength) { in rsdScriptGetGlobalVar() argument
113 cs->getGlobalVar(slot, data, dataLength); in rsdScriptGetGlobalVar()
118 uint32_t slot, void *data, size_t dataLength, in rsdScriptSetGlobalVarWithElemDims() argument
122 cs->setGlobalVarWithElemDims(slot, data, dataLength, elem, dims, dimLength); in rsdScriptSetGlobalVarWithElemDims()
DrsdBcc.h62 size_t dataLength,
77 size_t dataLength);
82 size_t dataLength);
/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java176 int dataLength = (int) (mFileChannel.size() - WAV_HEADER_LENGTH); in done() local
178 makeWavHeader(mSampleRateInHz, mAudioFormat, mChannelCount, dataLength)); in done()
199 int dataLength) { in makeWavHeader() argument
211 header.putInt(dataLength + WAV_HEADER_LENGTH - 8); // RIFF chunk size in makeWavHeader()
222 header.putInt(dataLength); in makeWavHeader()
/frameworks/base/drm/jni/
Dandroid_drm_DrmManagerClient.cpp50 JNIEnv* env, jobject object, const char* fieldName, int* dataLength);
53 JNIEnv* env, jbyteArray byteArray, int* dataLength);
92 JNIEnv* env, jobject object, const char* fieldName, int* dataLength) { in getByteArrayValue() argument
94 *dataLength = 0; in getByteArrayValue()
100 return Utility::getByteArrayValue(env, byteArray, dataLength); in getByteArrayValue()
105 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) { in getByteArrayValue() argument
110 *dataLength = length; in getByteArrayValue()
111 if (0 < *dataLength) { in getByteArrayValue()
394 int dataLength = 0; in android_drm_DrmManagerClient_saveRights() local
395 char* mData = Utility::getByteArrayValue(env, drmRights, "mData", &dataLength); in android_drm_DrmManagerClient_saveRights()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuScript.h64 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
65 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength);
66 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
Drsd_cpu.h77 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) = 0;
78 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength) = 0;
79 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
DrsCpuIntrinsic.h43 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
44 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
DrsCpuIntrinsic.cpp50 void RsdCpuScriptIntrinsic::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { in setGlobalVar() argument
56 size_t dataLength, const Element *e, in setGlobalVarWithElemDims() argument
DrsCpuIntrinsicConvolve3x3.cpp33 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
60 size_t dataLength) { in setGlobalVar() argument
62 memcpy (&mFp, data, dataLength); in setGlobalVar()
DrsCpuIntrinsicColorMatrix.cpp32 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
57 size_t dataLength) { in setGlobalVar() argument
59 memcpy (fp, data, dataLength); in setGlobalVar()
DrsCpuIntrinsicConvolve5x5.cpp33 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
61 const void *data, size_t dataLength) { in setGlobalVar() argument
63 memcpy (&fp, data, dataLength); in setGlobalVar()
DrsCpuScript.cpp642 void RsdCpuScriptImpl::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { in setGlobalVar() argument
662 memcpy(destPtr, data, dataLength); in setGlobalVar()
665 void RsdCpuScriptImpl::getGlobalVar(uint32_t slot, void *data, size_t dataLength) { in getGlobalVar() argument
679 memcpy(data, srcPtr, dataLength); in getGlobalVar()
683 void RsdCpuScriptImpl::setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength, in setGlobalVarWithElemDims() argument
721 memcpy(destPtr, data, dataLength); in setGlobalVarWithElemDims()
/frameworks/av/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.cpp741 uint32_t dataLength = outHeader->nAllocLen; in onQueueFilled() local
747 dataLength -= 4; in onQueueFilled()
757 encoderStatus = PVAVCEncodeNAL(mHandle, outPtr, &dataLength, &type); in onQueueFilled()
771 outHeader->nFilledLen = 4 + dataLength; in onQueueFilled()
772 outPtr += (dataLength + 4); // 4 bytes for next start code in onQueueFilled()
773 dataLength = outHeader->nAllocLen - outHeader->nFilledLen; in onQueueFilled()
780 outHeader->nFilledLen += (dataLength + 4); in onQueueFilled()
781 outPtr += (dataLength + 4); in onQueueFilled()
872 dataLength = outHeader->nAllocLen; // Reset the output buffer length in onQueueFilled()
874 encoderStatus = PVAVCEncodeNAL(mHandle, outPtr, &dataLength, &type); in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/
DAACWriter.cpp367 ssize_t dataLength = buffer->range_length(); in threadFunc() local
369 if (writeAdtsHeader(kAdtsHeaderLength + dataLength) != OK || in threadFunc()
370 dataLength != write(mFd, data, dataLength)) { in threadFunc()
/frameworks/av/include/drm/
Ddrm_framework_common.h75 DrmBuffer(char* dataBytes, int dataLength) : in DrmBuffer() argument
77 length(dataLength) { in DrmBuffer()
/frameworks/av/media/libstagefright/mpeg2ts/
DMPEG2PSExtractor.cpp470 unsigned dataLength = in dequeuePES() local
473 if (br.numBitsLeft() < dataLength * 8) { in dequeuePES()
476 br.numBitsLeft(), dataLength * 8); in dequeuePES()
481 CHECK_GE(br.numBitsLeft(), dataLength * 8); in dequeuePES()
512 PTS_DTS_flags, PTS, DTS, br.data(), dataLength); in dequeuePES()
515 br.skipBits(dataLength * 8); in dequeuePES()
DATSParser.cpp804 unsigned dataLength = in parsePES() local
807 if (br->numBitsLeft() < dataLength * 8) { in parsePES()
810 br->numBitsLeft(), dataLength * 8); in parsePES()
815 CHECK_GE(br->numBitsLeft(), dataLength * 8); in parsePES()
818 PTS_DTS_flags, PTS, DTS, br->data(), dataLength); in parsePES()
820 br->skipBits(dataLength * 8); in parsePES()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
DSoftMPEG4Encoder.cpp650 int32_t dataLength = outHeader->nAllocLen; in onQueueFilled() local
653 if (!PVGetVolHeader(mHandle, outPtr, &dataLength, 0)) { in onQueueFilled()
659 ALOGV("Output VOL header: %d bytes", dataLength); in onQueueFilled()
662 outHeader->nFilledLen = dataLength; in onQueueFilled()
726 &modTimeMs, outPtr, &dataLength, &nLayer) || in onQueueFilled()
740 dataLength = 0; in onQueueFilled()
754 outHeader->nFilledLen = dataLength; in onQueueFilled()
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/
DPduComposer.java981 int dataLength = 0; // Just for safety... in makeMessageBody() local
986 dataLength = partData.length; in makeMessageBody()
996 dataLength += len; in makeMessageBody()
1014 if (dataLength != (attachment.getLength() - headerLength)) { in makeMessageBody()
1020 appendUintvarInteger(dataLength); in makeMessageBody()
/frameworks/rs/
Drs_hal.h123 size_t dataLength);
127 size_t dataLength);
131 size_t dataLength,
/frameworks/wilhelm/include/OMXAL/
DOpenMAXAL_Android.h114 XAuint32 dataLength,
/frameworks/av/media/mtp/
DMtpDevice.h109 bool writeDataHeader(MtpOperationCode operation, int dataLength);
/frameworks/wilhelm/include/SLES/
DOpenSLES_Android.h272 SLuint32 dataLength,

12