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

123

/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/gatekeeper/tests/
H A Dgatekeeper_device_test.cpp30 gatekeeper_device_initialize(&device);
34 gatekeeper_close(device);
49 gatekeeper_device_t *device; member in class:GateKeeperDeviceTest
61 ret = device->enroll(device, 0, NULL, 0, NULL, 0, password_payload, password_len,
67 ret = device->verify(device, 0, 0, password_handle, password_handle_length,
82 ret = device->enroll(device, 0, NULL, 0, NULL, 0, password_payload, password_len,
90 ret = device
[all...]
/system/core/libusbhost/
H A Dusbhost.c200 D("Created device discovery thread\n");
287 D("new device %s\n", path);
290 D("gone device %s\n", path);
351 void usb_device_close(struct usb_device *device) argument
353 close(device->fd);
354 free(device);
359 struct usb_device *device = calloc(1, sizeof(struct usb_device)); local
366 length = read(fd, device->desc, sizeof(device->desc));
371 strncpy(device
384 usb_device_reopen_writeable(struct usb_device *device) argument
400 usb_device_get_fd(struct usb_device *device) argument
407 usb_device_get_name(struct usb_device *device) argument
412 usb_device_get_unique_id(struct usb_device *device) argument
435 usb_device_get_vendor_id(struct usb_device *device) argument
441 usb_device_get_product_id(struct usb_device *device) argument
447 usb_device_get_device_descriptor(struct usb_device *device) argument
452 usb_device_get_string(struct usb_device *device, int id) argument
492 usb_device_get_manufacturer_name(struct usb_device *device) argument
498 usb_device_get_product_name(struct usb_device *device) argument
504 usb_device_get_version(struct usb_device *device) argument
510 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_set_configuration(struct usb_device *device, int configuration) argument
564 usb_device_set_interface(struct usb_device *device, unsigned int interface, unsigned int alt_setting) argument
574 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument
600 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
[all...]
/system/media/audio/include/system/
H A Daudio.h35 /* device address used to refer to the standard remote submix */
599 /* USB accessory mode: your Android device is a USB device and the dock is a USB host */
601 /* USB host mode: your Android device is a USB host and the dock is a USB device */
616 /* limited-output speaker device for acoustic safety */
725 // the device. It is unique and must be
899 * a mix (e.g PlaybackThread output) or a physical device
912 /* the maximum length for the human-readable device name */
915 /* maximum audio device addres
966 struct audio_port_config_device_ext device; /* device specific info */ member in union:audio_port_config::__anon1594
1023 struct audio_port_device_ext device; member in union:audio_port::__anon1596
1059 audio_is_output_device(audio_devices_t device) argument
1068 audio_is_input_device(audio_devices_t device) argument
1078 audio_is_output_devices(audio_devices_t device) argument
1083 audio_is_a2dp_in_device(audio_devices_t device) argument
1093 audio_is_a2dp_out_device(audio_devices_t device) argument
1102 audio_is_a2dp_device(audio_devices_t device) argument
1107 audio_is_bluetooth_sco_device(audio_devices_t device) argument
1121 audio_is_usb_out_device(audio_devices_t device) argument
1126 audio_is_usb_in_device(audio_devices_t device) argument
1137 audio_is_usb_device(audio_devices_t device) argument
1142 audio_is_remote_submix_device(audio_devices_t device) argument
1407 audio_device_address_to_parameter(audio_devices_t device, const char *address) argument
1422 audio_device_is_digital(audio_devices_t device) argument
[all...]
/system/core/gatekeeperd/
H A Dgatekeeperd.cpp54 device = NULL;
60 ret = gatekeeper_open(module, &device);
67 if (device != NULL && device->delete_all_users != NULL) {
68 device->delete_all_users(device);
74 if (device) gatekeeper_close(device);
147 if (device) {
160 ret = device
319 gatekeeper_device_t *device; member in class:android::GateKeeperProxy
[all...]
/system/core/adb/
H A Dset_verity_enable_state_service.cpp51 info.len = 0; /* Only len is set to 0 to ask the device for real size. */
55 WriteFdFmt(fd, "Error opening block device (%s)\n", strerror(errno));
86 int device = -1; local
90 WriteFdFmt(fd, "Could not make block device %s writable (%s).\n",
95 device = adb_open(block_device, O_RDWR | O_CLOEXEC);
96 if (device == -1) {
97 WriteFdFmt(fd, "Could not open block device %s (%s).\n", block_device, strerror(errno));
104 WriteFdFmt(fd, "Could not get target device size.\n");
108 if (lseek64(device, device_length, SEEK_SET) < 0) {
114 if (adb_read(device,
[all...]
/system/media/audio_utils/tests/
H A Dbuild_and_run_all_unit_tests.sh16 echo "waiting for device"
18 adb root && adb wait-for-device remount
/system/extras/ext4_utils/
H A Dunencrypted_properties.cpp18 std::string UnencryptedProperties::GetPath(const char* device) argument
20 return std::string() + device + "/" + unencrypted_folder;
23 UnencryptedProperties::UnencryptedProperties(const char* device) argument
24 : folder_(GetPath(device))
H A Dunencrypted_properties.h13 * Class to store data on the unencrypted folder of a device.
23 static std::string GetPath(const char* device);
25 // Opens properties folder on named device.
28 UnencryptedProperties(const char* device);
/system/core/fingerprintd/
H A DFingerprintDaemonProxy.cpp51 const int64_t device = (int64_t) instance->mDevice; local
55 callback->onError(device, msg->data.error);
59 callback->onAcquired(device, msg->data.acquired.acquired_info);
69 callback->onAuthenticated(device,
78 callback->onEnrollResult(device,
87 callback->onRemoved(device,
199 hw_device_t *device = NULL; local
201 if (0 != (err = mModule->common.methods->open(hw_module, NULL, &device))) {
206 if (kVersion != device->version) {
207 ALOGE("Wrong fp version. Expected %d, got %d", kVersion, device
[all...]
/system/bt/test/suite/support/
H A Dhal.c48 hw_device_t *device; local
49 if (module->methods->open(module, BT_STACK_MODULE_ID, &device)) {
53 bt_device = (bluetooth_device_t *)device;
/system/vold/
H A DDisk.h40 Disk(const std::string& eventPath, dev_t device, const std::string& nickname, int flags);
94 /* Kernel device representing disk */
111 void createPublicVolume(dev_t device);
112 void createPrivateVolume(dev_t device, const std::string& partGuid);
H A DEmulatedVolume.h41 EmulatedVolume(const std::string& rawPath, dev_t device, const std::string& fsUuid);
H A DEmulatedVolume.cpp46 EmulatedVolume::EmulatedVolume(const std::string& rawPath, dev_t device, argument
48 setId(StringPrintf("emulated:%u,%u", major(device), minor(device)));
H A DPrivateVolume.cpp46 PrivateVolume::PrivateVolume(dev_t device, const std::string& keyRaw) : argument
47 VolumeBase(Type::kPrivate), mRawDevice(device), mKeyRaw(keyRaw) {
48 setId(StringPrintf("private:%u,%u", major(device), minor(device)));
H A DPrivateVolume.h30 * Given a raw block device, it knows how to wrap it in dm-crypt and
36 * keys are tightly tied to this device.
40 PrivateVolume(dev_t device, const std::string& keyRaw);
53 /* Kernel device of raw, encrypted partition */
55 /* Path to raw, encrypted block device */
57 /* Path to decrypted block device */
59 /* Path where decrypted device is mounted */
H A DPublicVolume.h35 * 1. If primary storage for the device, it only binds itself to the
42 explicit PublicVolume(dev_t device);
56 /* Kernel device representing partition */
58 /* Block device path */
/system/core/toolbox/
H A Dioctl.c44 fprintf(stderr, "%s [-l <length>] [-a <argsize>] [-rdh] <device> <ioctlnr>\n"
47 " -r Open device in read only mode\n"
104 const char* device = argv[optind]; local
106 if (strcmp(device, "-") == 0) {
109 fd = open(device, read_only ? O_RDONLY : (O_RDWR | O_SYNC));
156 printf(" to %s\n", device);
/system/media/alsa_utils/include/
H A Dalsa_device_profile.h40 int device; member in struct:__anon1566
51 /* read from the hardware device */
64 bool profile_is_cached_for(alsa_device_profile* profile, int card, int device);
/system/keymaster/
H A Dandroid_keymaster_test_utils.h174 keymaster1_device_t* device();
317 Keymaster0CountingWrapper(keymaster0_device_t* device) : device_(device), counter_(0) { argument
350 static keymaster0_device_t* device(const keymaster0_device_t* dev) { function in struct:keymaster::test::Keymaster0CountingWrapper
377 int result = device(dev)->generate_keypair(device(dev), key_type, key_params, key_blob,
389 device(dev)->import_keypair(device(dev), key, key_length, key_blob, key_blob_length);
400 return device(dev)->get_keypair_public(device(de
[all...]
/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
72 $(call device-test, $(sources))
80 $(call device-test, $(sources))
/system/bt/doc/
H A Dpower_management.md10 Power states are managed per-device, per-profile, so every incoming event
35 Overall power states are managed *per device*, not per connection, but the power
37 currently known connections to a given device. Thus, if RFCOMM specifies that
137 - If the action chosen is `BTA_DM_PM_SNIFF`, the peer device's link policy
165 device.
169 `bta_dm_pm_btm_status` stops any timers started for the device in
170 `bta_dm_pm_set_mode`, clears some status bits in the peer device
172 device address and timeout set to FALSE.
173 - If the status is zero, and if the peer device `tBTA_DM_PEER_DEVICE`
175 stops all timers for the device, an
[all...]
/system/bt/audio_a2dp_hw/
H A Daudio_a2dp_hw.c23 * Description: Implements hal for bluedroid a2dp audio device
85 struct audio_hw_device device; member in struct:a2dp_audio_device
1306 static int adev_dump(const audio_hw_device_t *device, int fd) argument
1308 UNUSED(device);
1316 static int adev_close(hw_device_t *device) argument
1320 free(device);
1325 hw_device_t** device)
1344 adev->device.common.tag = HARDWARE_DEVICE_TAG;
1345 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
1346 adev->device
1324 adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/system/media/alsa_utils/
H A Dalsa_device_proxy.c45 ALOGV("proxy_prepare(c:%d, d:%d)", profile->card, profile->device);
86 ALOGV("proxy_open(card:%d device:%d %s)", profile->card, profile->device,
89 if (profile->card < 0 || profile->device < 0) {
93 proxy->pcm = pcm_open(profile->card, profile->device,
178 // It is possible to compensate for additional driver and device delay
/system/security/softkeymaster/include/keymaster/
H A Dsoftkeymaster.h41 int openssl_open(const hw_module_t* module, const char* name, hw_device_t** device);

Completed in 2432 milliseconds

123