/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 | 237 bool init_functionfs(struct usb_handle* h) { in init_functionfs() argument 257 if (h->control < 0) { // might have already done this before in init_functionfs() 259 h->control = adb_open(USB_FFS_ADB_EP0, O_RDWR); in init_functionfs() 260 if (h->control < 0) { in init_functionfs() 265 ret = adb_write(h->control, &v2_descriptor, sizeof(v2_descriptor)); in init_functionfs() 274 ret = adb_write(h->control, &v1_descriptor, sizeof(v1_descriptor)); in init_functionfs() 281 ret = adb_write(h->control, &strings, sizeof(strings)); in init_functionfs() 290 h->bulk_out = adb_open(USB_FFS_ADB_OUT, O_RDWR); in init_functionfs() 291 if (h->bulk_out < 0) { in init_functionfs() 296 h->bulk_in = adb_open(USB_FFS_ADB_IN, O_RDWR); in init_functionfs() [all …]
|
D | usb.h | 32 int (*write)(usb_handle* h, const void* data, int len); 33 int (*read)(usb_handle* h, void* data, int len); 34 void (*kick)(usb_handle* h); 35 void (*close)(usb_handle* h); 45 bool init_functionfs(struct usb_handle* h);
|
/system/core/adb/client/ |
D | usb_linux.cpp | 299 static int usb_bulk_write(usb_handle* h, const void* data, int len) { in usb_bulk_write() argument 300 std::unique_lock<std::mutex> lock(h->mutex); in usb_bulk_write() 303 usbdevfs_urb* urb = &h->urb_out; in usb_bulk_write() 306 urb->endpoint = h->ep_out; in usb_bulk_write() 311 if (h->dead) { in usb_bulk_write() 316 if (TEMP_FAILURE_RETRY(ioctl(h->fd, USBDEVFS_SUBMITURB, urb)) == -1) { in usb_bulk_write() 320 h->urb_out_busy = true; in usb_bulk_write() 323 if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) { in usb_bulk_write() 328 if (!h->urb_out_busy) { in usb_bulk_write() 338 static int usb_bulk_read(usb_handle* h, void* data, int len) { in usb_bulk_read() argument [all …]
|
D | usb_dispatch.cpp | 30 int usb_write(usb_handle* h, const void* data, int len) { in usb_write() argument 32 ? libusb::usb_write(reinterpret_cast<libusb::usb_handle*>(h), data, len) in usb_write() 33 : native::usb_write(reinterpret_cast<native::usb_handle*>(h), data, len); in usb_write() 36 int usb_read(usb_handle* h, void* data, int len) { in usb_read() argument 38 ? libusb::usb_read(reinterpret_cast<libusb::usb_handle*>(h), data, len) in usb_read() 39 : native::usb_read(reinterpret_cast<native::usb_handle*>(h), data, len); in usb_read() 42 int usb_close(usb_handle* h) { in usb_close() argument 43 return should_use_libusb() ? libusb::usb_close(reinterpret_cast<libusb::usb_handle*>(h)) in usb_close() 44 : native::usb_close(reinterpret_cast<native::usb_handle*>(h)); in usb_close() 47 void usb_kick(usb_handle* h) { in usb_kick() argument [all …]
|
D | usb_libusb.cpp | 57 void operator()(libusb_device_handle* h) { in operator ()() 58 libusb_close(h); in operator ()() 386 static int perform_usb_transfer(usb_handle* h, transfer_info* info, in perform_usb_transfer() argument 460 int usb_write(usb_handle* h, const void* d, int len) { in usb_write() argument 463 std::unique_lock<std::mutex> lock(h->device_handle_mutex); in usb_write() 464 if (!h->device_handle) { in usb_write() 469 transfer_info* info = &h->write; in usb_write() 470 info->transfer->dev_handle = h->device_handle; in usb_write() 472 info->transfer->endpoint = h->bulk_out; in usb_write() 478 int rc = perform_usb_transfer(h, info, std::move(lock)); in usb_write() [all …]
|
/system/core/libcutils/ |
D | native_handle.c | 52 native_handle_t* h = malloc(mallocSize); in native_handle_create() local 53 if (h) { in native_handle_create() 54 h->version = sizeof(native_handle_t); in native_handle_create() 55 h->numFds = numFds; in native_handle_create() 56 h->numInts = numInts; in native_handle_create() 58 return h; in native_handle_create() 82 int native_handle_delete(native_handle_t* h) in native_handle_delete() argument 84 if (h) { in native_handle_delete() 85 if (h->version != sizeof(native_handle_t)) in native_handle_delete() 87 free(h); in native_handle_delete() [all …]
|
D | hashmap.c | 84 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/ |
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 | 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 …]
|
D | usb.h | 23 int usb_write(handle_ref_type h, const void* data, int len); \ 24 int usb_read(handle_ref_type h, void* data, int len); \ 25 int usb_close(handle_ref_type h); \ 26 void usb_kick(handle_ref_type h)
|
/system/libhidl/transport/memory/1.0/ |
D | Android.bp | 32 "android/hidl/memory/1.0/IMapper.h", 33 "android/hidl/memory/1.0/IHwMapper.h", 34 "android/hidl/memory/1.0/BnHwMapper.h", 35 "android/hidl/memory/1.0/BpHwMapper.h", 36 "android/hidl/memory/1.0/BsMapper.h", 37 "android/hidl/memory/1.0/IMemory.h", 38 "android/hidl/memory/1.0/IHwMemory.h", 39 "android/hidl/memory/1.0/BnHwMemory.h", 40 "android/hidl/memory/1.0/BpHwMemory.h", 41 "android/hidl/memory/1.0/BsMemory.h",
|
/system/libhidl/transport/manager/1.0/ |
D | Android.bp | 32 "android/hidl/manager/1.0/IServiceManager.h", 33 "android/hidl/manager/1.0/IHwServiceManager.h", 34 "android/hidl/manager/1.0/BnHwServiceManager.h", 35 "android/hidl/manager/1.0/BpHwServiceManager.h", 36 "android/hidl/manager/1.0/BsServiceManager.h", 37 "android/hidl/manager/1.0/IServiceNotification.h", 38 "android/hidl/manager/1.0/IHwServiceNotification.h", 39 "android/hidl/manager/1.0/BnHwServiceNotification.h", 40 "android/hidl/manager/1.0/BpHwServiceNotification.h", 41 "android/hidl/manager/1.0/BsServiceNotification.h",
|
/system/core/toolbox/ |
D | Android.mk | 6 -include bsd-compatibility.h \ 60 $(LOCAL_PATH)/toolbox.c: $(intermediates)/tools.h 62 TOOLS_H := $(intermediates)/tools.h 69 $(LOCAL_PATH)/getevent.c: $(intermediates)/input.h-labels.h 71 …ENT_CODES_H := bionic/libc/kernel/uapi/linux/input.h bionic/libc/kernel/uapi/linux/input-event-cod… 72 INPUT_H_LABELS_H := $(intermediates)/input.h-labels.h 77 $(INPUT_H_LABELS_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_LOCAL_PATH)/generate-input.h-labels.py $(PRIVA… 80 $(INPUT_H_LABELS_H): $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/generate-input.h-labels.py $(UAPI_INPUT…
|
/system/libhidl/transport/base/1.0/ |
D | Android.bp | 32 "android/hidl/base/1.0/types.h", 33 "android/hidl/base/1.0/hwtypes.h", 34 "android/hidl/base/1.0/IBase.h", 35 "android/hidl/base/1.0/IHwBase.h", 36 "android/hidl/base/1.0/BnHwBase.h", 37 "android/hidl/base/1.0/BpHwBase.h", 38 "android/hidl/base/1.0/BsBase.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 "EnumType.h" 39 #include "HandleType.h" 40 #include "MemoryType.h" 41 #include "Method.h" [all …]
|
/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()
|
/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", 53 "simple.h",
|
/system/tools/hidl/test/vendor/1.0/ |
D | Android.bp | 32 "tests/vendor/1.0/types.h", 33 "tests/vendor/1.0/hwtypes.h", 34 "tests/vendor/1.0/IVendor.h", 35 "tests/vendor/1.0/IHwVendor.h", 36 "tests/vendor/1.0/BnHwVendor.h", 37 "tests/vendor/1.0/BpHwVendor.h", 38 "tests/vendor/1.0/BsVendor.h",
|
/system/extras/ioshark/ |
D | ioshark_bench_subr.c | 41 struct files_db_handle *h; in files_db_create_handle() local 44 h = malloc(sizeof(struct files_db_handle)); in files_db_create_handle() 46 h->files_db_buckets[i] = NULL; in files_db_create_handle() 47 return h; in files_db_create_handle() 53 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_lookup_byfileno() local 57 db_node = h->files_db_buckets[hash]; in files_db_lookup_byfileno() 69 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_add_byfileno() local 81 db_node->next = h->files_db_buckets[hash]; in files_db_add_byfileno() 82 h->files_db_buckets[hash] = db_node; in files_db_add_byfileno() 95 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_fsync_discard_files() local [all …]
|
/system/libhidl/transport/token/1.0/ |
D | Android.bp | 30 "android/hidl/token/1.0/ITokenManager.h", 31 "android/hidl/token/1.0/IHwTokenManager.h", 32 "android/hidl/token/1.0/BnHwTokenManager.h", 33 "android/hidl/token/1.0/BpHwTokenManager.h", 34 "android/hidl/token/1.0/BsTokenManager.h",
|
/system/libhidl/transport/allocator/1.0/ |
D | Android.bp | 30 "android/hidl/allocator/1.0/IAllocator.h", 31 "android/hidl/allocator/1.0/IHwAllocator.h", 32 "android/hidl/allocator/1.0/BnHwAllocator.h", 33 "android/hidl/allocator/1.0/BpHwAllocator.h", 34 "android/hidl/allocator/1.0/BsAllocator.h",
|
/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/hardware/interfaces/wifi/keystore/1.0/ |
D | Android.bp | 30 "android/system/wifi/keystore/1.0/IKeystore.h", 31 "android/system/wifi/keystore/1.0/IHwKeystore.h", 32 "android/system/wifi/keystore/1.0/BnHwKeystore.h", 33 "android/system/wifi/keystore/1.0/BpHwKeystore.h", 34 "android/system/wifi/keystore/1.0/BsKeystore.h",
|
/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 …]
|