Searched refs:size (Results 76 - 100 of 2075) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/
H A DMetaData.cpp95 size_t size; local
96 if (!findData(key, &type, &data, &size) || type != TYPE_C_STRING) {
108 size_t size; local
109 if (!findData(key, &type, &data, &size) || type != TYPE_INT32) {
113 CHECK_EQ(size, sizeof(*value));
123 size_t size; local
124 if (!findData(key, &type, &data, &size) || type != TYPE_INT64) {
128 CHECK_EQ(size, sizeof(*value));
138 size_t size; local
139 if (!findData(key, &type, &data, &size) || typ
153 size_t size; local
171 size_t size; local
187 setData( uint32_t key, uint32_t type, const void *data, size_t size) argument
255 setData( uint32_t type, const void *data, size_t size) argument
261 memcpy(storage(), data, size); local
271 allocateStorage(size_t size) argument
[all...]
/frameworks/av/media/libstagefright/include/
H A DFragmentedMP4Parser.h33 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
184 void enter(off64_t offset, uint32_t type, uint64_t size);
190 status_t need(size_t size);
191 bool fitsContainer(uint64_t size) const;
194 uint32_t type, size_t offset, uint64_t size);
197 uint32_t type, size_t offset, uint64_t size);
200 uint32_t type, size_t offset, uint64_t size);
203 uint32_t type, size_t offset, uint64_t size);
206 uint32_t type, size_t offset, uint64_t size);
209 uint32_t type, size_t offset, uint64_t size);
[all...]
/frameworks/av/media/libstagefright/mp4/
H A DTrackFragment.cpp40 if (mSampleIndex >= mSamples.size()) {
59 SampleInfo *sampleInfo = &mSamples.editItemAt(mSamples.size() - 1);
244 FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) {
245 if (offset + 12 > size) {
256 if (sampleSize == 0 && offset + 12 + sampleCount * 4 != size) {
260 parser->copyBuffer(&mSampleSizes, offset, size);
268 FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) {
269 if (offset + 12 > size) {
285 if (offset + 12 + (sampleCount * fieldSize + 4) / 8 != size) {
289 parser->copyBuffer(&mCompactSampleSizes, offset, size);
243 parseSampleSizes( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
267 parseCompactSampleSizes( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
296 parseSampleToChunk( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
321 parseChunkOffsets( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
342 parseChunkOffsets64( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
[all...]
H A DFragmentedMP4Parser.cpp140 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument
142 return fread(data, 1, size, mFile);
156 ReadTracker(off64_t size) { argument
157 allocSize = 1 + size / 8192; // 1 bit per kilobyte
164 void mark(off64_t offset, size_t size) { argument
166 int lastbit = (offset + size - 1) / 1024;
199 off64_t size;
200 if (source->getSize(&size) == OK) {
201 mReadTracker = new ReadTracker(size);
203 ALOGE("couldn't get data source size");
208 readAt(off64_t offset, void *data, size_t size) argument
586 uint64_t size = readU32(0); local
1022 need(size_t size) argument
1040 enter(off64_t offset, uint32_t type, uint64_t size) argument
1139 parseTrackHeader( uint32_t type, size_t offset, uint64_t size) argument
1190 parseMediaHeader( uint32_t type, size_t offset, uint64_t size) argument
1223 parseMediaHandler( uint32_t type, size_t offset, uint64_t size) argument
1251 parseVisualSampleEntry( uint32_t type, size_t offset, uint64_t size) argument
1294 parseAudioSampleEntry( uint32_t type, size_t offset, uint64_t size) argument
1342 addCodecSpecificData( const sp<AMessage> &format, int32_t index, const void *data, size_t size, bool insertStartCode = false) argument
1360 parseSampleSizes( uint32_t type, size_t offset, uint64_t size) argument
1366 parseCompactSampleSizes( uint32_t type, size_t offset, uint64_t size) argument
1372 parseSampleToChunk( uint32_t type, size_t offset, uint64_t size) argument
1378 parseChunkOffsets( uint32_t type, size_t offset, uint64_t size) argument
1384 parseChunkOffsets64( uint32_t type, size_t offset, uint64_t size) argument
1390 parseAVCCodecSpecificData( uint32_t type, size_t offset, uint64_t size) argument
1473 parseESDSCodecSpecificData( uint32_t type, size_t offset, uint64_t size) argument
1578 parseMediaData( uint32_t type, size_t offset, uint64_t size) argument
1599 parseSegmentIndex( uint32_t type, size_t offset, uint64_t size) argument
1686 parseTrackExtends( uint32_t type, size_t offset, uint64_t size) argument
1737 parseTrackFragmentHeader( uint32_t type, size_t offset, uint64_t size) argument
1827 parseTrackFragmentRun( uint32_t type, size_t offset, uint64_t size) argument
[all...]
/frameworks/base/libs/hwui/thread/
H A DTaskManager.cpp42 for (size_t i = 0; i < mThreads.size(); i++) {
48 return mThreads.size() > 0;
52 for (size_t i = 0; i < mThreads.size(); i++) {
58 if (mThreads.size() > 0) {
64 for (size_t i = 0; i < mThreads.size(); i++) {
89 for (size_t i = 0; i < tasks.size(); i++) {
111 return mTasks.size();
/frameworks/base/tools/preload/
H A DLoadedClass.java85 int size = operations.size();
86 if (size == 0) {
90 int[] times = new int[size];
91 for (int i = 0; i < size; i++) {
96 int middle = size / 2;
97 if (size % 2 == 1) {
/frameworks/av/media/libstagefright/foundation/
H A DAString.cpp44 AString::AString(const char *s, size_t size) argument
48 setTo(s, size);
55 setTo(from, 0, from.size());
71 setTo(from, 0, from.size());
77 size_t AString::size() const { function in class:android::AString
93 void AString::setTo(const char *s, size_t size) { argument
95 append(s, size);
168 void AString::append(const char *s, size_t size) { argument
171 if (mSize + size + 1 > mAllocSize) {
172 mAllocSize = (mAllocSize + size
269 insert(const char *from, size_t size, size_t insertionPos) argument
[all...]
H A DABuffer.cpp56 void ABuffer::setRange(size_t offset, size_t size) { argument
58 CHECK_LE(offset + size, mCapacity);
61 mRangeLength = size;
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp85 int size = data.size(); local
86 if (FAILURE != ftruncate(fd, size)) {
87 if (size != write(fd, data.string(), size)) {
102 int size = data.size(); local
103 if (size != write(fd, data.string(), size)) {
/frameworks/av/media/libstagefright/timedtext/
H A DTimedText3GPPSource.cpp68 size_t size = 0; local
76 size = textBuffer->size();
78 if (size > 0) {
82 (const uint8_t *)data, size, flag, timeUs / 1000, parcel);
92 size_t size = 0; local
103 kKeyTextFormatData, &type, &data, &size)) {
107 if (size > 0) {
110 (const uint8_t *)data, size, flag, 0, parcel);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DIntRangeManagerTest.java100 assertEquals("expecting empty configlist", 0, testManager.mConfigList.size());
117 assertEquals("configlist size", 1, testManager.mConfigList.size());
123 assertEquals("configlist size", 1, testManager.mConfigList.size());
132 assertEquals("configlist size", 1, testManager.mConfigList.size());
137 assertEquals("configlist size", 0, testManager.mConfigList.size());
142 assertEquals("configlist size",
[all...]
/frameworks/av/media/libmedia/
H A DIHDCP.cpp88 const void *inData, size_t size, uint32_t streamCTR,
92 data.writeInt32(size);
93 data.write(inData, size);
106 reply.read(outData, size);
112 const void *inData, size_t size,
117 data.writeInt32(size);
118 data.write(inData, size);
129 reply.read(outData, size);
201 size_t size = data.readInt32(); local
203 void *inData = malloc(2 * size);
87 encrypt( const void *inData, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument
111 decrypt( const void *inData, size_t size, uint32_t streamCTR, uint64_t inputCTR, void *outData) argument
227 size_t size = data.readInt32(); local
[all...]
H A DIEffect.cpp72 int size = cmdSize; local
74 size = 0;
76 data.writeInt32(size);
77 if (size) {
78 data.write(pCmdData, size);
81 size = 0;
83 size = *pReplySize;
85 data.writeInt32(size);
95 size = reply.readInt32();
96 if (size !
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dmemalign.c40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument
49 MemInfo.Size = size + 1;
55 pMemop->Set(CodecID, mem_ptr, 0, size + 1);
64 MemInfo.Size = size + alignment;
71 pMemop->Set(CodecID, tmp, 0, size + alignment);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dmem_align.c40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument
49 MemInfo.Size = size + 1;
55 pMemop->Set(CodecID, mem_ptr, 0, size + 1);
64 MemInfo.Size = size + alignment;
71 pMemop->Set(CodecID, tmp, 0, size + alignment);
/frameworks/base/media/mca/filterfw/native/core/
H A Dvalue.h57 Value MakeBufferValue(const char* data, int size);
58 Value MakeBufferValueNoCopy(const char* data, int size);
59 Value MakeMutableBufferValue(const char* data, int size);
60 Value MakeMutableBufferValueNoCopy(char* data, int size);
68 int SetMutableBufferValue(Value* value, const char* new_data, int size);
/frameworks/native/include/binder/
H A DMemoryHeapBase.h45 MemoryHeapBase(int fd, size_t size, uint32_t flags = 0, uint32_t offset = 0);
50 MemoryHeapBase(const char* device, size_t size = 0, uint32_t flags = 0);
55 MemoryHeapBase(size_t size, uint32_t flags = 0, char const* name = NULL);
85 status_t init(int fd, void *base, int size,
89 status_t mapfd(int fd, size_t size, uint32_t offset = 0);
/frameworks/native/include/utils/
H A DSharedBuffer.h36 /*! allocate a buffer of size 'size' and acquire() it.
39 static SharedBuffer* alloc(size_t size);
54 //! get size of the buffer
55 inline size_t size() const;
63 //! get the size of a SharedBuffer object from its data
70 SharedBuffer* editResize(size_t size) const;
76 SharedBuffer* reset(size_t size) const;
113 size_t SharedBuffer::size() const { function in class:android::SharedBuffer
H A DLinearAllocator.h45 * Reserves and returns a region of memory of at least size 'size', aligning as needed.
52 void* alloc(size_t size);
77 bool fitsInCurrentPage(size_t size);
78 void ensureNext(size_t size);
/frameworks/av/cmds/stagefright/
H A DWaveWriter.h49 void Append(const void *data, size_t size) { argument
50 fwrite(data, 1, size, mFile);
51 mTotalBytes += size;
/frameworks/av/media/libstagefright/httplive/
H A DLiveDataSource.h35 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
36 ssize_t readAtNonBlocking(off64_t offset, void *data, size_t size);
57 ssize_t readAt_l(off64_t offset, void *data, size_t size);
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java29 * {@link BackupDataInput}. The entity's key string and total data size are available
30 * through this class's {@link #getKey()} and {@link #size()} methods, respectively.
33 * source, nor read more than {@link #size()} bytes from the stream.</p>
53 * an integer value. If more than {@link #size()} bytes of data
68 * Read up to {@code size} bytes of data into a byte array, beginning at position
74 * @param size The number of bytes to read in this operation. If insufficient
80 public int read(byte[] b, int offset, int size) throws IOException { argument
81 return mData.readEntityData(b, offset, size);
113 public int size() { method in class:BackupDataInputStream
/frameworks/base/core/java/com/android/internal/util/
H A DLocalLog.java42 if (mLines.size() >= mMaxLines) {
51 if (mLines.size() <= 0) {
57 for (int i=0; i<mLines.size(); i++) {
/frameworks/opt/mms/src/java/com/google/android/mms/util/
H A DAbstractCache.java42 if (mCacheMap.size() >= MAX_CACHED_ITEMS) {
46 Log.v(TAG, "Failed! size limitation reached.");
57 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total.");
90 Log.v(TAG, mCacheMap.size() + " items cached.");
98 Log.v(TAG, "Purging cache, " + mCacheMap.size()
104 public int size() { method in class:AbstractCache
105 return mCacheMap.size();
/frameworks/av/libvideoeditor/vss/common/inc/
H A DM4_BitStreamParser.h37 * @param size : The size of the bitstream in bytes
40 void M4_BitStreamParser_Init(void** pContext, void* pBitStream, M4OSA_Int32 size);
101 * M4_BitStreamParser_GetSize gets the size of the bitstream in bytes
105 * @returns the size of the bitstream in bytes
109 void M4_MPEG4BitStreamParser_Init(void** pContext, void* pBitStream, M4OSA_Int32 size);
112 * getMpegLengthFromInteger returns a decoded size value from an encoded one (SDL)
117 * @returns size in a human readable form
125 * @brief Decode an MPEG4 Systems descriptor size from an encoded SDL size dat
[all...]

Completed in 496 milliseconds

1234567891011>>