/frameworks/av/media/libeffects/lvm/lib/Reverb/src/ |
H A D | LVREV_Process.c | 42 /* LVREV_INVALIDNUMSAMPLES NumSamples was larger than the maximum block size */ 171 /* LVREV_INVALIDNUMSAMPLES NumSamples was larger than the maximum block size */ 181 LVM_INT16 j, size; local 199 * The temp buffer will always be NumSamples in size regardless of MONO or * 461 size = (LVM_INT16)(NumSamples << 1); 466 size); 473 size); 478 size);
|
/frameworks/av/media/libstagefright/ |
H A D | FileSource.cpp | 131 ssize_t FileSource::readAt(off64_t offset, void *data, size_t size) { argument 143 if ((uint64_t)size > numAvailable) { 144 size = numAvailable; 150 return readAtDRM(offset, data, size); 158 return ::read(mFd, data, size); 162 status_t FileSource::getSize(off64_t *size) { argument 169 *size = mLength; 203 ssize_t FileSource::readAtDRM(off64_t offset, void *data, size_t size) { argument 210 && (offset + mOffset + size) <= static_cast<size_t>(mDrmBufOffset + mDrmBufSize)) { 212 memcpy(data, (void*)(mDrmBuf+(offset+mOffset-mDrmBufOffset)), size); [all...] |
H A D | SkipCutBuffer.cpp | 87 size_t copied = read(dst, buffer->size()); 99 int32_t buflen = buffer->size(); 152 ALOGV("reallocated buffer at size %d", newcapacity); 200 size_t SkipCutBuffer::size() { function in class:android::SkipCutBuffer
|
H A D | StagefrightMediaScanner.cpp | 147 off64_t size = lseek64(fd, 0, SEEK_END); local 148 if (size < 0) { 154 if (mRetriever->setDataSource(fd, 0, size) == OK) {
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | MediaBuffer.cpp | 36 MediaBuffer::MediaBuffer(void *data, size_t size) argument 40 mSize(size), 42 mRangeLength(size), 48 MediaBuffer::MediaBuffer(size_t size) argument 52 mSize(size), 54 mRangeLength(size), 58 if (size < kSharedMemThreshold 60 mData = malloc(size); 64 new MemoryDealer(size + sizeof(SharedControl), "MediaBuffer"); 65 mMemory = memoryDealer->allocate(size 142 size_t MediaBuffer::size() const { function in class:android::MediaBuffer [all...] |
H A D | base64.cpp | 25 size_t n = s.size(); 50 if (out == NULL || buffer->size() < outLen) { 108 const void *_data, size_t size, AString *out) { 114 for (i = 0; i < (size / 3) * 3; i += 3) { 124 switch (size % 3) { 107 encodeBase64( const void *_data, size_t size, AString *out) argument
|
/frameworks/av/media/libstagefright/foundation/include/ |
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); 48 if (size > kBufferSize) { 49 size = kBufferSize; 51 return mSource->readAt(offset, mMemory->pointer(), size); 53 virtual status_t getSize(off64_t *size) { argument 54 return mSource->getSize(size);
|
H A D | ThrottledSource.h | 32 virtual ssize_t readAt(off64_t offset, void *data, size_t size); 45 virtual status_t getSize(off64_t *size) { argument 46 return mSource->getSize(size);
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveDataSource.cpp | 54 return mBufferQueue.size(); 58 off64_t offset, void *data, size_t size) { 71 totalAvailable += buffer->size(); 73 if (totalAvailable >= size) { 78 if (totalAvailable < size) { 82 return readAt_l(offset, data, size); 85 ssize_t LiveDataSource::readAt(off64_t offset, void *data, size_t size) { argument 87 return readAt_l(offset, data, size); 90 ssize_t LiveDataSource::readAt_l(off64_t offset, void *data, size_t size) { argument 98 while (sizeDone < size) { 57 readAtNonBlocking( off64_t offset, void *data, size_t size) argument [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | testid3.cpp | 32 static void hexdump(const void *_data, size_t size) { argument 35 while (offset < size) { 38 size_t n = size - offset; 48 if (offset + i < size) { 104 printf("found album art: size=%zu mime='%s'\n", dataSize,
|
/frameworks/av/media/libstagefright/include/ |
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); 48 if (size > kBufferSize) { 49 size = kBufferSize; 51 return mSource->readAt(offset, mMemory->pointer(), size); 53 virtual status_t getSize(off64_t *size) { argument 54 return mSource->getSize(size);
|
H A D | ThrottledSource.h | 32 virtual ssize_t readAt(off64_t offset, void *data, size_t size); 45 virtual status_t getSize(off64_t *size) { argument 46 return mSource->getSize(size);
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | HlsSampleDecryptor.cpp | 51 if (keyDataBuffer != NULL && keyDataBuffer->size() == AES_BLOCK_SIZE && 52 initVecBuffer != NULL && initVecBuffer->size() == AES_BLOCK_SIZE) { 74 keyDataBuffer.get(), (keyDataBuffer.get() == NULL)? -1 : keyDataBuffer->size(), 75 initVecBuffer.get(), (initVecBuffer.get() == NULL)? -1 : initVecBuffer->size()); 144 void HlsSampleDecryptor::processAAC(size_t adtsHdrSize, uint8_t *data, size_t size) { argument 147 ALOGV("processAAC: (%p)/%zu Skipping due to invalid key", data, size); 151 // ADTS header is included in the size 153 size_t remainingBytes = size - adtsHdrSize; 157 adtsHdrSize, data, size, isEncrypted); 199 ALOGV("processAAC: Unencrypted frame (without lead bytes) size [all...] |
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | FrameDropper_test.cpp | 99 void RunTest(const TestFrame* frames, size_t size) { argument 100 for (size_t i = 0; i < size; ++i) {
|
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TextDescriptions.cpp | 27 const uint8_t *data, ssize_t size, 33 return extract3GPPGlobalDescriptions(data, size, parcel); 35 return extract3GPPLocalDescriptions(data, size, timeMs, parcel); 39 return extractSRTLocalDescriptions(data, size, timeMs, parcel); 50 const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) { 56 // write the size of the text sample 57 parcel->writeInt32(size); 59 parcel->writeInt32(size); 60 parcel->write(data, size); 71 const uint8_t *data, ssize_t size, 26 getParcelOfDescriptions( const uint8_t *data, ssize_t size, uint32_t flags, int timeMs, Parcel *parcel) argument 49 extractSRTLocalDescriptions( const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) argument 70 extract3GPPLocalDescriptions( const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) argument 374 extract3GPPGlobalDescriptions( const uint8_t *data, ssize_t size, Parcel *parcel) argument [all...] |
/frameworks/av/media/mtp/tests/ |
H A D | MtpFfsHandle_test.cpp | 109 int size = TEST_PACKET_SIZE * SMALL_MULT; local 110 char buf[size + 1]; 111 buf[size] = '\0'; 113 mfr.length = size; 118 EXPECT_EQ(write(bulk_out, ss.str().c_str(), size), size); local 121 EXPECT_EQ(read(dummy_file.fd, buf, size), size); local 129 int size = TEST_PACKET_SIZE * MED_MULT; local 130 char buf[size 138 EXPECT_EQ(write(bulk_out, ss.str().c_str(), size), size); local 141 EXPECT_EQ(read(dummy_file.fd, buf, size), size); local 152 int size = TEST_PACKET_SIZE * SMALL_MULT; local 161 EXPECT_EQ(write(dummy_file.fd, ss.str().c_str(), size), size); local 181 int size = TEST_PACKET_SIZE * MED_MULT; local 190 EXPECT_EQ(write(dummy_file.fd, ss.str().c_str(), size), size); local 210 int size = TEST_PACKET_SIZE * MED_MULT; local 217 EXPECT_EQ(write(dummy_file.fd, ss.str().c_str(), size), size); local 249 int size = 0; local [all...] |
/frameworks/av/services/medialog/ |
H A D | MediaLogService.cpp | 48 void MediaLogService::registerWriter(const sp<IMemory>& shared, size_t size, const char *name) argument 51 size < kMinSize || size > kMaxSize || name == NULL || 52 shared->size() < NBLog::Timeline::sharedSize(size)) { 55 sp<NBLog::Reader> reader(new NBLog::Reader(shared, size)); 68 for (size_t i = 0; i < mNamedReaders.size(); ) { 111 write(fd, result.string(), result.size()); 118 // for (size_t i = 0; i < namedReaders.size(); i++) {
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
H A D | ParcelArrayPerfTest.java | 40 @Parameters(name = "size={0}") 57 public ParcelArrayPerfTest(int size) { argument 58 mSize = size;
|
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInput.java | 134 * Report the size in bytes of the data associated with the current entity in the 137 * @return The size of the record's raw data, in bytes 155 * @param data An allocated byte array of at least 'size' bytes 158 * @param size The number of bytes to read in this pass 163 public int readEntityData(byte[] data, int offset, int size) throws IOException { argument 165 int result = readEntityData_native(mBackupReader, data, offset, size); 196 private native int readEntityData_native(long mBackupReader, byte[] data, int offset, int size); argument
|
H A D | BackupDataOutput.java | 35 * and the total size of the binary value for the record. After the header has been 103 * @param dataSize The size in bytes of this record's data. Passing a dataSize 120 * @param size The number of bytes to be sent in this chunk 124 public int writeEntityData(byte[] data, int size) throws IOException { argument 125 int result = writeEntityData_native(mBackupWriter, data, size); 152 private native static int writeEntityData_native(long mBackupWriter, byte[] data, int size); argument
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 40 * @param size a non-{@code null} size 44 * @throws NullPointerException if {@code size} was {@code null} 46 public static Rect createRect(Size size) { argument 47 checkNotNull(size, "size must not be null"); 49 return new Rect(/*left*/0, /*top*/0, size.getWidth(), size.getHeight()); 58 * @param size a non-{@code null} rect 96 * Create a {@link Size} from a {@code Rect} by creating a new size whos [all...] |
/frameworks/base/core/java/android/net/http/ |
H A D | HttpResponseCache.java | 67 * This cache will evict entries as necessary to keep its size from exceeding 68 * 10 MiB. The best cache size is application specific and depends on the size 176 * @param maxSize the maximum size of the cache in bytes. 216 * deletion is pending. {@code -1} is returned if the size cannot be determined. 218 public long size() { method in class:HttpResponseCache 220 return delegate.size();
|
/frameworks/base/core/java/android/os/ |
H A D | RegistrantList.java | 52 for (int i = registrants.size() - 1; i >= 0 ; i--) { 62 size() method in class:RegistrantList 64 return registrants.size(); 76 for (int i = 0, s = registrants.size(); i < s ; i++) { 110 for (int i = 0, s = registrants.size() ; i < s ; i++) {
|
/frameworks/base/core/java/android/text/ |
H A D | PackedObjectVector.java | 92 if (mRowGapLength > size() * 2) 100 size() method in class:PackedObjectVector 115 GrowingArrayUtils.growSize(size()) * mColumns);
|
/frameworks/base/core/java/android/text/style/ |
H A D | AbsoluteSizeSpan.java | 30 * Set the text size to <code>size</code> physical pixels. 32 public AbsoluteSizeSpan(int size) { argument 33 mSize = size; 37 * Set the text size to <code>size</code> physical pixels, 38 * or to <code>size</code> device-independent pixels if 41 public AbsoluteSizeSpan(int size, boolean dip) { argument 42 mSize = size;
|