/frameworks/native/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; 143 chunk_t(size_t start, size_t size) argument 144 : start(start), size(size), free(1), prev(0), next(0) { 147 size_t size : 28; member in struct:android::SimpleBestFitAllocator::chunk_t 153 ssize_t alloc(size_t size, uint32_t flags); 168 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) 166 Allocation( const sp<MemoryDealer>& dealer, const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument 205 size_t size = end-start; local 230 MemoryDealer(size_t size, const char* name, uint32_t flags) argument 241 allocate(size_t size) argument 280 SimpleBestFitAllocator(size_t size) argument 296 size_t SimpleBestFitAllocator::size() const function in class:android::SimpleBestFitAllocator 301 allocate(size_t size, uint32_t flags) argument 318 alloc(size_t size, uint32_t flags) argument 439 size_t size = 0; local [all...] |
H A D | MemoryHeapBase.cpp | 44 MemoryHeapBase::MemoryHeapBase(size_t size, uint32_t flags, char const * name) argument 49 size = ((size + pagesize-1) & ~(pagesize-1)); 50 int fd = ashmem_create_region(name == NULL ? "MemoryHeapBase" : name, size); 53 if (mapfd(fd, size) == NO_ERROR) { 61 MemoryHeapBase::MemoryHeapBase(const char* device, size_t size, uint32_t flags) argument 73 size = ((size + pagesize-1) & ~(pagesize-1)); 74 if (mapfd(fd, size) == NO_ERROR) { 80 MemoryHeapBase::MemoryHeapBase(int fd, size_t size, uint32_ argument 86 mapfd(dup(fd), size, offset); local 89 init(int fd, void *base, int size, int flags, const char* device) argument 102 mapfd(int fd, size_t size, uint32_t offset) argument [all...] |
H A D | Parcel.cpp | 94 // Maximum size of a blob to transfer in-place. 162 int size = ashmem_get_size_region(obj.handle); local 163 if (size > 0) { 164 *outAshmemSize += size; 214 int size = ashmem_get_size_region(obj.handle); local 215 if (size > 0) { 216 *outAshmemSize -= size; 394 size_t size = gParcelGlobalAllocSize; local 396 return size; 435 status_t Parcel::setDataSize(size_t size) argument 464 setDataCapacity(size_t size) argument 499 size_t size = parcel->mObjectsSize; local 1448 int32_t size; local 1480 int32_t size; local 1552 int32_t size; local 1573 int32_t size; local 1812 int32_t size; local 1844 int32_t size = readInt32(); local 1865 int32_t size; local 1900 int32_t size = readInt32(); local 2609 init(int fd, void* data, size_t size, bool isMutable) argument [all...] |
H A D | PersistableBundle.cpp | 135 return size() == 0u; 138 size_t PersistableBundle::size() const { function in class:android::os::PersistableBundle 139 return (mBoolMap.size() + 140 mIntMap.size() + 141 mLongMap.size() + 142 mDoubleMap.size() + 143 mStringMap.size() + 144 mBoolVectorMap.size() + 145 mIntVectorMap.size() + 146 mLongVectorMap.size() [all...] |
H A D | TextOutput.cpp | 148 HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine) argument 150 , mSize(size) 163 printHexData(0, val.buffer(), val.size(), val.bytesPerLine(),
|
/frameworks/native/libs/binder/tests/ |
H A D | binderLibTest.cpp | 842 int32_t size; local 850 ret = data.readInt32(&size); 854 buf = data.readInplace(size); 858 ret = write(fd, buf, size); 859 if (ret != size)
|
/frameworks/native/libs/diskusage/ |
H A D | dirsize.c | 32 int64_t size = 0; local 57 size += stat_size(&s); 61 size += calculate_dir_size(subfd); 65 size += stat_size(&s); 70 return size;
|
/frameworks/native/libs/gui/ |
H A D | BitTube.cpp | 33 // Socket buffer size. The default is typically about 128KB, which is much larger than 73 size_t size = DEFAULT_SOCKET_BUFFER_SIZE; local 77 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); 78 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); 107 ssize_t BitTube::write(void const* vaddr, size_t size) argument 111 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); 112 // cannot return less than size, since we're using SOCK_SEQPACKET 118 ssize_t BitTube::read(void* vaddr, size_t size) 164 ssize_t size = tube->read(vaddr, count*objSize); local [all...] |
H A D | BufferItem.cpp | 49 static void addAligned(size_t& size, T /* value */) { argument 50 size = FlattenableUtils::align<sizeof(T)>(size); 51 size += sizeof(T); 55 size_t size = 0; local 56 addAligned(size, mCrop); 57 addAligned(size, mTransform); 58 addAligned(size, mScalingMode); 59 addAligned(size, mTimestampLo); 60 addAligned(size, mTimestampH 73 size_t size = sizeof(uint32_t); // Flags local 99 writeAligned(void*& buffer, size_t& size, T value) argument 104 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 159 readAligned(const void*& buffer, size_t& size, T& value) argument 164 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument [all...] |
H A D | IGraphicBufferProducer.cpp | 723 void*& buffer, size_t& size, int*& fds, size_t& count) const 725 if (size < getFlattenedSize()) { 728 FlattenableUtils::write(buffer, size, timestamp); 729 FlattenableUtils::write(buffer, size, isAutoTimestamp); 730 FlattenableUtils::write(buffer, size, dataSpace); 731 FlattenableUtils::write(buffer, size, crop); 732 FlattenableUtils::write(buffer, size, scalingMode); 733 FlattenableUtils::write(buffer, size, transform); 734 FlattenableUtils::write(buffer, size, stickyTransform); 735 status_t result = fence->flatten(buffer, size, fd 722 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 742 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument [all...] |
H A D | Sensor.cpp | 437 status_t Sensor::flatten(void* buffer, size_t size) const { 438 if (size < getFlattenedSize()) { 442 flattenString8(buffer, size, mName); 443 flattenString8(buffer, size, mVendor); 444 FlattenableUtils::write(buffer, size, mVersion); 445 FlattenableUtils::write(buffer, size, mHandle); 446 FlattenableUtils::write(buffer, size, mType); 447 FlattenableUtils::write(buffer, size, mMinValue); 448 FlattenableUtils::write(buffer, size, mMaxValue); 449 FlattenableUtils::write(buffer, size, mResolutio 475 unflatten(void const* buffer, size_t size) argument 524 flattenString8(void*& buffer, size_t& size, const String8& string8) argument 532 unflattenString8(void const*& buffer, size_t& size, String8& outputString8) argument [all...] |
H A D | SensorEventQueue.cpp | 161 ssize_t size = ::send(mSensorChannel->getFd(), &event, sizeof(event), MSG_NOSIGNAL); local 162 if (size >= 0) { 164 } else if (size < 0 && errno == EAGAIN) { 169 ALOGE("injectSensorEvent failure %s %zd", strerror(errno), size); 183 ssize_t size = ::send(mSensorChannel->getFd(), &mNumAcksToSend, sizeof(mNumAcksToSend), local 185 if (size < 0) { 186 ALOGE("sendAck failure %zd %d", size, mNumAcksToSend);
|
H A D | Surface.cpp | 1131 size_t size = static_cast<uint32_t>(r.width()) * bpp; local 1136 if (dbpr==sbpr && size==sbpr) { 1137 size *= static_cast<size_t>(h); 1141 memcpy(d, s, size);
|
/frameworks/native/libs/input/ |
H A D | InputTransport.cpp | 38 // Socket buffer size. The default is typically about 128KB, which is much larger than 74 if (size() == actualSize) { 88 size_t InputMessage::size() const { function in class:android::InputMessage 91 return sizeof(Header) + body.key.size(); 93 return sizeof(Header) + body.motion.size(); 95 return sizeof(Header) + body.finished.size(); 153 size_t msgLength = msg->size(); 466 batch, batch.samples.size(), outSeq, outEvent); 519 for (size_t i = mBatches.size(); i > 0; ) { 523 result = consumeSamples(factory, batch, batch.samples.size(), [all...] |
/frameworks/native/libs/ui/ |
H A D | Fence.cpp | 140 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument 141 if (size < getFlattenedSize() || count < getFdCount()) { 144 // Cast to uint32_t since the size of a size_t can vary between 32- and 146 FlattenableUtils::write(buffer, size, static_cast<uint32_t>(getFdCount())); 154 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument 160 if (size < 1) { 165 FlattenableUtils::read(buffer, size, numFds);
|
H A D | FrameStats.cpp | 28 size_t size = timestampSize; local 29 size += 3 * desiredPresentTimesNano.size() * timestampSize; 31 return size; 34 status_t FrameStats::flatten(void* buffer, size_t size) const { 35 if (size < getFlattenedSize()) { 41 size_t frameCount = desiredPresentTimesNano.size(); 57 status_t FrameStats::unflatten(void const* buffer, size_t size) { argument 60 if (size < timestampSize) { 65 size_t frameCount = (size [all...] |
H A D | GraphicBuffer.cpp | 290 status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument 292 if (size < sizeNeeded) return NO_MEMORY; 320 size -= sizeNeeded; 330 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 331 if (size < 11 * sizeof(int)) return NO_MEMORY; 353 if (size < sizeNeeded) return NO_MEMORY; 404 size -= sizeNeeded; 329 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
|
H A D | Region.cpp | 123 endLastSpan = static_cast<int>(dst.size()) - 1; 222 if (mStorage.size() >= 2) { 279 size_t where = mStorage.size() - 1; 447 if (span.size()) { 450 if (storage.size()) { 453 if (storage.size() == 1) { 467 if (span.size()) { 476 cur = span.editArray() + (span.size() - 1); 482 if (tail-head == ssize_t(span.size())) { 507 tail = storage.editArray() + storage.size(); 787 unflatten(void const* buffer, size_t size) argument [all...] |
/frameworks/native/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
|
H A D | BufferObjectManager.h | 43 GLsizeiptr size; member in struct:android::gl::buffer_t 63 int allocateStore(gl::buffer_t* bo, GLsizeiptr size, GLenum usage);
|
H A D | TextureObjectManager.cpp | 130 // the new size of the surface could make it invalid. 164 const size_t size = h * bpr; local 167 if (size!=mSize || !surface.data) { 171 surface.data = (GGLubyte*)malloc(size); 177 mSize = size; 204 mipmap.data = (GGLubyte*)malloc(size);
|
H A D | TextureObjectManager.h | 57 inline size_t size() const { return mSize; } function in class:android::EGLTextureObject
|
H A D | array.cpp | 107 c->arrays.vertex.size = 4; 109 c->arrays.color.size = 4; 111 c->arrays.normal.size = 4; 114 c->arrays.texture[i].size = 4; 255 static const fn_t color_fct[2][16] = { // size={3,4}, type={ub,f,x} 263 static const fn_t color_clamp_fct[2][16] = { // size={3,4}, type={ub,f,x} 271 static const fn_t normal_fct[1][16] = { // size={3}, type={b,s,f,x} 277 static const fn_t vertex_fct[3][16] = { // size={2,3,4}, type={b,s,f,x} 291 static const fn_t texture_fct[3][16] = { // size={2,3,4}, type={b,s,f,x} 313 GLint size, GLenu 312 init( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, const buffer_t* bo, GLsizei count) argument 355 const size_t size = s*sizeof(vertex_t) + align; local 1239 glVertexPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) argument 1260 glColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) argument 1301 glTexCoordPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) argument 1474 glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) argument 1508 glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) argument [all...] |
H A D | context.h | 162 GGLcoord size; member in struct:android::gl::point_size_t 185 GLint size; member in struct:android::gl::array_t
|
H A D | egl.cpp | 471 const size_t bpp = pixelFormatTable[src->format].size; 483 size_t size = w * bpp; local 486 if (dbpr==sbpr && size==sbpr) { 487 size *= h; 491 memcpy(d, s, size); 549 // if the window size has changed 747 size_t size = w*h; local 749 case GGL_PIXEL_FORMAT_A_8: size *= 1; break; 750 case GGL_PIXEL_FORMAT_RGB_565: size *= 2; break; 751 case GGL_PIXEL_FORMAT_RGBA_8888: size * 808 int size; member in struct:android::configs_t [all...] |