/system/core/include/usbhost/ |
D | usbhost.h | 107 void usb_device_close(struct usb_device *device); 113 int usb_device_get_fd(struct usb_device *device); 118 const char* usb_device_get_name(struct usb_device *device); 123 int usb_device_get_unique_id(struct usb_device *device); 135 uint16_t usb_device_get_vendor_id(struct usb_device *device); 138 uint16_t usb_device_get_product_id(struct usb_device *device); 140 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device); 147 char* usb_device_get_string(struct usb_device *device, int id); 152 char* usb_device_get_manufacturer_name(struct usb_device *device); 157 char* usb_device_get_product_name(struct usb_device *device); [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 334 void usb_device_close(struct usb_device *device) in usb_device_close() argument 336 close(device->fd); in usb_device_close() 337 free(device); in usb_device_close() 342 struct usb_device *device = calloc(1, sizeof(struct usb_device)); in usb_device_new() local 349 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new() 354 strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1); in usb_device_new() 355 device->fd = fd; in usb_device_new() 356 device->desc_length = length; in usb_device_new() 358 device->writeable = 1; in usb_device_new() 359 return device; in usb_device_new() [all …]
|
/system/core/include/system/ |
D | audio.h | 389 static inline bool audio_is_output_device(audio_devices_t device) in audio_is_output_device() argument 391 if (((device & AUDIO_DEVICE_BIT_IN) == 0) && in audio_is_output_device() 392 (popcount(device) == 1) && ((device & ~AUDIO_DEVICE_OUT_ALL) == 0)) in audio_is_output_device() 398 static inline bool audio_is_input_device(audio_devices_t device) in audio_is_input_device() argument 400 if ((device & AUDIO_DEVICE_BIT_IN) != 0) { in audio_is_input_device() 401 device &= ~AUDIO_DEVICE_BIT_IN; in audio_is_input_device() 402 if ((popcount(device) == 1) && ((device & ~AUDIO_DEVICE_IN_ALL) == 0)) in audio_is_input_device() 408 static inline bool audio_is_output_devices(audio_devices_t device) in audio_is_output_devices() argument 410 return (device & AUDIO_DEVICE_BIT_IN) == 0; in audio_is_output_devices() 414 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()
|
D | protocol.txt | 5 various streams between the host computer and client device (in either 15 a device or emulator that is connected to the bridge. 73 where systemtype is "bootloader", "device", or "host", serialno is some 93 confirm they want to install the public key on the device. 241 the client device could ask the host computer to setup inbound socket 242 translations on the fly on behalf of the client device. 261 remote (device) daemon. The service is requested by ascii name,
|
/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/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)) 169 $(call device-test, $(sources))
|
D | README.TXT | 31 program but will be installed to your device nevertheless.
|
/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/security/keystore/ |
D | keystore.cpp | 852 KeyStore(Entropy* entropy, keymaster_device_t* device) in KeyStore() argument 854 , mDevice(device) in KeyStore() 1563 const keymaster_device_t* device = mKeyStore->getDevice(); in reset() local 1564 if (device == NULL) { in reset() 1569 if (device->delete_all == NULL) { in reset() 1574 if (device->delete_all(device)) { in reset() 1682 const keymaster_device_t* device = mKeyStore->getDevice(); in generate() local 1683 if (device == NULL) { in generate() 1687 if (device->generate_keypair == NULL) { in generate() 1695 rc = device->generate_keypair(device, TYPE_RSA, &rsa_params, &data, &dataLength); in generate() [all …]
|
/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()
|
D | fastboot_protocol.txt | 134 "reboot" Reboot the device. 141 "powerdown" Power off the device. 149 represent various information about the device and the software
|
/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. 123 device-added-<path> 124 device-removed-<path> 125 Triggers of these forms occur when a device node is added 186 mount <type> <device> <dir> [ <mountoption> ]* 187 Attempt to mount the named device at the directory <dir> 188 <device> may be of the form mtd@name to specify a mtd block 189 device by name. [all …]
|
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/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 | 266 char device[256]; in isMountpointMounted() local 279 sscanf(line, "%255s %255s %255s\n", device, mount_path, rest); in isMountpointMounted() 690 dinfo.device = strdup(deviceNode); in initializeMbr() 713 free(dinfo.device); in initializeMbr()
|
/system/core/include/diskconfig/ |
D | diskconfig.h | 90 char *device; member
|
/system/extras/tests/ext4/ |
D | android_emmc_perf_tests.sh | 64 adb wait-for-device
|