Searched refs:size (Results 51 - 75 of 134) sorted by last modified time

123456

/system/core/libcutils/
H A Dselector.c154 int size = arraySize(selectableFds); local
155 while (i < size) {
160 size--;
216 int size = arraySize(selectableFds); local
218 for (i = 0; i < size; i++) {
/system/core/libnetutils/
H A Ddhcpclient.c342 static int send_message(int sock, int if_index, dhcp_msg *msg, int size) argument
345 dump_dhcp_msg(msg, size);
347 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST,
354 if (verbose) ALOGD("netcfg: Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE);
394 int s, r, size; local
442 size = 0;
447 size = init_dhcp_discover_msg(msg, hwaddr, xid);
451 size = init_dhcp_request_msg(msg, hwaddr, xid, info.ipaddr, info.serveraddr);
456 if (size != 0) {
457 r = send_message(s, if_index, msg, size);
[all...]
H A Dpacket.c89 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, argument
103 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size);
115 udp.len = htons(sizeof(udp) + size);
130 udpsum = checksum(msg, size, udpsum);
138 iov[2].iov_len = size;
H A Dpacket.h21 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size,
/system/core/libpixelflinger/
H A Dbuffer.cpp68 const int32_t bpr = -dst->stride * pixelFormat.size;
118 uint8_t* const data = s->data + index * f->size;
120 switch (f->size) {
129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8);
175 uint8_t* const data = s->data + index * f->size;
203 switch (f->size) {
216 switch (f->size) {
268 switch (f->size) {
H A Dclear.cpp53 const uint32_t size = c->formats[s.format].size; local
54 const int32_t stride = s.stride * size;
55 uint8_t* dst = (uint8_t*)s.data + (l + t*s.stride)*size;
56 w *= size;
64 switch (size) {
H A Draster.cpp107 + (xs + (cb->stride * ys)) * fp->size;
109 + (xd + (cb->stride * yd)) * fp->size;
110 const size_t bpr = cb->stride * fp->size;
111 const size_t rowsize = width * fp->size;
H A Dscanline.cpp286 ScanlineAssembly(needs_t needs, size_t size) argument
287 : Assembly(size), mKey(needs) { }
353 switch (c->formats[cb_format].size) {
510 static inline int blendfactor(uint32_t x, uint32_t size, uint32_t def = 0) argument
512 if (!size)
516 if (size > 16) {
517 x >>= (size - 16);
518 } else if (size < 16) {
519 x = ggl_expand(x, size, 16);
595 static GGLfixed wrapping(int32_t coord, uint32_t size, in argument
2241 const size_t size = ct * fp->size; local
2287 const size_t size = ct * fp->size; local
2300 const size_t size = ct * fp->size; local
2335 const size_t size = ct * fp->size; local
[all...]
/system/core/libpixelflinger/codeflinger/
H A DARMAssembler.cpp170 size_t count = mBranchTargets.size();
H A DCodeCache.cpp103 Assembly::Assembly(size_t size)
106 mBase = (uint32_t*)mspace_malloc(getMspace(), size);
108 "Failed to create Assembly of size %zd in executable "
109 "store of size %zd", size, kMaxCodeCacheCapacity);
110 mSize = size;
130 ssize_t Assembly::size() const
146 "of size %zd", newSize, kMaxCodeCacheCapacity);
148 return size();
153 CodeCache::CodeCache(size_t size)
[all...]
H A DCodeCache.h57 Assembly(size_t size);
60 ssize_t size() const;
62 ssize_t resize(size_t size);
81 CodeCache(size_t size);
H A DGGLAssembler.cpp339 ADD(AL, 0, parts.cbPtr.reg, parts.cbPtr.reg, imm(parts.cbPtr.size>>3));
391 const int cb_bits = mCbFormat.size*8;
541 if (need_expander && (fragment.size() < dst_size)) {
549 (mInfo[component].needed || fragment.size()<dst_size))
573 fragment.size(), fragment.flags);
582 fragment.size(), CORRUPTIBLE);
703 const int shift = GGL_COLOR_BITS-fragment.size();
887 uint32_t size = ((bits>=32) ? 0 : (1LU << bits)) - 1; local
888 mask &= size;
890 if (mask == size) {
[all...]
H A DGGLAssembler.h223 inline int size() const { return s; } function in struct:android::GGLAssembler::integer_t
239 inline int mask(int c) const { return ((1<<size(c))-1) << low(c); }
240 inline int size() const { return format.size*8; } function in struct:android::GGLAssembler::pixel_t
241 inline int size(int c) const { return component_size(c); } function in struct:android::GGLAssembler::pixel_t
268 inline int size() const { return h-l; } function in struct:android::GGLAssembler::component_t
272 pointer_t() : reg_t(), size(0) {
275 : reg_t(r, f), size(s) {
278 reg_t::setTo(r, f); size=s;
280 int8_t size; member in struct:android::GGLAssembler::pointer_t
[all...]
H A DMIPSAssembler.cpp1285 // works with strings of limited size (makes a temp copy)
1391 size_t count = mBranchTargets.size();
H A Dblending.cpp77 if (!temp.size()) {
127 if (fb.size() < temp.size()) {
129 int new_size = temp.size() < 8 ? temp.size() : 8;
142 integer_t fragment(temp.reg, temp.size(), temp.flags);
325 // XXX: doesn't work if size==1
355 // btw, we're guaranteed that Ad's size is <= 8, because
445 fragment.reg : scratches.obtain(), fb.size(), CORRUPTIBLE);
446 const int shift = fragment.size()
[all...]
H A Dload_store.cpp33 const int bits = addr.size;
70 const int bits = addr.size;
166 s.size());
175 s.size());
186 expand(d, integer_t(s.reg, s.size(), s.flags), dbits);
199 assert(src.size());
201 int sbits = src.size();
H A Dtexturing.cpp143 const int bits = parts.iterated.size();
144 const uint32_t size = ((bits>=32) ? 0 : (1LU << bits)) - 1; local
157 if (mMasking && ((mask & size)==0)) {
161 if (mCbFormat.size == 1) {
164 } else if (mCbFormat.size == 2) {
282 tmu.bits = tmu.format.size*8;
288 && tmu.format.size!=3; // XXX: only 8, 16 and 32 modes for now
422 if (tmu.format.size == 1) {
427 if (tmu.format.size == 4) {
487 if (tmu.format.size
1136 wrapping( int d, int coord, int size, int tx_wrap, int tx_linear) argument
[all...]
/system/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp31 ScanlineAssembly(needs_t needs, size_t size) argument
32 : Assembly(size), mKey(needs) { }
/system/core/libpixelflinger/tinyutils/
H A DKeyedVector.h44 inline size_t size() const { return mVector.size(); } function in class:android::KeyedVector
49 //! setst the capacity. capacity can never be reduced less than size()
50 inline ssize_t setCapacity(size_t size) { return mVector.setCapacity(size); } argument
158 if (index<size()) {
H A DSharedBuffer.cpp20 SharedBuffer* SharedBuffer::alloc(size_t size) argument
22 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size));
25 sb->mSize = size;
45 memcpy(sb->data(), data(), size());
H A DSharedBuffer.h28 /*! allocate a buffer of size 'size' and acquire() it.
31 static SharedBuffer* alloc(size_t size);
49 //! get size of the buffer
50 inline size_t size() const;
58 //! get the size of a SharedBuffer object from its data
65 SharedBuffer* editResize(size_t size) const;
71 SharedBuffer* reset(size_t size) const;
111 size_t SharedBuffer::size() const { function in class:android::SharedBuffer
H A DSortedVector.h61 inline size_t size() const { return VectorImpl::size(); } function in class:android::SortedVector
66 //! setst the capacity. capacity can never be reduced less than size()
67 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } argument
185 assert( index<size() );
196 assert( (index>0 ? index : -index)<size() );
197 return *(array() + ((index<0) ? (size()-index) : index));
202 return *(array() + size() - 1);
H A DVector.h61 inline size_t size() const { return VectorImpl::size(); } function in class:android::Vector
66 //! setst the capacity. capacity can never be reduced less than size()
67 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } argument
213 LOG_FATAL_IF( index>=size(),
214 "itemAt: index %d is past size %d", (int)index, (int)size() );
225 LOG_FATAL_IF( (index>0 ? index : -index)>=size(),
226 "mirrorItemAt: index %d is past size
[all...]
H A DVectorImpl.cpp105 return SharedBuffer::sharedBuffer(mStorage)->size() / mItemSize;
112 if (index > size())
114 void* where = _grow(index, vector.size());
116 _do_copy(where, vector.arrayImpl(), vector.size());
123 return insertVectorAt(vector, size());
133 if (index > size())
148 if (size())
149 removeItemsAt(size()-1, 1);
159 insertAt(item, size());
169 return insertAt(item, size());
[all...]
H A DVectorImpl.h25 * reduces code size.
55 inline size_t size() const { return mCount; } function in class:android::VectorImpl
58 ssize_t setCapacity(size_t size);

Completed in 140 milliseconds

123456