Home
last modified time | relevance | path

Searched refs:memorySize (Results 1 – 2 of 2) sorted by relevance

/system/chre/platform/slpi/smgr/
Dplatform_sensor.cc475 size_t memorySize = sizeof(chreSensorDataHeader); in allocateAndPopulateEvent() local
478 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()
/system/chre/platform/slpi/see/
Dsee_helper.cc1389 size_t memorySize = (sampleType == SensorSampleType::Unknown) in allocateEvent() local
1391 void *event = (memorySize == 0) ? nullptr : memoryAlloc(memorySize); in allocateEvent()
1393 if (event == nullptr && memorySize != 0) { in allocateEvent()