/hardware/libhardware/modules/nfc/ |
H A D | nfc_pn544_example.c | 22 /* Close an opened pn544 device instance */ 29 * Generic device handling 32 hw_device_t** device) { 49 *device = (hw_device_t*) dev; 31 nfc_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
|
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | gralloc.cpp | 37 hw_device_t** device); 40 hw_device_t** device); 98 // Open Gralloc device 100 hw_device_t** device) 109 *device = &dev->common; 112 status = fb_device_open(module, name, device); 99 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
|
/hardware/qcom/display/msm8974/libgralloc/ |
H A D | gralloc.cpp | 37 hw_device_t** device); 40 hw_device_t** device); 98 // Open Gralloc device 100 hw_device_t** device) 109 *device = &dev->common; 112 status = fb_device_open(module, name, device); 99 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
|
/hardware/qcom/display/msm8x26/libgralloc/ |
H A D | gralloc.cpp | 37 hw_device_t** device); 40 hw_device_t** device); 98 // Open Gralloc device 100 hw_device_t** device) 109 *device = &dev->common; 112 status = fb_device_open(module, name, device); 99 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
|
/hardware/libhardware/modules/local_time/ |
H A D | local_time_hw.c | 31 struct local_time_hw_device device; member in struct:stub_local_time_device 60 static int ltdev_close(hw_device_t *device) argument 62 free(device); 67 hw_device_t** device) 80 ltdev->device.common.tag = HARDWARE_DEVICE_TAG; 81 ltdev->device.common.version = 0; 82 ltdev->device.common.module = (struct hw_module_t *) module; 83 ltdev->device.common.close = ltdev_close; 85 ltdev->device.get_local_time = ltdev_get_local_time; 86 ltdev->device 66 ltdev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument [all...] |
/hardware/libhardware/tests/nusensors/ |
H A D | nusensors.cpp | 63 struct sensors_poll_device_t* device; local 72 err = sensors_open(&module->common, &device); 104 err = device->activate(device, list[i].handle, 0); 113 err = device->activate(device, list[i].handle, 1); 119 device->setDelay(device, list[i].handle, ms2ns(10)); 123 int n = device->poll(device, buffe [all...] |
/hardware/libhardware_legacy/ |
H A D | qemu.h | 41 char device[32]; member in struct:__anon366
|
/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | acoustics_default.cpp | 51 hw_device_t** device) 72 *device = &dev->common; 76 static int s_device_close(hw_device_t* device) argument 78 free(device); 50 s_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
|
H A D | ALSAControl.cpp | 42 ALSAControl::ALSAControl(const char *device) argument 44 ALOGD("ALSAControl: ctor device %s", device); 45 mHandle = mixer_open(device);
|
H A D | ALSAStreamOps.cpp | 97 uint32_t device) 99 mDevices = device; 192 int device; local 205 if (param.getInt(key, device) == NO_ERROR) { 206 // Ignore routing if device is 0. 207 ALOGD("setParameters(): keyRouting with device 0x%x", device); 209 if ((device == 0) && (mDevices == AudioSystem::DEVICE_OUT_AUX_DIGITAL)) { 210 device = AudioSystem::DEVICE_OUT_SPEAKER; 212 if (device) 94 set(int *format, uint32_t *channels, uint32_t *rate, uint32_t device) argument [all...] |
/hardware/qcom/audio/legacy/libalsa-intf/ |
H A D | amix.c | 57 const char* device = "/dev/snd/controlC0"; local 59 mixer = mixer_open(device);
|
/hardware/libhardware/include/hardware/ |
H A D | local_time_hal.h | 99 /** convenience API for opening and closing a supported device */ 103 struct local_time_hw_device** device) 106 (struct hw_device_t**)device); 109 static inline int local_time_hw_device_close(struct local_time_hw_device* device) argument 111 return device->common.close(&device->common); 101 local_time_hw_device_open( const struct hw_module_t* module, struct local_time_hw_device** device) argument
|
H A D | fb.h | 152 /** convenience API for opening and closing a supported device */ 155 struct framebuffer_device_t** device) { 157 GRALLOC_HARDWARE_FB0, (struct hw_device_t**)device); 160 static inline int framebuffer_close(struct framebuffer_device_t* device) { argument 161 return device->common.close(&device->common); 154 framebuffer_open(const struct hw_module_t* module, struct framebuffer_device_t** device) argument
|
H A D | gralloc.h | 60 * Name of the graphics device to open 92 /* buffer will be used with the framebuffer device */ 251 * Every device data structure must begin with hw_device_t 299 /** convenience API for opening and closing a supported device */ 302 struct alloc_device_t** device) { 304 GRALLOC_HARDWARE_GPU0, (struct hw_device_t**)device); 307 static inline int gralloc_close(struct alloc_device_t* device) { argument 308 return device->common.close(&device->common); 301 gralloc_open(const struct hw_module_t* module, struct alloc_device_t** device) argument
|
H A D | keymaster.h | 242 keymaster_device_t** device) 245 (struct hw_device_t**) device); 250 static inline int keymaster_close(keymaster_device_t* device) argument 252 return device->common.close(&device->common); 241 keymaster_open(const struct hw_module_t* module, keymaster_device_t** device) argument
|
/hardware/libhardware/modules/hwcomposer/ |
H A D | hwcomposer.cpp | 32 hwc_composer_device_1_t device; member in struct:hwc_context_t 37 struct hw_device_t** device); 108 struct hw_device_t** device) 119 dev->device.common.tag = HARDWARE_DEVICE_TAG; 120 dev->device.common.version = HWC_DEVICE_API_VERSION_1_0; 121 dev->device.common.module = const_cast<hw_module_t*>(module); 122 dev->device.common.close = hwc_device_close; 124 dev->device.prepare = hwc_prepare; 125 dev->device.set = hwc_set; 127 *device 107 hwc_device_open(const struct hw_module_t* module, const char* name, struct hw_device_t** device) argument [all...] |
/hardware/libhardware/modules/consumerir/ |
H A D | consumerir.c | 73 * Generic device handling 76 hw_device_t** device) 81 if (device == NULL) { 82 ALOGE("NULL device on open"); 98 *device = (hw_device_t*) dev; 75 consumerir_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
|
/hardware/libhardware/modules/nfc-nci/ |
H A D | nfc_nci_example.c | 69 * Generic device handling below - can generally be left unchanged. 71 /* Close an opened nfc device instance */ 78 hw_device_t** device) { 96 *device = (hw_device_t*) dev; 77 nfc_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
|
/hardware/libhardware/tests/camera2/ |
H A D | CameraModuleFixture.h | 77 /* important: device must be destructed before closing module, 87 void CreateCamera(int cameraID, /*out*/ sp<CameraDeviceBase> *device) { argument 97 *device = new Camera2Device(cameraID); 100 *device = new Camera3Device(cameraID); 103 device->clear(); 136 ASSERT_TRUE(mDevice != NULL) << "Failed to open device " << mCameraID; 138 << "Failed to initialize device " << mCameraID;
|
H A D | CameraModuleTests.cpp | 72 << "Failed to initialize device " << i; 80 << " because HAL device version is V1" 92 hw_device_t *device = NULL; local 100 &device); 136 * - open same device multiple times 137 * - close same device multiple times
|
/hardware/libhardware/modules/gralloc/ |
H A D | gralloc.cpp | 43 alloc_device_t device; member in struct:gralloc_context_t 53 hw_device_t** device); 56 hw_device_t** device); 285 hw_device_t** device) 296 dev->device.common.tag = HARDWARE_DEVICE_TAG; 297 dev->device.common.version = 0; 298 dev->device.common.module = const_cast<hw_module_t*>(module); 299 dev->device.common.close = gralloc_close; 301 dev->device.alloc = gralloc_alloc; 302 dev->device 284 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument [all...] |
/hardware/libhardware_legacy/audio/ |
H A D | AudioDumpInterface.h | 0 /* //device/servers/AudioFlinger/AudioDumpInterface.h 58 uint32_t device() { return mDevice; } function in class:android::AudioStreamOutDump 69 uint32_t mDevice; // current device this output is routed to 101 uint32_t device() { return mDevice; } function in class:android::AudioStreamInDump 109 uint32_t mDevice; // current device this output is routed to
|
/hardware/akm/AK8975_FS/libsensors/ |
H A D | sensors.cpp | 98 struct hw_device_t** device); 125 struct sensors_poll_device_t device; // must be first member in struct:sensors_poll_context_t 352 /** Open a new instance of a sensor device using name */ 354 struct hw_device_t** device) 359 memset(&dev->device, 0, sizeof(sensors_poll_device_t)); 361 dev->device.common.tag = HARDWARE_DEVICE_TAG; 362 dev->device.common.version = 0; 363 dev->device.common.module = const_cast<hw_module_t*>(module); 364 dev->device.common.close = poll__close; 365 dev->device 353 open_sensors(const struct hw_module_t* module, const char* id, struct hw_device_t** device) argument [all...] |
/hardware/invensense/60xx/libsensors_iio/ |
H A D | sensors_mpl.cpp | 56 struct hw_device_t** device);
83 struct sensors_poll_device_t device; // must be first
member in struct:sensors_poll_context_t 238 /** Open a new instance of a sensor device using name */
240 struct hw_device_t** device)
246 memset(&dev->device, 0, sizeof(sensors_poll_device_t));
248 dev->device.common.tag = HARDWARE_DEVICE_TAG;
249 dev->device.common.version = 0;
250 dev->device.common.module = const_cast<hw_module_t*>(module);
251 dev->device.common.close = poll__close;
252 dev->device 239 open_sensors(const struct hw_module_t* module, const char* id, struct hw_device_t** device) argument [all...] |
/hardware/invensense/65xx/libsensors_iio/ |
H A D | sensors_mpl.cpp | 57 struct hw_device_t** device);
86 sensors_poll_device_1_t device; // must be first
member in struct:sensors_poll_context_t 366 /** Open a new instance of a sensor device using name */
368 struct hw_device_t** device)
374 memset(&dev->device, 0, sizeof(sensors_poll_device_1));
376 dev->device.common.tag = HARDWARE_DEVICE_TAG;
377 dev->device.common.version = SENSORS_DEVICE_API_VERSION_1_0;
378 dev->device.common.module = const_cast<hw_module_t*>(module);
379 dev->device.common.close = poll__close;
380 dev->device 367 open_sensors(const struct hw_module_t* module, const char* id, struct hw_device_t** device) argument [all...] |