/frameworks/av/camera/ |
H A D | CameraMetadata.cpp | 503 // arg2 = offset (blob) 504 // Must be after blob since we don't know offset until after writeBlob. 511 const size_t offset = static_cast<size_t>(offsetTmp); local 512 if (offset >= alignment) { 513 ALOGE("%s: metadata offset(%zu) should be less than alignment(%zu)", 519 const uintptr_t metadataStart = reinterpret_cast<uintptr_t>(blob.data()) + offset; 522 ALOGV("%s: alignment is: %zu, metadata start: %p, offset: %zu", 523 __FUNCTION__, alignment, tmp, offset); 563 * | arg2: offset | 577 * offset befor 587 size_t offset = 0; local [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | TextRenderer.cpp | 47 // we move down a line (i.e. the Y offset changes). The offset increases 50 uint16_t offset = 0; local 55 offset = 0; 57 mXOffset[i] = offset; 58 offset += FontBitmap::glyphWidth[i] + 1;
|
H A D | screenrecord.cpp | 274 printf("Rotated content area is %ux%u at offset x=%d y=%d\n", 277 printf("Content area is %ux%u at offset x=%d y=%d\n", 340 size_t bufIndex, offset, size; local 352 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec,
|
/frameworks/av/cmds/stagefright/ |
H A D | codec.cpp | 182 buffer->setRange(abuffer->offset(), abuffer->size()); 192 0 /* offset */, 218 0 /* offset */, 254 size_t offset; local 259 &index, &offset, &size, &presentationTimeUs, &flags,
|
H A D | mediafilter.cpp | 143 size_t offset; member in struct:android::DecodedFrame 231 filterIndex, 0 /* offset */, destBuffer->size(), 242 filterIndex, 0 /* offset */, destBuffer->size(), 257 size_t offset; local 262 &index, &offset, &size, &presentationTimeUs, &flags, 540 buffer->setRange(abuffer->offset(), abuffer->size()); 549 index, 0 /* offset */, buffer->size(), 572 index, 0 /* offset */, 0 /* size */, 597 &frame.index, &frame.offset, &frame.size,
|
/frameworks/av/drm/common/ |
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); 168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { 169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset); 122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument 167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
H A D | IDrmManagerService.cpp | 521 const off64_t offset = reply.readInt64(); local 533 drmConvertedStatus = new DrmConvertedStatus(statusCode, convertedData, offset); 553 const off64_t offset = reply.readInt64(); local 565 drmConvertedStatus = new DrmConvertedStatus(statusCode, convertedData, offset); 607 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 614 data.writeInt64(offset); 774 ssize_t numBytes, off64_t offset) { 785 data.writeInt64(offset); 1238 reply->writeInt64(drmConvertedStatus->offset); 1269 reply->writeInt64(drmConvertedStatus->offset); 606 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 772 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument 1328 const off64_t offset = data.readInt64(); local 1525 const off64_t offset = data.readInt64(); local [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 400 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 413 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime); 536 void* buffer, ssize_t numBytes, off64_t offset) { 542 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); 399 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 535 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
H A D | DrmManagerService.cpp | 266 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 269 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime); 332 void* buffer, ssize_t numBytes, off64_t offset) { 337 return mDrmManager->pread(uniqueId, decryptHandle, buffer, numBytes, offset); 265 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 331 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 120 int fd, off64_t offset, off64_t length, const char* mime) { 123 mUniqueId, fd, offset, length, mime); 162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { 163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset); 119 openDecryptSession( int fd, off64_t offset, off64_t length, const char* mime) argument 161 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
H A D | DrmManagerClientImpl.cpp | 260 int uniqueId, int fd, off64_t offset, 264 uniqueId, fd, offset, length, mime); 328 void* buffer, ssize_t numBytes, off64_t offset) { 332 uniqueId, decryptHandle.get(), buffer, numBytes, offset); 259 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 327 pread(int uniqueId, sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
H A D | FwdLockEngine.h | 288 * the output converted data and offset. In this case the 289 * application will ignore the offset information. 298 * the entire data used over a conversion session. This signature must be copied to the offset 305 * the application about the file offset at which this 326 * @param offset Start position of the content 334 int fd, off64_t offset, off64_t length); 338 int fd, int offset, int length); 457 * @param offset Offset with which to update the file position. 467 off64_t offset, 472 off_t offset, 535 off_t offset; member in class:android::FwdLockEngine::DecodeSession [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 409 int offset = -1; local 433 offset = convSession->output.fromConvertData.errorPos; 437 return new DrmConvertedStatus(getConvertedStatus(retStatus), convResult, offset); 444 int offset = -1; local 455 offset = convSession->output.fromCloseSession.fileOffset; 468 return new DrmConvertedStatus(getConvertedStatus(retStatus), convResult, offset); 475 off64_t offset, 481 int offset, 499 -1 < ::lseek(fileDesc, offset, SEEK_SET) && 547 // offset i 472 onOpenDecryptSession(int , DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t ) argument 653 onLseek(int , DecryptHandle* decryptHandle, off64_t offset, int whence) argument 673 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | FwdLockFile.c | 316 off64_t FwdLockFile_lseek(int fileDesc, off64_t offset, int whence) { argument 325 newFilePos = lseek64(pSession->fileDesc, pSession->dataOffset + offset, whence); 329 newFilePos = lseek64(pSession->fileDesc, offset, whence);
|
/frameworks/av/drm/libmediadrm/ |
H A D | Crypto.cpp | 239 const sp<IMemory> &source, size_t offset, 253 const void *srcPtr = static_cast<uint8_t *>(source->pointer()) + offset; 237 decrypt(const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &source, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const ICrypto::DestinationBuffer &destination, AString *errorDetailMsg) argument
|
H A D | CryptoHal.cpp | 227 * are sent by providing an offset into the heap and a buffer size. 260 ssize_t offset; local 267 sp<IMemoryHeap> heap = memory->getMemory(&offset, &size); 276 buffer->offset = offset >= 0 ? offset : 0; 283 const ICrypto::SourceBuffer &source, size_t offset, 350 hPattern, hSubSamples, hSource, offset, hDestination, 281 decrypt(const uint8_t keyId[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const ICrypto::SourceBuffer &source, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const ICrypto::DestinationBuffer &destination, AString *errorDetailMsg) argument
|
H A D | ICrypto.cpp | 101 const SourceBuffer &source, size_t offset, 132 data.writeInt32(offset); 336 int32_t offset = data.readInt32(); local 390 } else if ((size_t)offset > source.mSharedMemory->size() - totalSize) { 393 result = decrypt(key, iv, mode, pattern, source, offset, 99 decrypt(const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const SourceBuffer &source, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const DestinationBuffer &destination, AString *errorDetailMsg) argument
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ClearKeyCasPlugin.cpp | 288 // 14-15: 0x00 00 = offset = 0. 393 const AES_KEY& key, size_t length, size_t offset, char* buffer) const { 399 CHECK(length >= offset + AES_BLOCK_SIZE); 401 return TpBlockCtsDecrypt(key, length - offset, buffer + offset); 392 decryptPayload( const AES_KEY& key, size_t length, size_t offset, char* buffer) const argument
|
H A D | ecm.cpp | 174 size_t offset = kCountSizeBytes; local 177 buffer_as_binary->data() + offset, EcmDescriptor::kSizeBytes); 182 offset += EcmDescriptor::kSizeBytes;
|
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
H A D | AesCtrDecryptor.cpp | 39 size_t offset = 0; local 49 memcpy(destination + offset, source + offset, 51 offset += subSample.mNumBytesOfClearData; 55 AES_ctr128_encrypt(source + offset, destination + offset, 59 offset += subSample.mNumBytesOfEncryptedData; 63 *bytesDecryptedOut = offset;
|
H A D | CryptoPlugin.cpp | 46 size_t offset = 0; local 58 memcpy(reinterpret_cast<uint8_t*>(dstPtr) + offset, 59 reinterpret_cast<const uint8_t*>(srcPtr) + offset, 61 offset += subSample.mNumBytesOfClearData; 64 return static_cast<ssize_t>(offset);
|
/frameworks/av/include/drm/ |
H A D | DrmConvertedStatus.h | 26 * data/checksum data and the offset. Offset is going to be used in the case of close 61 int offset; member in class:android::DrmConvertedStatus
|
/frameworks/av/include/media/ |
H A D | VolumeShaper.h | 274 const T offset = volume - startVolume; local 277 it->second = it->second + offset * (MAX_CURVE_TIME - it->first) * scale; 524 void setOffset(R offset) { argument 525 mOffset = offset; 599 * should be based on the initial offset specified. 604 VS_LOG("delayed VolumeShaper, using cached offset:%f for volume:%f", 632 VS_LOG("delayed VolumeShaper, using cached offset %f", mDelayXOffset); 870 // if not started, the delay offset doesn't change. 881 VS_LOG("normalizedTime target x offset: %f", target);
|
/frameworks/av/include/media/stagefright/ |
H A D | DataSource.h | 59 static sp<DataSource> CreateFromFd(int fd, int64_t offset, int64_t length); 66 // this returns zero; it just means the given offset is equal to, or 68 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0; 71 bool getUInt16(off64_t offset, uint16_t *x); 72 bool getUInt24(off64_t offset, uint32_t *x); // 3 byte int, returned as a 32-bit int 73 bool getUInt32(off64_t offset, uint32_t *x); 74 bool getUInt64(off64_t offset, uint64_t *x); 87 bool getVector(off64_t offset, Vector<T>* x, size_t count, 101 virtual status_t reconnectAtOffset(off64_t /*offset*/) { 136 bool DataSource::getVector(off64_t offset, Vecto argument [all...] |
H A D | RemoteDataSource.h | 46 virtual ssize_t readAt(off64_t offset, size_t size) { argument 47 ALOGV("readAt(%lld, %zu)", (long long)offset, size); 51 return mSource->readAt(offset, mMemory->pointer(), size);
|