/frameworks/av/cmds/stagefright/ |
H A D | sf2.cpp | 330 size_t length = U16_AT(ptr); local 335 CHECK(size >= length); 338 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 339 buffer->setRange(0, buffer->size() + 4 + length); 341 ptr += length; 342 size -= length; 358 size_t length = U16_AT(ptr); local 363 CHECK(size >= length); 366 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 367 buffer->setRange(0, buffer->size() + 4 + length); [all...] |
/frameworks/av/drm/common/ |
H A D | DrmConstraints.cpp | 33 int length = strlen(value); local 34 char* charValue = new char[length + 1]; 36 strncpy(charValue, value, length); 37 charValue[length] = '\0';
|
H A D | DrmEngineBase.cpp | 124 int fd, off64_t offset, off64_t length, const char* mime) { 127 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length); 130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); 122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
|
H A D | DrmMetadata.cpp | 28 int length = strlen(value); local 29 char* charValue = new char[length + 1]; 31 memcpy(charValue, value, length); 32 charValue[length] = '\0';
|
H A D | IDrmManagerService.cpp | 254 const int dataBufferSize = dataBuffer.length; 358 data.writeInt32(dataBuffer.length); 359 data.write(dataBuffer.data, dataBuffer.length); 518 data.writeInt32(inputData->length); 519 data.write(inputData->data, inputData->length); 578 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) { 609 *length = arraySize; 614 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 622 data.writeInt64(length); 673 if (buf.data != NULL && buf.length > 577 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument 613 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 1292 int length = 0; local 1329 const off64_t length = data.readInt64(); local [all...] |
H A D | ReadWriteUtils.cpp | 45 off64_t length = sb.st_size; local 46 char* bytes = new char[length]; 47 if (length == read(fd, (void*) bytes, length)) { 48 string.append(bytes, length); 60 off64_t length = 0; local 67 length = sb.st_size; 68 *buffer = new char[length]; 69 if (length != read(fd, (void*) *buffer, length)) { [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 208 if (0 < path.length()) { 398 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) { 425 *length = validPlugins; 430 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 443 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime); 397 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument 429 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
|
H A D | DrmManagerService.cpp | 197 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) { 199 return mDrmManager->getAllSupportInfo(uniqueId, length, drmSupportInfoArray); 203 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 206 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime); 196 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument 202 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 115 status_t DrmManagerClient::getAllSupportInfo(int* length, DrmSupportInfo** drmSupportInfoArray) { argument 116 return mDrmManagerClientImpl->getAllSupportInfo(mUniqueId, length, drmSupportInfoArray); 120 int fd, off64_t offset, off64_t length, const char* mime) { 123 mUniqueId, fd, offset, length, mime); 119 openDecryptSession( int fd, off64_t offset, off64_t length, const char* mime) argument
|
H A D | DrmManagerClientImpl.cpp | 248 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) { 250 if ((NULL != drmSupportInfoArray) && (NULL != length)) { 252 uniqueId, length, drmSupportInfoArray); 259 off64_t length, const char* mime) { 262 uniqueId, fd, offset, length, mime); 247 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument 257 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
|
/frameworks/av/drm/libdrmframework/plugins/common/include/ |
H A D | DrmEngineBase.h | 84 int fd, off64_t offset, off64_t length, const char* mime); 379 * @param[in] length The length of the protected content 385 int fd, off64_t offset, off64_t length) = 0; 394 * @param[in] length The length of the protected content 402 int fd, off64_t offset, off64_t length, 400 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 348 if (((0 == path.length()) || onCanHandle(uniqueId, path)) && 349 ((0 == mimeType.length()) || IsMimeTypeSupported(mimeType)) && (mimeType != path) ) { 411 inputData->length, 420 convResult->length = convSession->output.fromConvertData.numBytes; 423 convResult->length); 453 convResult->length = FWD_LOCK_SIGNATURES_SIZE; 456 convResult->length); 470 off64_t length) { 476 int length) { 541 // offset is always 0 and length i 466 onOpenDecryptSession(int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
H A D | FwdLockConv.c | 124 size_t length; member in struct:FwdLockConv_String 447 if (pString->length == pString->maxLength) { 456 pString->ptr[pString->length++] = ch; 457 pString->ptr[pString->length] = '\0'; 508 pSession->contentType.length = strlenTextPlain; 549 if (pSession->contentType.length > UCHAR_MAX) { 557 size_t encryptedSessionKeyPos = TOP_HEADER_SIZE + pSession->contentType.length; 563 (unsigned char)pSession->contentType.length; 566 pSession->contentType.ptr, pSession->contentType.length); 599 pSession->mimeHeaderName.length [all...] |
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 66 charValue = new char[value.length() + 1]; 67 strncpy(charValue, value.string(), value.length()); 149 int length = dataString.length(); local 151 data = new char[length]; 152 memcpy(data, dataString.string(), length); 154 DrmBuffer(data, length), drmInfoRequest->getMimeType()); 221 if (NULL != inputData && 0 < inputData->length) { 222 int length = inputData->length; local 236 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument [all...] |
/frameworks/av/include/drm/ |
H A D | drm_framework_common.h | 68 int length; member in class:android::DrmBuffer 72 length(0) { 77 length(dataLength) {
|
/frameworks/av/libvideoeditor/lvpp/ |
H A D | VideoEditorPlayer.cpp | 72 int64_t length) { 73 ALOGE("setDataSource(%d, %lld, %lld) Not supported", fd, offset, length); 71 setDataSource(int fd, int64_t offset, int64_t length) argument
|
/frameworks/av/libvideoeditor/vss/mcs/src/ |
H A D | M4MCS_API.c | 419 M4OSA_UInt8 length ) 424 M4OSA_UInt32 len1 = (length == 32) ? 31 : length; 426 if( !(length) ) 434 if( 32 > (length + bS->bitPos) ) 436 bS->bitPos += length; 441 temp = (( bS->bitPos + length) - 32); 1164 M4OSA_UInt32 i, length, v; local 1235 for ( length = 0, v = pps->num_slice_groups_minus1 + 1; v != 0; 1236 v >>= 1, length [all...] |
/frameworks/av/libvideoeditor/vss/src/ |
H A D | M4VD_EXTERNAL_BitstreamParser.c | 209 /* Computes time increment length */ 681 M4OSA_UInt32 length = 0; local 686 length = sizeof(mpeg4ProfileLevelTable) /sizeof(mpeg4ProfileLevelTable[0]); 689 for (i = 0; i < length; i++) {
|
H A D | M4VSS3GPP_Clip.c | 363 M4OSA_UInt32 length = local 366 char* pTempFile = (char *) malloc(length); 368 M4OSA_TRACE1_1("M4VSS3GPP_intClipOpen(): malloc %d bytes fail",length); 371 memset(pTempFile, 0, length); 1882 * @brief Return the length, in bytes, of the AMR Narrow-Band frame contained in the given buffer 1948 * @brief Return the length, in bytes, of the EVRC frame contained in the given buffer
|
H A D | M4xVSS_API.c | 71 M4OSA_UInt32 length = 0, i; local 601 M4OSA_UInt32 length = 0; local 840 UTFConversionContext.pTempOutConversionBuffer, &length); 850 pSettings->uiOutputPathSize = length; 1495 pTempOutConversionBuffer, &length); 1803 length = strlen(pDecodedPath); 1816 &length); 1833 pParams->pFileIn = (M4OSA_Void *)M4OSA_32bitAlignedMalloc(length + 1, M4VS, 1846 (length + 1)); /* Copy input file path */ 1876 length 4762 M4OSA_UInt32 length = 0; local [all...] |
H A D | M4xVSS_internal.c | 1552 M4OSA_UInt32 length = 0; local 1554 (M4OSA_Void*) xVSS_context->UTFConversionContext.pTempOutConversionBuffer, &length); 1727 M4OSA_UInt32 length = 0; local 1729 (M4OSA_Void*) xVSS_context->UTFConversionContext.pTempOutConversionBuffer, &length); 1910 M4OSA_UInt32 length = 0; local 1912 (M4OSA_Void*) xVSS_context->UTFConversionContext.pTempOutConversionBuffer, &length); 3558 M4OSA_UInt32 length = 0; local 3562 &length);
|
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
H A D | VideoEditor3gpReader.cpp | 162 * @brief Read the next <length> bits in the bitstream. 165 * @param length (IN) The number of bits to extract from the bitstream 170 M4OSA_Int32 length) { 183 i_ovf = pStreamContext->mBitIndex + length - 32; 184 u_mask = (length >= 32) ? 0xffffffff: (1 << length) - 1; 205 * @brief Increment the bitstream pointer of <length> bits. 207 * @param length (IN) The number of bit to shift the bitstream 211 M4OSA_Int32 length) { 219 val=pStreamContext->mBitIndex + length; 169 VideoEditor3gpReader_BitStreamParserShowBits(void* pContext, M4OSA_Int32 length) argument 210 VideoEditor3gpReader_BitStreamParserFlushBits(void* pContext, M4OSA_Int32 length) argument 317 M4OSA_UInt32 length=0; local 349 M4OSA_UInt32 length=0; local [all...] |
H A D | VideoEditorUtils.cpp | 205 AVCParamSet(uint16_t length, const uint8_t *data) argument 206 : mLength(length), mData(data) {} 220 const uint8_t *data, size_t length, int type, size_t *paramSetLen) { 224 size_t bytesLeft = length; 226 memcmp("\x00\x00\x00\x01", &data[length - bytesLeft], 4)) { 232 const uint8_t *nextStartCode = &data[length - bytesLeft]; 235 ALOGE("Param set is malformed, since its length is 0"); 280 ALOGE("Codec specific data length too short: %d", size); 286 // 2 bytes for each of the parameter set length field 289 ALOGE("Codec specific data length to 219 parseParamSet(AVCCodecSpecificContext* pC, const uint8_t *data, size_t length, int type, size_t *paramSetLen) argument [all...] |
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
H A D | EffectReverb.cpp | 220 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local 230 for (i = 0; i < length; i++) { 239 if (i == length) { 324 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local 331 for (i = 0; i < length; i++) {
|
/frameworks/av/media/libeffects/testlibs/ |
H A D | EffectReverb.c | 188 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local 195 for (i = 0; i < length; i++) {
|