Searched defs:length (Results 1 - 25 of 418) sorted by path

1234567891011>>

/frameworks/av/cmds/stagefright/
H A Dsf2.cpp353 size_t length = U16_AT(ptr); local
358 CHECK(size >= length);
361 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
362 buffer->setRange(0, buffer->size() + 4 + length);
364 ptr += length;
365 size -= length;
381 size_t length = U16_AT(ptr); local
386 CHECK(size >= length);
389 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
390 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.cpp245 const int dataBufferSize = dataBuffer.length;
351 data.writeInt32(dataBuffer.length);
352 data.write(dataBuffer.data, dataBuffer.length);
511 data.writeInt32(inputData->length);
512 data.write(inputData->data, inputData->length);
571 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
602 *length = arraySize;
607 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
615 data.writeInt64(length);
666 if (buf.data != NULL && buf.length >
570 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
606 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.cpp183 if (0 < path.length()) {
373 int /* uniqueId */, int* length, DrmSupportInfo** drmSupportInfoArray) {
400 *length = validPlugins;
405 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
418 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime);
372 getAllSupportInfo( int , int* length, DrmSupportInfo** drmSupportInfoArray) argument
404 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
H A DDrmManagerService.cpp260 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
262 return mDrmManager->getAllSupportInfo(uniqueId, length, drmSupportInfoArray);
266 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
269 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime);
259 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
265 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.cpp250 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
252 if ((NULL != drmSupportInfoArray) && (NULL != length)) {
254 uniqueId, length, drmSupportInfoArray);
261 off64_t length, const char* mime) {
264 uniqueId, fd, offset, length, mime);
249 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
259 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.c125 size_t length; member in struct:FwdLockConv_String
450 if (pString->length == pString->maxLength) {
459 pString->ptr[pString->length++] = ch;
460 pString->ptr[pString->length] = '\0';
511 pSession->contentType.length = strlenTextPlain;
552 if (pSession->contentType.length > UCHAR_MAX) {
560 size_t encryptedSessionKeyPos = TOP_HEADER_SIZE + pSession->contentType.length;
566 (unsigned char)pSession->contentType.length;
569 pSession->contentType.ptr, pSession->contentType.length);
602 pSession->mimeHeaderName.length
[all...]
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp66 charValue = new char[value.length() + 1];
67 strncpy(charValue, value.string(), value.length());
68 charValue[value.length()] = '\0';
150 int length = dataString.length(); local
152 data = new char[length];
153 memcpy(data, dataString.string(), length);
155 DrmBuffer(data, length), drmInfoRequest->getMimeType());
222 if (NULL != inputData && 0 < inputData->length) {
223 int length local
237 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument
[all...]
/frameworks/av/include/drm/
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 DRingBuffer.h40 * Construct a RingBuffer that can grow up to the given length.
42 RingBuffer(size_t length);
97 * Adds item to the front of this RingBuffer. If the RingBuffer is at its maximum length,
107 * longer be used. If the RingBuffer is at its maximum length, this will result in the
116 * the RingBuffer is at its maximum length, this will result in the last element being
174 RingBuffer<T>::RingBuffer(size_t length) : mFrontIdx{0}, mMaxBufferSize{length} {} argument
/frameworks/av/include/media/nbaio/
H A DNBLog.h49 Entry(Event event, const void *data, size_t length) argument
50 : mEvent(event), mLength(length), mData(data) { }
58 size_t mLength; // length of additional data, 0 <= mLength <= 255
141 void log(Event event, const void *data, size_t length);
/frameworks/av/include/ndk/
H A DNdkMediaDrm.h44 size_t length; member in struct:__anon93
285 * responseSize is the length of the provisioning response in bytes.
406 * Encrypt the data referenced by input of length dataSize using algorithm specified
417 * Decrypt the data referenced by input of length dataSize using algorithm specified
/frameworks/av/media/img_utils/src/
H A DTiffWriter.cpp29 const TagDefinition_t* definitions, size_t length) {
31 for(size_t i = 0; i < length; ++i) {
55 size_t length) : mTagMaps(enabledDefinitions), mNumTagMaps(length) {}
383 size_t length = mNamedIfds.size(); local
384 for (size_t i = 0; i < length; ++i) {
28 buildTagMap( const TagDefinition_t* definitions, size_t length) argument
54 TiffWriter(KeyedVector<uint16_t, const TagDefinition_t*>* enabledDefinitions, size_t length) argument
/frameworks/av/media/libeffects/loudness/common/core/
H A Dbasic_types.h56 int length; member in struct:le_fx::FloatArray
61 length = 0;
66 int length; member in struct:le_fx::Int16Array
71 length = 0;
76 int length; member in struct:le_fx::Int32Array
81 length = 0;
86 int length; member in struct:le_fx::Int8Array
91 length = 0;
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp198 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local
208 for (i = 0; i < length; i++) {
217 if (i == length) {
302 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local
309 for (i = 0; i < length; i++) {
/frameworks/av/media/libeffects/testlibs/
H A DEffectReverb.c171 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local
178 for (i = 0; i < length; i++) {
/frameworks/av/media/libmedia/
H A DIMediaMetadataRetriever.cpp119 status_t setDataSource(int fd, int64_t offset, int64_t length) argument
125 data.writeInt64(length);
250 int64_t length = data.readInt64(); local
251 reply->writeInt32(setDataSource(fd, offset, length));
H A DIMediaPlayer.cpp114 status_t setDataSource(int fd, int64_t offset, int64_t length) { argument
119 data.writeInt64(length);
466 int64_t length = data.readInt64(); local
467 reply->writeInt32(setDataSource(fd, offset, length));
H A DIMediaRecorder.cpp174 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument
175 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
180 data.writeInt64(length);
432 int64_t length = data.readInt64(); local
433 reply->writeInt32(setOutputFile(fd, offset, length));
H A DIMediaSource.cpp169 size_t length = reply.readInt32(); local
171 buf->set_range(offset, length);
360 const size_t length = buf->range_length(); local
362 if (length >= (supportNonblockingRead() && buf->mMemory != nullptr ?
365 ALOGV("Use shared memory: %zu", length);
368 ALOGD("Large buffer %zu without IMemory!", length);
370 &transferBuf, false /* nonBlocking */, length);
375 length, ret);
383 memcpy(transferBuf->data(), (uint8_t*)buf->data() + offset, length);
413 reply->writeInt32(length);
[all...]
H A DJetPlayer.cpp344 int JetPlayer::loadFromFD(const int fd, const long long offset, const long long length) argument
346 ALOGV("JetPlayer::loadFromFD(): fd=%d offset=%lld length=%lld", fd, offset, length);
350 mIoWrapper = new MidiIoWrapper(fd, offset, length);

Completed in 3947 milliseconds

1234567891011>>