HomeSort by relevance Sort by last modified time
    Searched refs:accelHandle (Results 1 - 3 of 3) sorted by null

  /device/google/contexthub/firmware/src/drivers/window_orientation/
window_orientation.c 86 uint32_t accelHandle;
496 if (on == false && mTask.accelHandle != 0) {
497 sensorRelease(mTask.tid, mTask.accelHandle);
498 mTask.accelHandle = 0;
511 if (mTask.accelHandle == 0) {
512 for (i = 0; sensorFind(SENS_TYPE_ACCEL, i, &mTask.accelHandle) != NULL; i++) {
513 if (sensorRequest(mTask.tid, mTask.accelHandle, ACCEL_MIN_RATE_HZ, ACCEL_MAX_LATENCY_NS)) {
524 if (mTask.accelHandle != 0)
  /device/google/contexthub/firmware/src/drivers/tilt_detection/
tilt_detection.c 59 uint32_t accelHandle;
165 sensorRequest(mTask.taskId, mTask.accelHandle, ACCEL_MIN_RATE,
169 sensorRelease(mTask.taskId, mTask.accelHandle);
234 sensorFind(SENS_TYPE_ACCEL, 0, &mTask.accelHandle);
  /device/google/contexthub/firmware/src/drivers/orientation/
orientation.c 100 uint32_t accelHandle;
520 if (mTask.accelHandle == 0) {
525 for (i = 0; sensorFind(SENS_TYPE_ACCEL, i, &mTask.accelHandle) != NULL; i++) {
526 if (sensorRequest(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC], mTask.raw_sensor_latency)) {
532 sensorRequestRateChange(mTask.tid, mTask.accelHandle, mTask.raw_sensor_rate[ACC], mTask.raw_sensor_latency);
651 if (mTask.accel_client_cnt == 0 && mTask.accelHandle != 0) {
652 sensorRelease(mTask.tid, mTask.accelHandle);
653 mTask.accelHandle = 0;

Completed in 120 milliseconds