/system/bt/btif/src/ |
D | btif_sock_thread.cc | 98 static inline void close_cmd_fd(int h); 100 static inline void add_poll(int h, int fd, int type, int flags, 145 static void free_thread_slot(int h) { in free_thread_slot() argument 146 if (0 <= h && h < MAX_THREAD) { in free_thread_slot() 147 close_cmd_fd(h); in free_thread_slot() 148 ts[h].used = 0; in free_thread_slot() 150 APPL_TRACE_ERROR("invalid thread handle:%d", h); in free_thread_slot() 157 int h; in btsock_thread_init() local 158 for (h = 0; h < MAX_THREAD; h++) { in btsock_thread_init() 159 ts[h].cmd_fdr = ts[h].cmd_fdw = -1; in btsock_thread_init() [all …]
|
/system/core/adb/daemon/ |
D | usb.cpp | 249 bool init_functionfs(struct usb_handle* h) { in init_functionfs() argument 270 if (h->control < 0) { // might have already done this before in init_functionfs() 272 h->control = adb_open(USB_FFS_ADB_EP0, O_RDWR); in init_functionfs() 273 if (h->control < 0) { in init_functionfs() 278 ret = adb_write(h->control, &v2_descriptor, sizeof(v2_descriptor)); in init_functionfs() 287 ret = adb_write(h->control, &v1_descriptor, sizeof(v1_descriptor)); in init_functionfs() 294 ret = adb_write(h->control, &strings, sizeof(strings)); in init_functionfs() 303 h->bulk_out = adb_open(USB_FFS_ADB_OUT, O_RDWR); in init_functionfs() 304 if (h->bulk_out < 0) { in init_functionfs() 309 h->bulk_in = adb_open(USB_FFS_ADB_IN, O_RDWR); in init_functionfs() [all …]
|
D | usb.h | 43 int (*write)(usb_handle* h, const void* data, int len); 44 int (*read)(usb_handle* h, void* data, int len); 45 void (*kick)(usb_handle* h); 46 void (*close)(usb_handle* h);
|
/system/core/adb/client/ |
D | usb_dispatch.cpp | 38 int usb_write(usb_handle* h, const void* data, int len) { in usb_write() argument 40 ? libusb::usb_write(reinterpret_cast<libusb::usb_handle*>(h), data, len) in usb_write() 41 : native::usb_write(reinterpret_cast<native::usb_handle*>(h), data, len); in usb_write() 44 int usb_read(usb_handle* h, void* data, int len) { in usb_read() argument 46 ? libusb::usb_read(reinterpret_cast<libusb::usb_handle*>(h), data, len) in usb_read() 47 : native::usb_read(reinterpret_cast<native::usb_handle*>(h), data, len); in usb_read() 50 int usb_close(usb_handle* h) { in usb_close() argument 51 return should_use_libusb() ? libusb::usb_close(reinterpret_cast<libusb::usb_handle*>(h)) in usb_close() 52 : native::usb_close(reinterpret_cast<native::usb_handle*>(h)); in usb_close() 55 void usb_kick(usb_handle* h) { in usb_kick() argument [all …]
|
D | usb_linux.cpp | 302 static int usb_bulk_write(usb_handle* h, const void* data, int len) { in usb_bulk_write() argument 303 std::unique_lock<std::mutex> lock(h->mutex); in usb_bulk_write() 306 usbdevfs_urb* urb = &h->urb_out; in usb_bulk_write() 309 urb->endpoint = h->ep_out; in usb_bulk_write() 314 if (h->dead) { in usb_bulk_write() 319 if (TEMP_FAILURE_RETRY(ioctl(h->fd, USBDEVFS_SUBMITURB, urb)) == -1) { in usb_bulk_write() 323 h->urb_out_busy = true; in usb_bulk_write() 326 if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) { in usb_bulk_write() 331 if (!h->urb_out_busy) { in usb_bulk_write() 341 static int usb_bulk_read(usb_handle* h, void* data, int len) { in usb_bulk_read() argument [all …]
|
D | usb_libusb.cpp | 57 void operator()(libusb_device_handle* h) { in operator ()() 58 libusb_close(h); in operator ()() 543 static int perform_usb_transfer(usb_handle* h, transfer_info* info, in perform_usb_transfer() argument 572 int usb_write(usb_handle* h, const void* d, int len) { in usb_write() argument 575 std::unique_lock<std::mutex> lock(h->device_handle_mutex); in usb_write() 576 if (!h->device_handle) { in usb_write() 581 transfer_info* info = &h->write; in usb_write() 582 info->transfer->dev_handle = h->device_handle; in usb_write() 584 info->transfer->endpoint = h->bulk_out; in usb_write() 590 int rc = perform_usb_transfer(h, info, std::move(lock)); in usb_write() [all …]
|
/system/core/libcutils/ |
D | native_handle.cpp | 46 native_handle_t* h = static_cast<native_handle_t*>(malloc(mallocSize)); in native_handle_create() local 47 if (h) { in native_handle_create() 48 h->version = sizeof(native_handle_t); in native_handle_create() 49 h->numFds = numFds; in native_handle_create() 50 h->numInts = numInts; in native_handle_create() 52 return h; in native_handle_create() 75 int native_handle_delete(native_handle_t* h) { in native_handle_delete() argument 76 if (h) { in native_handle_delete() 77 if (h->version != sizeof(native_handle_t)) return -EINVAL; in native_handle_delete() 78 free(h); in native_handle_delete() [all …]
|
D | hashmap.cpp | 85 int h = map->hash(key); in hashKey() local 89 h += ~(h << 9); in hashKey() 90 h ^= (((unsigned int) h) >> 14); in hashKey() 91 h += (h << 4); in hashKey() 92 h ^= (((unsigned int) h) >> 10); in hashKey() 94 return h; in hashKey() 164 int h = keySize; in hashmapHash() local 168 h = h * 31 + *data; in hashmapHash() 171 return h; in hashmapHash()
|
D | trace-dev.inc | 22 #include <errno.h> 23 #include <fcntl.h> 24 #include <limits.h> 25 #include <pthread.h> 26 #include <stdatomic.h> 27 #include <stdbool.h> 28 #include <stdlib.h> 29 #include <string.h> 30 #include <sys/types.h> 32 #include <cutils/compiler.h> [all …]
|
/system/tools/hidl/c2hal/test/ |
D | Android.bp | 29 "simple.h", 32 "android/hardware/c2hal_test/1.0/BnHwSimple.h", 33 "android/hardware/c2hal_test/1.0/BpHwSimple.h", 34 "android/hardware/c2hal_test/1.0/BsSimple.h", 35 "android/hardware/c2hal_test/1.0/IHwSimple.h", 36 "android/hardware/c2hal_test/1.0/ISimple.h", 37 "android/hardware/c2hal_test/1.0/BnHwSimpleLocation.h", 38 "android/hardware/c2hal_test/1.0/BpHwSimpleLocation.h", 39 "android/hardware/c2hal_test/1.0/BsSimpleLocation.h", 40 "android/hardware/c2hal_test/1.0/IHwSimpleLocation.h", [all …]
|
/system/core/adf/libadf/tests/ |
D | adf_test.cpp | 85 void getCurrentMode(uint32_t &w, uint32_t &h) { in getCurrentMode() argument 89 h = data.current_mode.vdisplay; in getCurrentMode() 127 void drawCheckerboard(uint32_t &w, uint32_t &h, uint32_t &format, in drawCheckerboard() argument 130 ASSERT_NO_FATAL_FAILURE(getCurrentMode(w, h)); in drawCheckerboard() 133 buf_fd = adf_interface_simple_buffer_alloc(intf, w, h, format, &offset, in drawCheckerboard() 135 ASSERT_GE(buf_fd, 0) << "allocating " << w << "x" << h << " " << in drawCheckerboard() 139 void *mapped = mmap(NULL, pitch * h, PROT_WRITE, MAP_SHARED, buf_fd, in drawCheckerboard() 141 ASSERT_NE(mapped, MAP_FAILED) << "mapping " << w << "x" << h << " " << in drawCheckerboard() 145 for (uint32_t y = 0; y < h / 2; y++) { in drawCheckerboard() 152 for (uint32_t y = h / 2; y < h; y++) { in drawCheckerboard() [all …]
|
/system/core/adb/ |
D | framebuffer_service.cpp | 64 int w, h, f, c; in framebuffer_service() local 88 if(!ReadFdExactly(fd_screencap, &h, 4)) goto done; in framebuffer_service() 98 fbinfo.size = w * h * 4; in framebuffer_service() 100 fbinfo.height = h; in framebuffer_service() 112 fbinfo.size = w * h * 4; in framebuffer_service() 114 fbinfo.height = h; in framebuffer_service() 126 fbinfo.size = w * h * 3; in framebuffer_service() 128 fbinfo.height = h; in framebuffer_service() 140 fbinfo.size = w * h * 2; in framebuffer_service() 142 fbinfo.height = h; in framebuffer_service() [all …]
|
D | transport_usb.cpp | 38 static int UsbReadMessage(usb_handle* h, amessage* msg) { in UsbReadMessage() argument 42 size_t usb_packet_size = usb_get_max_packet_size(h); in UsbReadMessage() 47 int n = usb_read(h, buffer, usb_packet_size); in UsbReadMessage() 55 return usb_read(h, msg, sizeof(*msg)); in UsbReadMessage() 61 static int UsbReadPayload(usb_handle* h, apacket* p) { in UsbReadPayload() argument 69 size_t usb_packet_size = usb_get_max_packet_size(h); in UsbReadPayload() 81 int rc = usb_read(h, &p->payload[0], p->payload.size()); in UsbReadPayload() 90 return usb_read(h, &p->payload[0], p->payload.size()); in UsbReadPayload() 175 void init_usb_transport(atransport* t, usb_handle* h) { in init_usb_transport() argument 177 t->connection.reset(new UsbConnection(h)); in init_usb_transport()
|
D | usb.h | 26 int usb_write(handle_ref_type h, const void* data, int len); \ 27 int usb_read(handle_ref_type h, void* data, int len); \ 28 int usb_close(handle_ref_type h); \ 29 void usb_kick(handle_ref_type h); \
|
/system/tools/hidl/ |
D | hidl-gen_l.ll | 32 #include "Annotation.h" 33 #include "AST.h" 34 #include "ArrayType.h" 35 #include "CompoundType.h" 36 #include "ConstantExpression.h" 37 #include "DeathRecipientType.h" 38 #include "DocComment.h" 39 #include "EnumType.h" 40 #include "HandleType.h" 41 #include "MemoryType.h" [all …]
|
/system/tools/hidl/test/impl_test/ |
D | Android.bp | 11 "FooCallback.h", 12 "Foo.h", 13 "MyTypes.h", 14 "Simple.h", 15 "TheirTypes.h",
|
/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 213 for (j = 0; j < h/2; j++) { in draw_grid() 226 for (; j < h; j++) { in draw_grid() 241 void clear_screen(int w, int h, void* _loc) in clear_screen() argument 248 for (j = 0; j < h; j++) in clear_screen() 258 int h; in main() local 272 h = atoi(argv[3]); in main() 275 h = vi.yres; in main() 281 draw_grid(w, h, gr_fbs[id].data); in main()
|
/system/tools/hidl/c2hal/ |
D | c2hal_l.ll | 31 #include "AST.h" 32 #include "Declaration.h" 33 #include "Type.h" 34 #include "VarDeclaration.h" 35 #include "FunctionDeclaration.h" 36 #include "CompositeDeclaration.h" 37 #include "Define.h" 38 #include "Include.h" 39 #include "EnumVarDeclaration.h" 40 #include "Note.h" [all …]
|
/system/extras/ioshark/ |
D | ioshark_bench_subr.c | 44 struct files_db_handle *h; in files_db_create_handle() local 47 h = malloc(sizeof(struct files_db_handle)); in files_db_create_handle() 49 h->files_db_buckets[i] = NULL; in files_db_create_handle() 50 return h; in files_db_create_handle() 56 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_lookup_byfileno() local 60 db_node = h->files_db_buckets[hash]; in files_db_lookup_byfileno() 72 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_add_byfileno() local 84 db_node->next = h->files_db_buckets[hash]; in files_db_add_byfileno() 85 h->files_db_buckets[hash] = db_node; in files_db_add_byfileno() 98 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_fsync_discard_files() local [all …]
|
/system/extras/slideshow/ |
D | slideshow.cpp | 61 int w, h, x, y; in draw() local 69 h = gr_get_height(surface); in draw() 71 y = (gr_fb_height() - h) / 2; in draw() 73 gr_blit(surface, 0, 0, w, h, x, y); in draw()
|
/system/core/libsparse/ |
D | simg_dump.py | 148 h = hashlib.sha1() 149 h.update(data) 150 curhash = h.hexdigest() 161 h = hashlib.sha1() 164 h.update(data) 165 curhash = h.hexdigest()
|
/system/connectivity/wificond/net/kernel-header-latest/ |
D | README.txt | 8 Copy the nl80211.h header from the following location: 9 cp <kernel-dir>/private/msm-google/include/uapi/linux/nl80211.h 10 <android-source-dir>/system/connectivity/wificond/net/kernel-header-latest/nl80211.h
|
/system/core/healthd/ |
D | healthd_draw.cpp | 70 int h = gr_get_height(surface); in draw_surface_centered() local 72 int y = (screen_height_ - h) / 2; in draw_surface_centered() 74 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered() 75 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered() 78 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered() 79 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered() 82 return y + h; in draw_surface_centered()
|