/system/core/libutils/tests/ |
D | BasicHashtable_test.cpp | 112 static void cookieAt(const BasicHashtable<TKey, TEntry>& h, size_t index, in cookieAt() argument 114 uint32_t cookie = h.cookieAt(index); in cookieAt() 121 static const void* getBuckets(const BasicHashtable<TKey, TEntry>& h) { in getBuckets() argument 122 return h.mBuckets; in getBuckets() 127 static size_t add(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, in add() argument 129 return h.add(hash_type(key), key_value_pair_t<TKey, TValue>(key, value)); in add() 133 static ssize_t find(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, in find() argument 135 return h.find(index, hash_type(key), key); in find() 139 static bool remove(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, in remove() argument 141 ssize_t index = find(h, -1, key); in remove() [all …]
|
/system/bt/btif/src/ |
D | btif_sock_thread.c | 108 static inline void close_cmd_fd(int h); 110 static inline void add_poll(int h, int fd, int type, int flags, uint32_t user_id); 212 static void free_thread_slot(int h) in free_thread_slot() argument 214 if(0 <= h && h < MAX_THREAD) in free_thread_slot() 216 close_cmd_fd(h); in free_thread_slot() 217 ts[h].used = 0; in free_thread_slot() 219 else APPL_TRACE_ERROR("invalid thread handle:%d", h); in free_thread_slot() 228 int h; in btsock_thread_init() local 229 for(h = 0; h < MAX_THREAD; h++) in btsock_thread_init() 231 ts[h].cmd_fdr = ts[h].cmd_fdw = -1; in btsock_thread_init() [all …]
|
/system/core/adb/ |
D | usb_linux_client.cpp | 48 int (*write)(usb_handle *h, const void *data, int len); 49 int (*read)(usb_handle *h, void *data, int len); 50 void (*kick)(usb_handle *h); 199 static int usb_adb_write(usb_handle *h, const void *data, int len) in usb_adb_write() argument 203 D("about to write (fd=%d, len=%d)\n", h->fd, len); in usb_adb_write() 204 n = adb_write(h->fd, data, len); in usb_adb_write() 207 h->fd, n, errno, strerror(errno)); in usb_adb_write() 210 D("[ done fd=%d ]\n", h->fd); in usb_adb_write() 214 static int usb_adb_read(usb_handle *h, void *data, int len) in usb_adb_read() argument 218 D("about to read (fd=%d, len=%d)\n", h->fd, len); in usb_adb_read() [all …]
|
D | usb_linux.cpp | 317 static int usb_bulk_write(usb_handle *h, const void *data, int len) in usb_bulk_write() argument 319 struct usbdevfs_urb *urb = &h->urb_out; in usb_bulk_write() 326 urb->endpoint = h->ep_out; in usb_bulk_write() 333 adb_mutex_lock(&h->lock); in usb_bulk_write() 334 if(h->dead) { in usb_bulk_write() 339 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb); in usb_bulk_write() 347 h->urb_out_busy = 1; in usb_bulk_write() 353 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts); in usb_bulk_write() 354 if(res < 0 || h->dead) { in usb_bulk_write() 357 if(h->urb_out_busy == 0) { in usb_bulk_write() [all …]
|
D | framebuffer_service.cpp | 63 int w, h, f; in framebuffer_service() local 87 if(!ReadFdExactly(fd_screencap, &h, 4)) goto done; in framebuffer_service() 95 fbinfo.size = w * h * 4; in framebuffer_service() 97 fbinfo.height = h; in framebuffer_service() 109 fbinfo.size = w * h * 4; in framebuffer_service() 111 fbinfo.height = h; in framebuffer_service() 123 fbinfo.size = w * h * 3; in framebuffer_service() 125 fbinfo.height = h; in framebuffer_service() 137 fbinfo.size = w * h * 2; in framebuffer_service() 139 fbinfo.height = h; in framebuffer_service() [all …]
|
/system/core/libcutils/ |
D | native_handle.c | 38 native_handle_t* h = malloc(mallocSize); in native_handle_create() local 39 if (h) { in native_handle_create() 40 h->version = sizeof(native_handle_t); in native_handle_create() 41 h->numFds = numFds; in native_handle_create() 42 h->numInts = numInts; in native_handle_create() 44 return h; in native_handle_create() 47 int native_handle_delete(native_handle_t* h) in native_handle_delete() argument 49 if (h) { in native_handle_delete() 50 if (h->version != sizeof(native_handle_t)) in native_handle_delete() 52 free(h); in native_handle_delete() [all …]
|
D | hashmap.c | 81 int h = map->hash(key); in hashKey() local 85 h += ~(h << 9); in hashKey() 86 h ^= (((unsigned int) h) >> 14); in hashKey() 87 h += (h << 4); in hashKey() 88 h ^= (((unsigned int) h) >> 10); in hashKey() 90 return h; in hashKey() 156 int h = keySize; in hashmapHash() local 160 h = h * 31 + *data; in hashmapHash() 163 return h; in hashmapHash()
|
/system/core/fastboot/ |
D | usb_osx.c | 387 usb_handle h; in init_usb() local 389 h.success = 0; in init_usb() 390 h.callback = callback; in init_usb() 428 if (try_device(device, &h) != 0) { in init_usb() 434 if (h.success) { in init_usb() 436 memcpy(*handle, &h, sizeof(usb_handle)); in init_usb() 466 int usb_close(usb_handle *h) { in usb_close() argument 476 int usb_read(usb_handle *h, void *data, int len) { in usb_read() argument 484 if (h == NULL) { in usb_read() 488 if (h->interface == NULL) { in usb_read() [all …]
|
D | usb_linux.c | 366 int usb_write(usb_handle *h, const void *_data, int len) in usb_write() argument 373 if(h->ep_out == 0 || h->desc == -1) { in usb_write() 381 bulk.ep = h->ep_out; in usb_write() 386 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_write() 401 int usb_read(usb_handle *h, void *_data, int len) in usb_read() argument 408 if(h->ep_in == 0 || h->desc == -1) { in usb_read() 415 bulk.ep = h->ep_in; in usb_read() 422 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); in usb_read() 423 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_read() 424 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, h->fname, retry); in usb_read() [all …]
|
D | usb.h | 66 int usb_close(usb_handle *h); 67 int usb_read(usb_handle *h, void *_data, int len); 68 int usb_write(usb_handle *h, const void *_data, int len); 69 int usb_wait_for_disconnect(usb_handle *h);
|
/system/core/adf/libadf/tests/ |
D | adf_test.cpp | 76 void drawCheckerboard(void *buf, uint32_t w, uint32_t h, uint32_t pitch) { in drawCheckerboard() argument 78 for (uint32_t y = 0; y < h / 2; y++) { in drawCheckerboard() 85 for (uint32_t y = h / 2; y < h; y++) { in drawCheckerboard() 102 void getCurrentMode(uint32_t &w, uint32_t &h) { in getCurrentMode() argument 106 h = data.current_mode.vdisplay; in getCurrentMode() 286 uint32_t w = 0, h = 0; in TEST_F() local 287 ASSERT_NO_FATAL_FAILURE(getCurrentMode(w, h)); in TEST_F() 295 int buf_fd = adf_interface_simple_buffer_alloc(intf, w, h, format, &offset, in TEST_F() 297 EXPECT_GE(buf_fd, 0) << "allocating " << w << "x" << h << " " << in TEST_F() 302 buf_fd = adf_interface_simple_buffer_alloc(intf, w, h, 0xDEADBEEF, &offset, in TEST_F() [all …]
|
/system/core/toolbox/upstream-netbsd/usr.bin/du/ |
D | du.c | 293 int h, h2; in linkchk() local 303 h = sawzero; in linkchk() 305 return h; in linkchk() 340 h = tmp >> (HTBITS - htshift); in linkchk() 344 while (htable[h].ino || htable[h].dev) { in linkchk() 345 if ((htable[h].ino == ino) && (htable[h].dev == dev)) in linkchk() 347 h = (h + h2) & htmask; in linkchk() 351 htable[h].dev = dev; in linkchk() 352 htable[h].ino = ino; in linkchk()
|
/system/core/toolbox/ |
D | Android.mk | 8 -include bsd-compatibility.h \ 86 $(LOCAL_PATH)/toolbox.c: $(intermediates)/tools.h 88 TOOLS_H := $(intermediates)/tools.h 95 $(LOCAL_PATH)/getevent.c: $(intermediates)/input.h-labels.h 97 INPUT_H_LABELS_H := $(intermediates)/input.h-labels.h 99 $(INPUT_H_LABELS_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_LOCAL_PATH)/generate-input.h-labels.py > $@ 100 $(INPUT_H_LABELS_H): $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/generate-input.h-labels.py
|
/system/core/libpixelflinger/ |
D | clear.cpp | 51 uint32_t l, uint32_t t, uint32_t w, uint32_t h) in memset2d() argument 60 w *= h; in memset2d() 61 h = 1; in memset2d() 69 } while(--h); in memset2d() 75 } while(--h); in memset2d() 83 } while(--h); in memset2d() 102 uint32_t h = c->state.scissor.bottom - t; in ggl_clear() local 104 if (!w || !h) in ggl_clear() 131 memset2d(c, c->state.buffers.color, packed, l, t, w, h); in ggl_clear() 140 memset2d(c, c->state.buffers.depth, packed, l, t, w, h); in ggl_clear()
|
D | buffer.cpp | 36 static uint32_t extract(uint32_t v, int h, int l, int bits); 127 pixel->s[i] = f->c[i].h - f->c[i].l; in read_pixel() 129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); in read_pixel() 187 const int h = f->c[i].h; in write_pixel() local 188 if (h && (c->state.mask.color & component_mask)) { in write_pixel() 189 mask |= (((1<<(h-l))-1)<<l); in write_pixel() 192 if (pixelSize < (h-l)) { in write_pixel() 193 u = expand(u, pixelSize, h-l); in write_pixel() 194 pixelSize = h-l; in write_pixel() 196 v = downshift_component(v, u, pixelSize, 0, h, l, 0, 0, dither); in write_pixel() [all …]
|
/system/extras/tests/framebuffer/ |
D | fb_test.c | 207 void draw_grid(int w, int h, void* _loc) { in draw_grid() argument 214 for (j = 0; j < h/2; j++) { in draw_grid() 227 for (; j < h; j++) { in draw_grid() 242 void clear_screen(int w, int h, void* _loc) in clear_screen() argument 249 for (j = 0; j < h; j++) in clear_screen() 259 int h; in main() local 273 h = atoi(argv[3]); in main() 276 h = vi.yres; in main() 282 draw_grid(w, h, gr_fbs[id].data); in main()
|
/system/extras/slideshow/ |
D | slideshow.cpp | 58 int w, h, x, y; in draw() local 66 h = gr_get_height(surface); in draw() 68 y = (gr_fb_height() - h) / 2; in draw() 70 gr_blit(surface, 0, 0, w, h, x, y); in draw()
|
/system/extras/perfprofd/quipper/build/ |
D | build_config.h | 52 #error Please add support for your platform in build/build_config.h 85 #error Please add support for your compiler in build/build_config.h 128 #error Please add support for your architecture in build/build_config.h 147 #error Please add support for your compiler in build/build_config.h
|
/system/core/include/cutils/ |
D | native_handle.h | 40 int native_handle_close(const native_handle_t* h); 62 int native_handle_delete(native_handle_t* h);
|
/system/core/include/system/ |
D | window.h | 731 int w, int h, int format) __deprecated; 735 int w, int h, int format) in native_window_set_buffers_geometry() argument 738 w, h, format); in native_window_set_buffers_geometry() 756 int w, int h) in native_window_set_buffers_dimensions() argument 759 w, h); in native_window_set_buffers_dimensions() 781 int w, int h) in native_window_set_buffers_user_dimensions() argument 784 w, h); in native_window_set_buffers_user_dimensions()
|
/system/core/libpixelflinger/codeflinger/ |
D | load_store.cpp | 105 void GGLAssembler::extract(integer_t& d, int s, int h, int l, int bits) in extract() argument 107 const int maskLen = h-l; in extract() 114 assert(h); in extract() 116 if (h != bits) { in extract() 123 MOV(AL, 0, d.reg, reg_imm(s, LSL, 32-h)); in extract() 124 l += 32-h; in extract() 125 h = 32; in extract() 145 s.format.c[component].h, in extract() 154 s.format.c[component].h, in extract() 164 extract(d, s.reg, s.h, s.l, 32); in expand() [all …]
|
D | GGLAssembler.h | 243 inline int hi(int c) const { return format.c[c].h; } in hi() 252 component_t() : reg_t(), h(0), l(0) { in component_t() 255 : reg_t(r, f), h(0), l(0) { in reg_t() 258 : reg_t(r, f), h(hi), l(lo) { in reg_t() 261 : reg_t(rhs.reg, rhs.flags), h(rhs.s), l(0) { in component_t() 266 rhs.format.c[component].h, in component_t() 270 reg_t::setTo(r, f); h=hi; l=lo; 272 int8_t h; member 274 inline int size() const { return h-l; } in size() 385 void extract(integer_t& d, int s, int h, int l, int bits=32);
|
/system/core/libpixelflinger/include/pixelflinger/ |
D | format.h | 99 return ((1<<(c[i].h-c[i].l))-1)<<c[i].l; in mask() 102 return c[i].h - c[i].l; in bits() 119 uint8_t h; member
|
/system/extras/ksmutils/ |
D | lookup3.c | 775 uint32_t h=0; in driver1() local 782 h = hashlittle(&buf[0],1,h); in driver1() 785 if (z-a > 0) printf("time %d %.8x\n", z-a, h); in driver1() 797 uint32_t e[HASHSTATE],f[HASHSTATE],g[HASHSTATE],h[HASHSTATE]; in driver2() local 812 e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0); in driver2() 833 h[l] &= ~c[l]; in driver2() 836 if (e[l]|f[l]|g[l]|h[l]|x[l]|y[l]) finished=0; in driver2() 845 e[0],f[0],g[0],h[0],x[0],y[0]); in driver2() 868 uint32_t h; in driver3() local 931 for (h=0, b=buf+1; h<8; ++h, ++b) in driver3() [all …]
|
/system/core/sdcard/ |
D | sdcard.c | 1178 struct handle *h; in handle_open() local 1193 h = malloc(sizeof(*h)); in handle_open() 1194 if (!h) { in handle_open() 1198 h->fd = open(path, req->flags); in handle_open() 1199 if (h->fd < 0) { in handle_open() 1200 free(h); in handle_open() 1203 out.fh = ptr_to_id(h); in handle_open() 1213 struct handle *h = id_to_ptr(req->fh); in handle_read() local 1225 h, h->fd, size, (uint64_t) offset); in handle_read() 1229 res = pread64(h->fd, read_buffer, size, offset); in handle_read() [all …]
|