/hardware/google/pixel/thermal/utils/ |
D | thermal_throttling.cpp | 61 void ThermalThrottling::parseProfileProperty(std::string_view sensor_name, in parseProfileProperty() argument 68 StringPrintf("vendor.thermal.%s.profile", sensor_name.data()), ""); in parseProfileProperty() 71 if (profile != thermal_throttling_status_map_[sensor_name.data()].profile) { in parseProfileProperty() 72 LOG(INFO) << sensor_name.data() << ": throttling profile change to " in parseProfileProperty() 74 thermal_throttling_status_map_[sensor_name.data()].profile = profile; in parseProfileProperty() 77 LOG(ERROR) << sensor_name.data() << ": set profile to default because " << profile in parseProfileProperty() 79 thermal_throttling_status_map_[sensor_name.data()].profile = ""; in parseProfileProperty() 83 void ThermalThrottling::clearThrottlingData(std::string_view sensor_name) { in clearThrottlingData() argument 84 if (!thermal_throttling_status_map_.count(sensor_name.data())) { in clearThrottlingData() 90 thermal_throttling_status_map_.at(sensor_name.data()).pid_power_budget_map) { in clearThrottlingData() [all …]
|
D | thermal_throttling.h | 67 void clearThrottlingData(std::string_view sensor_name); 70 std::string_view sensor_name, const std::shared_ptr<ThrottlingInfo> &throttling_info, 88 void computeCoolingDevicesRequest(std::string_view sensor_name, const SensorInfo &sensor_info, 97 void parseProfileProperty(std::string_view sensor_name, const SensorInfo &sensor_info); 110 std::string *log_buf, std::string_view sensor_name); 121 std::string sensor_name, 124 void updateCdevRequestBySeverity(std::string_view sensor_name, const SensorInfo &sensor_info, 129 std::string_view sensor_name,
|
D | thermal_watcher.h | 80 void parseUevent(std::set<std::string> *sensor_name); 83 void parseGenlink(std::set<std::string> *sensor_name);
|
D | powerhal_helper.cpp | 116 for (const auto &[sensor_name, supported_powerhint] : supported_powerhint_map_) { in reconnect() 120 setMode(sensor_name, severity, mode); in reconnect() 124 LOG(INFO) << sensor_name << " send powerhint: " << log_buf.str(); in reconnect()
|
/hardware/google/pixel/thermal/ |
D | thermal-helper.cpp | 96 void ThermalHelperImpl::dumpTraces(std::string_view sensor_name) { in dumpTraces() argument 97 if (!(sensor_info_map_.count(sensor_name.data()) && in dumpTraces() 98 sensor_status_map_.count(sensor_name.data()))) { in dumpTraces() 99 LOG(ERROR) << sensor_name << " not part of sensor_info_map_ or sensor_status_map_"; in dumpTraces() 104 const auto &sensor_status = sensor_status_map_.at(sensor_name.data()); in dumpTraces() 105 ATRACE_INT((sensor_name.data() + std::string("-cached")).c_str(), in dumpTraces() 108 const auto &sensor_info = sensor_info_map_.at(sensor_name.data()); in dumpTraces() 380 for (auto &[sensor_name, sensor_info] : sensor_info_map_) { in checkUpdateSensorForEmul() 391 auto &sensor_status = sensor_status_map_.at(sensor_name.data()); in checkUpdateSensorForEmul() 395 checkUpdateSensorForEmul(sensor_name, max_throttling); in checkUpdateSensorForEmul() [all …]
|
D | thermal-helper.h | 94 std::string_view sensor_name, Temperature *out, 97 virtual bool readTemperatureThreshold(std::string_view sensor_name, 145 std::string_view sensor_name, Temperature *out, 149 bool readTemperatureThreshold(std::string_view sensor_name, 154 void dumpVtEstimatorStatus(std::string_view sensor_name, 219 bool readThermalSensor(std::string_view sensor_name, float *temp, const bool force_sysfs, 221 bool runVirtualTempEstimator(std::string_view sensor_name, 224 size_t getPredictionMaxWindowMs(std::string_view sensor_name); 225 float readPredictionAfterTimeMs(std::string_view sensor_name, const size_t time_ms); 226 bool readTemperaturePredictions(std::string_view sensor_name, std::vector<float> *predictions);
|
/hardware/google/camera/common/sensor_listener/tests/ |
D | goog_sensor_environment_test.cc | 30 void PrintSensorEvent(const char* sensor_name, in PrintSensorEvent() argument 32 std::cout << sensor_name << " event " << event.sensor_event.u.scalar in PrintSensorEvent() 74 const char* sensor_name = ptr->GetSensorName(); in TEST() local 76 std::bind(PrintSensorEvent, sensor_name, std::placeholders::_1); in TEST() 93 const char* sensor_name = ptr->GetSensorName(); in TEST() local 95 std::bind(PrintSensorEvent, sensor_name, std::placeholders::_1); in TEST() 112 const char* sensor_name = ptr->GetSensorName(); in TEST() local 114 std::bind(PrintSensorEvent, sensor_name, std::placeholders::_1); in TEST()
|
D | goog_sensor_motion_test.cc | 31 void PrintMotionSensorEvent(const char* sensor_name, in PrintMotionSensorEvent() argument 33 std::cout << sensor_name << " event (" << event.sensor_event.u.vec3.x << " " in PrintMotionSensorEvent() 118 const char* sensor_name = ptr->GetSensorName(); in TEST() local 120 std::bind(PrintMotionSensorEvent, sensor_name, std::placeholders::_1); in TEST() 138 const char* sensor_name = ptr->GetSensorName(); in TEST() local 140 std::bind(PrintMotionSensorEvent, sensor_name, std::placeholders::_1); in TEST() 158 const char* sensor_name = ptr->GetSensorName(); in TEST() local 160 std::bind(PrintMotionSensorEvent, sensor_name, std::placeholders::_1); in TEST() 178 const char* sensor_name = ptr->GetSensorName(); in TEST() local 180 std::bind(PrintMotionSensorEvent, sensor_name, std::placeholders::_1); in TEST() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 302 int find_name_by_sensor_type(const char *sensor_type, const char *type, char *sensor_name) in find_name_by_sensor_type() argument 365 fscanf(nameFile, "%s", sensor_name); in find_name_by_sensor_type() 366 MPL_LOGI("name found: %s now test for mpuxxxx", sensor_name); in find_name_by_sensor_type() 367 if( !strncmp("mpu",sensor_name, 3) ) { in find_name_by_sensor_type() 377 fscanf(nameFile, "%s", sensor_name); in find_name_by_sensor_type() 378 MPL_LOGI("secondary name found: %s\n", sensor_name); in find_name_by_sensor_type() 381 fscanf(nameFile, "%s", sensor_name); in find_name_by_sensor_type() 382 MPL_LOGI("name found: %s\n", sensor_name); in find_name_by_sensor_type()
|
D | ml_sysfs_helper.h | 23 int find_name_by_sensor_type(const char *sensor_type, const char *type, char *sensor_name);
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 310 int find_name_by_sensor_type(const char *sensor_type, const char *type, char *sensor_name) in find_name_by_sensor_type() argument 373 fscanf(nameFile, "%s", sensor_name); in find_name_by_sensor_type() 374 MPL_LOGI("name found: %s now test for mpuxxxx", sensor_name); in find_name_by_sensor_type() 375 if( !strncmp("mpu",sensor_name, 3) ) { in find_name_by_sensor_type() 385 fscanf(nameFile, "%s", sensor_name); in find_name_by_sensor_type() 386 MPL_LOGI("secondary name found: %s\n", sensor_name); in find_name_by_sensor_type() 389 fscanf(nameFile, "%s", sensor_name); in find_name_by_sensor_type() 390 MPL_LOGI("name found: %s\n", sensor_name); in find_name_by_sensor_type()
|
D | ml_sysfs_helper.h | 23 int find_name_by_sensor_type(const char *sensor_type, const char *type, char *sensor_name);
|
/hardware/google/pixel/thermal/virtualtemp_estimator/ |
D | virtualtemp_estimator.cpp | 109 std::string sensor_name = common_instance_->sensor_name; in DumpTraces() local 111 ATRACE_INT((sensor_name + "_input_" + std::to_string(i)).c_str(), in DumpTraces() 116 ATRACE_INT((sensor_name + "_output_" + std::to_string(i)).c_str(), in DumpTraces() 193 VirtualTempEstimator::VirtualTempEstimator(std::string_view sensor_name, in VirtualTempEstimator() argument 198 common_instance_ = std::make_unique<VtEstimatorCommonData>(sensor_name, num_linked_sensors); in VirtualTempEstimator() 346 << common_instance_->sensor_name; in TFliteInitialize() 452 LOG(INFO) << "Ignoring stale previous samples for " << common_instance_->sensor_name; in TFliteEstimate() 680 VtEstimatorStatus VirtualTempEstimator::TFLiteDumpStatus(std::string_view sensor_name, in TFLiteDumpStatus() argument 683 LOG(ERROR) << "dump_buf is nullptr for " << sensor_name; in TFLiteDumpStatus() 694 *dump_buf << " Sensor Name: " << sensor_name << std::endl; in TFLiteDumpStatus() [all …]
|
D | virtualtemp_estimator.h | 90 VirtualTempEstimator(std::string_view sensor_name, VtEstimationType type, 101 VtEstimatorStatus DumpStatus(std::string_view sensor_name, std::ostringstream *dump_buf); 130 VtEstimatorStatus TFLiteDumpStatus(std::string_view sensor_name, std::ostringstream *dump_buf);
|
D | virtualtemp_estimator_data.h | 59 sensor_name = name; in VtEstimatorCommonData() 66 std::string sensor_name; member
|
/hardware/google/pixel/pixelstats/ |
D | TempResidencyReporter.cpp | 55 char sensor_name[32]; in parse_file_contents() local 59 while (sscanf(data + offset, "THERMAL ZONE: %31s\n%n", sensor_name, &bytes_read) == 1) { in parse_file_contents() 67 std::string sensor_name_str = sensor_name; in parse_file_contents()
|
/hardware/qcom/sm8150/thermal/ |
D | thermal_common.c | 128 static int get_tzn(const char *sensor_name) in get_tzn() argument 181 if (!strcmp(buf, sensor_name)) { in get_tzn() 194 sensor_name, tzn); in get_tzn()
|
/hardware/invensense/6515/libsensors_iio/ |
D | PressureSensor.IIO.secondary.h | 57 char sensor_name[200];
|
D | CompassSensor.IIO.9150.h | 67 char sensor_name[200];
|
D | CompassSensor.IIO.9150.cpp | 72 sensor_name); in CompassSensor() 76 dev_name = sensor_name; in CompassSensor() 294 const char *compass = sensor_name; in fillList()
|
D | CompassSensor.IIO.primary.cpp | 58 char sensor_name[20]; in CompassSensor() local 59 find_name_by_sensor_type("in_magn_x_raw", "iio:device", sensor_name); in CompassSensor() 60 strncpy(dev_full_name, sensor_name, in CompassSensor()
|
/hardware/invensense/65xx/libsensors_iio/ |
D | PressureSensor.IIO.secondary.h | 57 char sensor_name[200];
|
D | CompassSensor.IIO.9150.cpp | 72 sensor_name); in CompassSensor() 76 dev_name = sensor_name; in CompassSensor() 292 const char *compass = sensor_name; in fillList()
|
D | CompassSensor.IIO.9150.h | 67 char sensor_name[200];
|
D | CompassSensor.IIO.primary.cpp | 58 char sensor_name[20]; in CompassSensor() local 59 find_name_by_sensor_type("in_magn_x_raw", "iio:device", sensor_name); in CompassSensor() 60 strncpy(dev_full_name, sensor_name, in CompassSensor()
|