/hardware/interfaces/graphics/allocator/2.0/default/ |
H A D | gralloc1-adapter.cpp | 21 const char* id, struct hw_device_t** device) 24 ALOGE("unknown gralloc1 device id: %s", id); 29 *device = &adapter_device->common; 20 gralloc1_adapter_device_open(const struct hw_module_t* module, const char* id, struct hw_device_t** device) argument
|
/hardware/libhardware/include/hardware/ |
H A D | nvram.h | 62 * device - The nvram_device instance. 65 nvram_result_t (*get_total_size_in_bytes)(const struct nvram_device* device, 73 * device - The nvram_device instance. 77 const struct nvram_device* device, uint64_t* available_size); 84 * device - The nvram_device instance. 88 const struct nvram_device* device, uint64_t* max_space_size); 96 * device - The nvram_device instance. 99 nvram_result_t (*get_max_spaces)(const struct nvram_device* device, 106 * device - The nvram_device instance. 116 nvram_result_t (*get_space_list)(const struct nvram_device* device, 326 nvram_open(const struct hw_module_t* module, nvram_device_t** device) argument 332 nvram_close(nvram_device_t* device) argument [all...] |
H A D | local_time_hal.h | 59 * Common methods of the local time hardware device. This *must* be the first member of 105 /** convenience API for opening and closing a supported device */ 109 struct local_time_hw_device** device) 112 TO_HW_DEVICE_T_OPEN(device)); 115 static inline int local_time_hw_device_close(struct local_time_hw_device* device) argument 117 return device->common.close(&device->common); 107 local_time_hw_device_open( const struct hw_module_t* module, struct local_time_hw_device** device) argument
|
H A D | gralloc1.h | 36 * allocate may be NULL, which instructs the device to report whether the 82 * dequeued buffer before. May be ignored by the gralloc device. */ 274 * gralloc1_capability_t above) supported by this device. This list must not 275 * change after the device has been loaded. 282 * outCapabilities - a list of capabilities supported by this device; may 287 void (*getCapabilities)(struct gralloc1_device* device, uint32_t* outCount, 298 * or NULL if the described function is not supported by this device. 300 gralloc1_function_pointer_t (*getFunction)(struct gralloc1_device* device, 305 gralloc1_device_t** device) { 307 TO_HW_DEVICE_T_OPEN(device)); 304 gralloc1_open(const struct hw_module_t* module, gralloc1_device_t** device) argument 310 gralloc1_close(gralloc1_device_t* device) argument [all...] |
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/base/ |
H A D | Drm.h | 49 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, in [all...] |
H A D | Hwcomposer.cpp | 76 IDisplayDevice *device = mDisplayDevices.itemAt(i); local 77 if (!device) { 78 VLOGTRACE("device %d doesn't exist", i); 81 device->prePrepare(displays[i]); 88 IDisplayDevice *device = mDisplayDevices.itemAt(i); local 89 if (!device) { 90 VLOGTRACE("device %d doesn't exist", i); 93 ret = device->prepare(displays[i]); 95 ELOGTRACE("failed to do prepare for device %d", i); 122 IDisplayDevice *device local 157 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 178 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 200 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 223 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 246 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 264 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 282 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 300 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 373 IDisplayDevice *device = mDisplayDevices.itemAt(i); local 433 IDisplayDevice *device = createDisplayDevice(i, *mPlaneManager); local 461 IDisplayDevice *device = mDisplayDevices.itemAt(i); local [all...] |
/hardware/libhardware/modules/local_time/ |
H A D | local_time_hw.c | 35 struct local_time_hw_device device; member in struct:stub_local_time_device 65 static int ltdev_close(hw_device_t *device) argument 67 free(device); 72 hw_device_t** device) 85 ltdev->device.common.tag = HARDWARE_DEVICE_TAG; 86 ltdev->device.common.version = 0; 87 ltdev->device.common.module = (struct hw_module_t *) module; 88 ltdev->device.common.close = ltdev_close; 90 ltdev->device.get_local_time = ltdev_get_local_time; 91 ltdev->device 71 ltdev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument [all...] |
/hardware/qcom/display/msm8996/libgralloc1/ |
H A D | gr_device_impl.h | 47 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...] |
H A D | gr_device_impl.cpp | 43 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) { argument 67 *device = reinterpret_cast<hw_device_t *>(dev); 71 ALOGE("Fatal error opening gralloc1 device"); 98 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { 99 // No-op since the gralloc device is a singleton 103 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, argument 105 if (device != nullptr) { 115 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_ argument 175 Dump(gralloc1_device_t *device, uint32_t *out_size, char *out_buffer) argument 199 CheckDeviceAndHandle(gralloc1_device_t *device, buffer_handle_t buffer) argument 210 CreateBufferDescriptor(gralloc1_device_t *device, gralloc1_buffer_descriptor_t *out_descriptor) argument 219 DestroyBufferDescriptor(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor) argument 228 SetConsumerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_consumer_usage_t usage) argument 240 SetBufferDimensions(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, uint32_t width, uint32_t height) argument 253 SetColorFormat(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, int32_t format) argument 265 SetLayerCount(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, uint32_t layer_count) argument 278 SetProducerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_producer_usage_t usage) argument 290 GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_backing_store_t *out_backstore) argument 302 GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_consumer_usage_t *outUsage) argument 312 GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, uint32_t *outWidth, uint32_t *outHeight) argument 324 GetColorFormat(gralloc1_device_t *device, buffer_handle_t buffer, int32_t *outFormat) argument 334 GetLayerCount(gralloc1_device_t *device, buffer_handle_t buffer, uint32_t *outLayerCount) argument 344 GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_producer_usage_t *outUsage) argument 355 GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer, uint32_t *outStride) argument 365 AllocateBuffers(gralloc1_device_t *device, uint32_t num_descriptors, const gralloc1_buffer_descriptor_t *descriptors, buffer_handle_t *out_buffers) argument 379 RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer) argument 390 ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer) argument 401 GetNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer, uint32_t *out_num_planes) argument 418 LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage, const gralloc1_rect_t *region, void **out_data, int32_t acquire_fence) argument 461 LockFlex(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage, const gralloc1_rect_t *region, struct android_flex_layout *out_flex_layout, int32_t acquire_fence) argument 480 UnlockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, int32_t *release_fence) argument 496 Gralloc1Perform(gralloc1_device_t *device, int operation, ...) argument [all...] |
/hardware/intel/img/hwcomposer/merrifield/common/base/ |
H A D | Drm.h | 45 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); 69 // map device typ [all...] |
H A D | VsyncManager.cpp | 71 WTRACE("vsync control on non-primary device %d", disp); 152 IDisplayDevice *device = NULL; local 154 device = getDisplayDevice(IDisplayDevice::DEVICE_EXTERNAL); 155 if (device && device->isConnected()) { 161 device = getDisplayDevice(IDisplayDevice::DEVICE_VIRTUAL); 162 if (device && device->isConnected()) { 165 WTRACE("Could not use vsync from secondary device"); 177 IDisplayDevice *device local 207 IDisplayDevice *device = getDisplayDevice(mVsyncSource); local [all...] |
H A D | Hwcomposer.cpp | 79 IDisplayDevice *device = mDisplayDevices.itemAt(i); local 80 if (!device) { 81 VTRACE("device %d doesn't exist", i); 85 if (device->getType() == IDisplayDevice::DEVICE_VIRTUAL) 88 device->prePrepare(displays[i]); 92 IDisplayDevice *device = mDisplayDevices.itemAt(i); local 93 if (!device) { 94 VTRACE("device %d doesn't exist", i); 98 if (device->getType() == IDisplayDevice::DEVICE_VIRTUAL) 101 ret = device 130 IDisplayDevice *device = mDisplayDevices.itemAt(i); local 170 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 188 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 206 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 244 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 269 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 295 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 320 IDisplayDevice *device = mDisplayDevices.itemAt(disp); local 385 IDisplayDevice *device = mDisplayDevices.itemAt(i); local 450 IDisplayDevice *device = mPlatFactory->createDisplayDevice(i); local 492 IDisplayDevice *device = mDisplayDevices.itemAt(i); local [all...] |
/hardware/qcom/display/msm8998/libgralloc1/ |
H A D | gr_device_impl.h | 49 static int CloseDevice(hw_device_t *device); 50 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, 53 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 61 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size, 63 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device, 65 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device, 67 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device, 69 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device, 72 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device, 75 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device, [all...] |
H A D | gr_device_impl.cpp | 42 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device); 44 int gralloc_device_close(struct hw_device_t *device); 62 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { argument 68 *device = reinterpret_cast<hw_device_t *>(dev); 72 ALOGE(" Error in opening gralloc1 device"); 99 int GrallocImpl::CloseDevice(hw_device_t * /*device*/) { 109 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, argument 111 if (device != nullptr) { 120 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { argument 121 if (!device) { 176 Dump(gralloc1_device_t *device, uint32_t *out_size, char *out_buffer) argument 218 DestroyBufferDescriptor(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor) argument 227 SetConsumerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_consumer_usage_t usage) argument 239 SetBufferDimensions(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, uint32_t width, uint32_t height) argument 252 SetColorFormat(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, int32_t format) argument 264 SetProducerUsage(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, gralloc1_producer_usage_t usage) argument 276 GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_backing_store_t *out_backstore) argument 288 GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_consumer_usage_t *outUsage) argument 298 GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, uint32_t *outWidth, uint32_t *outHeight) argument 310 GetColorFormat(gralloc1_device_t *device, buffer_handle_t buffer, int32_t *outFormat) argument 320 GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_producer_usage_t *outUsage) argument 331 GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer, uint32_t *outStride) argument 341 AllocateBuffers(gralloc1_device_t *device, uint32_t num_descriptors, const gralloc1_buffer_descriptor_t *descriptors, buffer_handle_t *out_buffers) argument 355 RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer) argument 366 ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer) argument 377 GetNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer, uint32_t *out_num_planes) argument 388 LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage, const gralloc1_rect_t *region, void **out_data, int32_t acquire_fence) argument 425 LockFlex(gralloc1_device_t *device, buffer_handle_t buffer, gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage, const gralloc1_rect_t *region, struct android_flex_layout *out_flex_layout, int32_t acquire_fence) argument 444 UnlockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, int32_t *release_fence) argument 460 Gralloc1Perform(gralloc1_device_t *device, int operation, ...) argument [all...] |
/hardware/intel/img/hwcomposer/merrifield/ips/common/ |
H A D | DrmConfig.cpp | 30 uint32_t DrmConfig::getDrmConnector(int device) argument 32 if (device == IDisplayDevice::DEVICE_PRIMARY) 34 else if (device == IDisplayDevice::DEVICE_EXTERNAL) 39 uint32_t DrmConfig::getDrmEncoder(int device) argument 41 if (device == IDisplayDevice::DEVICE_PRIMARY) 43 else if (device == IDisplayDevice::DEVICE_EXTERNAL)
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/ |
H A D | DrmConfig.cpp | 30 uint32_t DrmConfig::getDrmConnector(int device) argument 32 if (device == IDisplayDevice::DEVICE_PRIMARY) 34 else if (device == IDisplayDevice::DEVICE_EXTERNAL) 39 uint32_t DrmConfig::getDrmEncoder(int device) argument 41 if (device == IDisplayDevice::DEVICE_PRIMARY) 43 else if (device == IDisplayDevice::DEVICE_EXTERNAL)
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
H A D | HidRawSensorDaemon.cpp | 46 sp<HidRawSensorDevice> device(HidRawSensorDevice::create(deviceKey)); 48 if (device != nullptr) { 49 ALOGV("created HidRawSensorDevice(%p) successfully on device %s contains %zu sensors", 50 device.get(), deviceKey.c_str(), device->getSensors().size()); 53 for (auto &i : device->getSensors()) { 56 mHidRawSensorDevices.emplace(deviceKey, device);
|
/hardware/interfaces/camera/provider/2.4/ |
H A D | ICameraProvider.hal | 21 import android.hardware.camera.device@1.0::ICameraDevice; 22 import android.hardware.camera.device@3.2::ICameraDevice; 26 * known to the provider, and provides updates about changes to device status, 29 * The provider is responsible for generating a list of camera device service 45 * The device instance names enumerated by the provider must be of the form 46 * "device@<major>.<minor>/<type>/<id>" where 48 * incrementing integer for "internal" device types, with 0 being the main 51 * be used to identify the device reliably when it is disconnected and 52 * reconnected. Multiple providers may not enumerate the same device ID. 102 * Returns the list of internal camera device interface [all...] |
/hardware/libhardware/modules/tv_input/ |
H A D | tv_input.cpp | 29 tv_input_device_t device; member in struct:tv_input_private 37 const char* name, struct hw_device_t** device); 115 const char* name, struct hw_device_t** device) 125 dev->device.common.tag = HARDWARE_DEVICE_TAG; 126 dev->device.common.version = TV_INPUT_DEVICE_API_VERSION_0_1; 127 dev->device.common.module = const_cast<hw_module_t*>(module); 128 dev->device.common.close = tv_input_device_close; 130 dev->device.initialize = tv_input_initialize; 131 dev->device.get_stream_configurations = 133 dev->device 114 tv_input_device_open(const struct hw_module_t* module, const char* name, struct hw_device_t** device) argument [all...] |
/hardware/intel/img/hwcomposer/moorefield_hdmi/include/ |
H A D | DrmConfig.h | 26 static uint32_t getDrmConnector(int device); 27 static uint32_t getDrmEncoder(int device);
|
H A D | DisplayQuery.h | 28 static bool forceFbScaling(int device);
|
/hardware/libhardware/tests/input/evdev/ |
H A D | InputDevice_test.cpp | 48 // Creating device identifiers and definitions should always happen. 71 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 72 ASSERT_TRUE(device != nullptr); 86 device->processInput(msc1, when); 87 device->processInput(msc2, when); 88 device->processInput(keyDown, when); 89 device->processInput(syn, when); 90 device->processInput(keyUp, when); 100 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 101 ASSERT_TRUE(device ! 116 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 133 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 140 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 154 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 160 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 166 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 172 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 178 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 184 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 190 auto device = std::make_unique<EvdevDevice>(&mHost, node); local 196 auto device = std::make_unique<EvdevDevice>(&mHost, node); local [all...] |
/hardware/interfaces/renderscript/1.0/vts/functional/ |
H A D | VtsHalRenderscriptV1_0TargetTest.cpp | 21 device = ::testing::VtsHalHidlTargetTestBase::getService<IDevice>(); 22 ASSERT_NE(nullptr, device.get()); 26 context = device->contextCreate(version, ContextType::NORMAL, flags);
|
/hardware/libhardware/modules/hwcomposer/ |
H A D | hwcomposer.cpp | 33 hwc_composer_device_1_t device; member in struct:hwc_context_t 38 struct hw_device_t** device); 109 struct hw_device_t** device) 120 dev->device.common.tag = HARDWARE_DEVICE_TAG; 121 dev->device.common.version = HWC_DEVICE_API_VERSION_1_0; 122 dev->device.common.module = const_cast<hw_module_t*>(module); 123 dev->device.common.close = hwc_device_close; 125 dev->device.prepare = hwc_prepare; 126 dev->device.set = hwc_set; 128 *device 108 hwc_device_open(const struct hw_module_t* module, const char* name, struct hw_device_t** device) argument [all...] |
/hardware/interfaces/camera/device/3.2/ |
H A D | ICameraDeviceCallback.hal | 17 package android.hardware.camera.device@3.2;
|