Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 719) sorted by relevance

12345678910>>...29

/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Ddatalogger_outputs.c49 void inv_get_sensor_type_gyro_raw_short(short *values, inv_time_t *timestamp) in inv_get_sensor_type_gyro_raw_short() argument
53 if (values) in inv_get_sensor_type_gyro_raw_short()
54 memcpy(values, &pg->raw, sizeof(short) * 3); in inv_get_sensor_type_gyro_raw_short()
64 void inv_get_sensor_type_gyro_raw_body_float(float *values, in inv_get_sensor_type_gyro_raw_body_float() argument
76 if (values) { in inv_get_sensor_type_gyro_raw_body_float()
77 values[0] = inv_q16_to_float(raw_body[0]); in inv_get_sensor_type_gyro_raw_body_float()
78 values[1] = inv_q16_to_float(raw_body[1]); in inv_get_sensor_type_gyro_raw_body_float()
79 values[2] = inv_q16_to_float(raw_body[2]); in inv_get_sensor_type_gyro_raw_body_float()
91 void inv_get_sensor_type_gyro_float(float *values, int8_t *accuracy, in inv_get_sensor_type_gyro_float() argument
97 values[0] = (float)gyro[0] / 65536.f; in inv_get_sensor_type_gyro_float()
[all …]
Ddatalogger_outputs.h23 void inv_get_sensor_type_gyro_float(float *values, int8_t *accuracy,
25 void inv_get_sensor_type_accel_float(float *values, int8_t *accuracy,
28 float *values, int8_t *accuracy, inv_time_t *timestamp);
29 void inv_get_sensor_type_quat_float(float *values, int *accuracy,
31 void inv_get_sensor_type_gravity_float(float *values, int *accuracy,
33 void inv_get_sensor_type_rotation_vector_float(float *values, int *accuracy,
37 void inv_get_sensor_type_gyro_raw_short(short *values,
39 void inv_get_sensor_type_gyro_raw_body_float(float *values,
41 void inv_get_sensor_type_accel_raw_short(short *values,
43 void inv_get_sensor_type_compass_raw_short(short *values,
/hardware/google/pixel/pixelstats/
DBatteryFGReporter.cpp48 void BatteryFGReporter::setAtomFieldValue(std::vector<VendorAtomValue> *values, int offset, in setAtomFieldValue() argument
50 std::vector<VendorAtomValue> &val = *values; in setAtomFieldValue()
58 std::vector<VendorAtomValue> values(35); in reportAbnormalEvent() local
87 setAtomFieldValue(&values, FuelGaugeAbnormalityReported::kEventFieldNumber, data.event); in reportAbnormalEvent()
88 setAtomFieldValue(&values, FuelGaugeAbnormalityReported::kEventStateFieldNumber, data.state); in reportAbnormalEvent()
89 setAtomFieldValue(&values, FuelGaugeAbnormalityReported::kDurationSecsFieldNumber, duration); in reportAbnormalEvent()
90 …setAtomFieldValue(&values, FuelGaugeAbnormalityReported::kFgRegisterAddress1FieldNumber, data.cycl… in reportAbnormalEvent()
91 … setAtomFieldValue(&values, FuelGaugeAbnormalityReported::kFgRegisterData1FieldNumber, data.vcel); in reportAbnormalEvent()
92 …setAtomFieldValue(&values, FuelGaugeAbnormalityReported::kFgRegisterAddress2FieldNumber, data.avgv… in reportAbnormalEvent()
93 … setAtomFieldValue(&values, FuelGaugeAbnormalityReported::kFgRegisterData2FieldNumber, data.curr); in reportAbnormalEvent()
[all …]
DStatsHelper.cpp63 std::vector<VendorAtomValue> values(2); in reportSpeakerImpedance() local
66 values[0] = tmp; in reportSpeakerImpedance()
68 values[1] = tmp; in reportSpeakerImpedance()
73 .values = std::move(values)}; in reportSpeakerImpedance()
82 std::vector<VendorAtomValue> values(5); in reportSpeakerHealthStat() local
85 values[0] = tmp; in reportSpeakerHealthStat()
87 values[1] = tmp; in reportSpeakerHealthStat()
89 values[2] = tmp; in reportSpeakerHealthStat()
91 values[3] = tmp; in reportSpeakerHealthStat()
93 values[4] = tmp; in reportSpeakerHealthStat()
[all …]
DBrownoutDetectedReporter.cpp115 void BrownoutDetectedReporter::setAtomFieldValue(std::vector<VendorAtomValue> *values, int offset, in setAtomFieldValue() argument
117 std::vector<VendorAtomValue> &val = *values; in setAtomFieldValue()
127 std::vector<VendorAtomValue> values(47); in uploadData() local
128 setAtomFieldValue(&values, BrownoutDetected::kTriggeredIrqFieldNumber, in uploadData()
130 setAtomFieldValue(&values, BrownoutDetected::kTriggeredTimestampFieldNumber, in uploadData()
132 setAtomFieldValue(&values, BrownoutDetected::kBatteryTempFieldNumber, max_value.battery_temp_); in uploadData()
133 setAtomFieldValue(&values, BrownoutDetected::kBatterySocFieldNumber, in uploadData()
135 setAtomFieldValue(&values, BrownoutDetected::kBatteryCycleFieldNumber, in uploadData()
137 setAtomFieldValue(&values, BrownoutDetected::kVoltageNowFieldNumber, max_value.voltage_now_); in uploadData()
139 setAtomFieldValue(&values, BrownoutDetected::kOdpmChannel01FieldNumber, in uploadData()
[all …]
DMitigationStatsReporter.cpp69 std::vector<VendorAtomValue> values(26); in logMitigationStatsPerHour() local
71 values[PowerMitigationStats::kBatoiloCountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
73 values[PowerMitigationStats::kBatoilo2CountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
75 values[PowerMitigationStats::kVdroop1CountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
77 values[PowerMitigationStats::kVdroop2CountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
79 values[PowerMitigationStats::kSmplWarnCountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
81 values[PowerMitigationStats::kOcpCpu1CountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
83 values[PowerMitigationStats::kOcpCpu2CountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
85 values[PowerMitigationStats::kOcpGpuCountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
87 values[PowerMitigationStats::kOcpTpuCountFieldNumber - kVendorAtomOffset] = tmp; in logMitigationStatsPerHour()
[all …]
DSysfsCollector.cpp521 std::vector<VendorAtomValue> values(2); in logBatteryCapacity() local
524 values[BatteryCapacity::kDeltaCcSumFieldNumber - kVendorAtomOffset] = tmp; in logBatteryCapacity()
526 values[BatteryCapacity::kDeltaVfsocSumFieldNumber - kVendorAtomOffset] = tmp; in logBatteryCapacity()
531 .values = std::move(values)}; in logBatteryCapacity()
561 std::vector<VendorAtomValue> values(3); in logUFSLifetime() local
564 values[StorageUfsHealth::kLifetimeAFieldNumber - kVendorAtomOffset] = tmp; in logUFSLifetime()
566 values[StorageUfsHealth::kLifetimeBFieldNumber - kVendorAtomOffset] = tmp; in logUFSLifetime()
568 values[StorageUfsHealth::kLifetimeCFieldNumber - kVendorAtomOffset] = tmp; in logUFSLifetime()
573 .values = std::move(values)}; in logUFSLifetime()
597 std::vector<VendorAtomValue> values(1); in logUFSErrorStats() local
[all …]
DMitigationDurationReporter.cpp95 void MitigationDurationReporter::valueAssignmentHelper(std::vector<VendorAtomValue> *values, in valueAssignmentHelper() argument
99 (*values)[fieldNumber - kVendorAtomOffset] = tmp; in valueAssignmentHelper()
110 std::vector<VendorAtomValue> values(33); in logMitigationDuration() local
112 valueAssignmentHelper(&values, &greater_than_thresh.uvlo1_none, in logMitigationDuration()
114 valueAssignmentHelper(&values, &greater_than_thresh.uvlo1_mmwave, in logMitigationDuration()
116 valueAssignmentHelper(&values, &greater_than_thresh.uvlo1_rffe, in logMitigationDuration()
119 valueAssignmentHelper(&values, &greater_than_thresh.uvlo2_none, in logMitigationDuration()
121 valueAssignmentHelper(&values, &greater_than_thresh.uvlo2_mmwave, in logMitigationDuration()
123 valueAssignmentHelper(&values, &greater_than_thresh.uvlo2_rffe, in logMitigationDuration()
126 valueAssignmentHelper(&values, &greater_than_thresh.batoilo_none, in logMitigationDuration()
[all …]
DMmMetricsReporter.cpp288 const std::vector<VendorAtomValue> &values, in reportVendorAtom() argument
293 .values = std::move(values)}; in reportVendorAtom()
375 std::vector<uint64_t> values; in readProcStat() local
383 values.push_back(value); in readProcStat()
385 fields[field_name] = values; in readProcStat()
513 const std::vector<uint64_t> &values = itr->second; in getValueFromParsedProcStat() local
515 if (values.size() == 0) { in getValueFromParsedProcStat()
519 if (offset >= 0 && offset >= values.size()) { in getValueFromParsedProcStat()
524 *output = values.at(offset); in getValueFromParsedProcStat()
528 *output = std::accumulate(values.begin(), values.end(), 0); in getValueFromParsedProcStat()
[all …]
DTempResidencyReporter.cpp153 std::vector<VendorAtomValue> values; in logTempResidencyStats() local
163 values.push_back(tmp_atom_value); in logTempResidencyStats()
165 values.push_back(tmp_atom_value); in logTempResidencyStats()
169 values.push_back(tmp_atom_value); in logTempResidencyStats()
175 values.insert(values.end(), remaining_residency_buckets_count, tmp_atom_value); in logTempResidencyStats()
178 values.push_back(tmp_atom_value); in logTempResidencyStats()
180 values.push_back(tmp_atom_value); in logTempResidencyStats()
182 values.push_back(tmp_atom_value); in logTempResidencyStats()
184 values.push_back(tmp_atom_value); in logTempResidencyStats()
188 .values = std::move(values)}; in logTempResidencyStats()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dhal_outputs.c74 int inv_get_sensor_type_accelerometer(float *values, int8_t *accuracy, in inv_get_sensor_type_accelerometer() argument
83 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
84 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
85 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
90 MPL_LOGV("accel values:%f %f %f -%d -%lld", values[0], values[1], in inv_get_sensor_type_accelerometer()
91 values[2], status, *timestamp); in inv_get_sensor_type_accelerometer()
103 int inv_get_sensor_type_linear_acceleration(float *values, int8_t *accuracy, in inv_get_sensor_type_linear_acceleration() argument
114 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_linear_acceleration()
115 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_linear_acceleration()
116 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_linear_acceleration()
[all …]
Dhal_outputs.h16 int inv_get_sensor_type_orientation(float *values, int8_t *accuracy,
18 int inv_get_sensor_type_accelerometer(float *values, int8_t *accuracy,
20 int inv_get_sensor_type_gyroscope(float *values, int8_t *accuracy,
22 int inv_get_sensor_type_gyroscope_raw(float *values, int8_t *accuracy,
24 int inv_get_sensor_type_magnetic_field(float *values, int8_t *accuracy,
26 int inv_get_sensor_type_magnetic_field_raw(float *values, int8_t *accuracy,
28 int inv_get_sensor_type_rotation_vector(float *values, int8_t *accuracy,
31 int inv_get_sensor_type_linear_acceleration(float *values,
34 int inv_get_sensor_type_gravity(float *values, int8_t *accuracy,
37 int inv_get_sensor_type_orientation_6_axis(float *values, int8_t *accuracy,
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dhal_outputs.c122 int inv_get_sensor_type_accelerometer(float *values, int8_t *accuracy, in inv_get_sensor_type_accelerometer() argument
131 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
132 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
133 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
138 MPL_LOGV("accel values:%f %f %f -%d -%lld", values[0], values[1], in inv_get_sensor_type_accelerometer()
139 values[2], status, *timestamp); in inv_get_sensor_type_accelerometer()
151 int inv_get_sensor_type_linear_acceleration(float *values, int8_t *accuracy, in inv_get_sensor_type_linear_acceleration() argument
162 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_linear_acceleration()
163 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_linear_acceleration()
164 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_linear_acceleration()
[all …]
Dhal_outputs.h16 int inv_get_sensor_type_orientation(float *values, int8_t *accuracy,
18 int inv_get_sensor_type_accelerometer(float *values, int8_t *accuracy,
20 int inv_get_sensor_type_gyroscope(float *values, int8_t *accuracy,
22 int inv_get_sensor_type_gyroscope_raw(float *values, int8_t *accuracy,
24 int inv_get_sensor_type_magnetic_field(float *values, int8_t *accuracy,
26 int inv_get_sensor_type_magnetic_field_raw(float *values, int8_t *accuracy,
28 int inv_get_sensor_type_rotation_vector(float *values, int8_t *accuracy,
31 int inv_get_sensor_type_linear_acceleration(float *values,
34 int inv_get_sensor_type_gravity(float *values, int8_t *accuracy,
37 int inv_get_sensor_type_orientation_6_axis(float *values, int8_t *accuracy,
[all …]
/hardware/google/pixel/health/
DStatsHelper.cpp59 std::vector<VendorAtomValue> values(7); in reportBatteryHealthSnapshot() local
62 values[0] = tmp; in reportBatteryHealthSnapshot()
64 values[1] = tmp; in reportBatteryHealthSnapshot()
66 values[2] = tmp; in reportBatteryHealthSnapshot()
68 values[3] = tmp; in reportBatteryHealthSnapshot()
70 values[4] = tmp; in reportBatteryHealthSnapshot()
72 values[5] = tmp; in reportBatteryHealthSnapshot()
74 values[6] = tmp; in reportBatteryHealthSnapshot()
78 .values = std::move(values)}; in reportBatteryHealthSnapshot()
87 std::vector<VendorAtomValue> values(1); in reportBatteryCausedShutdown() local
[all …]
/hardware/google/pixel/thermal/utils/
Dthermal_info.cpp67 bool getIntFromJsonValues(const Json::Value &values, CdevArray *out, bool inc_check, in getIntFromJsonValues() argument
76 if (values.size() != kThrottlingSeverityCount) { in getIntFromJsonValues()
82 ret[i] = getIntFromValue(values[i]); in getIntFromJsonValues()
100 bool getFloatFromJsonValues(const Json::Value &values, ThrottlingArray *out, bool inc_check, in getFloatFromJsonValues() argument
109 if (values.size() != kThrottlingSeverityCount) { in getFloatFromJsonValues()
115 ret[i] = getFloatFromValue(values[i]); in getFloatFromJsonValues()
133 bool getTempRangeInfoFromJsonValues(const Json::Value &values, TempRangeInfo *temp_range_info) { in getTempRangeInfoFromJsonValues() argument
134 if (values.size() != 2) { in getTempRangeInfoFromJsonValues()
135 LOG(ERROR) << "Temp Range Values size: " << values.size() << "is invalid."; in getTempRangeInfoFromJsonValues()
139 float min_temp = getFloatFromValue(values[0]); in getTempRangeInfoFromJsonValues()
[all …]
/hardware/google/pixel/pixelstats/test/mm/
DMmMetricsReporterTest.cpp45 std::vector<VendorAtomValue> values; in TEST() local
78 values = mreport.genPixelMmMetricsPerHour(); in TEST()
81 EXPECT_EQ(values.size(), ARRAY_SIZE(PixelMmMetricsPerHour_field_types)); in TEST()
82 for (auto const &v : values) { in TEST()
98 std::vector<VendorAtomValue> values; in TEST() local
108 values = mreport.genPixelMmMetricsPerDay(); in TEST()
112 EXPECT_EQ(values.size(), 0); in TEST()
113 values.clear(); in TEST()
116 values = mreport.genPixelMmMetricsPerDay(); in TEST()
120 EXPECT_EQ(values.size(), ARRAY_SIZE(PixelMmMetricsPerDay_field_types)); in TEST()
[all …]
/hardware/google/graphics/common/libhwc2.1/
Dpixelstats-display.cpp55 std::vector<VendorAtomValue> values; in reportDisplayPortUsage() local
58 values.push_back(tmp); in reportDisplayPortUsage()
60 values.push_back(tmp); in reportDisplayPortUsage()
62 values.push_back(tmp); in reportDisplayPortUsage()
64 values.push_back(tmp); in reportDisplayPortUsage()
66 values.push_back(tmp); in reportDisplayPortUsage()
68 values.push_back(tmp); in reportDisplayPortUsage()
70 VendorAtom event = {.atomId = PixelAtoms::DISPLAY_PORT_USAGE, .values = std::move(values)}; in reportDisplayPortUsage()
/hardware/interfaces/biometrics/common/config/tests/
DConfigTest.cpp128 } values[] = { in TEST_F() local
133 for (int i = 0; i < sizeof(values) / sizeof(values[0]); i++) { in TEST_F()
134 ASSERT_EQ((std::get<OptInt32>(cfg.parseInt32(values[i].strval))).value_or(defval), in TEST_F()
135 values[i].expval); in TEST_F()
144 } values[] = { in TEST_F() local
150 for (int i = 0; i < sizeof(values) / sizeof(values[0]); i++) { in TEST_F()
151 ASSERT_EQ((std::get<OptInt64>(cfg.parseInt64(values[i].strval))).value_or(defval), in TEST_F()
152 values[i].expval); in TEST_F()
161 } values[] = { in TEST_F() local
165 for (int i = 0; i < sizeof(values) / sizeof(values[0]); i++) { in TEST_F()
[all …]
/hardware/google/gfxstream/host/tests/
DGLSnapshotVertexAttributes_unittest.cpp31 GlValues values; member
43 .values = {.ints = {}, .floats = {0, 0, 0, 1}},
97 std::vector<GLfloat> values; in compareFloatParameter() local
98 values.resize(std::max((GLuint)4, (GLuint)expected.size())); in compareFloatParameter()
99 gl->glGetVertexAttribfv(m_index, paramName, &(values[0])); in compareFloatParameter()
102 expected, values, in compareFloatParameter()
116 std::vector<GLint> values; in compareIntParameter() local
117 values.resize(std::max((GLuint)4, (GLuint)expected.size())); in compareIntParameter()
118 gl->glGetVertexAttribiv(m_index, paramName, &(values[0])); in compareIntParameter()
121 expected, values, in compareIntParameter()
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/test/
DVehiclePropertyStoreTest.cpp60 const std::vector<VehiclePropValuePool::RecyclableType>& values) { in convertValuePtrsToValues() argument
62 returnValues.reserve(values.size()); in convertValuePtrsToValues()
63 for (auto& value : values) { in convertValuePtrsToValues()
142 auto values = getTestPropValues(); in TEST_F() local
144 ASSERT_RESULT_OK(mStore->writeValue(mValuePool->obtain(values[0]))); in TEST_F()
148 auto values = getTestPropValues(); in TEST_F() local
149 for (const auto& value : values) { in TEST_F()
155 ASSERT_THAT(convertValuePtrsToValues(gotValues), WhenSortedBy(propValueCmp, Eq(values))); in TEST_F()
159 auto values = getTestPropValues(); in TEST_F() local
160 for (const auto& value : values) { in TEST_F()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_exif.c83 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry() local
84 if (values == NULL) { in addExifEntry()
88 memcpy(values, data, count); in addExifEntry()
89 p_info_data[numOfEntries].tag_entry.data._bytes = values; in addExifEntry()
111 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry() local
112 if (values == NULL) { in addExifEntry()
116 memcpy(values, data, count * sizeof(uint16_t)); in addExifEntry()
117 p_info_data[numOfEntries].tag_entry.data._shorts = values; in addExifEntry()
126 uint32_t *values = (uint32_t *)malloc(count * sizeof(uint32_t)); in addExifEntry() local
127 if (values == NULL) { in addExifEntry()
[all …]
/hardware/google/pixel/vibrator/common/
DStatsBase.cpp226 std::vector<VendorAtomValue> values(2); in vibratorPlaycountAtom() local
230 values[0].set<VendorAtomValue::repeatedIntValue>(mWaveformCounts); in vibratorPlaycountAtom()
231 values[1].set<VendorAtomValue::repeatedIntValue>(mDurationCounts); in vibratorPlaycountAtom()
237 .values = std::move(values), in vibratorPlaycountAtom()
243 std::vector<VendorAtomValue> values(3); in vibratorLatencyAtom() local
256 values[0].set<VendorAtomValue::repeatedIntValue>(mMinLatencies); in vibratorLatencyAtom()
257 values[1].set<VendorAtomValue::repeatedIntValue>(mMaxLatencies); in vibratorLatencyAtom()
259 values[2].set<VendorAtomValue::repeatedIntValue>(avgLatencies); in vibratorLatencyAtom()
264 .values = std::move(values), in vibratorLatencyAtom()
270 std::vector<VendorAtomValue> values(1); in vibratorErrorAtom() local
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleHalManager.cpp464 void VehicleHalManager::onBatchHalEvent(const std::vector<VehiclePropValuePtr>& values) { in onBatchHalEvent() argument
466 mSubscriptionManager.distributeValuesToClients(values, SubscribeFlags::EVENTS_FROM_CAR); in onBatchHalEvent()
469 auto vecSize = cv.values.size(); in onBatchHalEvent()
478 for (VehiclePropValue* pValue : cv.values) { in onBatchHalEvent()
582 std::vector<std::string> values; in getOptionValues() local
586 return std::move(values); in getOptionValues()
588 values.push_back(option); in getOptionValues()
591 return std::move(values); in getOptionValues()
614 std::vector<std::string> values = getOptionValues(options, &optionIndex); in parseSetPropOptions() local
621 if (values.size() == 0) { in parseSetPropOptions()
[all …]
/hardware/interfaces/audio/common/all-versions/util/include/common/all-versions/
DHidlSupport.h31 hidl_enum_range<Enum> values; in isValidHidlEnum() local
32 return std::find(values.begin(), values.end(), e) != values.end(); in isValidHidlEnum()

12345678910>>...29