Lines Matching refs:scratch
292 sensors_event_t* scratch, in sendEvents() argument
300 if (scratch) { in sendEvents()
345 scratch[count++] = buffer[i]; in sendEvents()
351 scratch[count++] = buffer[i]; in sendEvents()
362 scratch = const_cast<sensors_event_t *>(buffer); in sendEvents()
366 scratch = sanitizedBuffer.get(); in sendEvents()
369 scratch[count++] = buffer[i++]; in sendEvents()
387 appendEventsToCacheLocked(scratch, count); in sendEvents()
393 index_wake_up_event = findWakeUpSensorEventLocked(scratch, count); in sendEvents()
395 scratch[index_wake_up_event].flags |= WAKE_UP_SENSOR_EVENT_NEEDS_ACK; in sendEvents()
405 reinterpret_cast<ASensorEvent const*>(scratch), count); in sendEvents()
410 scratch[index_wake_up_event].flags &= ~WAKE_UP_SENSOR_EVENT_NEEDS_ACK; in sendEvents()
424 appendEventsToCacheLocked(scratch, count); in sendEvents()
478 void SensorService::SensorEventConnection::reAllocateCacheLocked(sensors_event_t const* scratch, in reAllocateCacheLocked() argument
485 memcpy(&eventCache_new[mCacheSize], scratch, count * sizeof(sensors_event_t)); in reAllocateCacheLocked()
643 sensors_event_t const* scratch, const int numEventsDropped) { in countFlushCompleteEventsLocked() argument
648 if (scratch[j].type == SENSOR_TYPE_META_DATA) { in countFlushCompleteEventsLocked()
649 if (mSensorInfo.count(scratch[j].meta_data.sensor) == 0) { in countFlushCompleteEventsLocked()
651 __func__, scratch[j].meta_data.sensor); in countFlushCompleteEventsLocked()
655 FlushInfo& flushInfo = mSensorInfo[scratch[j].meta_data.sensor]; in countFlushCompleteEventsLocked()
665 sensors_event_t const* scratch, const int count) { in findWakeUpSensorEventLocked() argument
667 if (mService->isWakeUpSensorEvent(scratch[i])) { in findWakeUpSensorEventLocked()