Searched refs:device (Results 1 - 25 of 30) sorted by relevance

12

/system/core/include/usbhost/
H A Dusbhost.h64 /* Callback indicating that initial device discovery is done.
91 * added_cb will be called immediately for each existing USB device,
92 * and subsequently each time a new device is added.
103 /* Creates a usb_device object for a USB device */
106 /* Releases all resources associated with the USB device */
107 void usb_device_close(struct usb_device *device);
109 /* Creates a usb_device object for already open USB device */
113 int usb_device_get_fd(struct usb_device *device);
115 /* Returns the name for the USB device, which is the same as
118 const char* usb_device_get_name(struct usb_device *device);
[all...]
/system/core/libusbhost/
H A Dusbhost.c197 D("Created device discovery thread\n");
283 D("new device %s\n", path);
286 D("gone device %s\n", path);
347 void usb_device_close(struct usb_device *device) argument
349 close(device->fd);
350 free(device);
355 struct usb_device *device = calloc(1, sizeof(struct usb_device)); local
362 length = read(fd, device->desc, sizeof(device->desc));
367 strncpy(device
380 usb_device_reopen_writeable(struct usb_device *device) argument
396 usb_device_get_fd(struct usb_device *device) argument
403 usb_device_get_name(struct usb_device *device) argument
408 usb_device_get_unique_id(struct usb_device *device) argument
431 usb_device_get_vendor_id(struct usb_device *device) argument
437 usb_device_get_product_id(struct usb_device *device) argument
443 usb_device_get_device_descriptor(struct usb_device *device) argument
448 usb_device_get_string(struct usb_device *device, int id) argument
486 usb_device_get_manufacturer_name(struct usb_device *device) argument
496 usb_device_get_product_name(struct usb_device *device) argument
506 usb_device_get_serial(struct usb_device *device) argument
516 usb_device_is_writeable(struct usb_device *device) argument
521 usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter) argument
538 usb_device_claim_interface(struct usb_device *device, unsigned int interface) argument
543 usb_device_release_interface(struct usb_device *device, unsigned int interface) argument
548 usb_device_connect_kernel_driver(struct usb_device *device, unsigned int interface, int connect) argument
559 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument
585 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
[all...]
/system/core/include/system/
H A Daudio.h34 /* device address used to refer to the standard remote submix */
388 // the device. It is unique and must be
439 static inline bool audio_is_output_device(audio_devices_t device) argument
441 if (((device & AUDIO_DEVICE_BIT_IN) == 0) &&
442 (popcount(device) == 1) && ((device & ~AUDIO_DEVICE_OUT_ALL) == 0))
448 static inline bool audio_is_input_device(audio_devices_t device) argument
450 if ((device & AUDIO_DEVICE_BIT_IN) != 0) {
451 device &= ~AUDIO_DEVICE_BIT_IN;
452 if ((popcount(device)
458 audio_is_output_devices(audio_devices_t device) argument
464 audio_is_a2dp_device(audio_devices_t device) argument
472 audio_is_bluetooth_sco_device(audio_devices_t device) argument
482 audio_is_usb_device(audio_devices_t device) argument
490 audio_is_remote_submix_device(audio_devices_t device) argument
[all...]
/system/core/toolbox/
H A Dumount.c32 char device[256]; local
45 count = fscanf(f, "%255s %255s %255s\n", device, mount_path, rest);
47 if (is_loop(device) && strcmp(path, mount_path) == 0) {
48 strlcpy(loopdev, device, LOOPDEV_MAXLEN);
76 // free the loop device
79 fprintf(stderr, "open loop device failed: %s\n", strerror(errno));
H A Dgetevent.c294 static int open_device(const char *device, int print_flags) argument
305 fd = open(device, O_RDWR);
308 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno));
314 fprintf(stderr, "could not get driver version for %s, %s\n", device, strerror(errno));
319 fprintf(stderr, "could not get driver id for %s, %s\n", device, strerror(errno));
326 //fprintf(stderr, "could not get device name for %s, %s\n", device, strerror(errno));
330 //fprintf(stderr, "could not get location for %s, %s\n", device, strerror(errno));
334 //fprintf(stderr, "could not get idstring for %s, %s\n", device, strerror(errno));
352 printf("add device
387 close_device(const char *device, int print_flags) argument
508 const char *device = NULL; local
[all...]
H A Dlsof.c106 char device[10]; local
116 while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode,
119 if (inode == 0 || !strcmp(device, "00:00"))
124 "???", device, offset, inode, file);
/system/core/fs_mgr/
H A Dfs_mgr_verity.c127 ERROR("Error opening block device (%s)", strerror(errno));
156 FILE *device; local
159 device = fopen(block_device, "r");
160 if (!device) {
161 ERROR("Could not open block device %s (%s).\n", block_device, strerror(errno));
167 ERROR("Could not get target device size.\n");
170 if (fseek(device, device_length, SEEK_SET) < 0) {
176 if (!fread(&magic_number, sizeof(int), 1, device)) {
186 if (!fread(&protocol_version, sizeof(int), 1, device)) {
201 if (!fread(*signature, RSANUMBYTES, 1, device)) {
326 test_access(char *device) argument
[all...]
/system/core/libzipfile/
H A DAndroid.mk19 # build device static library
/system/security/softkeymaster/
H A Dmodule.cpp46 * Generic device handling
49 hw_device_t** device) {
75 *device = reinterpret_cast<hw_device_t*>(dev.release());
48 openssl_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
/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/core/libdiskconfig/
H A Ddiskconfig.c167 if (!(devroot = config_find(root, "device"))) {
168 ALOGE("Could not find device section in config file '%s'", fn);
174 ALOGE("device path is requried");
177 dinfo->device = strdup(tmp);
232 if (dinfo->device)
233 free(dinfo->device);
283 if ((fd = open(dinfo->device, O_RDWR)) < 0) {
284 ALOGE("Cannot open device '%s' (errno=%d)", dinfo->device, errno);
289 ALOGE("Cannot stat file '%s', errno=%d.", dinfo->device, errn
[all...]
/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);
257 /** Try out the given device and see if there's a match. Returns 0 on
260 static int try_device(io_service_t device, usb_handle *handle) { argument
270 kr = IOCreatePlugInInterfaceForService(device,
280 // Now create the device interface.
284 ERR("Couldn't create a device interface (%08x)\n", (int) result);
289 * We don't need the intermediate interface after the device interface
294 // So, we have a device, finall
421 io_service_t device = IOIteratorNext(iterator); local
[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/extras/tests/bionic/libc/
H A DAndroid.mk23 # device executable.
28 define device-test
43 # same as 'device-test' but builds a host executable instead
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))
257 #$(call device-test, $(sources))
260 # the shared version will use the target device'
[all...]
/system/security/keystore/
H A Dkeystore.cpp115 ALOGE("could not open keymaster device in %s (%s)",
872 KeyStore(Entropy* entropy, keymaster_device_t* device) argument
874 , mDevice(device)
1020 * the HAL for the device supports the newer key types.
1090 // If this is an old device HAL, try to fall back to an old version
1113 ALOGW("can't get keymaster device");
1616 const keymaster_device_t* device = mKeyStore->getDevice(); local
1617 if (device == NULL) {
1618 ALOGE("No keymaster device!");
1622 if (device
1737 const keymaster_device_t* device = mKeyStore->getDevice(); local
1909 const keymaster_device_t* device = mKeyStore->getDevice(); local
1963 const keymaster_device_t* device = mKeyStore->getDevice(); local
2019 const keymaster_device_t* device = mKeyStore->getDevice(); local
2069 const keymaster_device_t* device = mKeyStore->getDevice(); local
2243 const keymaster_device_t* device = mKeyStore->getDevice(); local
[all...]
/system/core/gpttool/
H A Dgpttool.c261 const char *device; local
270 device = argv[2];
285 if (!strcmp(device, "/dev/sda") ||
286 !strcmp(device, "/dev/sdb")) {
291 fd = open(device, O_RDWR);
293 fprintf(stderr,"error: cannot open '%s'\n", device);
297 fprintf(stderr,"error: cannot query block device size\n");
/system/core/libutils/
H A DAndroid.mk18 # and once for the device.
90 # For the device, static
95 # we have the common sources, plus some device-specific stuff
126 # For the device, shared
/system/core/adb/
H A DAndroid.mk98 # adbd device daemon
137 # adb host tool for device-as-host
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
156 struct usb_device_descriptor* device; local
180 // should have device and configuration descriptors, and atleast two endpoints
187 device = (struct usb_device_descriptor*)bufptr;
190 if((device->bLength != USB_DT_DEVICE_SIZE) || (device->bDescriptorType != USB_DT_DEVICE)) {
195 vid = device->idVendor;
196 pid = device
[all...]
H A Dadb.h150 /* a transport object models the connection to a remote device or emulator
151 ** there is one transport per connected device/emulator. a "local transport"
195 char *device; member in struct:atransport
272 ** If serial is non-NULL then only the device with that serial will be chosen.
450 /* used for USB device detection */
466 #define CS_NOPERM 5 /* Insufficient permissions to communicate with the device */
/system/core/include/diskconfig/
H A Ddiskconfig.h90 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);
588 /* in an emulated device only. it basically looks for androidboot.logcat= */
732 dev->fd = open(dev->device, mode);
734 fprintf(stderr, "Unable to open log device '%s': %s\n",
735 dev->device, strerror(errno));
764 "max entry is %db, max payload is %db\n", dev->device,
/system/vold/
H A DVolume.cpp260 // Only initialize the MBR if we are formatting the entire device
291 char device[256]; local
304 sscanf(line, "%255s %255s %255s\n", device, mount_path, rest);
362 SLOGE("Failed to get device nodes (%s)\n", strerror(errno));
369 * block device
380 /* We only expect one device node returned when mounting encryptable volumes */
381 SLOGE("Too many device nodes returned when mounting %d\n", getMountpoint());
391 /* We now have the new sysfs path for the decrypted block device, and the
392 * majore and minor numbers for it. So, create the device, update the
399 SLOGE("Error making device nod
[all...]
/system/extras/tests/ext4/
H A Dandroid_emmc_perf_tests.sh24 echo "No device detected over adb"
83 # prepare the device
85 adb wait-for-device
125 # At this point, the device is quiescent, need to crank up the cpu speed,
233 # reading is non-destructive, and we've never shipped a device with less than
234 # 8 Gbytes, for this test we read from the raw emmc device, and randomly seek
235 # in the first 6 Gbytes. That is way more memory than any device we currently
/system/media/camera/docs/
H A Dcamera_metadata_tags.mako46 * the static metadata that can be retrived without opening the camera device.

Completed in 942 milliseconds

12