/device/google/contexthub/util/nanotool/ |
D | sensorevent.cpp | 133 const SensorSampleHeader *sample; in GetSampleTime() local 139 sample = GetSampleAtIndex(index); in GetSampleTime() 140 sample_time += sample->delta_time; in GetSampleTime() 204 const SingleAxisDataPoint *sample = in StringForSample() local 209 sample->fdata, GetSampleTimeStr(index).c_str()); in StringForSample() 221 const SingleAxisDataPoint *sample = in StringForSample() local 226 sample->idata, GetSampleTimeStr(index).c_str()); in StringForSample() 234 const TripleAxisDataPoint *sample = in StringForSample() local 246 sample->x, sample->y, sample->z, GetSampleTimeStr(index).c_str(), in StringForSample() 260 const CompressedTripleAxisDataPoint *sample = in StringForSample() local [all …]
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 332 …int64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, __attribute__((un… in processSample() argument 342 (float)(sample->idata & 0x7), 0.0, 0.0); in processSample() 346 initEv(&nev[cnt++], timestamp, type, sensor)->pressure = sample->fdata; in processSample() 349 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample() 352 initEv(&nev[cnt++], timestamp, type, sensor)->distance = sample->fdata; in processSample() 355 initEv(&nev[cnt++], timestamp, type, sensor)->light = sample->fdata; in processSample() 360 mLastStepCount = mStepCounterOffset + sample->idata; in processSample() 371 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample() 375 sendFolioEvent(sample->idata); in processSample() 379 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample() [all …]
|
D | hubconnection.h | 210 …int64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, bool highAccuracy… 211 …_t timestamp, uint32_t type, uint32_t sensor, struct RawThreeAxisSample *sample, bool highAccuracy… 212 …t64_t timestamp, uint32_t type, uint32_t sensor, struct ThreeAxisSample *sample, bool highAccuracy…
|
/device/google/contexthub/firmware/src/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/src/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 148 } __attribute__((packed)) sample; member 359 union EmbeddedDataPoint sample; in sendLastSampleProx() local 364 sample.fdata = (mData.proxState == PROX_STATE_NEAR) ? in sendLastSampleProx() 366 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() 484 union EmbeddedDataPoint sample; in handle_i2c_event() local 555 (mData.txrxBuf.sample.status & ALS_VALID_BIT)) { in handle_i2c_event() 557 sample.fdata = getLuxFromAlsData(mData.txrxBuf.sample.als[0], in handle_i2c_event() 558 mData.txrxBuf.sample.als[1]); in handle_i2c_event() 559 if (mData.lastAlsSample.idata != sample.idata) { in handle_i2c_event() 560 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL); in handle_i2c_event() [all …]
|
/device/google/contexthub/firmware/src/drivers/tilt_detection/ |
D | tilt_detection.c | 84 struct TripleAxisDataPoint *sample; in algoUpdate() local 88 sample = &ev->samples[i]; in algoUpdate() 90 sample_ts += sample->deltaTime; in algoUpdate() 96 state->this_batch_sample_sum[0] += sample->x; in algoUpdate() 97 state->this_batch_sample_sum[1] += sample->y; in algoUpdate() 98 state->this_batch_sample_sum[2] += sample->z; in algoUpdate() 260 union EmbeddedDataPoint sample; in tiltDetectionHandleEvent() local 261 sample.idata = 1; in tiltDetectionHandleEvent() 262 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_TILT), sample.vptr, NULL); in tiltDetectionHandleEvent()
|
/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 | backup_overlay.mk | 22 PRODUCT_PACKAGE_OVERLAYS := device/sample/overlays/backup
|
D | location_overlay.mk | 22 PRODUCT_PACKAGE_OVERLAYS := device/sample/overlays/location
|
/device/google/contexthub/firmware/src/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 235 union EmbeddedDataPoint sample; in proxIsr() local 247 … sample.fdata = (pinState) ? ROHM_RPR0521_REPORT_FAR_VALUE : ROHM_RPR0521_REPORT_NEAR_VALUE; in proxIsr() 250 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in proxIsr() 431 union EmbeddedDataPoint sample; in sendLastSampleProx() local 436 …sample.fdata = (mTask.proxState == PROX_STATE_NEAR) ? ROHM_RPR0521_REPORT_NEAR_VALUE : ROHM_RPR052… in sendLastSampleProx() 437 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() 499 union EmbeddedDataPoint sample; in handle_i2c_event() local 593 sample.fdata = getLuxFromAlsData(als0, als1); in handle_i2c_event() 594 if (mTask.lastAlsSample.idata != sample.idata) { in handle_i2c_event() 595 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_ALS), sample.vptr, NULL); in handle_i2c_event() [all …]
|
/device/google/contexthub/firmware/src/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 246 union EmbeddedDataPoint sample; in proxIsr() local 257 (void)sample; in proxIsr() 264 … sample.fdata = (pinState) ? AMS_TMD4903_REPORT_FAR_VALUE : AMS_TMD4903_REPORT_NEAR_VALUE; in proxIsr() 267 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL); in proxIsr() 545 union EmbeddedDataPoint sample; in sendLastSampleProx() local 550 …sample.fdata = (mTask.lastProxState == PROX_STATE_NEAR) ? AMS_TMD4903_REPORT_NEAR_VALUE : AMS_TMD4… in sendLastSampleProx() 551 result = osEnqueuePrivateEvt(sensorGetMyEventType(SENS_TYPE_PROX), sample.vptr, NULL, tid); in sendLastSampleProx() 606 union EmbeddedDataPoint sample; in handle_i2c_event() local 745 sample.fdata = getLuxFromAlsData(c, r, g, b); in handle_i2c_event() 748 sendCalibrationResultAls(SENSOR_APP_EVT_STATUS_SUCCESS, sample.fdata); in handle_i2c_event() [all …]
|
/device/google/contexthub/firmware/src/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/src/drivers/vsync/ |
D | vsync.c | 72 union EmbeddedDataPoint sample; in vsyncIsr() local 79 sample.idata = 1; in vsyncIsr() 80 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_VSYNC), sample.vptr, NULL); in vsyncIsr()
|
/device/google/contexthub/firmware/src/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 386 union EmbeddedDataPoint sample; in handleI2cEvent() local 474 sample.fdata = pressure_Pa * 0.01f; in handleI2cEvent() 475 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_BARO), sample.vptr, NULL); in handleI2cEvent() 480 sample.fdata = temp_centigrade; in handleI2cEvent() 481 osEnqueueEvt(sensorGetMyEventType(SENS_TYPE_TEMP), sample.vptr, NULL); in handleI2cEvent()
|
/device/moto/shamu/ |
D | aosp_shamu.mk | 21 PRODUCT_COPY_FILES := device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
/device/google/contexthub/firmware/src/drivers/orientation/ |
D | orientation.c | 285 struct TripleAxisDataPoint *sample; in addSample() local 297 sample = &mSensor->ev->samples[mSensor->ev->samples[0].firstSample.numSamples++]; in addSample() 300 sample->deltaTime = time > mSensor->prev_time ? (time - mSensor->prev_time) : 0; in addSample() 304 sample->x = x; in addSample() 305 sample->y = y; in addSample() 306 sample->z = z; in addSample()
|
/device/google/contexthub/firmware/src/drivers/window_orientation/ |
D | window_orientation.c | 545 union EmbeddedDataPoint sample; in windowOrientationHandleEvent() local 560 sample.idata = mTask.proposed_rotation; in windowOrientationHandleEvent() 561 osEnqueueEvt(EVT_SENSOR_WIN_ORIENTATION_DATA_RDY, sample.vptr, NULL); in windowOrientationHandleEvent()
|
/device/sample/apps/SampleEmailPolicy/ |
D | README | 15 This package contains sample code for building Email Policy packages. These are small Android
|
/device/sample/sdk_addon/ |
D | manifest.ini | 13 description=sample add-on
|
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 1745 struct TripleAxisDataPoint *sample; in parseRawData() local 1817 … sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; in parseRawData() 1819 magCalGetBias(&mTask.moc, &sample->x, &sample->y, &sample->z); in parseRawData() 1829 sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; in parseRawData() 1835 sample->deltaTime = delta_time; in parseRawData() 1839 sample->x = x; in parseRawData() 1840 sample->y = y; in parseRawData() 1841 sample->z = z; in parseRawData()
|