Home
last modified time | relevance | path

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

12345678910>>...28

/hardware/qcom/camera/msm8998/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/interfaces/camera/provider/2.4/default/
DAndroid.bp8 "android.hardware.camera.device@1.0",
9 "android.hardware.camera.device@3.2",
10 "android.hardware.camera.device@3.3",
11 "android.hardware.camera.device@3.4",
12 "android.hardware.camera.device@3.5",
18 "camera.device@1.0-impl",
19 "camera.device@3.2-impl",
20 "camera.device@3.3-impl",
21 "camera.device@3.4-impl",
22 "camera.device@3.5-impl",
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_device_impl.cpp43 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
45 int gralloc_device_close(struct hw_device_t *device);
63 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
67 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
98 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
103 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
105 if (device != nullptr) { in GetCapabilities()
116 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
117 if (!device) { in GetFunction()
176 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
[all …]
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
/hardware/qcom/display/msm8909/gralloc/
Dgr_device_impl.cpp43 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
45 int gralloc_device_close(struct hw_device_t *device);
63 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
67 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
98 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
103 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
105 if (device != nullptr) { in GetCapabilities()
116 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
117 if (!device) { in GetFunction()
176 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
[all …]
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
Dgr_device_impl.cpp44 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
46 int gralloc_device_close(struct hw_device_t *device);
64 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
68 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
99 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
104 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
106 if (device != nullptr) { in GetCapabilities()
117 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
118 if (!device) { in GetFunction()
183 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
[all …]
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
Dgr_device_impl.cpp50 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
52 int gralloc_device_close(struct hw_device_t *device);
70 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
74 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
105 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
110 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
112 if (device != nullptr) { in GetCapabilities()
123 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
124 if (!device) { in GetFunction()
189 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
[all …]
/hardware/interfaces/camera/provider/2.5/default/
DAndroid.bp7 "android.hardware.camera.device@1.0",
8 "android.hardware.camera.device@3.2",
9 "android.hardware.camera.device@3.3",
10 "android.hardware.camera.device@3.4",
11 "android.hardware.camera.device@3.5",
18 "camera.device@1.0-impl",
19 "camera.device@3.2-impl",
20 "camera.device@3.3-impl",
21 "camera.device@3.4-impl",
22 "camera.device@3.5-impl",
[all …]
/hardware/libhardware/include/hardware/
Dnvram.h65 nvram_result_t (*get_total_size_in_bytes)(const struct nvram_device* device,
77 const struct nvram_device* device, uint64_t* available_size);
88 const struct nvram_device* device, uint64_t* max_space_size);
99 nvram_result_t (*get_max_spaces)(const struct nvram_device* device,
116 nvram_result_t (*get_space_list)(const struct nvram_device* device,
128 nvram_result_t (*get_space_size)(const struct nvram_device* device,
144 nvram_result_t (*get_space_controls)(const struct nvram_device* device,
161 nvram_result_t (*is_space_locked)(const struct nvram_device* device,
187 nvram_result_t (*create_space)(const struct nvram_device* device,
207 nvram_result_t (*delete_space)(const struct nvram_device* device,
[all …]
Dgralloc1.h290 void (*getCapabilities)(struct gralloc1_device* device, uint32_t* outCount,
303 gralloc1_function_pointer_t (*getFunction)(struct gralloc1_device* device,
308 gralloc1_device_t** device) { in gralloc1_open() argument
310 TO_HW_DEVICE_T_OPEN(device)); in gralloc1_open()
313 static inline int gralloc1_close(gralloc1_device_t* device) { in gralloc1_close() argument
314 return device->common.close(&device->common); in gralloc1_close()
347 typedef void (*GRALLOC1_PFN_DUMP)(gralloc1_device_t* device, uint32_t* outSize,
370 gralloc1_device_t* device, gralloc1_buffer_descriptor_t* outDescriptor);
386 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor);
413 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor,
[all …]
Dhwcomposer2.h933 void (*getCapabilities)(struct hwc2_device* device, uint32_t* outCount,
946 hwc2_function_pointer_t (*getFunction)(struct hwc2_device* device,
951 hwc2_device_t** device) { in hwc2_open() argument
953 TO_HW_DEVICE_T_OPEN(device)); in hwc2_open()
956 static inline int hwc2_close(hwc2_device_t* device) { in hwc2_close() argument
957 return device->common.close(&device->common); in hwc2_close()
1067 hwc2_device_t* device, uint32_t width, uint32_t height,
1087 hwc2_device_t* device, hwc2_display_t display);
1119 typedef void (*HWC2_PFN_DUMP)(hwc2_device_t* device, uint32_t* outSize,
1132 hwc2_device_t* device);
[all …]
/hardware/qcom/sdm845/display/gralloc/
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
Dgr_device_impl.cpp46 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
48 int gralloc_device_close(struct hw_device_t *device);
68 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
70 if (module && device && !strcmp(name, GRALLOC_HARDWARE_MODULE_ID)) { in gralloc_device_open()
72 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
175 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
180 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
182 if (device != nullptr && out_count != nullptr) { in GetCapabilities()
193 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
194 if (!device) { in GetFunction()
[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/interfaces/health/2.0/
DREADME4 in `device/<manufacturer>/<device>/device.mk`
6 1. If the device does not have a vendor-specific `libhealthd` AND does not
16 `device/<manufacturer>/<device>/health`
18 1. Create `device/<manufacturer>/<device>/health/Android.bp`
19 (or equivalent `device/<manufacturer>/<device>/health/Android.mk`)
23 name: "android.hardware.health@2.0-service.<device>",
24 init_rc: ["android.hardware.health@2.0-service.<device>.rc"],
63 1. Create `device/<manufacturer>/<device>/health/android.hardware.health@2.0-service.<device>.rc`
66 service vendor.health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service.<device>
74 1. Create `device/<manufacturer>/<device>/health/HealthService.cpp`:
[all …]
DREADME.md4 in `device/<manufacturer>/<device>/device.mk`
6 1. If the device does not have a vendor-specific `libhealthd` AND does not
16 `device/<manufacturer>/<device>/health`
18 1. Create `device/<manufacturer>/<device>/health/Android.bp`
19 (or equivalent `device/<manufacturer>/<device>/health/Android.mk`)
23 name: "android.hardware.health@2.0-service.<device>",
24 init_rc: ["android.hardware.health@2.0-service.<device>.rc"],
63 1. Create `device/<manufacturer>/<device>/health/android.hardware.health@2.0-service.<device>.rc`
66 service vendor.health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service.<device>
74 1. Create `device/<manufacturer>/<device>/health/HealthService.cpp`:
[all …]
/hardware/libhardware/modules/local_time/
Dlocal_time_hw.c35 struct local_time_hw_device device; member
65 static int ltdev_close(hw_device_t *device) in ltdev_close() argument
67 free(device); in ltdev_close()
72 hw_device_t** device) in ltdev_open() argument
83 ltdev->device.common.tag = HARDWARE_DEVICE_TAG; in ltdev_open()
84 ltdev->device.common.version = 0; in ltdev_open()
85 ltdev->device.common.module = (struct hw_module_t *) module; in ltdev_open()
86 ltdev->device.common.close = ltdev_close; in ltdev_open()
88 ltdev->device.get_local_time = ltdev_get_local_time; in ltdev_open()
89 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/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/
DGralloc1On0Adapter.h47 static inline Gralloc1On0Adapter* getAdapter(gralloc1_device_t* device) { in getAdapter() argument
48 return static_cast<Gralloc1On0Adapter*>(device); in getAdapter()
51 static int closeHook(struct hw_device_t* device) { in closeHook() argument
52 delete getAdapter(reinterpret_cast<gralloc1_device_t*>(device)); in closeHook()
60 static void getCapabilitiesHook(gralloc1_device_t* device, in getCapabilitiesHook() argument
63 getAdapter(device)->doGetCapabilities(outCount, outCapabilities); in getCapabilitiesHook()
71 gralloc1_device_t* device, in getFunctionHook() argument
73 return getAdapter(device)->doGetFunction(descriptor); in getFunctionHook()
79 static void dumpHook(gralloc1_device_t* device, uint32_t* outSize, in dumpHook() argument
81 return getAdapter(device)->dump(outSize, outBuffer); in dumpHook()
[all …]
/hardware/interfaces/graphics/composer/2.1/utils/passthrough/include/composer-passthrough/2.1/
DHwcLoader.h85 hwc2_device_t* device = openDeviceWithAdapter(module, &adapted); in createHalWithAdapter() local
86 if (!device) { in createHalWithAdapter()
90 return hal->initWithDevice(std::move(device), !adapted) ? std::move(hal) : nullptr; in createHalWithAdapter()
106 hw_device_t* device; in openDeviceWithAdapter() local
107 int error = module->methods->open(module, HWC_HARDWARE_COMPOSER, &device); in openDeviceWithAdapter()
113 int major = (device->version >> 24) & 0xf; in openDeviceWithAdapter()
116 return adaptHwc1Device(std::move(reinterpret_cast<hwc_composer_device_1*>(device))); in openDeviceWithAdapter()
120 return reinterpret_cast<hwc2_device_t*>(device); in openDeviceWithAdapter()
125 framebuffer_device_t* device; in adaptGrallocModule() local
126 int error = framebuffer_open(module, &device); in adaptGrallocModule()
[all …]
/hardware/interfaces/camera/device/3.5/default/
DAndroid.bp18 name: "camera.device@3.5-impl_headers",
24 name: "camera.device@3.5-external-impl_headers",
30 name: "camera.device@3.5-impl",
43 "camera.device@3.2-impl",
44 "camera.device@3.3-impl",
45 "camera.device@3.4-impl",
46 "android.hardware.camera.device@3.2",
47 "android.hardware.camera.device@3.3",
48 "android.hardware.camera.device@3.4",
49 "android.hardware.camera.device@3.5",
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalTest.cpp25 AudioDevice device = ret; in testGetDevice() local
26 ASSERT_TRUE(device == expectedDevice || device == AudioDevice::NONE) in testGetDevice()
28 << "\n Actual: " << ::testing::PrintToString(device); in testGetDevice()
33 : testGetDevice(stream.get(), address.device))
37 otherAddress.device = (address.device & AudioDevice::BIT_IN) == 0 ? AudioDevice::OUT_SPEAKER in testSetDevice()
51 for (auto device : {AD::OUT_HDMI, AD::OUT_WIRED_HEADPHONE, AD::IN_USB_HEADSET}) { in testConnectedState()
52 address.device = device; in testConnectedState()
63 TEST_IO_STREAM(GetHwAvSync, "Get hardware sync can not fail", ASSERT_IS_OK(device->getHwAvSync()));
70 ASSERT_RESULT(Result::INVALID_ARGUMENTS, device->setMode(mode)); in TEST_F()
76 ASSERT_OK(device->setMode(mode)); in TEST_F()

12345678910>>...28