Home
last modified time | relevance | path

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

/hardware/google/pixel/pixelstats/
DDropDetect.cpp151 float impact_magnitude = sqrt(p->impact_accel_x * p->impact_accel_x + in dropEventFromNanoappPayload() local
158 impact_magnitude < min_confidence_magnitude ? 0 : in dropEventFromNanoappPayload()
159 impact_magnitude > max_confidence_magnitude ? 100 : in dropEventFromNanoappPayload()
160 (impact_magnitude - min_confidence_magnitude) / in dropEventFromNanoappPayload()
163 const int32_t accel_peak_thousandths_g = static_cast<int32_t>(impact_magnitude * 1000); in dropEventFromNanoappPayload()