Searched defs:device (Results 1 - 11 of 11) sorted by last modified time

/system/core/include/diskconfig/
H A Ddiskconfig.h89 char *device; member in struct:disk_info
/system/core/logcat/
H A Dlogcat.cpp56 char* device; member in struct:log_device_t
66 device = d;
224 snprintf(buf, sizeof(buf), "--------- beginning of %s\n", dev->device);
582 /* in an emulated device only. it basically looks for androidboot.logcat= */
726 dev->fd = open(dev->device, mode);
728 fprintf(stderr, "Unable to open log device '%s': %s\n",
729 dev->device, strerror(errno));
758 "max entry is %db, max payload is %db\n", dev->device,
/system/core/toolbox/
H A Dgetevent.c121 static int open_device(const char *device, int print_flags) argument
132 fd = open(device, O_RDWR);
135 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno));
141 fprintf(stderr, "could not get driver version for %s, %s\n", device, strerror(errno));
146 fprintf(stderr, "could not get driver id for %s, %s\n", device, strerror(errno));
153 //fprintf(stderr, "could not get device name for %s, %s\n", device, strerror(errno));
157 //fprintf(stderr, "could not get location for %s, %s\n", device, strerror(errno));
161 //fprintf(stderr, "could not get idstring for %s, %s\n", device, strerror(errno));
179 printf("add device
207 close_device(const char *device, int print_flags) argument
325 const char *device = NULL; local
[all...]
H A Dumount.c17 char device[256]; local
30 count = fscanf(f, "%255s %255s %255s\n", device, mount_path, rest);
32 if (strcmp(LOOP_DEVICE, device) == 0 && strcmp(path, mount_path) == 0) {
59 // free the loop device
62 perror("open loop device failed");
/system/extras/tests/bionic/libc/
H A DAndroid.mk23 # device executable.
28 define device-test
41 # same as 'device-test' but builds a host executable instead
82 $(call device-test, $(sources))
89 $(call device-test, $(sources))
101 $(call device-test, $(sources))
118 $(call device-test, $(sources))
174 #$(call device-test, $(sources))
/system/extras/tests/bionic/libstdc++/
H A DAndroid.mk24 # device executable.
29 define device-test
41 # same as 'device-test' but builds a host executable instead
77 # compiler flags, so only build this test for device/Bionic
82 $(call device-test, $(sources))
/system/vold/
H A DVolume.cpp236 char device[256]; local
249 sscanf(line, "%255s %255s %255s\n", device, mount_path, rest);
289 SLOGE("Failed to get device nodes (%s)\n", strerror(errno));
317 * Mount the device on our internal staging mountpoint so we can
534 * Finally, unmount the actual block device from the staging dir
585 dinfo.device = strdup(deviceNode);
608 free(dinfo.device);
H A DVolumeManager.cpp151 /* Lookup a volume to handle this device */
266 SLOGE("ASEC loop device creation failed (%s)", strerror(errno));
279 SLOGE("ASEC device mapping failed (%s)", strerror(errno));
296 SLOGE("Failed to open new DM device for superblock write (%s)", strerror(errno));
525 SLOGW("Failed to find loop device for {%s} (%s)", asecFileName, strerror(errno));
592 SLOGE("ASEC loop device creation failed (%s)", strerror(errno));
596 SLOGD("New loop device created at %s", loopDevice);
657 SLOGE("ASEC device mapping failed (%s)", strerror(errno));
914 char device[256]; local
927 sscanf(line, "%255s %255s %255s\n", device, mount_pat
[all...]
/system/core/adb/
H A Dusb_linux.c92 // set mark flag to indicate this device is still alive
107 // kick any devices in the device list that were not found in the device scan
155 struct usb_device_descriptor* device; local
179 // should have device and configuration descriptors, and atleast two endpoints
186 device = (struct usb_device_descriptor*)bufptr;
189 if((device->bLength != USB_DT_DEVICE_SIZE) || (device->bDescriptorType != USB_DT_DEVICE)) {
194 vid = __le16_to_cpu(device->idVendor);
195 pid = __le16_to_cpu(device
[all...]
/system/core/debuggerd/
H A Dgetevent.c19 static int open_device(const char *device) argument
30 fd = open(device, O_RDWR);
45 //fprintf(stderr, "could not get device name for %s, %s\n", device, strerror(errno));
49 //fprintf(stderr, "could not get location for %s, %s\n", device, strerror(errno));
53 //fprintf(stderr, "could not get idstring for %s, %s\n", device, strerror(errno));
71 device_names[nfds] = strdup(device);
77 int close_device(const char *device) argument
81 if(strcmp(device_names[i], device) == 0) {
/system/core/fastboot/
H A Dusb_osx.c52 /** An open usb device */
95 // Get an iterator for the interfaces on the device
99 ERR("Couldn't create a device interface iterator: (%08x)\n", kr);
259 /** Try out the given device and see if there's a match. Returns 0 on
262 static int try_device(io_service_t device, usb_handle *handle) { argument
271 kr = IOCreatePlugInInterfaceForService(device,
281 // Now create the device interface.
285 ERR("Couldn't create a device interface (%08x)\n", (int) result);
290 * We don't need the intermediate interface after the device interface
295 // So, we have a device, finall
414 io_service_t device = IOIteratorNext(iterator); local
[all...]

Completed in 113 milliseconds