/system/core/include/usbhost/ |
H A D | usbhost.h | 64 /* 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 D | usbhost.c | 197 D("Created device discovery thread\n"); 284 D("new device %s\n", path); 287 D("gone device %s\n", path); 348 void usb_device_close(struct usb_device *device) argument 350 close(device->fd); 351 free(device); 356 struct usb_device *device = calloc(1, sizeof(struct usb_device)); local 363 length = read(fd, device->desc, sizeof(device->desc)); 368 strncpy(device 381 usb_device_reopen_writeable(struct usb_device *device) argument 397 usb_device_get_fd(struct usb_device *device) argument 404 usb_device_get_name(struct usb_device *device) argument 409 usb_device_get_unique_id(struct usb_device *device) argument 432 usb_device_get_vendor_id(struct usb_device *device) argument 438 usb_device_get_product_id(struct usb_device *device) argument 444 usb_device_get_device_descriptor(struct usb_device *device) argument 449 usb_device_get_string(struct usb_device *device, int id) argument 489 usb_device_get_manufacturer_name(struct usb_device *device) argument 495 usb_device_get_product_name(struct usb_device *device) argument 501 usb_device_get_serial(struct usb_device *device) argument 507 usb_device_is_writeable(struct usb_device *device) argument 512 usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter) argument 529 usb_device_claim_interface(struct usb_device *device, unsigned int interface) argument 534 usb_device_release_interface(struct usb_device *device, unsigned int interface) argument 539 usb_device_connect_kernel_driver(struct usb_device *device, unsigned int interface, int connect) argument 550 usb_device_set_configuration(struct usb_device *device, int configuration) argument 555 usb_device_set_interface(struct usb_device *device, unsigned int interface, unsigned int alt_setting) argument 565 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument 591 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 D | audio.h | 35 /* device address used to refer to the standard remote submix */ 578 /* USB accessory mode: your Android device is a USB device and the dock is a USB host */ 580 /* USB host mode: your Android device is a USB host and the dock is a USB device */ 595 /* limited-output speaker device for acoustic safety */ 701 // the device. It is unique and must be 862 * a mix (e.g PlaybackThread output) or a physical device 876 /* maximum audio device address length */ 880 * hardware device */ 927 struct audio_port_config_device_ext device; /* device specific info */ member in union:audio_port_config::__anon91 984 struct audio_port_device_ext device; member in union:audio_port::__anon93 1020 audio_is_output_device(audio_devices_t device) argument 1029 audio_is_input_device(audio_devices_t device) argument 1039 audio_is_output_devices(audio_devices_t device) argument 1044 audio_is_a2dp_in_device(audio_devices_t device) argument 1054 audio_is_a2dp_out_device(audio_devices_t device) argument 1063 audio_is_a2dp_device(audio_devices_t device) argument 1068 audio_is_bluetooth_sco_device(audio_devices_t device) argument 1082 audio_is_usb_out_device(audio_devices_t device) argument 1087 audio_is_usb_in_device(audio_devices_t device) argument 1098 audio_is_usb_device(audio_devices_t device) argument 1103 audio_is_remote_submix_device(audio_devices_t device) argument 1355 audio_device_address_to_parameter(audio_devices_t device, const char *address) argument [all...] |
/system/core/toolbox/ |
H A D | umount.c | 32 char device[256]; local 44 count = fscanf(f, "%255s %255s %255s\n", device, mount_path, rest); 46 if (is_loop(device) && strcmp(path, mount_path) == 0) { 47 strlcpy(loopdev, device, LOOPDEV_MAXLEN); 75 // free the loop device 78 fprintf(stderr, "open loop device failed: %s\n", strerror(errno));
|
H A D | getevent.c | 294 static int open_device(const char *device, int print_flags) argument 306 fd = open(device, O_RDWR); 309 fprintf(stderr, "could not open %s, %s\n", device, strerror(errno)); 315 fprintf(stderr, "could not get driver version for %s, %s\n", device, strerror(errno)); 320 fprintf(stderr, "could not get driver id for %s, %s\n", device, strerror(errno)); 327 //fprintf(stderr, "could not get device name for %s, %s\n", device, strerror(errno)); 331 //fprintf(stderr, "could not get location for %s, %s\n", device, strerror(errno)); 335 //fprintf(stderr, "could not get idstring for %s, %s\n", device, strerror(errno)); 358 printf("add device 393 close_device(const char *device, int print_flags) argument 512 const char *device = NULL; local [all...] |
H A D | lsof.c | 103 char device[10]; local 113 while (fscanf(maps, "%*x-%*x %*s %zx %s %ld %s\n", &offset, device, &inode, 116 if (inode == 0 || !strcmp(device, "00:00")) 121 "???", device, offset, inode, file);
|
/system/core/adb/ |
H A D | disable_verity_service.c | 54 info.len = 0; /* Only len is set to 0 to ask the device for real size. */ 58 write_console(fd, "Error opening block device (%s)\n", strerror(errno)); 87 int device; local 90 device = adb_open(block_device, O_RDWR | O_CLOEXEC); 91 if (device == -1) { 92 write_console(fd, "Could not open block device %s (%s).\n", 100 write_console(fd, "Could not get target device size.\n"); 104 if (lseek64(device, device_length, SEEK_SET) < 0) { 111 if (adb_read(device, &magic_number, sizeof(magic_number)) 129 if (lseek64(device, device_lengt [all...] |
H A D | Android.mk | 96 # adbd device daemon 146 # adb host tool for device-as-host
|
/system/keymaster/ |
H A D | google_keymaster_test.cpp | 48 KeymasterTest() : device(5, new StdoutLogger) { RAND_seed("foobar", 6); } 51 GoogleSoftKeymaster device; member in class:keymaster::test::KeymasterTest 57 device.SupportedAlgorithms(NULL); 60 device.SupportedAlgorithms(&response); 70 device.SupportedBlockModes(KM_ALGORITHM_RSA, NULL); 73 device.SupportedBlockModes(KM_ALGORITHM_RSA, &response); 77 device.SupportedBlockModes(KM_ALGORITHM_DSA, &response); 81 device.SupportedBlockModes(KM_ALGORITHM_ECDSA, &response); 85 device.SupportedBlockModes(KM_ALGORITHM_AES, &response); 91 device [all...] |
/system/media/audio_utils/tests/ |
H A D | build_and_run_all_unit_tests.sh | 16 echo "waiting for device" 18 adb root && adb wait-for-device remount
|
/system/core/fs_mgr/ |
H A D | fs_mgr_verity.c | 127 ERROR("Error opening block device (%s)", strerror(errno)); 156 int device; local 161 device = TEMP_FAILURE_RETRY(open(block_device, O_RDONLY | O_CLOEXEC)); 162 if (device == -1) { 163 ERROR("Could not open block device %s (%s).\n", block_device, strerror(errno)); 169 ERROR("Could not get target device size.\n"); 172 if (TEMP_FAILURE_RETRY(lseek64(device, device_length, SEEK_SET)) < 0) { 178 if (TEMP_FAILURE_RETRY(read(device, &magic_number, sizeof(magic_number))) != 199 if (TEMP_FAILURE_RETRY(read(device, &protocol_version, 215 if (TEMP_FAILURE_RETRY(read(device, *signatur 346 test_access(char *device) argument [all...] |
/system/core/libzipfile/ |
H A D | Android.mk | 23 # build device static library
|
/system/security/softkeymaster/ |
H A D | module.cpp | 46 * Generic device handling 48 static int openssl_open(const hw_module_t* module, const char* name, hw_device_t** device) { argument 74 *device = reinterpret_cast<hw_device_t*>(dev.release());
|
/system/extras/tests/bionic/libstdc++/ |
H A D | Android.mk | 24 # 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/extras/tests/bionic/libc/ |
H A D | Android.mk | 23 # device executable. 28 define device-test 43 # same as 'device-test' but builds a host executable instead 86 $(call device-test, $(sources)) 122 $(call device-test, $(sources)) 136 $(call device-test, $(sources)) 144 $(call device-test, $(sources)) 217 #$(call device-test, $(sources))
|
/system/core/libdiskconfig/ |
H A D | diskconfig.c | 168 if (!(devroot = config_find(root, "device"))) { 169 ALOGE("Could not find device section in config file '%s'", fn); 175 ALOGE("device path is requried"); 178 dinfo->device = strdup(tmp); 233 if (dinfo->device) 234 free(dinfo->device); 284 if ((fd = open(dinfo->device, O_RDWR)) < 0) { 285 ALOGE("Cannot open device '%s' (errno=%d)", dinfo->device, errno); 290 ALOGE("Cannot stat file '%s', errno=%d.", dinfo->device, errn [all...] |
/system/core/libutils/ |
H A D | Android.mk | 18 # and once for the device. 77 # For the device, static 82 # we have the common sources, plus some device-specific stuff 110 # For the device, shared
|
/system/core/fastboot/ |
H A D | usb_osx.c | 52 /** 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 D | getevent.cpp | 35 static int open_device(const char* device) { argument 45 fd = open(device, O_RDWR); 84 device_names[nfds] = strdup(device); 90 int close_device(const char* device) { argument 93 if (strcmp(device_names[i], device) == 0) {
|
/system/core/fastbootd/ |
H A D | commands.c | 193 D(ERR, "could not close device %s", strerror(errno)); 224 const char *device; local 225 device = fastboot_getvar("blockdev"); 227 if (!strcmp(device, "")) { 239 oldtable = GPT_get_device(device, location); 258 if (!GPT_write_content(device, &content)) {
|
/system/core/gpttool/ |
H A D | gpttool.c | 258 const char *device; local 267 device = argv[2]; 282 if (!strcmp(device, "/dev/sda") || 283 !strcmp(device, "/dev/sdb")) { 288 fd = open(device, O_RDWR); 290 fprintf(stderr,"error: cannot open '%s'\n", device); 294 fprintf(stderr,"error: cannot query block device size\n");
|
/system/security/keystore/ |
H A D | keystore.cpp | 117 ALOGE("could not open keymaster device in %s (%s)", 947 KeyStore(Entropy* entropy, keymaster_device_t* device) argument 949 , mDevice(device) 1107 * the HAL for the device supports the newer key types. 1144 // A device doesn't have to implement delete_keypair. 1243 * Maybe the device doesn't support this type of key. Try to use the 1268 ALOGW("can't get keymaster device"); 1845 const keymaster_device_t* device = mKeyStore->getDevice(); local 1846 if (device == NULL) { 1850 if (device 2019 const keymaster_device_t* device = mKeyStore->getDevice(); local 2074 const keymaster_device_t* device = mKeyStore->getDevice(); local 2131 const keymaster_device_t* device = mKeyStore->getDevice(); local 2337 const keymaster_device_t* device = mKeyStore->getDevice(); local 2435 isKeyTypeSupported(const keymaster_device_t* device, keymaster_keypair_t keyType) argument [all...] |
/system/core/fastbootd/commands/ |
H A D | partitions.h | 134 int GPT_write_content(const char *device, struct GPT_content *content);
|
/system/core/include/diskconfig/ |
H A D | diskconfig.h | 90 char *device; member in struct:disk_info
|
/system/extras/tests/audio/alsa/ |
H A D | pcmtest.cpp | 45 unsigned int device; member in struct:PCM_NODE 99 &(pcmnodes[pcms].device)); 136 params = pcm_params_get(pcmnodes[i].card, pcmnodes[i].device,
|