/device/google/contexthub/firmware/os/algos/calibration/online_calibration/gyroscope/gyro_offset_over_temp_cal/ |
D | gyro_offset_over_temp_cal.cc | 35 const SensorData& sample) { in SetMeasurement() argument 37 switch (sample.type) { in SetMeasurement() 39 gyroCalUpdateAccel(&gyro_cal_, sample.timestamp_nanos, in SetMeasurement() 40 sample.data[SensorIndex::kXAxis], in SetMeasurement() 41 sample.data[SensorIndex::kYAxis], in SetMeasurement() 42 sample.data[SensorIndex::kZAxis]); // [m/sec^2] in SetMeasurement() 46 gyroCalUpdateGyro(&gyro_cal_, sample.timestamp_nanos, in SetMeasurement() 47 sample.data[SensorIndex::kXAxis], in SetMeasurement() 48 sample.data[SensorIndex::kYAxis], in SetMeasurement() 49 sample.data[SensorIndex::kZAxis], // [rad/sec] in SetMeasurement() [all …]
|
D | gyro_offset_over_temp_cal.h | 65 CalibrationTypeFlags SetMeasurement(const SensorData& sample) final;
|
/device/google/contexthub/firmware/os/algos/calibration/online_calibration/accelerometer/accel_offset_cal/ |
D | accel_offset_cal.cc | 29 CalibrationTypeFlags AccelOffsetCal::SetMeasurement(const SensorData& sample) { in SetMeasurement() argument 31 switch (sample.type) { in SetMeasurement() 33 accelCalRun(&accel_cal_, sample.timestamp_nanos, in SetMeasurement() 34 sample.data[SensorIndex::kXAxis], in SetMeasurement() 35 sample.data[SensorIndex::kYAxis], in SetMeasurement() 36 sample.data[SensorIndex::kZAxis], // [m/sec^2] in SetMeasurement() 46 temperature_celsius_ = sample.data[SensorIndex::kSingleAxis]; in SetMeasurement() 62 cal_data_.cal_update_time_nanos = sample.timestamp_nanos; in SetMeasurement()
|
D | accel_offset_cal.h | 59 CalibrationTypeFlags SetMeasurement(const SensorData& sample) final;
|
/device/google/contexthub/firmware/os/algos/calibration/online_calibration/magnetometer/mag_diverse_cal/ |
D | mag_diverse_cal.cc | 34 CalibrationTypeFlags MagDiverseCal::SetMeasurement(const SensorData& sample) { in SetMeasurement() argument 37 switch (sample.type) { in SetMeasurement() 40 &mag_cal_, NanoToMicroseconds(sample.timestamp_nanos), in SetMeasurement() 41 sample.data[SensorIndex::kXAxis], sample.data[SensorIndex::kYAxis], in SetMeasurement() 42 sample.data[SensorIndex::kZAxis]); in SetMeasurement() 46 temperature_celsius_ = sample.data[SensorIndex::kSingleAxis]; in SetMeasurement() 62 cal_data_.cal_update_time_nanos = sample.timestamp_nanos; in SetMeasurement()
|
D | mag_diverse_cal.h | 63 CalibrationTypeFlags SetMeasurement(const SensorData& sample) final;
|
/device/google/contexthub/firmware/os/algos/calibration/nano_calibration/ |
D | nano_calibration.cc | 98 SensorData sample; in HandleSensorSamples() local 101 sample.type = SensorType::kAccelerometerMps2; in HandleSensorSamples() 104 sample.type = SensorType::kGyroscopeRps; in HandleSensorSamples() 107 sample.type = SensorType::kMagnetometerUt; in HandleSensorSamples() 120 sample.timestamp_nanos = header.baseTimestamp; in HandleSensorSamples() 122 sample.timestamp_nanos += data[i].timestampDelta; in HandleSensorSamples() 123 memcpy(sample.data, data[i].v, sizeof(sample.data)); in HandleSensorSamples() 124 ProcessSample(sample); in HandleSensorSamples() 138 SensorData sample; in HandleTemperatureSamples() local 139 sample.type = SensorType::kTemperatureCelsius; in HandleTemperatureSamples() [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/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/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/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/sample/products/ |
D | sample_addon.mk | 9 …device/sample/frameworks/PlatformLibrary/com.example.android.platform_library.xml:system/etc/permi… 17 device/sample/sdk_addon/manifest.ini:manifest.ini \ 18 device/sample/sdk_addon/hardware.ini:hardware.ini \ 19 $(call find-copy-subdir-files,*,device/sample/skins/WVGAMedDpi,skins/WVGAMedDpi)
|
D | location_overlay.mk | 22 PRODUCT_PACKAGE_OVERLAYS := device/sample/overlays/location
|
D | backup_overlay.mk | 22 PRODUCT_PACKAGE_OVERLAYS := device/sample/overlays/backup
|
/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/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/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/generic/common/mgsi/ |
D | mgsi_product.mk | 38 device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
|
/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/algos/calibration/online_calibration/common_data/ |
D | online_calibration.h | 63 virtual CalibrationTypeFlags SetMeasurement(const SensorData& sample) = 0;
|
/device/generic/goldfish/ |
D | vendor.mk | 86 android.hardware.neuralnetworks@1.3-service-sample-all \ 87 android.hardware.neuralnetworks@1.3-service-sample-float-fast \ 88 android.hardware.neuralnetworks@1.3-service-sample-float-slow \ 89 android.hardware.neuralnetworks@1.3-service-sample-minimal \ 90 android.hardware.neuralnetworks@1.3-service-sample-quant
|