Lines Matching refs:log

251 static void qpTestLog_flushFile (qpTestLog* log)  in qpTestLog_flushFile()  argument
253 DE_ASSERT(log && log->outputFile); in qpTestLog_flushFile()
254 fflush(log->outputFile); in qpTestLog_flushFile()
257 FlushFileBuffers((HANDLE)_get_osfhandle(_fileno(log->outputFile))); in qpTestLog_flushFile()
292 static deBool beginSession (qpTestLog* log) in beginSession() argument
294 DE_ASSERT(log && !log->isSessionOpen); in beginSession()
297 fprintf(log->outputFile, "#sessionInfo releaseName %s\n", qpGetReleaseName()); in beginSession()
298 fprintf(log->outputFile, "#sessionInfo releaseId 0x%08x\n", qpGetReleaseId()); in beginSession()
299 fprintf(log->outputFile, "#sessionInfo targetName \"%s\"\n", qpGetTargetName()); in beginSession()
302 fprintf(log->outputFile, "#beginSession\n"); in beginSession()
303 qpTestLog_flushFile(log); in beginSession()
305 log->isSessionOpen = DE_TRUE; in beginSession()
310 static deBool endSession (qpTestLog* log) in endSession() argument
312 DE_ASSERT(log && log->isSessionOpen); in endSession()
315 qpXmlWriter_flush(log->writer); in endSession()
318 fprintf(log->outputFile, "\n#endSession\n"); in endSession()
319 qpTestLog_flushFile(log); in endSession()
321 log->isSessionOpen = DE_FALSE; in endSession()
333 qpTestLog* log = (qpTestLog*)deCalloc(sizeof(qpTestLog)); in qpTestLog_createFileLog() local
334 if (!log) in qpTestLog_createFileLog()
340 ContainerStack_reset(&log->containerStack); in qpTestLog_createFileLog()
344 log->outputFile = fopen(fileName, "wb"); in qpTestLog_createFileLog()
345 if (!log->outputFile) in qpTestLog_createFileLog()
348 qpTestLog_destroy(log); in qpTestLog_createFileLog()
352 log->flags = flags; in qpTestLog_createFileLog()
353 log->writer = qpXmlWriter_createFileWriter(log->outputFile, 0, !(flags & QP_TEST_LOG_NO_FLUSH)); in qpTestLog_createFileLog()
354 log->lock = deMutex_create(DE_NULL); in qpTestLog_createFileLog()
355 log->isSessionOpen = DE_FALSE; in qpTestLog_createFileLog()
356 log->isCaseOpen = DE_FALSE; in qpTestLog_createFileLog()
358 if (!log->writer) in qpTestLog_createFileLog()
361 qpTestLog_destroy(log); in qpTestLog_createFileLog()
365 if (!log->lock) in qpTestLog_createFileLog()
368 qpTestLog_destroy(log); in qpTestLog_createFileLog()
372 beginSession(log); in qpTestLog_createFileLog()
374 return log; in qpTestLog_createFileLog()
381 void qpTestLog_destroy (qpTestLog* log) in qpTestLog_destroy() argument
383 DE_ASSERT(log); in qpTestLog_destroy()
385 if (log->isSessionOpen) in qpTestLog_destroy()
386 endSession(log); in qpTestLog_destroy()
388 if (log->writer) in qpTestLog_destroy()
389 qpXmlWriter_destroy(log->writer); in qpTestLog_destroy()
391 if (log->outputFile) in qpTestLog_destroy()
392 fclose(log->outputFile); in qpTestLog_destroy()
394 if (log->lock) in qpTestLog_destroy()
395 deMutex_destroy(log->lock); in qpTestLog_destroy()
397 deFree(log); in qpTestLog_destroy()
407 deBool qpTestLog_startCase (qpTestLog* log, const char* testCasePath, qpTestCaseType testCaseType) in qpTestLog_startCase() argument
413 DE_ASSERT(log && testCasePath && (testCasePath[0] != 0)); in qpTestLog_startCase()
414 deMutex_lock(log->lock); in qpTestLog_startCase()
416 DE_ASSERT(!log->isCaseOpen); in qpTestLog_startCase()
417 DE_ASSERT(ContainerStack_isEmpty(&log->containerStack)); in qpTestLog_startCase()
420 qpXmlWriter_flush(log->writer); in qpTestLog_startCase()
421 fprintf(log->outputFile, "\n#beginTestCaseResult %s\n", testCasePath); in qpTestLog_startCase()
422 if (!(log->flags & QP_TEST_LOG_NO_FLUSH)) in qpTestLog_startCase()
423 qpTestLog_flushFile(log); in qpTestLog_startCase()
425 log->isCaseOpen = DE_TRUE; in qpTestLog_startCase()
432 if (!qpXmlWriter_startDocument(log->writer) || in qpTestLog_startCase()
433 !qpXmlWriter_startElement(log->writer, "TestCaseResult", numResultAttribs, resultAttribs)) in qpTestLog_startCase()
436 deMutex_unlock(log->lock); in qpTestLog_startCase()
440 deMutex_unlock(log->lock); in qpTestLog_startCase()
451 deBool qpTestLog_endCase (qpTestLog* log, qpTestResult result, const char* resultDetails) in qpTestLog_endCase() argument
456 DE_ASSERT(log && log->isCaseOpen); in qpTestLog_endCase()
457 DE_ASSERT(ContainerStack_isEmpty(&log->containerStack)); in qpTestLog_endCase()
458 deMutex_lock(log->lock); in qpTestLog_endCase()
463 if (!qpXmlWriter_startElement(log->writer, "Result", 1, &statusAttrib) || in qpTestLog_endCase()
464 (resultDetails && !qpXmlWriter_writeString(log->writer, resultDetails)) || in qpTestLog_endCase()
465 !qpXmlWriter_endElement(log->writer, "Result") || in qpTestLog_endCase()
466 !qpXmlWriter_endElement(log->writer, "TestCaseResult") || in qpTestLog_endCase()
467 !qpXmlWriter_endDocument(log->writer)) /* Close any XML elements still open */ in qpTestLog_endCase()
470 deMutex_unlock(log->lock); in qpTestLog_endCase()
475 qpXmlWriter_flush(log->writer); in qpTestLog_endCase()
476 fprintf(log->outputFile, "\n#endTestCaseResult\n"); in qpTestLog_endCase()
477 if (!(log->flags & QP_TEST_LOG_NO_FLUSH)) in qpTestLog_endCase()
478 qpTestLog_flushFile(log); in qpTestLog_endCase()
480 log->isCaseOpen = DE_FALSE; in qpTestLog_endCase()
482 deMutex_unlock(log->lock); in qpTestLog_endCase()
492 deBool qpTestLog_terminateCase (qpTestLog* log, qpTestResult result) in qpTestLog_terminateCase() argument
496 DE_ASSERT(log); in qpTestLog_terminateCase()
499 deMutex_lock(log->lock); in qpTestLog_terminateCase()
501 if (!log->isCaseOpen) in qpTestLog_terminateCase()
503 deMutex_unlock(log->lock); in qpTestLog_terminateCase()
508 qpXmlWriter_flush(log->writer); in qpTestLog_terminateCase()
509 fprintf(log->outputFile, "\n#terminateTestCaseResult %s\n", resultStr); in qpTestLog_terminateCase()
510 qpTestLog_flushFile(log); in qpTestLog_terminateCase()
512 log->isCaseOpen = DE_FALSE; in qpTestLog_terminateCase()
515 ContainerStack_reset(&log->containerStack); in qpTestLog_terminateCase()
518 deMutex_unlock(log->lock); in qpTestLog_terminateCase()
522 static deBool qpTestLog_writeKeyValuePair (qpTestLog* log, const char* elementName, const char* nam… in qpTestLog_writeKeyValuePair() argument
528 DE_ASSERT(log && elementName && text); in qpTestLog_writeKeyValuePair()
529 deMutex_lock(log->lock); in qpTestLog_writeKeyValuePair()
537 if (!qpXmlWriter_startElement(log->writer, elementName, numAttribs, attribs) || in qpTestLog_writeKeyValuePair()
538 !qpXmlWriter_writeString(log->writer, text) || in qpTestLog_writeKeyValuePair()
539 !qpXmlWriter_endElement(log->writer, elementName)) in qpTestLog_writeKeyValuePair()
542 deMutex_unlock(log->lock); in qpTestLog_writeKeyValuePair()
546 deMutex_unlock(log->lock); in qpTestLog_writeKeyValuePair()
557 deBool qpTestLog_writeMessage (qpTestLog* log, const char* format, ...) in qpTestLog_writeMessage() argument
572 …return qpTestLog_writeKeyValuePair(log, "Text", DE_NULL, DE_NULL, DE_NULL, QP_KEY_TAG_LAST, buffer… in qpTestLog_writeMessage()
584 deBool qpTestLog_writeText (qpTestLog* log, const char* name, const char* description, qpKeyValueTa… in qpTestLog_writeText() argument
587 return qpTestLog_writeKeyValuePair(log, "Text", name, description, DE_NULL, tag, text); in qpTestLog_writeText()
599 deBool qpTestLog_writeInteger (qpTestLog* log, const char* name, const char* description, const cha… in qpTestLog_writeInteger() argument
607 return qpTestLog_writeKeyValuePair(log, "Number", name, description, unit, tag, tmpString); in qpTestLog_writeInteger()
619 deBool qpTestLog_writeFloat (qpTestLog* log, const char* name, const char* description, const char*… in qpTestLog_writeFloat() argument
627 return qpTestLog_writeKeyValuePair(log, "Number", name, description, unit, tag, tmpString); in qpTestLog_writeFloat()
770 deBool qpTestLog_startImageSet (qpTestLog* log, const char* name, const char* description) in qpTestLog_startImageSet() argument
775 DE_ASSERT(log && name); in qpTestLog_startImageSet()
776 deMutex_lock(log->lock); in qpTestLog_startImageSet()
783 if (!qpXmlWriter_startElement(log->writer, "ImageSet", numAttribs, attribs)) in qpTestLog_startImageSet()
786 deMutex_unlock(log->lock); in qpTestLog_startImageSet()
790 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_IMAGESET)); in qpTestLog_startImageSet()
792 deMutex_unlock(log->lock); in qpTestLog_startImageSet()
801 deBool qpTestLog_endImageSet (qpTestLog* log) in qpTestLog_endImageSet() argument
803 DE_ASSERT(log); in qpTestLog_endImageSet()
804 deMutex_lock(log->lock); in qpTestLog_endImageSet()
807 if (!qpXmlWriter_endElement(log->writer, "ImageSet")) in qpTestLog_endImageSet()
810 deMutex_unlock(log->lock); in qpTestLog_endImageSet()
814 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_IMAGESET); in qpTestLog_endImageSet()
816 deMutex_unlock(log->lock); in qpTestLog_endImageSet()
834 qpTestLog* log, in qpTestLog_writeImage() argument
852 DE_ASSERT(log && name); in qpTestLog_writeImage()
857 if (log->flags & QP_TEST_LOG_EXCLUDE_IMAGES) in qpTestLog_writeImage()
945 deMutex_lock(log->lock); in qpTestLog_writeImage()
948 if (!qpXmlWriter_startElement(log->writer, "Image", numAttribs, attribs) || in qpTestLog_writeImage()
949 !qpXmlWriter_writeBase64(log->writer, (const deUint8*)writeDataPtr, writeDataBytes) || in qpTestLog_writeImage()
950 !qpXmlWriter_endElement(log->writer, "Image")) in qpTestLog_writeImage()
953 deMutex_unlock(log->lock); in qpTestLog_writeImage()
958 deMutex_unlock(log->lock); in qpTestLog_writeImage()
971 deBool qpTestLog_startShaderProgram (qpTestLog* log, deBool linkOk, const char* linkInfoLog) in qpTestLog_startShaderProgram() argument
976 DE_ASSERT(log); in qpTestLog_startShaderProgram()
977 deMutex_lock(log->lock); in qpTestLog_startShaderProgram()
981 if (!qpXmlWriter_startElement(log->writer, "ShaderProgram", numProgramAttribs, programAttribs) || in qpTestLog_startShaderProgram()
982 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", linkInfoLog)) in qpTestLog_startShaderProgram()
985 deMutex_unlock(log->lock); in qpTestLog_startShaderProgram()
989 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SHADERPROGRAM)); in qpTestLog_startShaderProgram()
991 deMutex_unlock(log->lock); in qpTestLog_startShaderProgram()
1000 deBool qpTestLog_endShaderProgram (qpTestLog* log) in qpTestLog_endShaderProgram() argument
1002 DE_ASSERT(log); in qpTestLog_endShaderProgram()
1003 deMutex_lock(log->lock); in qpTestLog_endShaderProgram()
1006 if (!qpXmlWriter_endElement(log->writer, "ShaderProgram")) in qpTestLog_endShaderProgram()
1009 deMutex_unlock(log->lock); in qpTestLog_endShaderProgram()
1013 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_endShaderProgram()
1015 deMutex_unlock(log->lock); in qpTestLog_endShaderProgram()
1026 deBool qpTestLog_writeShader (qpTestLog* log, qpShaderType type, const char* source, deBool compile… in qpTestLog_writeShader() argument
1029 …const char* sourceStr = ((log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) == 0 || !compileOk) … in qpTestLog_writeShader()
1033 DE_ASSERT(log && source); in qpTestLog_writeShader()
1034 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_writeShader()
1035 deMutex_lock(log->lock); in qpTestLog_writeShader()
1039 if (!qpXmlWriter_startElement(log->writer, tagName, numShaderAttribs, shaderAttribs) || in qpTestLog_writeShader()
1040 !qpXmlWriter_writeStringElement(log->writer, "ShaderSource", sourceStr) || in qpTestLog_writeShader()
1041 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", infoLog) || in qpTestLog_writeShader()
1042 !qpXmlWriter_endElement(log->writer, tagName)) in qpTestLog_writeShader()
1045 deMutex_unlock(log->lock); in qpTestLog_writeShader()
1049 deMutex_unlock(log->lock); in qpTestLog_writeShader()
1056 deBool qpTestLog_startEglConfigSet (qpTestLog* log, const char* name, const char* description) in qpTestLog_startEglConfigSet() argument
1061 DE_ASSERT(log && name); in qpTestLog_startEglConfigSet()
1062 deMutex_lock(log->lock); in qpTestLog_startEglConfigSet()
1069 if (!qpXmlWriter_startElement(log->writer, "EglConfigSet", numAttribs, attribs)) in qpTestLog_startEglConfigSet()
1072 deMutex_unlock(log->lock); in qpTestLog_startEglConfigSet()
1076 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_EGLCONFIGSET)); in qpTestLog_startEglConfigSet()
1078 deMutex_unlock(log->lock); in qpTestLog_startEglConfigSet()
1085 deBool qpTestLog_endEglConfigSet (qpTestLog* log) in qpTestLog_endEglConfigSet() argument
1087 DE_ASSERT(log); in qpTestLog_endEglConfigSet()
1088 deMutex_lock(log->lock); in qpTestLog_endEglConfigSet()
1091 if (!qpXmlWriter_endElement(log->writer, "EglConfigSet")) in qpTestLog_endEglConfigSet()
1094 deMutex_unlock(log->lock); in qpTestLog_endEglConfigSet()
1098 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_EGLCONFIGSET); in qpTestLog_endEglConfigSet()
1100 deMutex_unlock(log->lock); in qpTestLog_endEglConfigSet()
1108 deBool qpTestLog_writeEglConfig (qpTestLog* log, const qpEglConfigInfo* config) in qpTestLog_writeEglConfig() argument
1113 DE_ASSERT(log && config); in qpTestLog_writeEglConfig()
1114 deMutex_lock(log->lock); in qpTestLog_writeEglConfig()
1148 if (!qpXmlWriter_startElement(log->writer, "EglConfig", numAttribs, attribs) || in qpTestLog_writeEglConfig()
1149 !qpXmlWriter_endElement(log->writer, "EglConfig")) in qpTestLog_writeEglConfig()
1152 deMutex_unlock(log->lock); in qpTestLog_writeEglConfig()
1156 deMutex_unlock(log->lock); in qpTestLog_writeEglConfig()
1167 deBool qpTestLog_startSection (qpTestLog* log, const char* name, const char* description) in qpTestLog_startSection() argument
1172 DE_ASSERT(log && name); in qpTestLog_startSection()
1173 deMutex_lock(log->lock); in qpTestLog_startSection()
1180 if (!qpXmlWriter_startElement(log->writer, "Section", numAttribs, attribs)) in qpTestLog_startSection()
1183 deMutex_unlock(log->lock); in qpTestLog_startSection()
1187 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SECTION)); in qpTestLog_startSection()
1189 deMutex_unlock(log->lock); in qpTestLog_startSection()
1198 deBool qpTestLog_endSection (qpTestLog* log) in qpTestLog_endSection() argument
1200 DE_ASSERT(log); in qpTestLog_endSection()
1201 deMutex_lock(log->lock); in qpTestLog_endSection()
1204 if (!qpXmlWriter_endElement(log->writer, "Section")) in qpTestLog_endSection()
1207 deMutex_unlock(log->lock); in qpTestLog_endSection()
1211 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SECTION); in qpTestLog_endSection()
1213 deMutex_unlock(log->lock); in qpTestLog_endSection()
1220 deBool qpTestLog_writeKernelSource (qpTestLog* log, const char* source) in qpTestLog_writeKernelSource() argument
1222 const char* sourceStr = (log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) != 0 ? "" : source; in qpTestLog_writeKernelSource()
1224 DE_ASSERT(log); in qpTestLog_writeKernelSource()
1225 deMutex_lock(log->lock); in qpTestLog_writeKernelSource()
1227 if (!qpXmlWriter_writeStringElement(log->writer, "KernelSource", sourceStr)) in qpTestLog_writeKernelSource()
1230 deMutex_unlock(log->lock); in qpTestLog_writeKernelSource()
1234 deMutex_unlock(log->lock); in qpTestLog_writeKernelSource()
1241 deBool qpTestLog_writeSpirVAssemblySource (qpTestLog* log, const char* source) in qpTestLog_writeSpirVAssemblySource() argument
1243 DE_ASSERT(log); in qpTestLog_writeSpirVAssemblySource()
1244 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_writeSpirVAssemblySource()
1245 deMutex_lock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1247 if (!qpXmlWriter_writeStringElement(log->writer, "SpirVAssemblySource", source)) in qpTestLog_writeSpirVAssemblySource()
1250 deMutex_unlock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1254 deMutex_unlock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1261 deBool qpTestLog_writeCompileInfo (qpTestLog* log, const char* name, const char* description, deBoo… in qpTestLog_writeCompileInfo() argument
1266 DE_ASSERT(log && name && description && infoLog); in qpTestLog_writeCompileInfo()
1267 deMutex_lock(log->lock); in qpTestLog_writeCompileInfo()
1273 if (!qpXmlWriter_startElement(log->writer, "CompileInfo", numAttribs, attribs) || in qpTestLog_writeCompileInfo()
1274 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", infoLog) || in qpTestLog_writeCompileInfo()
1275 !qpXmlWriter_endElement(log->writer, "CompileInfo")) in qpTestLog_writeCompileInfo()
1278 deMutex_unlock(log->lock); in qpTestLog_writeCompileInfo()
1282 deMutex_unlock(log->lock); in qpTestLog_writeCompileInfo()
1286 deBool qpTestLog_startSampleList (qpTestLog* log, const char* name, const char* description) in qpTestLog_startSampleList() argument
1291 DE_ASSERT(log && name && description); in qpTestLog_startSampleList()
1292 deMutex_lock(log->lock); in qpTestLog_startSampleList()
1297 if (!qpXmlWriter_startElement(log->writer, "SampleList", numAttribs, attribs)) in qpTestLog_startSampleList()
1300 deMutex_unlock(log->lock); in qpTestLog_startSampleList()
1304 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLELIST)); in qpTestLog_startSampleList()
1306 deMutex_unlock(log->lock); in qpTestLog_startSampleList()
1310 deBool qpTestLog_startSampleInfo (qpTestLog* log) in qpTestLog_startSampleInfo() argument
1312 DE_ASSERT(log); in qpTestLog_startSampleInfo()
1313 deMutex_lock(log->lock); in qpTestLog_startSampleInfo()
1315 if (!qpXmlWriter_startElement(log->writer, "SampleInfo", 0, DE_NULL)) in qpTestLog_startSampleInfo()
1318 deMutex_unlock(log->lock); in qpTestLog_startSampleInfo()
1322 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLEINFO)); in qpTestLog_startSampleInfo()
1324 deMutex_unlock(log->lock); in qpTestLog_startSampleInfo()
1328 deBool qpTestLog_writeValueInfo (qpTestLog* log, const char* name, const char* description, const c… in qpTestLog_writeValueInfo() argument
1334 DE_ASSERT(log && name && description && tagName); in qpTestLog_writeValueInfo()
1335 deMutex_lock(log->lock); in qpTestLog_writeValueInfo()
1337 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLEINFO); in qpTestLog_writeValueInfo()
1346 if (!qpXmlWriter_startElement(log->writer, "ValueInfo", numAttribs, attribs) || in qpTestLog_writeValueInfo()
1347 !qpXmlWriter_endElement(log->writer, "ValueInfo")) in qpTestLog_writeValueInfo()
1350 deMutex_unlock(log->lock); in qpTestLog_writeValueInfo()
1354 deMutex_unlock(log->lock); in qpTestLog_writeValueInfo()
1358 deBool qpTestLog_endSampleInfo (qpTestLog* log) in qpTestLog_endSampleInfo() argument
1360 DE_ASSERT(log); in qpTestLog_endSampleInfo()
1361 deMutex_lock(log->lock); in qpTestLog_endSampleInfo()
1363 if (!qpXmlWriter_endElement(log->writer, "SampleInfo")) in qpTestLog_endSampleInfo()
1366 deMutex_unlock(log->lock); in qpTestLog_endSampleInfo()
1370 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLEINFO); in qpTestLog_endSampleInfo()
1372 deMutex_unlock(log->lock); in qpTestLog_endSampleInfo()
1376 deBool qpTestLog_startSample (qpTestLog* log) in qpTestLog_startSample() argument
1378 DE_ASSERT(log); in qpTestLog_startSample()
1379 deMutex_lock(log->lock); in qpTestLog_startSample()
1381 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLELIST); in qpTestLog_startSample()
1383 if (!qpXmlWriter_startElement(log->writer, "Sample", 0, DE_NULL)) in qpTestLog_startSample()
1386 deMutex_unlock(log->lock); in qpTestLog_startSample()
1390 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLE)); in qpTestLog_startSample()
1392 deMutex_unlock(log->lock); in qpTestLog_startSample()
1396 deBool qpTestLog_writeValueFloat (qpTestLog* log, double value) in qpTestLog_writeValueFloat() argument
1401 deMutex_lock(log->lock); in qpTestLog_writeValueFloat()
1403 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_writeValueFloat()
1405 if (!qpXmlWriter_writeStringElement(log->writer, "Value", &tmpString[0])) in qpTestLog_writeValueFloat()
1408 deMutex_unlock(log->lock); in qpTestLog_writeValueFloat()
1412 deMutex_unlock(log->lock); in qpTestLog_writeValueFloat()
1416 deBool qpTestLog_writeValueInteger (qpTestLog* log, deInt64 value) in qpTestLog_writeValueInteger() argument
1421 deMutex_lock(log->lock); in qpTestLog_writeValueInteger()
1423 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_writeValueInteger()
1425 if (!qpXmlWriter_writeStringElement(log->writer, "Value", &tmpString[0])) in qpTestLog_writeValueInteger()
1428 deMutex_unlock(log->lock); in qpTestLog_writeValueInteger()
1432 deMutex_unlock(log->lock); in qpTestLog_writeValueInteger()
1436 deBool qpTestLog_endSample (qpTestLog* log) in qpTestLog_endSample() argument
1438 DE_ASSERT(log); in qpTestLog_endSample()
1439 deMutex_lock(log->lock); in qpTestLog_endSample()
1441 if (!qpXmlWriter_endElement(log->writer, "Sample")) in qpTestLog_endSample()
1444 deMutex_unlock(log->lock); in qpTestLog_endSample()
1448 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_endSample()
1450 deMutex_unlock(log->lock); in qpTestLog_endSample()
1454 deBool qpTestLog_endSampleList (qpTestLog* log) in qpTestLog_endSampleList() argument
1456 DE_ASSERT(log); in qpTestLog_endSampleList()
1457 deMutex_lock(log->lock); in qpTestLog_endSampleList()
1459 if (!qpXmlWriter_endElement(log->writer, "SampleList")) in qpTestLog_endSampleList()
1462 deMutex_unlock(log->lock); in qpTestLog_endSampleList()
1466 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLELIST); in qpTestLog_endSampleList()
1468 deMutex_unlock(log->lock); in qpTestLog_endSampleList()
1472 deUint32 qpTestLog_getLogFlags (const qpTestLog* log) in qpTestLog_getLogFlags() argument
1474 DE_ASSERT(log); in qpTestLog_getLogFlags()
1475 return log->flags; in qpTestLog_getLogFlags()