Home
last modified time | relevance | path

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

/system/chre/core/include/chre/core/
Dsensor_type_helpers.h131 static void copyLastSample(const SensorDataType *newEvent,
136 void SensorTypeHelpers::copyLastSample(const SensorDataType *newEvent, in copyLastSample() argument
139 memcpy(lastEvent, newEvent, sizeof(SensorDataType)); in copyLastSample()
142 if (newEvent->header.readingCount > 1) { in copyLastSample()
144 uint64_t sampleTimestampNs = newEvent->header.baseTimestamp; in copyLastSample()
145 for (size_t i = 0; i < newEvent->header.readingCount; ++i) { in copyLastSample()
146 sampleTimestampNs += newEvent->readings[i].timestampDelta; in copyLastSample()
153 newEvent->readings[newEvent->header.readingCount - 1]; in copyLastSample()
/system/chre/platform/shared/nanoapp/
Dnanoapp_support_lib_dso.cc79 chreGnssLocationEvent newEvent = {}; in translateLegacyGnssLocation() local
80 newEvent.timestamp = legacyEvent.timestamp; in translateLegacyGnssLocation()
81 newEvent.latitude_deg_e7 = legacyEvent.latitude_deg_e7; in translateLegacyGnssLocation()
82 newEvent.longitude_deg_e7 = legacyEvent.longitude_deg_e7; in translateLegacyGnssLocation()
83 newEvent.altitude = legacyEvent.altitude; in translateLegacyGnssLocation()
84 newEvent.speed = legacyEvent.speed; in translateLegacyGnssLocation()
85 newEvent.bearing = legacyEvent.bearing; in translateLegacyGnssLocation()
86 newEvent.accuracy = legacyEvent.accuracy; in translateLegacyGnssLocation()
87 newEvent.flags = legacyEvent.flags; in translateLegacyGnssLocation()
90 newEvent.flags &= ~(CHRE_GPS_LOCATION_HAS_ALTITUDE_ACCURACY | in translateLegacyGnssLocation()
[all …]