/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 | 245 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 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 | 178 if (0 < path.length()) { 368 int /* uniqueId */, int* length, DrmSupportInfo** drmSupportInfoArray) { 395 *length = validPlugins; 400 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 413 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime); 367 getAllSupportInfo( int , int* length, DrmSupportInfo** drmSupportInfoArray) argument 399 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
|
H A D | DrmManagerService.cpp | 260 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 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 | 250 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 D | FwdLockConv.c | 125 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 D | DrmPassthruPlugIn.cpp | 66 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()); 223 if (NULL != inputData && 0 < inputData->length) { 224 int length local [all...] |
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ClearKeyCasPlugin.cpp | 212 // key (odd key or even key), |length| is the data size, and |buffer| is the 214 status_t TpBlockCtsDecrypt(const AES_KEY& key, size_t length, char* buffer) { argument 218 CHECK(length >= AES_BLOCK_SIZE); 228 int cts_byte_count = length % AES_BLOCK_SIZE; 232 AES_cbc_encrypt(data, data, length, &key, iv, 0); 243 int cbc_byte_count = length - cts_byte_count - AES_BLOCK_SIZE; 281 // 4-5: 0x00 00 = PES length (filled in later, this is the length of the 282 // PES header (16) plus the length of the ECM container). 286 // 12-13: 0x00 00 = ECM container length (fille 392 decryptPayload( const AES_KEY& key, size_t length, size_t offset, char* buffer) const 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/include/media/ |
H A D | RingBuffer.h | 40 * Construct a RingBuffer that can grow up to the given length. 42 explicit 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 D | NBLog.h | 79 const uint8_t length; member in struct:android::NBLog::FormatEntry::entry 85 uint8_t length; member in struct:android::NBLog::FormatEntry::ending 125 // Enrty's format string length 145 // copies ordinary entry from src to dst, and returns length of entry 154 Entry(Event event, const void *data, size_t length) argument 155 : mEvent(event), mLength(length), mData(data) { } 163 uint8_t mLength; // length of additional data, 0 <= mLength <= kMaxLength 169 // endind length of previous entry 171 offsetof(FormatEntry::ending, length); 187 static void appendPID(String8 *body, const void *data, size_t length); [all...] |
/frameworks/av/include/ndk/ |
H A D | NdkMediaDrm.h | 47 size_t length; member in struct:__anon147 287 * responseSize is the length of the provisioning response in bytes. 408 * Encrypt the data referenced by input of length dataSize using algorithm specified 419 * Decrypt the data referenced by input of length dataSize using algorithm specified
|
/frameworks/av/media/img_utils/src/ |
H A D | TiffWriter.cpp | 29 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 D | basic_types.h | 56 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 D | EffectReverb.cpp | 199 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local 209 for (i = 0; i < length; i++) { 218 if (i == length) { 303 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local 310 for (i = 0; i < length; i++) {
|
/frameworks/av/media/libeffects/testlibs/ |
H A D | EffectReverb.c | 174 int length = sizeof(gDescriptors) / sizeof(const effect_descriptor_t *); local 181 for (i = 0; i < length; i++) {
|
/frameworks/av/media/libmedia/ |
H A D | IMediaExtractorService.cpp | 57 virtual sp<IDataSource> makeIDataSource(int fd, int64_t offset, int64_t length) argument 63 data.writeInt64(length); 65 ALOGV("fd:%d offset:%lld length:%lld ret:%d", 66 fd, (long long)offset, (long long)length, ret); 105 const int64_t length = data.readInt64(); local 106 ALOGV("fd %d offset%lld length:%lld", fd, (long long)offset, (long long)length); 107 sp<IDataSource> source = makeIDataSource(fd, offset, length);
|
H A D | IMediaMetadataRetriever.cpp | 119 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 D | IMediaPlayer.cpp | 134 status_t setDataSource(int fd, int64_t offset, int64_t length) { argument 139 data.writeInt64(length); 594 int64_t length = data.readInt64(); local 595 reply->writeInt32(setDataSource(fd, offset, length));
|
H A D | IMediaSource.cpp | 169 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 D | JetPlayer.cpp | 344 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);
|