/frameworks/base/libs/gui/ |
H A D | SensorEventQueue.cpp | 58 ssize_t size = mSensorChannel->write(events, numEvents * sizeof(events[0])); local 59 if (size >= 0) { 60 if (size % sizeof(events[0])) { 65 size /= sizeof(events[0]); 67 return size; 72 ssize_t size = mSensorChannel->read(events, numEvents*sizeof(events[0])); local 73 LOGE_IF(size<0 && size!=-EAGAIN, argument 74 "SensorChannel::read error (%s)", strerror(-size)); 75 if (size > [all...] |
H A D | LayerState.cpp | 39 size_t size = sizeof(layer_state_t); 40 size -= sizeof(transparentRegion); 41 err = output.write(this, size); 56 size_t size = sizeof(layer_state_t); 57 size -= sizeof(transparentRegion); 58 input.read(this, size);
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
H A D | mem_align.c | 35 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument 44 MemInfo.Size = size + 1; 50 pMemop->Set(CodecID, mem_ptr, 0, size + 1); 59 MemInfo.Size = size + alignment; 66 pMemop->Set(CodecID, tmp, 0, size + alignment);
|
/frameworks/base/media/libstagefright/include/ |
H A D | ESDS.h | 29 ESDS(const void *data, size_t size); 35 status_t getCodecSpecificInfo(const void **data, size_t *size) const; 54 size_t offset, size_t size, 58 status_t parseESDescriptor(size_t offset, size_t size); 59 status_t parseDecoderConfigDescriptor(size_t offset, size_t size);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsRawData.java | 33 int size; 34 size = source.readInt(); 35 byte[] data = new byte[size]; 40 public SmsRawData[] newArray(int size) { 41 return new SmsRawData[size];
|
/frameworks/base/libs/binder/ |
H A D | MemoryDealer.cpp | 115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size); 129 SimpleBestFitAllocator(size_t size); 132 size_t allocate(size_t size, uint32_t flags = 0); 134 size_t size() const; 141 chunk_t(size_t start, size_t size) argument 142 : start(start), size(size), free(1), prev(0), next(0) { 145 size_t size : 28; member in struct:android::SimpleBestFitAllocator::chunk_t 151 ssize_t alloc(size_t size, uint32_t flags); 166 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) 164 Allocation( const sp<MemoryDealer>& dealer, const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument 204 size_t size = end-start; local 224 MemoryDealer(size_t size, const char* name) argument 235 allocate(size_t size) argument 268 SimpleBestFitAllocator(size_t size) argument 284 size_t SimpleBestFitAllocator::size() const function in class:android::SimpleBestFitAllocator 289 allocate(size_t size, uint32_t flags) argument 306 alloc(size_t size, uint32_t flags) argument 427 size_t size = 0; local [all...] |
H A D | MemoryHeapPmem.cpp | 56 SubRegionMemory(const sp<MemoryHeapPmem>& heap, ssize_t offset, size_t size); 58 virtual sp<IMemoryHeap> getMemory(ssize_t* offset, size_t* size) const; 67 ssize_t offset, size_t size) 68 : MemoryHeapPmem::MemoryPmem(heap), mSize(size), mOffset(offset) 72 memset(start_ptr, 0xda, size); 76 if (size > 0) { 78 size = (size + pagesize-1) & ~(pagesize-1); 80 struct pmem_region sub = { offset, size }; 83 "mFD=%d, sub.offset=%lu, sub.size 66 SubRegionMemory(const sp<MemoryHeapPmem>& heap, ssize_t offset, size_t size) argument 169 mapMemory(size_t offset, size_t size) argument 179 createMemory( size_t offset, size_t size) argument 191 size_t size = getSize(); local [all...] |
/frameworks/base/media/libstagefright/ |
H A D | MetaData.cpp | 89 size_t size; local 90 if (!findData(key, &type, &data, &size) || type != TYPE_C_STRING) { 102 size_t size; local 103 if (!findData(key, &type, &data, &size) || type != TYPE_INT32) { 107 CHECK_EQ(size, sizeof(*value)); 117 size_t size; local 118 if (!findData(key, &type, &data, &size) || type != TYPE_INT64) { 122 CHECK_EQ(size, sizeof(*value)); 132 size_t size; local 133 if (!findData(key, &type, &data, &size) || typ 147 size_t size; local 165 size_t size; local 181 setData( uint32_t key, uint32_t type, const void *data, size_t size) argument 249 setData( uint32_t type, const void *data, size_t size) argument 255 memcpy(storage(), data, size); local 265 allocateStorage(size_t size) argument [all...] |
H A D | FileSource.cpp | 81 ssize_t FileSource::readAt(off64_t offset, void *data, size_t size) { argument 93 if ((int64_t)size > numAvailable) { 94 size = numAvailable; 100 return readAtDRM(offset, data, size); 108 return ::read(mFd, data, size); 112 status_t FileSource::getSize(off64_t *size) { argument 120 *size = mLength; 125 *size = lseek64(mFd, 0, SEEK_END); 158 ssize_t FileSource::readAtDRM(off64_t offset, void *data, size_t size) { argument 165 && (offset + mOffset + size) < [all...] |
H A D | AVIExtractor.cpp | 173 size_t size; local 177 mTrackIndex, mSampleIndex, &offset, &size, &isKey, &timeUs); 188 ssize_t n = mExtractor->mDataSource->readAt(offset, out->data(), size); 190 if (n < (ssize_t)size) { 194 out->set_range(0, size); 240 CHECK(mBuffer == NULL || mBuffer->size() == 0); 246 memmove(mBuffer->base(), mBuffer->data(), mBuffer->size()); 247 mBuffer->setRange(0, mBuffer->size()); 251 || mBuffer->size() + buffer->range_length() > prevCapacity) { 257 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); 422 parseChunk(off64_t offset, off64_t size, int depth) argument 588 parseStreamHeader(off64_t offset, size_t size) argument 668 parseStreamFormat(off64_t offset, size_t size) argument 766 parseIndex(off64_t offset, size_t size) argument 845 size_t size; local 881 size_t size; local 1002 size_t size; local 1050 size_t size; local 1103 getSampleInfo( size_t trackIndex, size_t sampleIndex, off64_t *offset, size_t *size, bool *isKey, int64_t *sampleTimeUs) argument 1165 size_t size; local [all...] |
/frameworks/compile/linkloader/include/impl/ |
H A D | ELFSectionRelTable.hxx | 25 for (size_t i = 0; i < table.size(); ++i) { 39 for (size_t i = 0; i < this->size(); ++i) { 60 size_t size = sh->getSize() / sh->getEntrySize(); local 64 rsl_assert(sh->getEntrySize() == TypeTraits<ELFRelocRelTy>::size); 65 for (size_t i = 0; i < size; ++i) { 70 rsl_assert(sh->getEntrySize() == TypeTraits<ELFRelocRelaTy>::size); 71 for (size_t i = 0; i < size; ++i) {
|
H A D | ELFSectionSymTab.hxx | 26 for (size_t i = 0; i < table.size(); ++i) { 34 for (size_t i = 0; i < table.size(); ++i) { 45 for (size_t i = 0; i < table.size(); ++i) { 55 for (size_t i = 0; i < table.size(); ++i) { 76 ELFSectionSymTab<Bitwidth>::getFuncNameList(size_t size, argument 78 for (size_t i = 0, j = 0; i < table.size() && j < size; ++i) { 94 // Assert that entry size will be the same as standard. 95 rsl_assert(sh->getEntrySize() == TypeTraits<ELFSymbolTy>::size); 101 size_t size local [all...] |
/frameworks/base/tools/aapt/ |
H A D | printapk.cpp | 30 off_t size; local 50 size = lseek(fd, 0, SEEK_END); 53 if (size < 0 || amt < 0) { 54 fprintf(stderr, "apk: error determining file size: %s\n", filename); 58 buf = malloc(size); 64 amt = read(fd, buf, size); 65 if (amt != size) { 72 zip = init_zipfile(buf, size); 89 size = get_zipentry_size(entry); 90 bufsize = size [all...] |
/frameworks/base/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/base/include/media/stagefright/foundation/ |
H A D | base64.h | 29 void encodeBase64(const void *data, size_t size, AString *out);
|
/frameworks/base/media/libstagefright/foundation/ |
H A D | hexdump.cpp | 32 void hexdump(const void *_data, size_t size) { argument 36 while (offset < size) { 48 if (offset + i >= size) { 59 if (offset + i >= size) {
|
/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | StreamSource.cpp | 38 ssize_t StreamSource::readAt(off64_t offset, void *data, size_t size) { argument 43 ssize_t result = mStream->read(data, size); 48 status_t StreamSource::getSize(off64_t *size) { argument 49 *size = mSize;
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebBackForwardList.java | 77 * Get the total size of the back/forward list. 78 * @return The size of the list. 81 return mArray.size(); 113 final int size = mArray.size(); 115 if (newPos != size) { 116 for (int i = size - 1; i >= newPos; i--) { 168 int size = getSize(); 169 l.mArray = new ArrayList<WebHistoryItem>(size); 170 for (int i = 0; i < size; [all...] |
/frameworks/base/opengl/libagl/ |
H A D | BufferObjectManager.cpp | 45 GLsizei n = mBuffers.size(); 63 bo->size = 0; 70 GLsizeiptr size, GLenum usage) 73 if (size != bo->size) { 74 uint8_t* data = (uint8_t*)malloc(size); 79 bo->size = size; 69 allocateStore(buffer_t* bo, GLsizeiptr size, GLenum usage) argument
|
/frameworks/compile/linkloader/include/ |
H A D | MemChunk.h | 33 bool allocate(size_t size); 55 size_t size() const { function in class:MemChunk
|
/frameworks/base/libs/hwui/ |
H A D | FboCache.cpp | 35 INIT_LOGD(" Setting fbo cache size to %s", property); 38 INIT_LOGD(" Using default fbo cache size of %d", DEFAULT_FBO_CACHE_SIZE); 51 return mCache.size(); 63 for (size_t i = 0; i < mCache.size(); i++) { 72 if (mCache.size() > 0) { 73 fbo = mCache.itemAt(mCache.size() - 1); 74 mCache.removeAt(mCache.size() - 1); 82 if (mCache.size() < mMaxSize) {
|
/frameworks/opt/emoji/ |
H A D | EmojiFactory.cpp | 107 size_t size = g_factories->size(); local 108 for (size_t i = 0; i < size; ++i) { 125 size_t size = g_factories->size(); local 126 for (size_t i = 0; i < size; ++i) { 133 size_t size = g_handles->size(); local 134 for (size_t i = 0; i < size; ++i) { 153 size_t size local 166 size_t size = g_factories->size(); local [all...] |
/frameworks/base/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDecoder.cpp | 134 msg->setInt32("max-input-size", maxInputSize); 141 size_t size; local 142 if (meta->findData(kKeyAVCC, &type, &data, &size)) { 147 CHECK(size >= 7); 165 size -= 6; 171 CHECK(size >= 2); 175 size -= 2; 177 CHECK(size >= length); 179 memcpy(buffer->data() + buffer->size(), "\x00\x00\x00\x01", 4); 180 memcpy(buffer->data() + buffer->size() [all...] |
/frameworks/base/media/libstagefright/mpeg2ts/ |
H A D | ESQueue.cpp | 56 static bool IsSeeminglyValidADTSHeader(const uint8_t *ptr, size_t size) { argument 57 if (size < 3) { 83 static bool IsSeeminglyValidMPEGAudioHeader(const uint8_t *ptr, size_t size) { argument 84 if (size < 3) { 121 const void *data, size_t size, int64_t timeUs) { 122 if (mBuffer == NULL || mBuffer->size() == 0) { 128 if (size < 4 || memcmp("\x00\x00\x00\x01", data, 4)) { 135 for (size_t i = 0; i + 3 < size; ++i) { 153 size -= startOffset; 161 if (size < 120 appendData( const void *data, size_t size, int64_t timeUs) argument 417 fetchTimestamp(size_t size) argument 461 size_t size = mBuffer->size(); local 570 size_t size = mBuffer->size(); local 631 EncodeSize14(uint8_t **_ptr, size_t size) argument 673 size_t size = mBuffer->size(); local 778 getNextChunkSize( const uint8_t *data, size_t size) argument 804 size_t size = mBuffer->size(); local [all...] |
/frameworks/base/media/libstagefright/rtsp/ |
H A D | AAVCAssembler.cpp | 81 size_t size = buffer->size(); local 83 if (size < 1 || (data[0] & 0x80)) { 120 LOGV("addSingleNALUnit of size %d", buffer->size()); 122 hexdump(buffer->data(), buffer->size()); 138 size_t size = buffer->size(); local 140 if (size < 3) { 146 --size; 179 size_t size = buffer->size(); local 226 size_t size = buffer->size(); local [all...] |