Home
last modified time | relevance | path

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

/hardware/google/pixel/health/
DBatteryThermalControl.cpp43 void BatteryThermalControl::updateThermalState(const struct android::BatteryProperties *props) { in updateThermalState() argument
44 setThermalMode(props->batteryStatus != android::BATTERY_STATUS_CHARGING && in updateThermalState()
45 props->batteryStatus != android::BATTERY_STATUS_FULL, in updateThermalState()
46 props->maxChargingCurrent * props->maxChargingVoltage < 37500000); in updateThermalState()
DBatteryMetricsLogger.cpp155 bool BatteryMetricsLogger::recordSample(struct android::BatteryProperties *props) { in recordSample() argument
180 [CURR] = props->batteryCurrent, in recordSample()
181 [VOLT] = props->batteryVoltage, in recordSample()
182 [TEMP] = props->batteryTemperature, in recordSample()
183 [SOC] = props->batteryLevel, in recordSample()
185 if (props->batteryStatus != android::BATTERY_STATUS_CHARGING) { in recordSample()
192 if ((metric == RES && props->batteryStatus == android::BATTERY_STATUS_CHARGING) || in recordSample()
214 void BatteryMetricsLogger::logBatteryProperties(struct android::BatteryProperties *props) { in logBatteryProperties() argument
217 recordSample(props); in logBatteryProperties()
DDeviceHealth.cpp33 void DeviceHealth::update(struct android::BatteryProperties *props) { in update() argument
37 props->batteryTemperature = 200; in update()
DLowBatteryShutdownMetrics.cpp93 void LowBatteryShutdownMetrics::logShutdownVoltage(struct android::BatteryProperties *props) { in logShutdownVoltage() argument
95 if (!prop_written_ && props->batteryLevel == 0 && in logShutdownVoltage()
96 props->batteryStatus == android::BATTERY_STATUS_DISCHARGING) { in logShutdownVoltage()
/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()
DHealth.cpp237 struct BatteryProperties props = {}; in shouldKeepScreenOn() local
238 V1_0::hal_conversion::convertFromHealthInfo(health_info.legacy.legacy, &props); in shouldKeepScreenOn()
239 screen_on = healthd_config_->screen_on(&props); in shouldKeepScreenOn()
/hardware/qcom/sm8150/display/
Ddisplay_defaults.go21 type props struct {
24 p := &props{}
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DSubscriptionManager.cpp78 std::vector<int32_t> props; in getSubscribedProperties() local
81 props.push_back(subscription.first); in getSubscribedProperties()
83 return props; in getSubscribedProperties()
278 std::vector<int32_t> props; in onCallbackDead() local
286 props = halClient->getSubscribedProperties(); in onCallbackDead()
289 for (int32_t propId : props) { in onCallbackDead()
/hardware/qcom/sdm845/display/libhistogram/
Dhistogram_collector.cpp127 auto props = drmModeObjectGetProperties(fd, (*crtc)->crtc_id, DRM_MODE_OBJECT_CRTC); in find_histogram_supporting_crtc() local
128 for (auto j = 0u; j < props->count_props; j++) { in find_histogram_supporting_crtc()
129 auto info = drmModeGetProperty(fd, props->props[j]); in find_histogram_supporting_crtc()
131 hist_ctl_found = props->props[j]; in find_histogram_supporting_crtc()
134 hist_irq_found = props->props[j]; in find_histogram_supporting_crtc()
138 drmModeFreeObjectProperties(props); in find_histogram_supporting_crtc()
/hardware/google/pixel/health/include/pixelhealth/
DBatteryMetricsLogger.h45 void logBatteryProperties(struct android::BatteryProperties *props);
89 bool recordSample(struct android::BatteryProperties *props);
DDeviceHealth.h29 void update(struct android::BatteryProperties *props);
DLowBatteryShutdownMetrics.h40 void logShutdownVoltage(struct android::BatteryProperties *props);
DBatteryThermalControl.h40 void updateThermalState(const struct android::BatteryProperties *props);
/hardware/interfaces/health/2.0/default/
DHealth.cpp157 struct BatteryProperties props; in update() local
158 convertFromHealthInfo(health_info, &props); in update()
159 bool log = (healthd_board_battery_update(&props) == 0); in update()
163 healthd_mode_ops->battery_update(&props); in update()
/hardware/interfaces/audio/effect/all-versions/vts/functional/
DVtsHalAudioEffectTargetTest.cpp741 AllProperties props; in TEST_P() local
742 props.bandLevels.resize(numBands); in TEST_P()
744 props.bandLevels[i] = 0; in TEST_P()
751 props.curPreset = -1; in TEST_P()
752 Return<Result> ret = equalizer->setAllProperties(props); in TEST_P()
763 EXPECT_EQ(props.bandLevels, actualProps.bandLevels); in TEST_P()
766 props.curPreset = 0; // Assuming there is at least one preset. in TEST_P()
767 ret = equalizer->setAllProperties(props); in TEST_P()
778 EXPECT_EQ(props.curPreset, actualProps.curPreset); in TEST_P()
/hardware/interfaces/health/2.1/
DREADME.md69 struct BatteryProperties props;
70 convertFromHealthInfo(health_info->legacy.legacy, &props);
71 healthd_board_battery_update(&props);
72 convertToHealthInfo(&props, health_info->legacy.legacy);
/hardware/interfaces/automotive/vehicle/2.0/
DIVehicle.hal35 getPropConfigs(vec<int32_t> props)