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 BatteryService::noteWakeupSensorEvent(scratch[index_wake_up_event].timestamp, in sendEvents()
396 mUid, scratch[index_wake_up_event].sensor); in sendEvents()
397 scratch[index_wake_up_event].flags |= WAKE_UP_SENSOR_EVENT_NEEDS_ACK; in sendEvents()
407 reinterpret_cast<ASensorEvent const*>(scratch), count); in sendEvents()
412 scratch[index_wake_up_event].flags &= ~WAKE_UP_SENSOR_EVENT_NEEDS_ACK; in sendEvents()
426 appendEventsToCacheLocked(scratch, count); in sendEvents()
482 void SensorService::SensorEventConnection::reAllocateCacheLocked(sensors_event_t const* scratch, in reAllocateCacheLocked() argument
489 memcpy(&eventCache_new[mCacheSize], scratch, count * sizeof(sensors_event_t)); in reAllocateCacheLocked()
647 sensors_event_t const* scratch, const int numEventsDropped) { in countFlushCompleteEventsLocked() argument
652 if (scratch[j].type == SENSOR_TYPE_META_DATA) { in countFlushCompleteEventsLocked()
653 if (mSensorInfo.count(scratch[j].meta_data.sensor) == 0) { in countFlushCompleteEventsLocked()
655 __func__, scratch[j].meta_data.sensor); in countFlushCompleteEventsLocked()
659 FlushInfo& flushInfo = mSensorInfo[scratch[j].meta_data.sensor]; in countFlushCompleteEventsLocked()
669 sensors_event_t const* scratch, const int count) { in findWakeUpSensorEventLocked() argument
671 if (mService->isWakeUpSensorEvent(scratch[i])) { in findWakeUpSensorEventLocked()