Home
last modified time | relevance | path

Searched refs:min_ (Results 1 – 6 of 6) sorted by relevance

/hardware/libhardware/modules/camera/3_4/metadata/
Dslider_control_options.h37 : min_(min), max_(max), defaults_(defaults){}; in SliderControlOptions()
39 : min_(min), in SliderControlOptions()
44 return {min_, max_}; in MetadataRepresentation()
47 return option >= min_ && option <= max_; in IsSupported()
51 if (min_ > max_) { in DefaultValueForTemplate()
58 if (*default_value < min_) { in DefaultValueForTemplate()
59 *default_value = min_; in DefaultValueForTemplate()
67 *default_value = min_; in DefaultValueForTemplate()
72 T min_;
Dslider_control_options_test.cpp37 dut_.reset(new SliderControlOptions<int>(min_, max_, mock_defaults_)); in SetUp()
42 const int min_ = 1; member in v4l2_camera_hal::SliderControlOptionsTest
49 std::vector<int> expected{min_, max_}; in TEST_F()
54 for (int i = min_; i <= max_; ++i) { in TEST_F()
58 EXPECT_FALSE(dut_->IsSupported(min_ - 1)); in TEST_F()
76 int default_val = min_ - 1; in TEST_F()
78 int expected = min_; in TEST_F()
107 int actual = min_ - 1; in TEST_F()
Dranged_converter.h45 const TV4L2 min_; variable
61 min_(min), in RangedConverter()
80 raw_conversion -= (raw_conversion - min_) % step_; in MetadataToV4L2()
83 if (raw_conversion < min_) { in MetadataToV4L2()
84 raw_conversion = min_; in MetadataToV4L2()
Dranged_converter_test.cpp36 new RangedConverter<int, int32_t>(converter_, min_, max_, step_)); in SetUp()
52 const int32_t min_ = -11; member in v4l2_camera_hal::RangedConverterTest
69 ExpectConvert(min_ - 1, min_); in TEST_F()
/hardware/google/pixel/health/
DBatteryMetricsLogger.cpp43 memset(min_, 0, sizeof(min_)); in BatteryMetricsLogger()
54 .temperatureDeciC = min_[type][TEMP], in uploadOutlierMetric()
55 .voltageMicroV = min_[type][VOLT], in uploadOutlierMetric()
56 .currentMicroA = min_[type][CURR], in uploadOutlierMetric()
57 .openCircuitVoltageMicroV = min_[type][OCV], in uploadOutlierMetric()
58 .resistanceMicroOhm = min_[type][RES], in uploadOutlierMetric()
59 .levelPercent = min_[type][SOC]}; in uploadOutlierMetric()
134 log_min += std::to_string(min_[metric][j]) + " "; in uploadMetrics()
146 memset(min_, 0, sizeof(min_)); in uploadMetrics()
196 sample[metric] < min_[metric][metric]) { in recordSample()
[all …]
/hardware/google/pixel/health/include/pixelhealth/
DBatteryMetricsLogger.h81 int32_t min_[NUM_FIELDS][NUM_FIELDS]; variable