Searched defs:dataLength (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
H A DFwdLockGlue.c158 size_t dataLength = encryptedKeyLength - AES_BLOCK_SIZE; local
161 memcpy((unsigned char *)pEncryptedKey + dataLength, initVector, AES_BLOCK_SIZE);
162 AES_cbc_encrypt(pEncryptedKey, pEncryptedKey, dataLength, &encryptionRoundKeys,
177 size_t dataLength = encryptedKeyLength - AES_BLOCK_SIZE; local
178 unsigned char *pData = malloc(dataLength);
181 memcpy(pData, pEncryptedKey, dataLength);
182 memcpy(initVector, (const unsigned char *)pEncryptedKey + dataLength, AES_BLOCK_SIZE); local
183 AES_cbc_encrypt(pData, pData, dataLength, &decryptionRoundKeys, initVector,
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
H A Dm4v_h263_enc_test.cpp224 int32_t dataLength = kOutputBufferSize; local
226 &modTimeMs, outputBuf, &dataLength, &nLayer) ||
237 fwrite(outputBuf, 1, dataLength, fpOutput);
/frameworks/base/core/java/android/speech/tts/
H A DFileSynthesisCallback.java235 int dataLength = (int) (fileChannel.size() - WAV_HEADER_LENGTH);
237 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength));
285 int dataLength) {
296 header.putInt(dataLength + WAV_HEADER_LENGTH - 8); // RIFF chunk size
307 header.putInt(dataLength);
284 makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, int dataLength) argument
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsic.cpp50 void RsdCpuScriptIntrinsic::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { argument
56 size_t dataLength, const Element *e,
55 setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength, const Element *e, const uint32_t *dims, size_t dimLength) argument
H A DrsCpuIntrinsicConvolve3x3.cpp33 void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) override;
75 size_t dataLength) {
77 memcpy (&mFp, data, dataLength);
74 setGlobalVar(uint32_t slot, const void *data, size_t dataLength) argument
H A DrsCpuIntrinsicConvolve5x5.cpp33 void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) override;
76 const void *data, size_t dataLength) {
78 memcpy (&mFp, data, dataLength);
75 setGlobalVar(uint32_t slot, const void *data, size_t dataLength) argument
H A DrsCpuIntrinsicHistogram.cpp32 void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) override;
88 void RsdCpuScriptIntrinsicHistogram::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { argument
90 rsAssert(dataLength == 16);
H A DrsCpuIntrinsicBlur.cpp32 void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) override;
108 void RsdCpuScriptIntrinsicBlur::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { argument
H A DrsCpuScript.cpp841 void RsdCpuScriptImpl::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { argument
843 //ALOGE("setGlobalVar %i %p %zu", slot, data, dataLength);
846 //mIntrinsicFuncs.setVar(dc, script, drv->mIntrinsicData, slot, data, dataLength);
856 memcpy(destPtr, data, dataLength);
859 void RsdCpuScriptImpl::getGlobalVar(uint32_t slot, void *data, size_t dataLength) { argument
861 //ALOGE("getGlobalVar %i %p %zu", slot, data, dataLength);
868 memcpy(data, srcPtr, dataLength);
872 void RsdCpuScriptImpl::setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength, argument
904 memcpy(destPtr, data, dataLength);
/frameworks/wilhelm/src/itf/
H A DIAndroidBufferQueue.c54 static SLresult setItems(SLuint32 dataLength, argument
195 if (dataLength > 0) {
217 if (dataLength > 0) {
297 SLuint32 dataLength,
302 SL_LOGD("IAndroidBufferQueue_Enqueue pData=%p dataLength=%d", pData, dataLength);
304 if ((dataLength > 0) && (NULL == pData)) {
305 SL_LOGE("Enqueue failure: non-zero data length %u but NULL data pointer", dataLength);
310 } else if ((0 == dataLength) && (0 == itemsLength)) {
324 if (dataLength
294 IAndroidBufferQueue_Enqueue(SLAndroidBufferQueueItf self, void *pBufferContext, void *pData, SLuint32 dataLength, const SLAndroidBufferItem *pItems, SLuint32 itemsLength) argument
[all...]
/frameworks/av/media/libstagefright/
H A DAACWriter.cpp352 ssize_t dataLength = buffer->range_length(); local
354 if (writeAdtsHeader(kAdtsHeaderLength + dataLength) != OK ||
355 dataLength != write(mFd, data, dataLength)) {
H A DMP3Extractor.cpp354 off64_t dataLength = fileSize - mFirstFramePos; local
355 if (dataLength > INT64_MAX / 8000LL) {
359 durationUs = 8000LL * dataLength / bitrate;
/frameworks/av/media/libstagefright/codecs/avc/enc/test/
H A Dh264_enc_test.cpp251 uint32_t dataLength = kOutputBufferSize; local
253 status = PVAVCEncodeNAL(&handle, outputBuf, &dataLength, &type);
256 fwrite(outputBuf, 1, dataLength, fpOutput); // SPS.
259 dataLength = kOutputBufferSize;
260 status = PVAVCEncodeNAL(&handle, outputBuf, &dataLength, &type);
263 fwrite(outputBuf, 1, dataLength, fpOutput); // PPS.
309 dataLength = kOutputBufferSize;
310 status = PVAVCEncodeNAL(&handle, outputBuf, &dataLength, &type);
321 dataLength = 0;
334 if (dataLength >
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
H A DSoftMPEG4Encoder.cpp416 int32_t dataLength = outHeader->nAllocLen; local
419 if (!PVGetVolHeader(mHandle, outPtr, &dataLength, 0)) {
425 ALOGV("Output VOL header: %d bytes", dataLength);
428 outHeader->nFilledLen = dataLength;
485 &modTimeMs, outPtr, &dataLength, &nLayer) ||
499 dataLength = 0;
511 outHeader->nFilledLen = dataLength;
/frameworks/av/media/ndk/
H A DNdkImage.cpp336 AImage::getPlaneData(int planeIdx,/*out*/uint8_t** data, /*out*/int* dataLength) const {
342 if (data == nullptr || dataLength == nullptr) {
496 *dataLength = dataSize;
623 /*out*/uint8_t** data, /*out*/int* dataLength) {
625 if (image == nullptr || data == nullptr || dataLength == nullptr) {
626 ALOGE("%s: bad argument. image %p data %p dataLength %p",
627 __FUNCTION__, image, data, dataLength);
630 return image->getPlaneData(planeIdx, data, dataLength);
621 AImage_getPlaneData( const AImage* image, int planeIdx, uint8_t** data, int* dataLength) argument
/frameworks/base/core/java/android/bluetooth/le/
H A DScanRecord.java197 int dataLength = length - 1;
207 dataLength, BluetoothUuid.UUID_BYTES_16_BIT, serviceUuids);
211 parseServiceUuid(scanRecord, currentPos, dataLength,
216 parseServiceUuid(scanRecord, currentPos, dataLength,
222 extractBytes(scanRecord, currentPos, dataLength));
236 currentPos + serviceUuidLength, dataLength - serviceUuidLength);
245 dataLength - 2);
252 currentPos += dataLength;
277 private static int parseServiceUuid(byte[] scanRecord, int currentPos, int dataLength, argument
279 while (dataLength >
[all...]
/frameworks/base/wifi/java/android/net/wifi/nan/
H A DTlvBufferUtils.java256 private void checkLength(int dataLength) { argument
257 if (mPosition + mTypeSize + mLengthSize + dataLength > mArrayLength) {
/frameworks/rs/driver/
H A DrsdBcc.cpp137 uint32_t slot, void *data, size_t dataLength) {
139 cs->setGlobalVar(slot, data, dataLength);
143 uint32_t slot, void *data, size_t dataLength) {
145 cs->getGlobalVar(slot, data, dataLength);
150 uint32_t slot, void *data, size_t dataLength,
154 cs->setGlobalVarWithElemDims(slot, data, dataLength, elem, dims, dimLength);
136 rsdScriptSetGlobalVar(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength) argument
142 rsdScriptGetGlobalVar(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength) argument
149 rsdScriptSetGlobalVarWithElemDims(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength, const android::renderscript::Element *elem, const uint32_t *dims, size_t dimLength) argument
/frameworks/av/include/drm/
H A Ddrm_framework_common.h75 DrmBuffer(char* dataBytes, int dataLength) : argument
77 length(dataLength) {
/frameworks/av/media/libstagefright/codecs/avc/enc/
H A DSoftAVCEncoder.cpp520 uint32_t dataLength = outHeader->nAllocLen; local
526 dataLength -= 4;
536 encoderStatus = PVAVCEncodeNAL(mHandle, outPtr, &dataLength, &type);
550 outHeader->nFilledLen = 4 + dataLength;
551 outPtr += (dataLength + 4); // 4 bytes for next start code
552 dataLength = outHeader->nAllocLen - outHeader->nFilledLen;
559 outHeader->nFilledLen += (dataLength + 4);
560 outPtr += (dataLength + 4);
642 dataLength = outHeader->nAllocLen; // Reset the output buffer length
647 dataLength
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DMPEG2PSExtractor.cpp521 unsigned dataLength = local
524 if (br.numBitsLeft() < dataLength * 8) {
527 br.numBitsLeft(), dataLength * 8);
532 if (br.numBitsLeft() < dataLength * 8) {
565 PTS_DTS_flags, PTS, DTS, br.data(), dataLength);
568 br.skipBits(dataLength * 8);
H A DATSParser.cpp991 unsigned dataLength = local
994 if (br->numBitsLeft() < dataLength * 8) {
997 br->numBitsLeft(), dataLength * 8);
1003 PTS_DTS_flags, PTS, DTS, br->data(), dataLength, event);
1005 br->skipBits(dataLength * 8);
/frameworks/av/media/mtp/
H A DMtpDevice.cpp875 bool MtpDevice::writeDataHeader(MtpOperationCode operation, int dataLength) { argument
878 return (!mData.writeDataHeader(mRequestOut, dataLength));
/frameworks/base/drm/jni/
H A 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) {
94 *dataLength = 0;
100 return Utility::getByteArrayValue(env, byteArray, dataLength);
105 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) { argument
110 *dataLength = length;
111 if (0 < *dataLength) {
397 int dataLength = 0; local
398 char* mData = Utility::getByteArrayValue(env, drmRights, "mData", &dataLength);
91 getByteArrayValue( JNIEnv* env, jobject object, const char* fieldName, int* dataLength) argument
429 int dataLength = 0; local
677 int dataLength = 0; local
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_location_GnssLocationProvider.cpp1476 size_t dataLength = message->data_length; local
1478 if (dataLength == 0 || data == NULL) {
1479 ALOGE("Invalid Navigation Message found: data=%p, length=%zd", data, dataLength);
1497 object.callSetter("setData", data, dataLength);
1504 size_t dataLength = message->data_length; local
1506 if (dataLength == 0 || data == NULL) {
1507 ALOGE("Invalid Navigation Message found: data=%p, length=%zd", data, dataLength);
1515 object.callSetter("setData", data, dataLength);

Completed in 869 milliseconds

12