Searched refs:memorySize (Results 1 – 2 of 2) sorted by relevance
475 size_t memorySize = sizeof(chreSensorDataHeader); in allocateAndPopulateEvent() local478 memorySize += sensorIndex.SampleCount * in allocateAndPopulateEvent()481 static_cast<chreSensorThreeAxisData *>(memoryAlloc(memorySize)); in allocateAndPopulateEvent()489 memorySize += sensorIndex.SampleCount * in allocateAndPopulateEvent()492 static_cast<chreSensorFloatData *>(memoryAlloc(memorySize)); in allocateAndPopulateEvent()500 memorySize += sensorIndex.SampleCount * in allocateAndPopulateEvent()503 static_cast<chreSensorByteData *>(memoryAlloc(memorySize)); in allocateAndPopulateEvent()511 memorySize += sensorIndex.SampleCount * in allocateAndPopulateEvent()514 static_cast<chreSensorOccurrenceData *>(memoryAlloc(memorySize)); in allocateAndPopulateEvent()
1389 size_t memorySize = (sampleType == SensorSampleType::Unknown) in allocateEvent() local1391 void *event = (memorySize == 0) ? nullptr : memoryAlloc(memorySize); in allocateEvent()1393 if (event == nullptr && memorySize != 0) { in allocateEvent()