Searched defs:device (Results 1 - 25 of 29) sorted by relevance

12

/hardware/libhardware/modules/nfc/
H A Dnfc_pn544_example.c22 /* 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/ril/mock-ril/
H A DMakefile22 device=$(ANDROID_DEVICE) macro
25 src_generated=$(top)out/target/product/$(device)/obj/SHARED_LIBRARIES/libmock_ril_intermediates/proto/hardware/ril/mock-ril/src/proto
46 adb install -r $(top)out/target/product/$(device)/data/app/FrameworksTelephonyTests.apk
116 # change to root and remount device
145 adb push $(top)out/target/product/$(device)/system/lib/libmock_ril.so /data/lib/
149 adb install -r $(top)out/target/product/$(device)/data/app/FrameworksTelephonyTests.apk
/hardware/libhardware/modules/local_time/
H A Dlocal_time_hw.c31 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 Dnusensors.cpp63 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 Dqemu.h41 char device[32]; member in struct:__anon135
/hardware/libhardware/include/hardware/
H A Dlocal_time_hal.h99 /** 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 Dfb.h152 /** 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 Dhwcomposer_v0.h258 /** convenience API for opening and closing a device */
261 hwc_composer_device_t** device) {
263 HWC_HARDWARE_COMPOSER, (struct hw_device_t**)device);
266 static inline int hwc_close(hwc_composer_device_t* device) { argument
267 return device->common.close(&device->common);
260 hwc_open(const struct hw_module_t* module, hwc_composer_device_t** device) argument
H A Dkeymaster.h194 keymaster_device_t** device)
197 (struct hw_device_t**) device);
200 (*device)->client_version = KEYMASTER_API_VERSION;
206 static inline int keymaster_close(keymaster_device_t* device) argument
208 return device->common.close(&device->common);
193 keymaster_open(const struct hw_module_t* module, keymaster_device_t** device) argument
H A Daudio_policy.h56 * - keep track of current system state (removable device connections, phone
76 * route (destination device). It also make sure that streams are not
88 /* indicate a change in device connection status */
90 audio_devices_t device,
94 /* retrieve a device connection status */
97 audio_devices_t device,
108 /* force using a specific device category for the specified usage */
113 /* retrieve current device category forced for a given usage */
155 /* request an input appropriate for record from the supplied device with
195 * index for the specified device
430 audio_policy_dev_open(const hw_module_t* module, struct audio_policy_device** device) argument
437 audio_policy_dev_close(struct audio_policy_device* device) argument
[all...]
H A Dgralloc.h43 * Name of the graphics device to open
75 /* buffer will be used with the framebuffer device */
211 * Every device data structure must begin with hw_device_t
255 /** convenience API for opening and closing a supported device */
258 struct alloc_device_t** device) {
260 GRALLOC_HARDWARE_GPU0, (struct hw_device_t**)device);
263 static inline int gralloc_close(struct alloc_device_t* device) { argument
264 return device->common.close(&device->common);
257 gralloc_open(const struct hw_module_t* module, struct alloc_device_t** device) argument
H A Dhwcomposer.h58 * Name of the sensors device to open
499 * later use. It will be called immediately after the composer device is
567 /** convenience API for opening and closing a device */
570 hwc_composer_device_1_t** device) {
572 HWC_HARDWARE_COMPOSER, (struct hw_device_t**)device);
575 static inline int hwc_close_1(hwc_composer_device_1_t* device) { argument
576 return device->common.close(&device->common);
569 hwc_open_1(const struct hw_module_t* module, hwc_composer_device_1_t** device) argument
H A Dsensors.h35 * Name of the sensors device to open
95 * This API is relative to the screen of the device in its default orientation,
96 * that is, if the device can be used in portrait or landscape, this API
98 * the axis are not swapped when the device's screen orientation changes.
162 * device minus the force of gravity.
172 * When the device lies flat on a table and is pushed on its left side
175 * When the device lies flat on a table, the acceleration value is +9.81,
176 * which correspond to the acceleration of the device (0 m/s^2) minus the
179 * When the device lies flat on a table and is pushed toward the sky, the
181 * acceleration of the device (
473 sensors_open(const struct hw_module_t* module, struct sensors_poll_device_t** device) argument
479 sensors_close(struct sensors_poll_device_t* device) argument
[all...]
H A Daudio.h62 * a suffix specific to the device.
78 * audio device parameters
174 /** dump the state of the audio input/output device */
177 /** Return the set of device(s) which this stream is connected to */
186 int (*set_device)(struct audio_stream *stream, audio_devices_t device);
436 /** convenience API for opening and closing a supported device */
439 struct audio_hw_device** device)
442 (struct hw_device_t**)device);
445 static inline int audio_hw_device_close(struct audio_hw_device* device) argument
447 return device
438 audio_hw_device_open(const struct hw_module_t* module, struct audio_hw_device** device) argument
[all...]
/hardware/libhardware/modules/hwcomposer/
H A Dhwcomposer.cpp32 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/nfc-nci/
H A Dnfc_nci_example.c69 * 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/modules/gralloc/
H A Dgralloc.cpp43 alloc_device_t device; member in struct:gralloc_context_t
53 hw_device_t** device);
56 hw_device_t** device);
287 hw_device_t** device)
298 dev->device.common.tag = HARDWARE_DEVICE_TAG;
299 dev->device.common.version = 0;
300 dev->device.common.module = const_cast<hw_module_t*>(module);
301 dev->device.common.close = gralloc_close;
303 dev->device.alloc = gralloc_alloc;
304 dev->device
286 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
H A Dframebuffer.cpp55 framebuffer_device_t device; member in struct:fb_context_t
311 hw_device_t** device)
320 dev->device.common.tag = HARDWARE_DEVICE_TAG;
321 dev->device.common.version = 0;
322 dev->device.common.module = const_cast<hw_module_t*>(module);
323 dev->device.common.close = fb_close;
324 dev->device.setSwapInterval = fb_setSwapInterval;
325 dev->device.post = fb_post;
326 dev->device.setUpdateRect = 0;
335 const_cast<uint32_t&>(dev->device
310 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware_legacy/audio/
H A DAudioDumpInterface.h0 /* //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
H A DAudioHardwareGeneric.cpp275 int device; local
278 if (param.getInt(key, device) == NO_ERROR) {
279 mDevice = device;
347 ALOGE("Attempt to read from unopened device");
383 int device; local
386 if (param.getInt(key, device) == NO_ERROR) {
387 mDevice = device;
H A DA2dpAudioInterface.cpp67 ALOGV("A2dpAudioInterface::openOutputStream() open HW device: %x", devices);
236 uint32_t device, int *pFormat, uint32_t *pChannels, uint32_t *pRate)
242 ALOGD("A2dpAudioStreamOut::set %x, %d, %d, %d\n", device, lFormat, lChannels, lRate);
263 mDevice = device;
380 int device; local
400 if (param.getInt(key, device) == NO_ERROR) {
401 if (audio_is_a2dp_device(device)) {
402 mDevice = device;
235 set( uint32_t device, int *pFormat, uint32_t *pChannels, uint32_t *pRate) argument
H A Daudio_hw_hal.cpp38 struct audio_hw_device device; member in struct:android_audio_legacy::legacy_audio_device
619 static int legacy_adev_close(hw_device_t* device) argument
622 reinterpret_cast<struct audio_hw_device *>(device);
636 hw_device_t** device)
648 ladev->device.common.tag = HARDWARE_DEVICE_TAG;
649 ladev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
650 ladev->device.common.module = const_cast<hw_module_t*>(module);
651 ladev->device.common.close = legacy_adev_close;
653 ladev->device.init_check = adev_init_check;
654 ladev->device
635 legacy_adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware/modules/audio/
H A Daudio_policy.c35 struct audio_policy_device device; member in struct:default_ap_device
46 audio_devices_t device,
55 audio_devices_t device,
77 /* retreive current device category forced for a given usage */
170 audio_devices_t device)
178 audio_devices_t device)
232 static int create_default_ap(const struct audio_policy_device *device, argument
295 static int default_ap_dev_close(hw_device_t* device) argument
297 free(device);
302 hw_device_t** device)
45 ap_set_device_connection_state(struct audio_policy *pol, audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument
53 ap_get_device_connection_state( const struct audio_policy *pol, audio_devices_t device, const char *device_address) argument
167 ap_set_stream_volume_index_for_device(struct audio_policy *pol, audio_stream_type_t stream, int index, audio_devices_t device) argument
175 ap_get_stream_volume_index_for_device(const struct audio_policy *pol, audio_stream_type_t stream, int *index, audio_devices_t device) argument
301 default_ap_dev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
H A Daudio_hw.c32 struct audio_hw_device device; member in struct:stub_audio_device
371 static int adev_dump(const audio_hw_device_t *device, int fd) argument
376 static int adev_close(hw_device_t *device) argument
378 free(device);
383 hw_device_t** device)
395 adev->device.common.tag = HARDWARE_DEVICE_TAG;
396 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
397 adev->device.common.module = (struct hw_module_t *) module;
398 adev->device.common.close = adev_close;
400 adev->device
382 adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware/modules/usbaudio/
H A Daudio_hw.c49 int device; member in struct:audio_device
65 * following order: hw device > out stream
70 /* must be called with hw device and output stream mutexes locked */
76 if ((adev->card < 0) || (adev->device < 0))
79 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &pcm_config);
163 ret = str_parms_get_str(parms, "device", value, sizeof(value));
165 adev->device = atoi(value);
288 adev->device = -1;
369 static int adev_dump(const audio_hw_device_t *device, int fd) argument
374 static int adev_close(hw_device_t *device) argument
382 adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]

Completed in 354 milliseconds

12