Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/hardware/qcom/camera/QCamera2/HAL/wrapper/
DQualcommCamera.cpp94 QCamera2HardwareInterface *util_get_Hal_obj( struct camera_device * device) in util_get_Hal_obj() argument
97 if(device && device->priv){ in util_get_Hal_obj()
98 camera_hardware_t *camHal = (camera_hardware_t *)device->priv; in util_get_Hal_obj()
131 camera_device *device = NULL; in camera_device_open() local
149 device = &camHal->hw_dev; in camera_device_open()
150 device->common.close = close_camera_device; in camera_device_open()
151 device->ops = &QCamera2HardwareInterface::mCameraOps; in camera_device_open()
152 device->priv = (void *)camHal; in camera_device_open()
160 device = NULL; in camera_device_open()
166 *hw_device = (hw_device_t*)&device->common; in camera_device_open()
[all …]
/hardware/ti/omap4-aah/camera/
DCameraHal_Module.cpp47 hw_device_t** device);
48 static int camera_device_close(hw_device_t* device);
91 int camera_set_preview_window(struct camera_device * device, in camera_set_preview_window() argument
99 if(!device) in camera_set_preview_window()
102 ti_dev = (ti_camera_device_t*) device; in camera_set_preview_window()
110 int camera_set_extended_preview_ops(struct camera_device * device, in camera_set_extended_preview_ops() argument
115 if (!device) { in camera_set_extended_preview_ops()
119 ti_camera_device_t * const tiDevice = reinterpret_cast<ti_camera_device_t*>(device); in camera_set_extended_preview_ops()
125 int camera_set_buffer_source(struct camera_device * device, in camera_set_buffer_source() argument
134 if(!device) in camera_set_buffer_source()
[all …]
/hardware/ti/omap4xxx/camera/
DCameraHal_Module.cpp39 hw_device_t** device);
40 static int camera_device_close(hw_device_t* device);
75 int camera_set_preview_window(struct camera_device * device, in camera_set_preview_window() argument
83 if(!device) in camera_set_preview_window()
86 ti_dev = (ti_camera_device_t*) device; in camera_set_preview_window()
93 void camera_set_callbacks(struct camera_device * device, in camera_set_callbacks() argument
104 if(!device) in camera_set_callbacks()
107 ti_dev = (ti_camera_device_t*) device; in camera_set_callbacks()
112 void camera_enable_msg_type(struct camera_device * device, int32_t msg_type) in camera_enable_msg_type() argument
118 if(!device) in camera_enable_msg_type()
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/base/
DHwcomposer.cpp76 IDisplayDevice *device = mDisplayDevices.itemAt(i); in prepare() local
77 if (!device) { in prepare()
81 device->prePrepare(displays[i]); in prepare()
88 IDisplayDevice *device = mDisplayDevices.itemAt(i); in prepare() local
89 if (!device) { in prepare()
93 ret = device->prepare(displays[i]); in prepare()
122 IDisplayDevice *device = mDisplayDevices.itemAt(i); in commit() local
123 if (!device) { in commit()
128 if (!device->isConnected()) { in commit()
133 ret = device->commit(displays[i], mDisplayContext); in commit()
[all …]
DDrm.h49 bool detect(int device);
50 bool setDrmMode(int device, drmModeModeInfo& value);
51 bool setRefreshRate(int device, int hz);
59 bool isConnected(int device);
60 bool setDpmsMode(int device, int mode);
62 bool getModeInfo(int device, drmModeModeInfo& mode);
63 bool getPhysicalSize(int device, uint32_t& width, uint32_t& height);
64 bool getDisplayResolution(int device, uint32_t& width, uint32_t& height);
66 int getPanelOrientation(int device);
68 drmModeModeInfoPtr detectAllConfigs(int device, int *modeCount);
[all …]
DDrm.cpp73 bool Drm::detect(int device) in detect() argument
78 int outputIndex = getOutputIndex(device); in detect()
109 if (connector->connector_type != DrmConfig::getDrmConnector(device)) { in detect()
115 ILOGTRACE("device %d is not connected", device); in detect()
126 ILOGTRACE("Drm connector has encoder attached on device %d", device); in detect()
134 ILOGTRACE("getting encoder for device %d", device); in detect()
147 if (encoder->encoder_type == DrmConfig::getDrmEncoder(device)) { in detect()
162 ILOGTRACE("Drm encoder has crtc attached on device %d", device); in detect()
170 ILOGTRACE("getting crtc for device %d", device); in detect()
211 ELOGTRACE("failed to get device %d orientation", device); in detect()
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/base/
DHwcomposer.cpp79 IDisplayDevice *device = mDisplayDevices.itemAt(i); in prepare() local
80 if (!device) { in prepare()
84 if (device->getType() != IDisplayDevice::DEVICE_PRIMARY) in prepare()
87 device->prePrepare(displays[i]); in prepare()
91 IDisplayDevice *device = mDisplayDevices.itemAt(i); in prepare() local
92 if (!device) { in prepare()
97 if (device->getType() != IDisplayDevice::DEVICE_PRIMARY) in prepare()
100 ret = device->prepare(displays[i]); in prepare()
129 IDisplayDevice *device = mDisplayDevices.itemAt(i); in commit() local
130 if (!device) { in commit()
[all …]
DVsyncManager.cpp152 IDisplayDevice *device = NULL; in getCandidate() local
154 device = getDisplayDevice(IDisplayDevice::DEVICE_EXTERNAL); in getCandidate()
155 if (device && device->isConnected()) { in getCandidate()
161 device = getDisplayDevice(IDisplayDevice::DEVICE_VIRTUAL); in getCandidate()
162 if (device && device->isConnected()) { in getCandidate()
177 IDisplayDevice *device = getDisplayDevice(candidate); in enableVsync() local
178 if (!device) { in enableVsync()
183 if (device->vsyncControl(true)) { in enableVsync()
190 device = getDisplayDevice(IDisplayDevice::DEVICE_PRIMARY); in enableVsync()
191 if (device && device->vsyncControl(true)) { in enableVsync()
[all …]
DDrm.h45 bool detect(int device);
46 bool setDrmMode(int device, drmModeModeInfo& value);
47 bool setRefreshRate(int device, int hz);
55 bool isConnected(int device);
56 bool setDpmsMode(int device, int mode);
58 bool getModeInfo(int device, drmModeModeInfo& mode);
59 bool getPhysicalSize(int device, uint32_t& width, uint32_t& height);
61 int getPanelOrientation(int device);
62 drmModeModeInfoPtr detectAllConfigs(int device, int *modeCount);
70 inline int getOutputIndex(int device);
DDrm.cpp73 bool Drm::detect(int device) in detect() argument
78 int outputIndex = getOutputIndex(device); in detect()
109 if (connector->connector_type != DrmConfig::getDrmConnector(device)) { in detect()
115 ITRACE("device %d is not connected", device); in detect()
126 ITRACE("Drm connector has encoder attached on device %d", device); in detect()
134 ITRACE("getting encoder for device %d", device); in detect()
147 if (encoder->encoder_type == DrmConfig::getDrmEncoder(device)) { in detect()
162 ITRACE("Drm encoder has crtc attached on device %d", device); in detect()
170 ITRACE("getting crtc for device %d", device); in detect()
207 ETRACE("failed to get device %d orientation", device); in detect()
[all …]
/hardware/libhardware/tests/input/evdev/
DInputDevice_test.cpp71 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F() local
72 ASSERT_TRUE(device != nullptr); in TEST_F()
86 device->processInput(msc1, when); in TEST_F()
87 device->processInput(msc2, when); in TEST_F()
88 device->processInput(keyDown, when); in TEST_F()
89 device->processInput(syn, when); in TEST_F()
90 device->processInput(keyUp, when); in TEST_F()
100 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F() local
101 ASSERT_TRUE(device != nullptr); in TEST_F()
109 device->processInput(event, now); in TEST_F()
[all …]
/hardware/libhardware/include/hardware/
Dnvram.h87 nvram_result_t (*get_total_size_in_bytes)(const struct nvram_device* device,
99 const struct nvram_device* device, uint64_t* available_size);
110 nvram_result_t (*get_max_spaces)(const struct nvram_device* device,
127 nvram_result_t (*get_space_list)(const struct nvram_device* device,
139 nvram_result_t (*get_space_size)(const struct nvram_device* device,
155 nvram_result_t (*get_space_controls)(const struct nvram_device* device,
172 nvram_result_t (*is_space_locked)(const struct nvram_device* device,
198 nvram_result_t (*create_space)(const struct nvram_device* device,
218 nvram_result_t (*delete_space)(const struct nvram_device* device,
230 nvram_result_t (*disable_create)(const struct nvram_device* device);
[all …]
Dhwcomposer2.h712 void (*getCapabilities)(struct hwc2_device* device, uint32_t* outCount,
725 hwc2_function_pointer_t (*getFunction)(struct hwc2_device* device,
730 hwc2_device_t** device) { in hwc2_open() argument
732 (struct hw_device_t**) device); in hwc2_open()
735 static inline int hwc2_close(hwc2_device_t* device) { in hwc2_close() argument
736 return device->common.close(&device->common); in hwc2_close()
846 hwc2_device_t* device, uint32_t width, uint32_t height,
866 hwc2_device_t* device, hwc2_display_t display);
898 typedef void (*HWC2_PFN_DUMP)(hwc2_device_t* device, uint32_t* outSize,
911 hwc2_device_t* device);
[all …]
Dvehicle_camera.h121 int (*get_capabilities)(struct vehicle_camera_device_t *device, vehicle_camera_cap_t *cap);
131 int (*get_camera_crop)(struct vehicle_camera_device_t *device, android_native_rect_t *rect);
142 … int (*set_camera_crop)(struct vehicle_camera_device_t *device, const android_native_rect_t *rect);
152 int (*get_camera_position)(struct vehicle_camera_device_t *device, android_native_rect_t *rect);
164 …int (*set_camera_position)(struct vehicle_camera_device_t *device, const android_native_rect_t *re…
173 int (*get_camera_state)(struct vehicle_camera_device_t *device, vehicle_camera_state_t *state);
183 …int (*set_camera_state)(struct vehicle_camera_device_t *device, const vehicle_camera_state_t *stat…
/hardware/libhardware/modules/local_time/
Dlocal_time_hw.c32 struct local_time_hw_device device; member
61 static int ltdev_close(hw_device_t *device) in ltdev_close() argument
63 free(device); in ltdev_close()
68 hw_device_t** device) in ltdev_open() argument
81 ltdev->device.common.tag = HARDWARE_DEVICE_TAG; in ltdev_open()
82 ltdev->device.common.version = 0; in ltdev_open()
83 ltdev->device.common.module = (struct hw_module_t *) module; in ltdev_open()
84 ltdev->device.common.close = ltdev_close; in ltdev_open()
86 ltdev->device.get_local_time = ltdev_get_local_time; in ltdev_open()
87 ltdev->device.get_local_freq = ltdev_get_local_freq; in ltdev_open()
[all …]
/hardware/libhardware/modules/tv_input/
Dtv_input.cpp29 tv_input_device_t device; member
37 const char* name, struct hw_device_t** device);
115 const char* name, struct hw_device_t** device) in tv_input_device_open() argument
125 dev->device.common.tag = HARDWARE_DEVICE_TAG; in tv_input_device_open()
126 dev->device.common.version = TV_INPUT_DEVICE_API_VERSION_0_1; in tv_input_device_open()
127 dev->device.common.module = const_cast<hw_module_t*>(module); in tv_input_device_open()
128 dev->device.common.close = tv_input_device_close; in tv_input_device_open()
130 dev->device.initialize = tv_input_initialize; in tv_input_device_open()
131 dev->device.get_stream_configurations = in tv_input_device_open()
133 dev->device.open_stream = tv_input_open_stream; in tv_input_device_open()
[all …]
/hardware/libhardware_legacy/audio/
DAudioPolicyManagerBase.cpp53 status_t AudioPolicyManagerBase::setDeviceConnectionState(audio_devices_t device, in setDeviceConnectionState() argument
62 …ALOGV("setDeviceConnectionState() device: 0x%X, state %d, address %s", device, state, device_addre… in setDeviceConnectionState()
65 if (!audio_is_output_device(device) && !audio_is_input_device(device)) return BAD_VALUE; in setDeviceConnectionState()
73 if (audio_is_output_device(device)) { in setDeviceConnectionState()
76 if (!mHasA2dp && audio_is_a2dp_out_device(device)) { in setDeviceConnectionState()
77 ALOGE("setDeviceConnectionState() invalid A2DP device: %x", device); in setDeviceConnectionState()
80 if (!mHasUsb && audio_is_usb_out_device(device)) { in setDeviceConnectionState()
81 ALOGE("setDeviceConnectionState() invalid USB audio device: %x", device); in setDeviceConnectionState()
84 if (!mHasRemoteSubmix && audio_is_remote_submix_device((audio_devices_t)device)) { in setDeviceConnectionState()
85 ALOGE("setDeviceConnectionState() invalid remote submix audio device: %x", device); in setDeviceConnectionState()
[all …]
/hardware/libhardware/tests/nusensors/
Dnusensors.cpp64 struct sensors_poll_device_t* device; in main() local
73 err = sensors_open(&module->common, &device); in main()
105 err = device->activate(device, list[i].handle, 0); in main()
114 err = device->activate(device, list[i].handle, 1); in main()
120 device->setDelay(device, list[i].handle, ms2ns(10)); in main()
124 int n = device->poll(device, buffer, numEvents); in main()
182 err = device->activate(device, list[i].handle, 0); in main()
190 err = sensors_close(device); in main()
/hardware/libhardware/modules/hwcomposer/
Dhwcomposer.cpp33 hwc_composer_device_1_t device; member
38 struct hw_device_t** device);
109 struct hw_device_t** device) in hwc_device_open() argument
120 dev->device.common.tag = HARDWARE_DEVICE_TAG; in hwc_device_open()
121 dev->device.common.version = HWC_DEVICE_API_VERSION_1_0; in hwc_device_open()
122 dev->device.common.module = const_cast<hw_module_t*>(module); in hwc_device_open()
123 dev->device.common.close = hwc_device_close; in hwc_device_open()
125 dev->device.prepare = hwc_prepare; in hwc_device_open()
126 dev->device.set = hwc_set; in hwc_device_open()
128 *device = &dev->device.common; in hwc_device_open()
/hardware/libhardware/modules/audio/
Daudio_hw.c33 struct audio_hw_device device; member
419 static int adev_dump(const audio_hw_device_t *device, int fd) in adev_dump() argument
425 static int adev_close(hw_device_t *device) in adev_close() argument
428 free(device); in adev_close()
433 hw_device_t** device) in adev_open() argument
447 adev->device.common.tag = HARDWARE_DEVICE_TAG; in adev_open()
448 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0; in adev_open()
449 adev->device.common.module = (struct hw_module_t *) module; in adev_open()
450 adev->device.common.close = adev_close; in adev_open()
452 adev->device.init_check = adev_init_check; in adev_open()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
DALSAMixer.cpp54 const AudioSystem::audio_devices device; member
209 for (int j = 0; mixerProp[j][i].device; j++) { in ALSAMixer()
257 for (int j = 0; mixerProp[j][i].device; j++) { in ~ALSAMixer()
305 status_t ALSAMixer::setVolume(uint32_t device, float left, float right) in setVolume() argument
307 for (int j = 0; mixerProp[j][SND_PCM_STREAM_PLAYBACK].device; j++) in setVolume()
308 if (mixerProp[j][SND_PCM_STREAM_PLAYBACK].device & device) { in setVolume()
328 status_t ALSAMixer::setGain(uint32_t device, float gain) in setGain() argument
330 for (int j = 0; mixerProp[j][SND_PCM_STREAM_CAPTURE].device; j++) in setGain()
331 if (mixerProp[j][SND_PCM_STREAM_CAPTURE].device & device) { in setGain()
351 status_t ALSAMixer::setCaptureMuteState(uint32_t device, bool state) in setCaptureMuteState() argument
[all …]
/hardware/qcom/display/msm8960/libgralloc/
Dframebuffer.cpp60 framebuffer_device_t device; member
355 hw_device_t** device) in fb_device_open() argument
369 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open()
370 dev->device.common.version = 0; in fb_device_open()
371 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open()
372 dev->device.common.close = fb_close; in fb_device_open()
373 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open()
374 dev->device.post = fb_post; in fb_device_open()
375 dev->device.setUpdateRect = 0; in fb_device_open()
376 dev->device.compositionComplete = fb_compositionComplete; in fb_device_open()
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/
DDrmConfig.cpp30 uint32_t DrmConfig::getDrmConnector(int device) in getDrmConnector() argument
32 if (device == IDisplayDevice::DEVICE_PRIMARY) in getDrmConnector()
34 else if (device == IDisplayDevice::DEVICE_EXTERNAL) in getDrmConnector()
39 uint32_t DrmConfig::getDrmEncoder(int device) in getDrmEncoder() argument
41 if (device == IDisplayDevice::DEVICE_PRIMARY) in getDrmEncoder()
43 else if (device == IDisplayDevice::DEVICE_EXTERNAL) in getDrmEncoder()
/hardware/qcom/display/msm8994/libgralloc/
Dframebuffer.cpp60 framebuffer_device_t device; member
408 hw_device_t** device) in fb_device_open() argument
426 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open()
427 dev->device.common.version = 0; in fb_device_open()
428 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open()
429 dev->device.common.close = fb_close; in fb_device_open()
430 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open()
431 dev->device.post = fb_post; in fb_device_open()
432 dev->device.setUpdateRect = 0; in fb_device_open()
433 dev->device.compositionComplete = fb_compositionComplete; in fb_device_open()
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dframebuffer.cpp52 framebuffer_device_t device; member
400 hw_device_t** device) in fb_device_open() argument
418 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open()
419 dev->device.common.version = 0; in fb_device_open()
420 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open()
421 dev->device.common.close = fb_close; in fb_device_open()
422 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open()
423 dev->device.post = fb_post; in fb_device_open()
424 dev->device.setUpdateRect = 0; in fb_device_open()
425 dev->device.compositionComplete = fb_compositionComplete; in fb_device_open()
[all …]

12345678910>>...12