Searched refs:length (Results 1 - 25 of 1461) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraParameters.cpp64 const char CameraParameters::KEY_FOCAL_LENGTH[] = "focal-length";
265 if (v.length() == 0)
/frameworks/av/cmds/stagefright/
H A Dsf2.cpp330 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 DDrmConstraints.cpp33 int length = strlen(value); local
34 char* charValue = new char[length + 1];
36 strncpy(charValue, value, length);
37 charValue[length] = '\0';
H A DDrmEngineBase.cpp124 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 DDrmMetadata.cpp28 int length = strlen(value); local
29 char* charValue = new char[length + 1];
31 memcpy(charValue, value, length);
32 charValue[length] = '\0';
H A DIDrmManagerService.cpp254 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 DReadWriteUtils.cpp45 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 DDrmManager.cpp208 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 DDrmManagerService.cpp197 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 DDrmManagerClient.cpp115 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 DDrmManagerClientImpl.cpp248 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/include/
H A DDrmManager.h112 status_t getAllSupportInfo(int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray);
115 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime);
H A DDrmManagerClientImpl.h289 * @param[out] length Number of elements in drmSupportInfoArray
295 status_t getAllSupportInfo(int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray);
303 * @param[in] length The length of the protected content
309 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime);
H A DDrmManagerService.h99 status_t getAllSupportInfo(int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray);
102 int uniqueId, int fd, off64_t offset, off64_t length, const char *mime);
H A DIDrmManagerService.h141 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) = 0;
145 off64_t length, const char* mime) = 0;
230 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray);
233 int uniqueId, int fd, off64_t offset, off64_t length,
/frameworks/av/drm/libdrmframework/plugins/common/include/
H A DDrmEngineBase.h84 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
H A DIDrmEngine.h323 * @param[in] length The length of the protected content
331 int fd, off64_t offset, off64_t length, const char* mime) = 0;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
H A DFwdLockEngine.h327 * @param length The length of the protected content
334 int fd, off64_t offset, off64_t length);
338 int fd, int offset, int length);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp348 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 DFwdLockConv.c124 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/include/
H A DDrmPassthruPlugIn.h77 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length);
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp66 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 DDrmManagerClient.h68 * @param[in] length The length of the protected content
73 sp<DecryptHandle> openDecryptSession(int fd, off64_t offset, off64_t length, const char* mime);
374 * @param[out] length Number of elements in drmSupportInfoArray
380 status_t getAllSupportInfo(int* length, DrmSupportInfo** drmSupportInfoArray);
H A Ddrm_framework_common.h68 int length; member in class:android::DrmBuffer
72 length(0) {
77 length(dataLength) {
/frameworks/av/include/media/
H A DIMediaMetadataRetriever.h39 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;

Completed in 127 milliseconds

1234567891011>>