/system/core/include/usbhost/ |
D | usbhost.h | 94 void usb_device_close(struct usb_device *device); 100 int usb_device_get_fd(struct usb_device *device); 105 const char* usb_device_get_name(struct usb_device *device); 110 int usb_device_get_unique_id(struct usb_device *device); 122 uint16_t usb_device_get_vendor_id(struct usb_device *device); 125 uint16_t usb_device_get_product_id(struct usb_device *device); 127 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device); 134 char* usb_device_get_string(struct usb_device *device, int id); 139 char* usb_device_get_manufacturer_name(struct usb_device *device); 144 char* usb_device_get_product_name(struct usb_device *device); [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 288 void usb_device_close(struct usb_device *device) in usb_device_close() argument 290 close(device->fd); in usb_device_close() 291 free(device); in usb_device_close() 296 struct usb_device *device = calloc(1, sizeof(struct usb_device)); in usb_device_new() local 303 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new() 308 strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1); in usb_device_new() 309 device->fd = fd; in usb_device_new() 310 device->desc_length = length; in usb_device_new() 312 device->writeable = 1; in usb_device_new() 313 return device; in usb_device_new() [all …]
|
/system/core/include/system/ |
D | audio.h | 388 static inline bool audio_is_output_device(audio_devices_t device) in audio_is_output_device() argument 390 if (((device & AUDIO_DEVICE_BIT_IN) == 0) && in audio_is_output_device() 391 (popcount(device) == 1) && ((device & ~AUDIO_DEVICE_OUT_ALL) == 0)) in audio_is_output_device() 397 static inline bool audio_is_input_device(audio_devices_t device) in audio_is_input_device() argument 399 if ((device & AUDIO_DEVICE_BIT_IN) != 0) { in audio_is_input_device() 400 device &= ~AUDIO_DEVICE_BIT_IN; in audio_is_input_device() 401 if ((popcount(device) == 1) && ((device & ~AUDIO_DEVICE_IN_ALL) == 0)) in audio_is_input_device() 407 static inline bool audio_is_output_devices(audio_devices_t device) in audio_is_output_devices() argument 409 return (device & AUDIO_DEVICE_BIT_IN) == 0; in audio_is_output_devices() 413 static inline bool audio_is_a2dp_device(audio_devices_t device) in audio_is_a2dp_device() argument [all …]
|
/system/core/adb/ |
D | SERVICES.TXT | 22 state. devices-l includes the device paths in the state. 29 connection. Instead, a new device list description is sent 30 each time a device is added/removed or the state of a given 31 device changes (hex4 + content). This allows tools like DDMS 46 Ask to switch the connection to the device/emulator identified by 48 be sent directly to the adbd daemon running on the device. 52 Ask to switch the connection to one device connected through USB 63 either the device or emulator connect to/running on the host. 64 Will fail if there is more than one such device/emulator available. 70 for information related to a specific device. <request> can be in one [all …]
|
D | OVERVIEW.TXT | 33 The 'adbd' program runs as a background process within an Android device 38 The ADB server considers that a device is ONLINE when it has successfully 39 connected to the adbd program within it. Otherwise, the device is OFFLINE, 40 meaning that the ADB server detected a new device/emulator, but could not 65 communicate with a device at all. A typical example is "adb devices" 71 it on the device. The ADB server is used to multiplex streams 115 where '<serialnumber>' is used to identify a given device/emulator; after 124 An ADB transport models a connection between the ADB server and one device 133 a connection between an ADB server and a device/emulator connected to/ 137 and the device/emulator they point to. The ADB server must handle [all …]
|
D | usb_linux.c | 156 struct usb_device_descriptor* device; in find_usb_device() local 187 device = (struct usb_device_descriptor*)bufptr; in find_usb_device() 190 … if((device->bLength != USB_DT_DEVICE_SIZE) || (device->bDescriptorType != USB_DT_DEVICE)) { in find_usb_device() 195 vid = device->idVendor; in find_usb_device() 196 pid = device->idProduct; in find_usb_device() 292 interface->bInterfaceNumber, device->iSerialNumber, zero_mask); in find_usb_device()
|
/system/core/toolbox/ |
D | umount.c | 32 char device[256]; in is_loop_mount() local 45 count = fscanf(f, "%255s %255s %255s\n", device, mount_path, rest); in is_loop_mount() 47 if (is_loop(device) && strcmp(path, mount_path) == 0) { in is_loop_mount() 48 strlcpy(loopdev, device, LOOPDEV_MAXLEN); in is_loop_mount()
|
D | getevent.c | 294 static int open_device(const char *device, int print_flags) in open_device() argument 305 fd = open(device, O_RDWR); in open_device() 308 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno)); in open_device() 314 fprintf(stderr, "could not get driver version for %s, %s\n", device, strerror(errno)); in open_device() 319 fprintf(stderr, "could not get driver id for %s, %s\n", device, strerror(errno)); in open_device() 352 printf("add device %d: %s\n", nfds, device); in open_device() 381 device_names[nfds] = strdup(device); in open_device() 387 int close_device(const char *device, int print_flags) in close_device() argument 391 if(strcmp(device_names[i], device) == 0) { in close_device() 394 printf("remove device %d: %s\n", i, device); in close_device() [all …]
|
D | lsof.c | 106 char device[10]; in print_maps() local 116 while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode, in print_maps() 119 if (inode == 0 || !strcmp(device, "00:00")) in print_maps() 124 "???", device, offset, inode, file); in print_maps()
|
/system/security/keystore/ |
D | keystore.cpp | 449 KeyStore(Entropy* entropy, keymaster_device_t* device) in KeyStore() argument 451 , mDevice(device) in KeyStore() 1004 const keymaster_device_t* device = keyStore->getDevice(); in reset() local 1005 if (device == NULL) { in reset() 1010 if (device->delete_all == NULL) { in reset() 1015 if (device->delete_all(device)) { in reset() 1068 const keymaster_device_t* device = keyStore->getDevice(); in generate() local 1069 if (device == NULL) { in generate() 1073 if (device->generate_keypair == NULL) { in generate() 1081 rc = device->generate_keypair(device, TYPE_RSA, &rsa_params, &data, &dataLength); in generate() [all …]
|
/system/core/debuggerd/ |
D | getevent.c | 19 static int open_device(const char *device) in open_device() argument 30 fd = open(device, O_RDWR); in open_device() 71 device_names[nfds] = strdup(device); in open_device() 77 int close_device(const char *device) in close_device() argument 81 if(strcmp(device_names[i], device) == 0) { in close_device()
|
/system/extras/tests/bionic/libc/ |
D | Android.mk | 28 define device-test 92 $(call device-test, $(sources)) 128 $(call device-test, $(sources)) 136 $(call device-test, $(sources)) 149 $(call device-test, $(sources)) 166 $(call device-test, $(sources))
|
/system/core/libdiskconfig/ |
D | diskconfig.c | 177 dinfo->device = strdup(tmp); in load_diskconfig() 232 if (dinfo->device) in load_diskconfig() 233 free(dinfo->device); in load_diskconfig() 283 if ((fd = open(dinfo->device, O_RDWR)) < 0) { in validate() 284 ALOGE("Cannot open device '%s' (errno=%d)", dinfo->device, errno); in validate() 289 ALOGE("Cannot stat file '%s', errno=%d.", dinfo->device, errno); in validate() 340 dinfo->device, disk_size, dinfo->num_lba, dinfo->sect_size); in validate() 465 printf("Device: %s\n", dinfo->device); in dump_disk_config()
|
/system/extras/tests/bionic/libstdc++/ |
D | Android.mk | 29 define device-test 82 $(call device-test, $(sources))
|
/system/core/gpttool/ |
D | gpttool.c | 261 const char *device; in main() local 270 device = argv[2]; in main() 285 if (!strcmp(device, "/dev/sda") || in main() 286 !strcmp(device, "/dev/sdb")) { in main() 291 fd = open(device, O_RDWR); in main() 293 fprintf(stderr,"error: cannot open '%s'\n", device); in main()
|
/system/core/fastboot/ |
D | usb_osx.c | 260 static int try_device(io_service_t device, usb_handle *handle) { in try_device() argument 270 kr = IOCreatePlugInInterfaceForService(device, in try_device() 421 io_service_t device = IOIteratorNext(iterator); in init_usb() local 423 if (device == 0) { in init_usb() 427 if (try_device(device, &h) != 0) { in init_usb() 428 IOObjectRelease(device); in init_usb() 440 IOObjectRelease(device); in init_usb()
|
/system/core/init/ |
D | readme.txt | 35 (device creation/destruction, property setting, process restarting) 63 This is a device-critical service. If it exits more than four times in 64 four minutes, the device will reboot into recovery mode. 116 device-added-<path> 117 device-removed-<path> 118 Triggers of these forms occur when a device node is added 179 mount <type> <device> <dir> [ <mountoption> ]* 180 Attempt to mount the named device at the directory <dir> 181 <device> may be of the form mtd@name to specify a mtd block 182 device by name. [all …]
|
D | devices.c | 411 const char *device; in parse_platform_block_device() local 431 device = path + 18; in parse_platform_block_device() 432 device = find_platform_device(device); in parse_platform_block_device() 433 if (!device) in parse_platform_block_device() 436 INFO("found platform device %s\n", device); in parse_platform_block_device() 438 snprintf(link_path, sizeof(link_path), "/dev/block/platform/%s", device); in parse_platform_block_device()
|
D | README.BOOTCHART | 13 Otherwise, flash your device, and start it. Then create a file on the /data partition 23 Reboot your device, bootcharting will begin and stop after the period you gave.
|
/system/core/rootdir/etc/ |
D | init.goldfish.rc | 18 setprop ro.product.device generic 42 # account info for the device via these two properties. Google 49 # You MUST have a Google account on the device, and you MAY 77 # if it does, it redirects its output to the device
|
D | vold.fstab | 6 ## Regular device mount 16 # Mounts the first usable partition of the specified device
|
/system/extras/bugmailer/ |
D | send_bug | 1 # Script to start "send_bug" on the device
|
/system/core/logcat/ |
D | logcat.cpp | 56 char* device; member 66 device = d; in log_device_t() 224 snprintf(buf, sizeof(buf), "--------- beginning of %s\n", dev->device); in maybePrintStart() 732 dev->fd = open(dev->device, mode); in main() 735 dev->device, strerror(errno)); in main() 764 "max entry is %db, max payload is %db\n", dev->device, in main()
|
/system/vold/ |
D | Volume.cpp | 267 char device[256]; in isMountpointMounted() local 280 sscanf(line, "%255s %255s %255s\n", device, mount_path, rest); in isMountpointMounted() 691 dinfo.device = strdup(deviceNode); in initializeMbr() 714 free(dinfo.device); in initializeMbr()
|
/system/core/include/diskconfig/ |
D | diskconfig.h | 90 char *device; member
|