Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 105) sorted by relevance

12345

/system/bt/btif/src/
Dbtif_sock_thread.c101 static inline void close_cmd_fd(int h);
103 static inline void add_poll(int h, int fd, int type, int flags, uint32_t user_id);
150 static void free_thread_slot(int h) in free_thread_slot() argument
152 if(0 <= h && h < MAX_THREAD) in free_thread_slot()
154 close_cmd_fd(h); in free_thread_slot()
155 ts[h].used = 0; in free_thread_slot()
157 else APPL_TRACE_ERROR("invalid thread handle:%d", h); in free_thread_slot()
166 int h; in btsock_thread_init() local
167 for(h = 0; h < MAX_THREAD; h++) in btsock_thread_init()
169 ts[h].cmd_fdr = ts[h].cmd_fdw = -1; in btsock_thread_init()
[all …]
/system/core/adb/
Dusb_linux_client.cpp64 int (*write)(usb_handle *h, const void *data, int len);
65 int (*read)(usb_handle *h, void *data, int len);
66 void (*kick)(usb_handle *h);
67 void (*close)(usb_handle *h);
283 static int usb_adb_write(usb_handle *h, const void *data, int len) in usb_adb_write() argument
287 D("about to write (fd=%d, len=%d)", h->fd, len); in usb_adb_write()
288 n = unix_write(h->fd, data, len); in usb_adb_write()
291 h->fd, n, errno, strerror(errno)); in usb_adb_write()
294 if (h->kicked) { in usb_adb_write()
298 D("[ done fd=%d ]", h->fd); in usb_adb_write()
[all …]
Dusb_linux.cpp296 static int usb_bulk_write(usb_handle* h, const void* data, int len) { in usb_bulk_write() argument
297 std::unique_lock<std::mutex> lock(h->mutex); in usb_bulk_write()
300 usbdevfs_urb* urb = &h->urb_out; in usb_bulk_write()
303 urb->endpoint = h->ep_out; in usb_bulk_write()
308 if (h->dead) { in usb_bulk_write()
313 if (TEMP_FAILURE_RETRY(ioctl(h->fd, USBDEVFS_SUBMITURB, urb)) == -1) { in usb_bulk_write()
317 h->urb_out_busy = true; in usb_bulk_write()
320 if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) { in usb_bulk_write()
325 if (!h->urb_out_busy) { in usb_bulk_write()
335 static int usb_bulk_read(usb_handle* h, void* data, int len) { in usb_bulk_read() argument
[all …]
Dframebuffer_service.cpp63 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 …]
Dadb.h219 int usb_write(usb_handle *h, const void *data, int len);
220 int usb_read(usb_handle *h, void *data, int len);
221 int usb_close(usb_handle *h);
222 void usb_kick(usb_handle *h);
/system/core/libcutils/
Dnative_handle.c38 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 …]
Dhashmap.c84 int h = map->hash(key); in hashKey() local
88 h += ~(h << 9); in hashKey()
89 h ^= (((unsigned int) h) >> 14); in hashKey()
90 h += (h << 4); in hashKey()
91 h ^= (((unsigned int) h) >> 10); in hashKey()
93 return h; in hashKey()
163 int h = keySize; in hashmapHash() local
167 h = h * 31 + *data; in hashmapHash()
170 return h; in hashmapHash()
/system/core/adf/libadf/tests/
Dadf_test.cpp76 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/
DAndroid.mk7 -include bsd-compatibility.h \
72 $(LOCAL_PATH)/toolbox.c: $(intermediates)/tools.h
74 TOOLS_H := $(intermediates)/tools.h
81 $(LOCAL_PATH)/getevent.c: $(intermediates)/input.h-labels.h
83 UAPI_INPUT_EVENT_CODES_H := bionic/libc/kernel/uapi/linux/input-event-codes.h
84 INPUT_H_LABELS_H := $(intermediates)/input.h-labels.h
89 $(INPUT_H_LABELS_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_LOCAL_PATH)/generate-input.h-labels.py $(PRIVA…
92 $(INPUT_H_LABELS_H): $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/generate-input.h-labels.py $(UAPI_INPUT…
/system/core/libpixelflinger/
Dclear.cpp51 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()
Dbuffer.cpp36 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/
Dfb_test.c207 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/
Dslideshow.cpp59 int w, h, x, y; in draw() local
67 h = gr_get_height(surface); in draw()
69 y = (gr_fb_height() - h) / 2; in draw()
71 gr_blit(surface, 0, 0, w, h, x, y); in draw()
/system/extras/perfprofd/quipper/build/
Dbuild_config.h52 #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/update_engine/
D.gitignore8 /update_engine.dbusclient.h
9 /update_engine.dbusserver.h
Dupdate_engine-client.gyp29 'proxy_output_file': 'include/update_engine/dbus-proxies.h',
30 'mock_output_file': 'include/update_engine/dbus-proxy-mocks.h',
31 'proxy_path_in_mocks': 'update_engine/dbus-proxies.h',
/system/core/include/cutils/
Dnative_handle.h40 int native_handle_close(const native_handle_t* h);
62 int native_handle_delete(native_handle_t* h);
/system/core/libpixelflinger/codeflinger/
Dload_store.cpp105 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 …]
/system/core/include/system/
Dwindow.h735 int w, int h, int format) __deprecated;
739 int w, int h, int format) in native_window_set_buffers_geometry() argument
742 w, h, format); in native_window_set_buffers_geometry()
760 int w, int h) in native_window_set_buffers_dimensions() argument
763 w, h); in native_window_set_buffers_dimensions()
785 int w, int h) in native_window_set_buffers_user_dimensions() argument
788 w, h); in native_window_set_buffers_user_dimensions()
/system/extras/ksmutils/
Dlookup3.c775 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/libpixelflinger/include/pixelflinger/
Dformat.h99 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/firewalld/
Dfirewalld.gyp42 'proxy_output_file': 'include/firewalld/dbus-proxies.h',
43 'mock_output_file': 'include/firewalld/dbus-mocks.h',
44 'proxy_path_in_mocks': 'firewalld/dbus-proxies.h',
/system/core/sdcard/
Dsdcard.c1197 struct handle *h; in handle_open() local
1212 h = malloc(sizeof(*h)); in handle_open()
1213 if (!h) { in handle_open()
1217 h->fd = open(path, req->flags); in handle_open()
1218 if (h->fd < 0) { in handle_open()
1219 free(h); in handle_open()
1222 out.fh = ptr_to_id(h); in handle_open()
1232 struct handle *h = id_to_ptr(req->fh); in handle_read() local
1244 h, h->fd, size, (uint64_t) offset); in handle_read()
1248 res = pread64(h->fd, read_buffer, size, offset); in handle_read()
[all …]
/system/webservd/
Dwebserver.gyp50 'mock_output_file': 'include/webservd/dbus-mocks.h',
51 'proxy_output_file': 'include/webservd/dbus-proxies.h',
64 'mock_output_file': 'include/permission_broker/dbus-mocks.h',
65 'proxy_output_file': 'include/permission_broker/dbus-proxies.h',
120 'mock_output_file': 'include/libwebserv/dbus-mocks.h',
121 'proxy_output_file': 'include/libwebserv/dbus-proxies.h',
/system/tools/aidl/
Daidl_language_l.ll2 #include <string.h>
3 #include <stdlib.h>
5 #include "aidl_language.h"
6 #include "aidl_language_y.h"

12345