Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 25 of 153) sorted by relevance

1234567

/device/google/contexthub/firmware/os/algos/calibration/online_calibration/gyroscope/gyro_offset_over_temp_cal/
Dgyro_offset_over_temp_cal.cc37 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/firmware/os/algos/calibration/online_calibration/accelerometer/accel_offset_cal/
Daccel_offset_cal.cc31 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/
Dmag_diverse_cal.cc35 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/util/nanotool/
Dsensorevent.cpp138 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/
Dhall.c66 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/nano_calibration/
Dnano_calibration.cc124 SensorData sample; in HandleSensorSamples() local
127 sample.type = SensorType::kAccelerometerMps2; in HandleSensorSamples()
130 sample.type = SensorType::kGyroscopeRps; in HandleSensorSamples()
133 sample.type = SensorType::kMagnetometerUt; in HandleSensorSamples()
146 sample.timestamp_nanos = header.baseTimestamp; in HandleSensorSamples()
148 sample.timestamp_nanos += data[i].timestampDelta; in HandleSensorSamples()
149 memcpy(sample.data, data[i].v, sizeof(sample.data)); in HandleSensorSamples()
150 ProcessSample(sample); in HandleSensorSamples()
171 SensorData sample; in HandleTemperatureSamples() local
172 sample.type = SensorType::kTemperatureCelsius; in HandleTemperatureSamples()
[all …]
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c158 } __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/sensorhal/
Dhubconnection.cpp599 …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 …]
/device/sample/products/
Dsample_addon.mk9 …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)
Dlocation_overlay.mk22 PRODUCT_PACKAGE_OVERLAYS := device/sample/overlays/location
Dbackup_overlay.mk22 PRODUCT_PACKAGE_OVERLAYS := device/sample/overlays/backup
/device/google/contexthub/firmware/os/drivers/tilt_detection/
Dtilt_detection.c86 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/
Dams_tmd4903.c321 union EmbeddedDataPoint sample; in proxIsr() local
332 (void)sample; in proxIsr()
339sample.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_twopole/
Dhall_twopole.c76 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/rohm_rpr0521/
Drohm_rpr0521.c262 union EmbeddedDataPoint sample; in proxIsr() local
274sample.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()
504 union EmbeddedDataPoint sample; in sendLastSampleProx() local
509sample.fdata = (mTask.proxState == PROX_STATE_NEAR) ? ROHM_RPR0521_REPORT_NEAR_VALUE : ROHM_RPR052… in sendLastSampleProx()
510 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx()
572 union EmbeddedDataPoint sample; in handle_i2c_event() local
674 sample.fdata = getLuxFromAlsData(als0, als1); in handle_i2c_event()
675 if (mTask.lastAlsSample.idata != sample.idata) { in handle_i2c_event()
676 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL); in handle_i2c_event()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/
DREADME13 docstring.py -- sample source file containing only a module docstring.
19 simple.py -- sample source containing a "short form" definition.
21 source.py -- sample source code used to demonstrate ability to
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
DREADME89 cc sample.c -L/usr/local/lib -lonig
99 sample/simple.c example of the minimum (Oniguruma API)
100 sample/names.c example of the named group callback.
101 sample/encode.c example of some encodings.
102 sample/listcap.c example of the capture history.
103 sample/posix.c POSIX API sample.
104 sample/sql.c example of the variable meta characters.
108 sample/syntax.c Perl, Java and ASIS syntax test.
109 sample/crnl.c --enable-crnl-as-line-terminator test
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_random.py66 s = self.gen.sample(population, k)
71 self.assertEqual(self.gen.sample([], 0), []) # test edge case N==k==0
85 perms[tuple(self.gen.sample(pop, k))] = None
93 self.gen.sample(set(range(20)), 2)
94 self.gen.sample(range(20), 2)
95 self.gen.sample(xrange(20), 2)
96 self.gen.sample(str('abcdefghijklmnopqrst'), 2)
97 self.gen.sample(tuple('abcdefghijklmnopqrst'), 2)
100 self.gen.sample(dict.fromkeys('abcdefghijklmnopqrst'), 2)
104 self.gen.sample(a, 3)
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/HiiResourcesSampleDxe/
DHiiResourcesSample.uni2 // This is a sample HII resource driver.
20 #string STR_MODULE_ABSTRACT #language en-US "A sample HII resource driver"
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcsv.py176 def sniff(self, sample, delimiters=None): argument
182 self._guess_quote_and_delimiter(sample, delimiters)
184 delimiter, skipinitialspace = self._guess_delimiter(sample,
387 def has_header(self, sample): argument
397 rdr = reader(StringIO(sample), self.sniff(sample))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcsv.py172 def sniff(self, sample, delimiters=None): argument
178 self._guess_quote_and_delimiter(sample, delimiters)
180 delimiter, skipinitialspace = self._guess_delimiter(sample,
382 def has_header(self, sample): argument
392 rdr = reader(StringIO(sample), self.sniff(sample))
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
Disl29034.c315 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/linaro/bootloader/edk2/OptionRomPkg/CirrusLogic5430Dxe/
DCirrusLogic5430Dxe.inf4 # Cirrus Logic 5430 Controller Driver.This driver is a sample implementation
6 # This driver is only usable in the EFI pre-boot environment. This sample is
8 # Protocol is not implemented in this sample. A fully compliant EFI UGA driver
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/DriverSampleDxe/
DDriverSample.uni2 // This is a sample HII driver.
20 #string STR_MODULE_ABSTRACT #language en-US "A sample HII driver"
/device/linaro/bootloader/edk2/MdeModulePkg/Application/HelloWorld/
DHelloWorld.uni4 // This is a sample shell application that will print "UEFI Hello World!" to the
23 #string STR_MODULE_DESCRIPTION #language en-US "This is a sample shell application that wi…

1234567