Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 117) sorted by relevance

12345

/hardware/google/pixel/health/test/
DTestBatteryDefender.cpp107 struct android::BatteryProperties props; variable
139 props = {}; in SetUp()
208 props.batteryLevel = 100; in capacityReached()
231 battDefender->update(&props); in TEST_F()
242 battDefender->update(&props); in TEST_F()
252 battDefender->update(&props); in TEST_F()
266 battDefender->update(&props); in TEST_F()
280 battDefender->update(&props); in TEST_F()
287 battDefender->update(&props); in TEST_F()
300 battDefender->update(&props); in TEST_F()
[all …]
/hardware/google/gfxstream/guest/OpenglCodecCommon/
DStateTrackingSupport.h176 std::shared_ptr<RboProps> props(new RboProps()); in addFresh()
177 props->format = GL_NONE; in addFresh()
178 props->multisamples = 0; in addFresh()
179 props->width = 0; in addFresh()
180 props->height = 0; in addFresh()
181 props->previouslyBound = false; in addFresh()
182 props->boundEGLImage = false; in addFresh()
183 props->id = id; in addFresh()
184 internalInfo()->component.add(id, std::move(props)); in addFresh()
227 SamplerProps props; in addFresh() local
[all …]
DGLClientState.cpp1068 const RboProps* props = view.get_const(name); in isRenderbufferThatWasBound() local
1069 return props->previouslyBound; in isRenderbufferThatWasBound()
1769 FboProps& props = boundFboProps(target); in checkFramebufferCompleteness() local
1771 if (!props.completenessDirty) { in checkFramebufferCompleteness()
1772 return props.cachedCompleteness; in checkFramebufferCompleteness()
1778 if (!props.colorAttachmenti_hasTex[i] && in checkFramebufferCompleteness()
1779 !props.colorAttachmenti_hasRbo[i]) continue; in checkFramebufferCompleteness()
1791 …bool hasDepth = (props.depthAttachment_hasTexObj || props.depthAttachment_hasRbo || props.depthste… in checkFramebufferCompleteness()
1792 …ol hasStencil = (props.stencilAttachment_hasTexObj || props.stencilAttachment_hasRbo || props.dept… in checkFramebufferCompleteness()
1819 if ((props.depthAttachment_hasTexObj && props.stencilAttachment_hasRbo) || in checkFramebufferCompleteness()
[all …]
/hardware/qcom/sm7250/display/sde-drm/
Ddrm_connector.cpp446 drmModeObjectProperties *props = in ParseProperties() local
448 if (!props || !props->props || !props->prop_values) { in ParseProperties()
449 drmModeFreeObjectProperties(props); in ParseProperties()
453 for (uint32_t j = 0; j < props->count_props; j++) { in ParseProperties()
454 drmModePropertyRes *info = drmModeGetProperty(fd_, props->props[j]); in ParseProperties()
487 drmModeFreeObjectProperties(props); in ParseProperties()
731 drmModeObjectProperties *props = in GetInfo() local
733 if (!props || !props->props || !props->prop_values) { in GetInfo()
734 drmModeFreeObjectProperties(props); in GetInfo()
741 index = std::distance(props->props, in GetInfo()
[all …]
Ddrm_panel_feature_mgr.cpp123 drmModeObjectProperties *props = in InitObjectProps() local
125 if (!props || !props->props || !props->prop_values) { in InitObjectProps()
127 drmModeFreeObjectProperties(props); in InitObjectProps()
131 for (uint32_t j = 0; j < props->count_props; j++) { in InitObjectProps()
132 drmModePropertyRes *info = drmModeGetProperty(dev_fd_, props->props[j]); in InitObjectProps()
149 drmModeFreeObjectProperties(props); in InitObjectProps()
249 drmModeObjectProperties *props = in GetPanelFeatureInfo() local
251 if (!props || !props->props || !props->prop_values) { in GetPanelFeatureInfo()
252 drmModeFreeObjectProperties(props); in GetPanelFeatureInfo()
257 for (uint32_t j = 0; j < props->count_props; j++) { in GetPanelFeatureInfo()
[all …]
Ddrm_dpps_mgr_imp.cpp140 drmModeObjectProperties *props = in InitCrtcProps() local
142 if (!props || !props->props || !props->prop_values) { in InitCrtcProps()
143 drmModeFreeObjectProperties(props); in InitCrtcProps()
147 for (uint32_t j = 0; j < props->count_props; j++) { in InitCrtcProps()
148 drmModePropertyRes *info = drmModeGetProperty(drm_fd_, props->props[j]); in InitCrtcProps()
165 drmModeFreeObjectProperties(props); in InitCrtcProps()
176 drmModeObjectProperties *props = in InitConnProps() local
178 if (!props || !props->props || !props->prop_values) { in InitConnProps()
179 drmModeFreeObjectProperties(props); in InitConnProps()
183 for (uint32_t j = 0; j < props->count_props; j++) { in InitConnProps()
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_KHR_device_group_creation.adoc42 VkPhysicalDeviceGroupPropertiesKHR *props = NULL;
48props = (VkPhysicalDeviceGroupPropertiesKHR *)malloc(deviceGroupCount*sizeof(VkPhysicalDeviceGroup…
50 props[i].sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES_KHR;
51 props[i].pNext = NULL;
53 vkEnumeratePhysicalDeviceGroupsKHR(g_vkInstance, &deviceGroupCount, props);
58 if (props[0].physicalDeviceCount > 1) {
59 deviceGroupInfo.physicalDeviceCount = props[0].physicalDeviceCount;
60 deviceGroupInfo.pPhysicalDevices = props[0].physicalDevices;
64 vkCreateDevice(props[0].physicalDevices[0], &devCreateInfo, NULL, &g_vkDevice);
65 free(props);
/hardware/google/gfxstream/host/gl/gl-host-common/opengl/
Demugl_config_unittest.cpp503 EXPECT_STREQ("TEST GPU0 MAKE", gpu_props.props[0].make); in TEST()
504 EXPECT_STREQ("TEST GPU1 MAKE", gpu_props.props[1].make); in TEST()
505 EXPECT_STREQ("TEST GPU2 MAKE", gpu_props.props[2].make); in TEST()
506 EXPECT_STREQ("TEST GPU3 MAKE", gpu_props.props[3].make); in TEST()
508 EXPECT_STREQ("TEST GPU0 MODEL", gpu_props.props[0].model); in TEST()
509 EXPECT_STREQ("TEST GPU1 MODEL", gpu_props.props[1].model); in TEST()
510 EXPECT_STREQ("TEST GPU2 MODEL", gpu_props.props[2].model); in TEST()
511 EXPECT_STREQ("TEST GPU3 MODEL", gpu_props.props[3].model); in TEST()
513 EXPECT_STREQ("TEST GPU0 DEVICEID", gpu_props.props[0].device_id); in TEST()
514 EXPECT_STREQ("TEST GPU1 DEVICEID", gpu_props.props[1].device_id); in TEST()
[all …]
Demugl_config.cpp75 res.props = new emugl_host_gpu_props[res.num_gpus]; in emuglConfig_get_host_gpu_props()
79 res.props[i].make = strdup(infos[i].make.c_str()); in emuglConfig_get_host_gpu_props()
80 res.props[i].model = strdup(infos[i].model.c_str()); in emuglConfig_get_host_gpu_props()
81 res.props[i].device_id = strdup(infos[i].device_id.c_str()); in emuglConfig_get_host_gpu_props()
82 res.props[i].revision_id = strdup(infos[i].revision_id.c_str()); in emuglConfig_get_host_gpu_props()
83 res.props[i].version = strdup(infos[i].version.c_str()); in emuglConfig_get_host_gpu_props()
84 res.props[i].renderer = strdup(infos[i].renderer.c_str()); in emuglConfig_get_host_gpu_props()
177 free(proplist.props[i].make); in free_emugl_host_gpu_props()
178 free(proplist.props[i].model); in free_emugl_host_gpu_props()
179 free(proplist.props[i].device_id); in free_emugl_host_gpu_props()
[all …]
/hardware/google/pixel/health/
DBatteryThermalControl.cpp48 void BatteryThermalControl::updateThermalState(const struct android::BatteryProperties *props) { in updateThermalState() argument
54 setThermalMode(props->batteryStatus != android::BATTERY_STATUS_CHARGING && in updateThermalState()
55 props->batteryStatus != android::BATTERY_STATUS_FULL, in updateThermalState()
56 props->maxChargingCurrent * props->maxChargingVoltage < 37500000); in updateThermalState()
DChargerDetect.cpp158 void ChargerDetect::onlineUpdate(struct android::BatteryProperties *props) { in onlineUpdate() argument
159 HealthInfo health_info = ToHealthInfo(props); in onlineUpdate()
162 props->chargerAcOnline = health_info.chargerAcOnline; in onlineUpdate()
163 props->chargerUsbOnline = health_info.chargerUsbOnline; in onlineUpdate()
DDeviceHealth.cpp38 void DeviceHealth::update(struct android::BatteryProperties *props) { in update() argument
40 props->batteryTemperature = 200; in update()
DHealthHelper.cpp32 HealthInfo ToHealthInfo(const struct android::BatteryProperties *props) { in ToHealthInfo() argument
34 convertToHealthInfo(props, hidl_health_info.legacy); in ToHealthInfo()
DBatteryDefender.cpp494 void BatteryDefender::update(struct android::BatteryProperties *props) { in update() argument
495 if (!props) { in update()
498 HealthInfo health_info = ToHealthInfo(props); in update()
501 props->chargerAcOnline = health_info.chargerAcOnline; in update()
502 props->chargerUsbOnline = health_info.chargerUsbOnline; in update()
503 props->chargerWirelessOnline = health_info.chargerWirelessOnline; in update()
504 props->chargerDockOnline = health_info.chargerDockOnline; in update()
505 props->batteryHealth = static_cast<int>(health_info.batteryHealth); in update()
/hardware/interfaces/biometrics/face/aidl/default/
DFace.cpp69 SensorProps props; in getSensorProps() local
70 props.commonProps = std::move(commonProps); in getSensorProps()
71 props.sensorType = kSensorType; in getSensorProps()
72 props.halControlsPreview = kHalControlsPreview; in getSensorProps()
73 props.enrollPreviewWidth = 1080; in getSensorProps()
74 props.enrollPreviewHeight = 1920; in getSensorProps()
75 props.enrollTranslationX = 100.f; in getSensorProps()
76 props.enrollTranslationY = 50.f; in getSensorProps()
77 props.enrollPreviewScale = 1.f; in getSensorProps()
79 *return_val = {std::move(props)}; in getSensorProps()
/hardware/interfaces/health/utils/libhealth2impl/
DHalHealthLoop.cpp85 const auto& props = health_info.legacy.legacy; in set_charger_online() local
87 props.chargerAcOnline || props.chargerUsbOnline || props.chargerWirelessOnline; in set_charger_online()
/hardware/google/graphics/common/libhwc2.1/libdrmresource/drm/
Ddrmdevice.cpp462 drmModeObjectPropertiesPtr props; in GetProperty() local
464 props = drmModeObjectGetProperties(fd(), obj_id, obj_type); in GetProperty()
465 if (!props) { in GetProperty()
471 for (int i = 0; !found && (size_t)i < props->count_props; ++i) { in GetProperty()
472 drmModePropertyPtr p = drmModeGetProperty(fd(), props->props[i]); in GetProperty()
474 property->init(p, props->prop_values[i]); in GetProperty()
483 drmModeFreeObjectProperties(props); in GetProperty()
505 drmModeObjectPropertiesPtr props; in UpdateObjectProperty() local
506 props = drmModeObjectGetProperties(fd(), id, type); in UpdateObjectProperty()
507 if (!props) { in UpdateObjectProperty()
[all …]
/hardware/google/gfxstream/common/detector/
DGraphicsDetectorVk.cpp34 const auto props = physicalDevice.getProperties(); in PopulateVulkanAvailabilityImpl() local
35 outPhysicalDevice->set_name(std::string(props.deviceName)); in PopulateVulkanAvailabilityImpl()
37 props.deviceType == vkhpp::PhysicalDeviceType::eDiscreteGpu ? in PopulateVulkanAvailabilityImpl()
/hardware/google/gfxstream/host/tests/
DVulkan_unittest.cpp101 const VkPhysicalDeviceProperties& props) { in getPhysicalDevicePropertiesString() argument
104 uint16_t apiMaj = (uint16_t)(props.apiVersion >> 22); in getPhysicalDevicePropertiesString()
105 uint16_t apiMin = (uint16_t)(0x000003ff & (props.apiVersion >> 12)); in getPhysicalDevicePropertiesString()
106 uint16_t apiPatch = (uint16_t)(0x000007ff & (props.apiVersion)); in getPhysicalDevicePropertiesString()
109 ss << "Driver version: " << std::hex << props.driverVersion << "\n"; in getPhysicalDevicePropertiesString()
110 ss << "Vendor ID: " << std::hex << props.vendorID << "\n"; in getPhysicalDevicePropertiesString()
111 ss << "Device ID: " << std::hex << props.deviceID << "\n"; in getPhysicalDevicePropertiesString()
112 ss << "Device type: " << deviceTypeToString(props.deviceType) << "\n"; in getPhysicalDevicePropertiesString()
113 ss << "Device name: " << props.deviceName << "\n"; in getPhysicalDevicePropertiesString()
149 std::vector<VkExtensionProperties> props(count); in testInstanceCreation() local
[all …]
/hardware/qcom/sm8150/display/
Ddisplay_defaults.go21 type props struct {
24 p := &props{}
/hardware/qcom/sm7250/display/
Ddisplay_defaults.go21 type props struct {
24 p := &props{}
/hardware/google/gfxstream/host/gl/
DCompositorGl.cpp75 if (layer.props.composeMode == HWC2_COMPOSITION_DEVICE) { in compose()
79 m_textureDraw->drawLayer(layer.props, targetWidth, targetHeight, layerImage->width, in compose()
82 m_textureDraw->drawLayer(layer.props, targetWidth, targetHeight, 1, 1, 0); in compose()
/hardware/qcom/sm7250/display/gralloc/
DQtiAllocator.cpp44 static void get_properties(gralloc::GrallocProperties *props) { in get_properties() argument
45 props->use_system_heap_for_sensors = in get_properties()
48 props->ubwc_disable = property_get_bool("vendor.gralloc.disable_ubwc", 0); in get_properties()
50 props->ahardware_buffer_disable = property_get_bool("vendor.gralloc.disable_ahardware_buffer", 0); in get_properties()
/hardware/qcom/sm8150/display/gralloc/
DQtiAllocator.cpp44 static void get_properties(gralloc::GrallocProperties *props) { in get_properties() argument
45 props->use_system_heap_for_sensors = in get_properties()
48 props->ubwc_disable = property_get_bool("vendor.gralloc.disable_ubwc", 0); in get_properties()
50 props->ahardware_buffer_disable = property_get_bool("vendor.gralloc.disable_ahardware_buffer", 0); in get_properties()
/hardware/google/gfxstream/host/gl/gl-host-common/include/host-common/opengl/
Demugl_config.h77 emugl_host_gpu_props* props; member
125 void free_emugl_host_gpu_props(emugl_host_gpu_prop_list props);

12345