/device/google/contexthub/firmware/src/ |
D | sensors.c | 73 uint64_t latency; member 261 static bool sensorCallFuncSetRate(struct Sensor* s, uint32_t rate, uint64_t latency) in sensorCallFuncSetRate() argument 264 INVOKE_AS_OWNER_AND_RETURN(LOCAL_APP_OPS(s)->sensorSetRate, rate, latency, s->callData); in sensorCallFuncSetRate() 271 evt->externalSetRateEvt.latency = latency; in sensorCallFuncSetRate() 418 if (smallestLatency > req->latency) in sensorCalcHwLatency() 419 smallestLatency = req->latency; in sensorCalcHwLatency() 587 …bool sensorAddRequestor(uint32_t sensorHandle, uint32_t clientTid, uint32_t rate, uint64_t latency) in sensorAddRequestor() argument 598 req->latency = latency; in sensorAddRequestor() 613 *latencyP = req->latency; in sensorGetCurRequestorRate() 631 req->latency = newLatency; in sensorAmendRequestor() [all …]
|
D | hostIntf.c | 72 uint64_t latency; member 81 uint64_t latency; member 696 mActiveSensorTable[j].latency = 0; in initSensors() 1108 if (mActiveSensorTable[i].latency > 0) { in hostIntfHandleEvent() 1110 …Table[i].firstTime && rtcTime >= mActiveSensorTable[i].firstTime + mActiveSensorTable[i].latency) { in hostIntfHandleEvent() 1124 … if (sensorRequestRateChange(mHostIntfTid, sensor->sensorHandle, cmd->rate, cmd->latency)) { in hostIntfHandleEvent() 1126 if (sensor->latency != cmd->latency) { in hostIntfHandleEvent() 1127 if (!sensor->latency) { in hostIntfHandleEvent() 1130 } else if (!cmd->latency) { in hostIntfHandleEvent() 1136 sensor->latency = cmd->latency; in hostIntfHandleEvent() [all …]
|
D | osApi.c | 146 uint64_t latency = (((uint64_t)latency_hi) << 32) + latency_lo; in osExpApiSensorReq() local 148 *retValP = sensorRequest(0, sensorHandle, rate, latency); in osExpApiSensorReq()
|
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 322 uint64_t latency; member 340 uint64_t latency; member 972 if (mTask.sensors[ACC].configed && mTask.sensors[ACC].latency != SENSOR_LATENCY_NODATA) { in configFifo() 980 if (mTask.sensors[GYR].configed && mTask.sensors[GYR].latency != SENSOR_LATENCY_NODATA) { in configFifo() 988 if (mTask.sensors[MAG].configed && mTask.sensors[MAG].latency != SENSOR_LATENCY_NODATA) { in configFifo() 1311 static bool accSetRate(uint32_t rate, uint64_t latency, void *cookie) in accSetRate() argument 1316 INFO_PRINT("accSetRate: rate=%ld, latency=%lld, state=%s\n", rate, latency, in accSetRate() 1343 mTask.sensors[ACC].latency = latency; in accSetRate() 1366 mTask.sensors[ACC].pConfig.latency = latency; in accSetRate() 1371 static bool gyrSetRate(uint32_t rate, uint64_t latency, void *cookie) in gyrSetRate() argument [all …]
|
/device/google/contexthub/firmware/inc/ |
D | sensors.h | 133 uint64_t latency; member 159 bool (*sensorSetRate)(uint32_t rate, uint64_t latency, void *); 259 bool sensorRequest(uint32_t clientTid, uint32_t sensorHandle, uint32_t rate, uint64_t latency);
|
D | syscallDo.h | 180 …ne bool eOsSensorRequest(uint32_t clientId, uint32_t sensorHandle, uint32_t rate, uint64_t latency) in eOsSensorRequest() argument 182 uint32_t latency_lo = latency; in eOsSensorRequest() 183 uint32_t latency_hi = latency >> 32; in eOsSensorRequest()
|
/device/google/contexthub/inc/ |
D | chre_sensor.h | 623 uint64_t latency; member 795 uint64_t interval, uint64_t latency);
|
/device/google/contexthub/firmware/src/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 350 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 355 DEBUG_PRINT("sensorRateAls: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateAls() 357 return sensorSignalInternalEvt(mTask.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls() 400 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument 405 DEBUG_PRINT("sensorRateProx: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateProx() 407 return sensorSignalInternalEvt(mTask.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
|
/device/google/contexthub/firmware/src/drivers/vsync/ |
D | vsync.c | 134 static bool vsyncSetRate(uint32_t rate, uint64_t latency, void *cookie) in vsyncSetRate() argument 137 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in vsyncSetRate()
|
/device/google/contexthub/firmware/src/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 282 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 287 osLog(LOG_INFO, DRIVER_NAME "sensorRateAls: %ld/%lld\n", rate, latency); in sensorRateAls() 293 sensorSignalInternalEvt(mData.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls() 337 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument 342 osLog(LOG_INFO, DRIVER_NAME "sensorRateProx: %ld/%lld\n", rate, latency); in sensorRateProx() 348 sensorSignalInternalEvt(mData.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
|
/device/google/contexthub/util/nanoapp_cmd/ |
D | nanoapp_cmd.c | 53 uint64_t latency; member 346 mConfigCmd.latency = atoi(argv[5]) * 1000ull; in main() 358 mConfigCmd.latency = 0; in main() 371 mConfigCmd.latency = 0; in main()
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 590 mSensorState[i].latency); in restoreSensorState() 966 if (mSensorState[alt].latency < mSensorState[handle].latency) in initConfigCmd() 967 cmd->latency = mSensorState[alt].latency; in initConfigCmd() 969 cmd->latency = mSensorState[handle].latency; in initConfigCmd() 973 cmd->latency = mSensorState[alt].latency; in initConfigCmd() 977 cmd->latency = mSensorState[handle].latency; in initConfigCmd() 1050 mSensorState[handle].latency = max_report_latency_ns; in queueBatch()
|
D | hubconnection.h | 103 uint64_t latency; member 118 uint64_t latency; member
|
/device/google/contexthub/firmware/src/drivers/hall/ |
D | hall.c | 162 static bool hallSetRate(uint32_t rate, uint64_t latency, void *cookie) in hallSetRate() argument 173 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in hallSetRate()
|
/device/google/contexthub/firmware/src/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 217 static bool sensorRateBaro(uint32_t rate, uint64_t latency, void *cookie) in sensorRateBaro() argument 222 return sensorSignalInternalEvt(mTask.baroHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateBaro() 286 static bool sensorRateTemp(uint32_t rate, uint64_t latency, void *cookie) in sensorRateTemp() argument 291 sensorSignalInternalEvt(mTask.tempHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateTemp()
|
/device/google/contexthub/firmware/src/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 398 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 403 DEBUG_PRINT("sensorRateAls: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateAls() 405 return sensorSignalInternalEvt(mTask.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls() 485 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument 490 DEBUG_PRINT("sensorRateProx: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateProx() 492 return sensorSignalInternalEvt(mTask.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
|
/device/google/contexthub/firmware/src/drivers/orientation/ |
D | orientation.c | 90 uint64_t latency; member 574 static bool fusionSetRate(uint32_t rate, uint64_t latency, void *cookie) in fusionSetRate() argument 583 mSensor->latency = latency; in fusionSetRate() 619 mTask.raw_sensor_latency = mTask.sensors[i].latency < mTask.raw_sensor_latency ? in fusionSetRate() 620 mTask.sensors[i].latency : mTask.raw_sensor_latency; in fusionSetRate() 631 sensorSignalInternalEvt(mSensor->handle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in fusionSetRate()
|
/device/google/contexthub/firmware/src/drivers/hall_twopole/ |
D | hall_twopole.c | 183 static bool hallSetRate(uint32_t rate, uint64_t latency, void *cookie) in hallSetRate() argument 189 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in hallSetRate()
|
/device/google/contexthub/firmware/src/drivers/tilt_detection/ |
D | tilt_detection.c | 203 static bool tiltDetectionSetRate(uint32_t rate, uint64_t latency, void *cookie) in tiltDetectionSetRate() argument 206 latency); in tiltDetectionSetRate()
|
/device/asus/fugu/libaudio/ |
D | AudioStreamOut.h | 39 uint32_t latency() const;
|
/device/google/contexthub/util/nanotool/ |
D | nanomessage.h | 181 uint64_t latency; member
|
D | nanomessage.cpp | 215 config.latency, in ToString()
|
D | contexthub.cpp | 188 req.config.latency = spec.latency_ns; in EnableSensor()
|
/device/google/contexthub/firmware/src/drivers/window_orientation/ |
D | window_orientation.c | 507 static bool windowOrientationSetRate(uint32_t rate, uint64_t latency, void *cookie) in windowOrientationSetRate() argument 525 sensorSignalInternalEvt(mTask.handle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in windowOrientationSetRate()
|
/device/htc/flounder/audio/visualizer/ |
D | nv_offload_visualizer.c | 105 uint32_t latency; member 521 visu_ctxt->latency = 0; in visualizer_reset() 620 ALOGV("%s set latency = %d", __func__, visu_ctxt->latency); in visualizer_set_parameter() 751 int32_t latency_ms = visu_ctxt->latency; in visualizer_command()
|