/device/google/contexthub/firmware/os/algos/calibration/online_calibration/gyroscope/gyro_offset_over_temp_cal/ |
D | gyro_offset_over_temp_cal.cc | 37 const SensorData& sample) { in SetMeasurement() argument 39 switch (sample.type) { in SetMeasurement() 41 gyroCalUpdateAccel(&gyro_cal_, sample.timestamp_nanos, in SetMeasurement() 42 sample.data[SensorIndex::kXAxis], in SetMeasurement() 43 sample.data[SensorIndex::kYAxis], in SetMeasurement() 44 sample.data[SensorIndex::kZAxis]); // [m/sec^2] in SetMeasurement() 48 gyroCalUpdateGyro(&gyro_cal_, sample.timestamp_nanos, in SetMeasurement() 49 sample.data[SensorIndex::kXAxis], in SetMeasurement() 50 sample.data[SensorIndex::kYAxis], in SetMeasurement() 51 sample.data[SensorIndex::kZAxis], // [rad/sec] in SetMeasurement() [all …]
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 599 …int64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, __attribute__((un… in processSample() argument 606 initEv(&nev[cnt++], timestamp, type, sensor)->pressure = sample->fdata; in processSample() 609 initEv(&nev[cnt++], timestamp, type, sensor)->relative_humidity = sample->fdata; in processSample() 612 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample() 615 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample() 618 initEv(&nev[cnt++], timestamp, type, sensor)->distance = sample->fdata; in processSample() 621 initEv(&nev[cnt++], timestamp, type, sensor)->light = sample->fdata; in processSample() 626 mLastStepCount = mStepCounterOffset + sample->idata; in processSample() 641 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample() 645 sendFolioEvent(sample->idata); in processSample() [all …]
|
D | hubconnection.h | 266 …int64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, bool highAccuracy… 267 …_t timestamp, uint32_t type, uint32_t sensor, struct RawThreeAxisSample *sample, bool highAccuracy… 268 …t64_t timestamp, uint32_t type, uint32_t sensor, struct ThreeAxisSample *sample, bool highAccuracy…
|
/device/google/contexthub/firmware/os/algos/calibration/nano_calibration/ |
D | nano_calibration.cc | 127 SensorData sample; in HandleSensorSamples() local 130 sample.type = SensorType::kAccelerometerMps2; in HandleSensorSamples() 133 sample.type = SensorType::kGyroscopeRps; in HandleSensorSamples() 136 sample.type = SensorType::kMagnetometerUt; in HandleSensorSamples() 149 sample.timestamp_nanos = header.baseTimestamp; in HandleSensorSamples() 151 sample.timestamp_nanos += data[i].timestampDelta; in HandleSensorSamples() 152 memcpy(sample.data, data[i].v, sizeof(sample.data)); in HandleSensorSamples() 153 ProcessSample(sample); in HandleSensorSamples() 174 SensorData sample; in HandleTemperatureSamples() local 175 sample.type = SensorType::kTemperatureCelsius; in HandleTemperatureSamples() [all …]
|
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 158 } __attribute__((packed)) sample; member 421 union EmbeddedDataPoint sample; in sendLastSampleProx() local 426 sample.fdata = (mData.proxState == PROX_STATE_NEAR) ? in sendLastSampleProx() 428 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() 543 union EmbeddedDataPoint sample; in handle_i2c_event() local 614 xfer->txrxBuf.sample.status, xfer->txrxBuf.sample.prox, in handle_i2c_event() 615 xfer->txrxBuf.sample.als[0], xfer->txrxBuf.sample.als[1]); in handle_i2c_event() 619 (xfer->txrxBuf.sample.status & ALS_VALID_BIT)) { in handle_i2c_event() 621 sample.fdata = getLuxFromAlsData(xfer->txrxBuf.sample.als[0], in handle_i2c_event() 622 xfer->txrxBuf.sample.als[1]); in handle_i2c_event() [all …]
|
/device/google/contexthub/util/nanotool/ |
D | sensorevent.cpp | 138 const SensorSampleHeader *sample; in GetSampleTime() local 144 sample = GetSampleAtIndex(index); in GetSampleTime() 145 sample_time += sample->delta_time; in GetSampleTime() 209 const SingleAxisDataPoint *sample = in StringForSample() local 214 sample->fdata, GetSampleTimeStr(index).c_str()); in StringForSample() 226 const SingleAxisDataPoint *sample = in StringForSample() local 231 sample->idata, GetSampleTimeStr(index).c_str()); in StringForSample() 239 const TripleAxisDataPoint *sample = in StringForSample() local 251 sample->x, sample->y, sample->z, GetSampleTimeStr(index).c_str(), in StringForSample() 266 const CompressedTripleAxisDataPoint *sample = in StringForSample() local [all …]
|
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 321 union EmbeddedDataPoint sample; in proxIsr() local 332 (void)sample; in proxIsr() 339 … sample.fdata = (pinState) ? AMS_TMD4903_REPORT_FAR_VALUE : AMS_TMD4903_REPORT_NEAR_VALUE; in proxIsr() 342 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in proxIsr() 408 static bool checkForAlsAutoGain(float sample) in checkForAlsAutoGain() argument 410 if ((mTask.alsGain != ALS_GAIN_64X) && (sample < AMS_TMD4903_ALS_GAIN_64X_THOLD)) { in checkForAlsAutoGain() 413 …} else if ((mTask.alsGain != ALS_GAIN_16X) && (sample >= AMS_TMD4903_ALS_GAIN_64X_THOLD) && (sampl… in checkForAlsAutoGain() 416 …} else if ((mTask.alsGain != ALS_GAIN_4X) && (sample >= AMS_TMD4903_ALS_GAIN_16X_THOLD) && (sample… in checkForAlsAutoGain() 419 } else if ((mTask.alsGain != ALS_GAIN_1X) && (sample >= AMS_TMD4903_ALS_GAIN_4X_THOLD)) { in checkForAlsAutoGain() 651 union EmbeddedDataPoint sample; in sendLastSampleProx() local [all …]
|
/device/google/contexthub/firmware/os/drivers/hall/ |
D | hall.c | 66 union EmbeddedDataPoint sample; in debounceTimerCallback() local 72 sample.idata = pinState ? HALL_REPORT_OPENED_VALUE : in debounceTimerCallback() 75 if (sample.idata != mTask.prevReportedValue) { in debounceTimerCallback() 76 mTask.prevReportedValue = sample.idata; in debounceTimerCallback() 77 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL); in debounceTimerCallback() 166 union EmbeddedDataPoint sample; in hallSetRate() local 168 sample.idata = pinState ? HALL_REPORT_OPENED_VALUE : in hallSetRate() 170 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL); in hallSetRate() 183 union EmbeddedDataPoint sample; in hallSendLastSample() local 187 sample.idata = mTask.prevReportedValue; in hallSendLastSample() [all …]
|
/device/google/contexthub/firmware/os/algos/calibration/online_calibration/accelerometer/accel_offset_cal/ |
D | accel_offset_cal.cc | 31 CalibrationTypeFlags AccelOffsetCal::SetMeasurement(const SensorData& sample) { in SetMeasurement() argument 33 switch (sample.type) { in SetMeasurement() 35 accelCalRun(&accel_cal_, sample.timestamp_nanos, in SetMeasurement() 36 sample.data[SensorIndex::kXAxis], in SetMeasurement() 37 sample.data[SensorIndex::kYAxis], in SetMeasurement() 38 sample.data[SensorIndex::kZAxis], // [m/sec^2] in SetMeasurement() 48 temperature_celsius_ = sample.data[SensorIndex::kSingleAxis]; in SetMeasurement() 64 cal_data_.cal_update_time_nanos = sample.timestamp_nanos; in SetMeasurement()
|
/device/google/contexthub/firmware/os/algos/calibration/online_calibration/magnetometer/mag_diverse_cal/ |
D | mag_diverse_cal.cc | 35 CalibrationTypeFlags MagDiverseCal::SetMeasurement(const SensorData& sample) { in SetMeasurement() argument 38 switch (sample.type) { in SetMeasurement() 41 &mag_cal_, NanoToMicroseconds(sample.timestamp_nanos), in SetMeasurement() 42 sample.data[SensorIndex::kXAxis], sample.data[SensorIndex::kYAxis], in SetMeasurement() 43 sample.data[SensorIndex::kZAxis]); in SetMeasurement() 47 temperature_celsius_ = sample.data[SensorIndex::kSingleAxis]; in SetMeasurement() 63 cal_data_.cal_update_time_nanos = sample.timestamp_nanos; in SetMeasurement()
|
/device/google/contexthub/firmware/os/drivers/tilt_detection/ |
D | tilt_detection.c | 86 struct TripleAxisDataPoint *sample; in algoUpdate() local 90 sample = &ev->samples[i]; in algoUpdate() 92 sample_ts += sample->deltaTime; in algoUpdate() 98 state->this_batch_sample_sum[0] += sample->x; in algoUpdate() 99 state->this_batch_sample_sum[1] += sample->y; in algoUpdate() 100 state->this_batch_sample_sum[2] += sample->z; in algoUpdate() 261 union EmbeddedDataPoint sample; in tiltDetectionHandleEvent() local 262 sample.idata = 1; in tiltDetectionHandleEvent() 263 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_TILT), sample.vptr, NULL); in tiltDetectionHandleEvent()
|
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 262 union EmbeddedDataPoint sample; in proxIsr() local 274 … sample.fdata = (pinState) ? ROHM_RPR0521_REPORT_FAR_VALUE : ROHM_RPR0521_REPORT_NEAR_VALUE; in proxIsr() 277 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in proxIsr() 535 union EmbeddedDataPoint sample; in sendLastSampleProx() local 540 …sample.fdata = (mTask.proxState == PROX_STATE_NEAR) ? ROHM_RPR0521_REPORT_NEAR_VALUE : ROHM_RPR052… in sendLastSampleProx() 541 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() 603 union EmbeddedDataPoint sample; in handle_i2c_event() local 701 sample.fdata = getLuxFromAlsData(als0, als1); in handle_i2c_event() 702 if (mTask.lastAlsSample.idata != sample.idata) { in handle_i2c_event() 703 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL); in handle_i2c_event() [all …]
|
/device/google/contexthub/firmware/os/drivers/hall_twopole/ |
D | hall_twopole.c | 76 union EmbeddedDataPoint sample; in hallReportState() local 79 sample.idata = pinState; in hallReportState() 80 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL); in hallReportState() 199 union EmbeddedDataPoint sample; in hallSendLastSample() local 203 sample.idata = mTask.prevReportedState; in hallSendLastSample() 204 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_HALL), sample.vptr, NULL, tid); in hallSendLastSample()
|
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/ |
D | isl29034.c | 315 union EmbeddedDataPoint sample; in handle_i2c_event() local 365 sample.fdata = getLuxFromAlsData(xfer->txrxBuf[0] | (xfer->txrxBuf[1] << 8)); in handle_i2c_event() 366 if (mData.lastAlsSample.idata != sample.idata) { in handle_i2c_event() 367 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL); in handle_i2c_event() 368 mData.lastAlsSample.fdata = sample.fdata; in handle_i2c_event()
|
/device/google/contexthub/firmware/os/drivers/si_si7034/ |
D | si7034a10.c | 361 union EmbeddedDataPoint sample; in handleI2cEvent() local 398 sample.fdata = (float)value / 1000.0f; in handleI2cEvent() 400 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HUMIDITY), sample.vptr, NULL); in handleI2cEvent() 407 sample.fdata = (float)value / 1000.0f; in handleI2cEvent() 409 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_AMBIENT_TEMP), sample.vptr, NULL); in handleI2cEvent()
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 2470 struct TripleAxisDataPoint *sample; local 2534 … sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2536 sample->x = offset[0]; 2537 sample->y = offset[1]; 2538 sample->z = offset[2]; 2546 sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2552 sample->deltaTime = delta_time; 2556 sample->x = x; 2557 sample->y = y; 2558 sample->z = z; [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 189 static bool baroAllocateEvt(struct SingleAxisDataEvent **evPtr, float sample, uint64_t time) in baroAllocateEvt() argument 202 ev->samples[0].fdata = sample; in baroAllocateEvt() 525 union EmbeddedDataPoint sample; in handleCommDoneEvt() local 622 sample.fdata = LPS22HB_CENTIGRADES((float)temp_val); in handleCommDoneEvt() 624 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_AMBIENT_TEMP), sample.vptr, NULL); in handleCommDoneEvt()
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 301 struct TripleAxisDataPoint *sample; in addSample() local 321 sample = &mSensor->ev->samples[mSensor->ev->samples[0].firstSample.numSamples++]; in addSample() 324 sample->deltaTime = time > mSensor->prev_time ? (time - mSensor->prev_time) : 0; in addSample() 328 sample->x = x; in addSample() 329 sample->y = y; in addSample() 330 sample->z = z; in addSample()
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 1996 struct TripleAxisDataPoint *sample; local 2165 sample = &mSensor->data_evt-> 2169 sample->x = accel_offset[0]; 2170 sample->y = accel_offset[1]; 2171 sample->z = accel_offset[2]; 2199 sample = &mSensor->data_evt-> 2203 magCalGetBias(&mTask.moc, &sample->x, &sample->y, &sample->z); 2266 sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0] 2269 sample->x = gyro_offset[0]; 2270 sample->y = gyro_offset[1]; [all …]
|
/device/google/contexthub/firmware/os/drivers/st_hts221/ |
D | hts221.c | 393 union EmbeddedDataPoint sample; in handleCommDoneEvt() local 442 sample.fdata = hts221_humidity_percent(humidity_val); in handleCommDoneEvt() 443 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_HUMIDITY), sample.vptr, NULL); in handleCommDoneEvt()
|
/device/google/contexthub/firmware/os/drivers/window_orientation/ |
D | window_orientation.c | 613 union EmbeddedDataPoint sample; in windowOrientationHandleEvent() local 629 sample.idata = mTask.proposed_rotation; in windowOrientationHandleEvent() 630 if (!osEnqueueEvt(EVT_SENSOR_WIN_ORIENTATION_DATA_RDY, sample.vptr, NULL)) { in windowOrientationHandleEvent()
|
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/ |
D | synaptics_s3708.c | 432 union EmbeddedDataPoint sample; in processI2cResponse() local 482 sample.idata = 1; in processI2cResponse() 483 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_DOUBLE_TOUCH), sample.vptr, NULL); in processI2cResponse()
|
/device/generic/goldfish/fvpbase/ |
D | fvp.mk | 62 android.hardware.neuralnetworks@1.3-service-sample-all \ 63 android.hardware.neuralnetworks@1.3-service-sample-limited \
|
/device/generic/goldfish/sepolicy/vendor/ |
D | file_contexts | 54 /vendor/bin/hw/android\.hardware\.neuralnetworks-shim-service-sample u:object_r:hal_neuralnetwork… 55 /vendor/bin/hw/android\.hardware\.neuralnetworks-service-sample-.* u:object_r:hal_neuralnetworks_…
|
/device/sample/products/ |
D | backup_overlay.mk | 22 PRODUCT_PACKAGE_OVERLAYS := device/sample/overlays/backup
|