• Home
  • Raw
  • Download

Lines Matching refs:log

258 static void qpTestLog_flushFile (qpTestLog* log)  in qpTestLog_flushFile()  argument
260 DE_ASSERT(log && log->outputFile); in qpTestLog_flushFile()
261 fflush(log->outputFile); in qpTestLog_flushFile()
264 FlushFileBuffers((HANDLE)_get_osfhandle(_fileno(log->outputFile))); in qpTestLog_flushFile()
300 static deBool endSession (qpTestLog* log) in endSession() argument
302 DE_ASSERT(log && log->isSessionOpen); in endSession()
305 qpXmlWriter_flush(log->writer); in endSession()
308 fprintf(log->outputFile, "\n#endSession\n"); in endSession()
309 qpTestLog_flushFile(log); in endSession()
311 log->isSessionOpen = DE_FALSE; in endSession()
323 qpTestLog* log = (qpTestLog*)deCalloc(sizeof(qpTestLog)); in qpTestLog_createFileLog() local
324 if (!log) in qpTestLog_createFileLog()
330 ContainerStack_reset(&log->containerStack); in qpTestLog_createFileLog()
336 log->outputFile = fopen(fileName, "wb"); in qpTestLog_createFileLog()
337 if (!log->outputFile) in qpTestLog_createFileLog()
340 qpTestLog_destroy(log); in qpTestLog_createFileLog()
344 log->flags = flags; in qpTestLog_createFileLog()
345 log->writer = qpXmlWriter_createFileWriter(log->outputFile, 0, !(flags & QP_TEST_LOG_NO_FLUSH)); in qpTestLog_createFileLog()
346 log->lock = deMutex_create(DE_NULL); in qpTestLog_createFileLog()
347 log->isSessionOpen = DE_FALSE; in qpTestLog_createFileLog()
348 log->isCaseOpen = DE_FALSE; in qpTestLog_createFileLog()
350 if (!log->writer) in qpTestLog_createFileLog()
353 qpTestLog_destroy(log); in qpTestLog_createFileLog()
357 if (!log->lock) in qpTestLog_createFileLog()
360 qpTestLog_destroy(log); in qpTestLog_createFileLog()
364 return log; in qpTestLog_createFileLog()
372 deBool qpTestLog_beginSession(qpTestLog* log, const char* additionalSessionInfo) in qpTestLog_beginSession() argument
374 DE_ASSERT(log); in qpTestLog_beginSession()
377 if (log->isSessionOpen) in qpTestLog_beginSession()
381 fprintf(log->outputFile, "#sessionInfo releaseName %s\n", qpGetReleaseName()); in qpTestLog_beginSession()
382 fprintf(log->outputFile, "#sessionInfo releaseId 0x%08x\n", qpGetReleaseId()); in qpTestLog_beginSession()
383 fprintf(log->outputFile, "#sessionInfo targetName \"%s\"\n", qpGetTargetName()); in qpTestLog_beginSession()
386 fprintf(log->outputFile, "%s\n", additionalSessionInfo); in qpTestLog_beginSession()
389 fprintf(log->outputFile, "#beginSession\n"); in qpTestLog_beginSession()
390 qpTestLog_flushFile(log); in qpTestLog_beginSession()
392 log->isSessionOpen = DE_TRUE; in qpTestLog_beginSession()
401 void qpTestLog_destroy (qpTestLog* log) in qpTestLog_destroy() argument
403 DE_ASSERT(log); in qpTestLog_destroy()
405 if (log->isSessionOpen) in qpTestLog_destroy()
406 endSession(log); in qpTestLog_destroy()
408 if (log->writer) in qpTestLog_destroy()
409 qpXmlWriter_destroy(log->writer); in qpTestLog_destroy()
411 if (log->outputFile) in qpTestLog_destroy()
412 fclose(log->outputFile); in qpTestLog_destroy()
414 if (log->lock) in qpTestLog_destroy()
415 deMutex_destroy(log->lock); in qpTestLog_destroy()
417 deFree(log); in qpTestLog_destroy()
427 deBool qpTestLog_startCase (qpTestLog* log, const char* testCasePath, qpTestCaseType testCaseType) in qpTestLog_startCase() argument
433 DE_ASSERT(log && testCasePath && (testCasePath[0] != 0)); in qpTestLog_startCase()
434 deMutex_lock(log->lock); in qpTestLog_startCase()
436 DE_ASSERT(!log->isCaseOpen); in qpTestLog_startCase()
437 DE_ASSERT(ContainerStack_isEmpty(&log->containerStack)); in qpTestLog_startCase()
440 qpXmlWriter_flush(log->writer); in qpTestLog_startCase()
441 fprintf(log->outputFile, "\n#beginTestCaseResult %s\n", testCasePath); in qpTestLog_startCase()
442 if (!(log->flags & QP_TEST_LOG_NO_FLUSH)) in qpTestLog_startCase()
443 qpTestLog_flushFile(log); in qpTestLog_startCase()
445 log->isCaseOpen = DE_TRUE; in qpTestLog_startCase()
452 if (!qpXmlWriter_startDocument(log->writer) || in qpTestLog_startCase()
453 !qpXmlWriter_startElement(log->writer, "TestCaseResult", numResultAttribs, resultAttribs)) in qpTestLog_startCase()
456 deMutex_unlock(log->lock); in qpTestLog_startCase()
460 deMutex_unlock(log->lock); in qpTestLog_startCase()
471 deBool qpTestLog_endCase (qpTestLog* log, qpTestResult result, const char* resultDetails) in qpTestLog_endCase() argument
476 deMutex_lock(log->lock); in qpTestLog_endCase()
478 DE_ASSERT(log->isCaseOpen); in qpTestLog_endCase()
479 DE_ASSERT(ContainerStack_isEmpty(&log->containerStack)); in qpTestLog_endCase()
484 if (!qpXmlWriter_startElement(log->writer, "Result", 1, &statusAttrib) || in qpTestLog_endCase()
485 (resultDetails && !qpXmlWriter_writeString(log->writer, resultDetails)) || in qpTestLog_endCase()
486 !qpXmlWriter_endElement(log->writer, "Result") || in qpTestLog_endCase()
487 !qpXmlWriter_endElement(log->writer, "TestCaseResult") || in qpTestLog_endCase()
488 !qpXmlWriter_endDocument(log->writer)) /* Close any XML elements still open */ in qpTestLog_endCase()
491 deMutex_unlock(log->lock); in qpTestLog_endCase()
496 qpXmlWriter_flush(log->writer); in qpTestLog_endCase()
497 fprintf(log->outputFile, "\n#endTestCaseResult\n"); in qpTestLog_endCase()
498 if (!(log->flags & QP_TEST_LOG_NO_FLUSH)) in qpTestLog_endCase()
499 qpTestLog_flushFile(log); in qpTestLog_endCase()
501 log->isCaseOpen = DE_FALSE; in qpTestLog_endCase()
503 deMutex_unlock(log->lock); in qpTestLog_endCase()
507 deBool qpTestLog_startTestsCasesTime (qpTestLog* log) in qpTestLog_startTestsCasesTime() argument
509 DE_ASSERT(log); in qpTestLog_startTestsCasesTime()
510 deMutex_lock(log->lock); in qpTestLog_startTestsCasesTime()
513 qpXmlWriter_flush(log->writer); in qpTestLog_startTestsCasesTime()
514 fprintf(log->outputFile, "\n#beginTestsCasesTime\n"); in qpTestLog_startTestsCasesTime()
516 log->isCaseOpen = DE_TRUE; in qpTestLog_startTestsCasesTime()
518 if (!qpXmlWriter_startDocument(log->writer) || in qpTestLog_startTestsCasesTime()
519 !qpXmlWriter_startElement(log->writer, "TestsCasesTime", 0, (const qpXmlAttribute*)DE_NULL)) in qpTestLog_startTestsCasesTime()
522 deMutex_unlock(log->lock); in qpTestLog_startTestsCasesTime()
526 deMutex_unlock(log->lock); in qpTestLog_startTestsCasesTime()
530 deBool qpTestLog_endTestsCasesTime (qpTestLog* log) in qpTestLog_endTestsCasesTime() argument
532 DE_ASSERT(log); in qpTestLog_endTestsCasesTime()
533 deMutex_lock(log->lock); in qpTestLog_endTestsCasesTime()
535 DE_ASSERT(log->isCaseOpen); in qpTestLog_endTestsCasesTime()
537 if (!qpXmlWriter_endElement(log->writer, "TestsCasesTime") || in qpTestLog_endTestsCasesTime()
538 !qpXmlWriter_endDocument(log->writer)) in qpTestLog_endTestsCasesTime()
541 deMutex_unlock(log->lock); in qpTestLog_endTestsCasesTime()
545 qpXmlWriter_flush(log->writer); in qpTestLog_endTestsCasesTime()
547 fprintf(log->outputFile, "\n#endTestsCasesTime\n"); in qpTestLog_endTestsCasesTime()
549 log->isCaseOpen = DE_FALSE; in qpTestLog_endTestsCasesTime()
551 deMutex_unlock(log->lock); in qpTestLog_endTestsCasesTime()
562 deBool qpTestLog_terminateCase (qpTestLog* log, qpTestResult result) in qpTestLog_terminateCase() argument
566 DE_ASSERT(log); in qpTestLog_terminateCase()
569 deMutex_lock(log->lock); in qpTestLog_terminateCase()
571 if (!log->isCaseOpen) in qpTestLog_terminateCase()
573 deMutex_unlock(log->lock); in qpTestLog_terminateCase()
578 qpXmlWriter_flush(log->writer); in qpTestLog_terminateCase()
579 fprintf(log->outputFile, "\n#terminateTestCaseResult %s\n", resultStr); in qpTestLog_terminateCase()
580 qpTestLog_flushFile(log); in qpTestLog_terminateCase()
582 log->isCaseOpen = DE_FALSE; in qpTestLog_terminateCase()
585 ContainerStack_reset(&log->containerStack); in qpTestLog_terminateCase()
588 deMutex_unlock(log->lock); in qpTestLog_terminateCase()
592 static deBool qpTestLog_writeKeyValuePair (qpTestLog* log, const char* elementName, const char* nam… in qpTestLog_writeKeyValuePair() argument
598 DE_ASSERT(log && elementName && text); in qpTestLog_writeKeyValuePair()
599 deMutex_lock(log->lock); in qpTestLog_writeKeyValuePair()
607 if (!qpXmlWriter_startElement(log->writer, elementName, numAttribs, attribs) || in qpTestLog_writeKeyValuePair()
608 !qpXmlWriter_writeString(log->writer, text) || in qpTestLog_writeKeyValuePair()
609 !qpXmlWriter_endElement(log->writer, elementName)) in qpTestLog_writeKeyValuePair()
612 deMutex_unlock(log->lock); in qpTestLog_writeKeyValuePair()
616 deMutex_unlock(log->lock); in qpTestLog_writeKeyValuePair()
629 deBool qpTestLog_writeText (qpTestLog* log, const char* name, const char* description, qpKeyValueTa… in qpTestLog_writeText() argument
632 return qpTestLog_writeKeyValuePair(log, "Text", name, description, DE_NULL, tag, text); in qpTestLog_writeText()
644 deBool qpTestLog_writeInteger (qpTestLog* log, const char* name, const char* description, const cha… in qpTestLog_writeInteger() argument
650 return qpTestLog_writeKeyValuePair(log, "Number", name, description, unit, tag, tmpString); in qpTestLog_writeInteger()
662 deBool qpTestLog_writeFloat (qpTestLog* log, const char* name, const char* description, const char*… in qpTestLog_writeFloat() argument
668 return qpTestLog_writeKeyValuePair(log, "Number", name, description, unit, tag, tmpString); in qpTestLog_writeFloat()
811 deBool qpTestLog_startImageSet (qpTestLog* log, const char* name, const char* description) in qpTestLog_startImageSet() argument
816 DE_ASSERT(log && name); in qpTestLog_startImageSet()
817 deMutex_lock(log->lock); in qpTestLog_startImageSet()
824 if (!qpXmlWriter_startElement(log->writer, "ImageSet", numAttribs, attribs)) in qpTestLog_startImageSet()
827 deMutex_unlock(log->lock); in qpTestLog_startImageSet()
831 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_IMAGESET)); in qpTestLog_startImageSet()
833 deMutex_unlock(log->lock); in qpTestLog_startImageSet()
842 deBool qpTestLog_endImageSet (qpTestLog* log) in qpTestLog_endImageSet() argument
844 DE_ASSERT(log); in qpTestLog_endImageSet()
845 deMutex_lock(log->lock); in qpTestLog_endImageSet()
848 if (!qpXmlWriter_endElement(log->writer, "ImageSet")) in qpTestLog_endImageSet()
851 deMutex_unlock(log->lock); in qpTestLog_endImageSet()
855 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_IMAGESET); in qpTestLog_endImageSet()
857 deMutex_unlock(log->lock); in qpTestLog_endImageSet()
875 qpTestLog* log, in qpTestLog_writeImage() argument
893 DE_ASSERT(log && name); in qpTestLog_writeImage()
898 if (log->flags & QP_TEST_LOG_EXCLUDE_IMAGES) in qpTestLog_writeImage()
986 deMutex_lock(log->lock); in qpTestLog_writeImage()
989 if (!qpXmlWriter_startElement(log->writer, "Image", numAttribs, attribs) || in qpTestLog_writeImage()
990 !qpXmlWriter_writeBase64(log->writer, (const deUint8*)writeDataPtr, writeDataBytes) || in qpTestLog_writeImage()
991 !qpXmlWriter_endElement(log->writer, "Image")) in qpTestLog_writeImage()
994 deMutex_unlock(log->lock); in qpTestLog_writeImage()
999 deMutex_unlock(log->lock); in qpTestLog_writeImage()
1012 deBool qpTestLog_startShaderProgram (qpTestLog* log, deBool linkOk, const char* linkInfoLog) in qpTestLog_startShaderProgram() argument
1017 DE_ASSERT(log); in qpTestLog_startShaderProgram()
1018 deMutex_lock(log->lock); in qpTestLog_startShaderProgram()
1022 if (!qpXmlWriter_startElement(log->writer, "ShaderProgram", numProgramAttribs, programAttribs) || in qpTestLog_startShaderProgram()
1023 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", linkInfoLog)) in qpTestLog_startShaderProgram()
1026 deMutex_unlock(log->lock); in qpTestLog_startShaderProgram()
1030 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SHADERPROGRAM)); in qpTestLog_startShaderProgram()
1032 deMutex_unlock(log->lock); in qpTestLog_startShaderProgram()
1041 deBool qpTestLog_endShaderProgram (qpTestLog* log) in qpTestLog_endShaderProgram() argument
1043 DE_ASSERT(log); in qpTestLog_endShaderProgram()
1044 deMutex_lock(log->lock); in qpTestLog_endShaderProgram()
1047 if (!qpXmlWriter_endElement(log->writer, "ShaderProgram")) in qpTestLog_endShaderProgram()
1050 deMutex_unlock(log->lock); in qpTestLog_endShaderProgram()
1054 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_endShaderProgram()
1056 deMutex_unlock(log->lock); in qpTestLog_endShaderProgram()
1067 deBool qpTestLog_writeShader (qpTestLog* log, qpShaderType type, const char* source, deBool compile… in qpTestLog_writeShader() argument
1070 …const char* sourceStr = ((log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) == 0 || !compileOk) … in qpTestLog_writeShader()
1074 deMutex_lock(log->lock); in qpTestLog_writeShader()
1077 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_writeShader()
1081 if (!qpXmlWriter_startElement(log->writer, tagName, numShaderAttribs, shaderAttribs) || in qpTestLog_writeShader()
1082 !qpXmlWriter_writeStringElement(log->writer, "ShaderSource", sourceStr) || in qpTestLog_writeShader()
1083 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", infoLog) || in qpTestLog_writeShader()
1084 !qpXmlWriter_endElement(log->writer, tagName)) in qpTestLog_writeShader()
1087 deMutex_unlock(log->lock); in qpTestLog_writeShader()
1091 deMutex_unlock(log->lock); in qpTestLog_writeShader()
1098 deBool qpTestLog_startEglConfigSet (qpTestLog* log, const char* name, const char* description) in qpTestLog_startEglConfigSet() argument
1103 DE_ASSERT(log && name); in qpTestLog_startEglConfigSet()
1104 deMutex_lock(log->lock); in qpTestLog_startEglConfigSet()
1111 if (!qpXmlWriter_startElement(log->writer, "EglConfigSet", numAttribs, attribs)) in qpTestLog_startEglConfigSet()
1114 deMutex_unlock(log->lock); in qpTestLog_startEglConfigSet()
1118 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_EGLCONFIGSET)); in qpTestLog_startEglConfigSet()
1120 deMutex_unlock(log->lock); in qpTestLog_startEglConfigSet()
1127 deBool qpTestLog_endEglConfigSet (qpTestLog* log) in qpTestLog_endEglConfigSet() argument
1129 DE_ASSERT(log); in qpTestLog_endEglConfigSet()
1130 deMutex_lock(log->lock); in qpTestLog_endEglConfigSet()
1133 if (!qpXmlWriter_endElement(log->writer, "EglConfigSet")) in qpTestLog_endEglConfigSet()
1136 deMutex_unlock(log->lock); in qpTestLog_endEglConfigSet()
1140 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_EGLCONFIGSET); in qpTestLog_endEglConfigSet()
1142 deMutex_unlock(log->lock); in qpTestLog_endEglConfigSet()
1150 deBool qpTestLog_writeEglConfig (qpTestLog* log, const qpEglConfigInfo* config) in qpTestLog_writeEglConfig() argument
1155 DE_ASSERT(log && config); in qpTestLog_writeEglConfig()
1156 deMutex_lock(log->lock); in qpTestLog_writeEglConfig()
1190 if (!qpXmlWriter_startElement(log->writer, "EglConfig", numAttribs, attribs) || in qpTestLog_writeEglConfig()
1191 !qpXmlWriter_endElement(log->writer, "EglConfig")) in qpTestLog_writeEglConfig()
1194 deMutex_unlock(log->lock); in qpTestLog_writeEglConfig()
1198 deMutex_unlock(log->lock); in qpTestLog_writeEglConfig()
1209 deBool qpTestLog_startSection (qpTestLog* log, const char* name, const char* description) in qpTestLog_startSection() argument
1214 DE_ASSERT(log && name); in qpTestLog_startSection()
1215 deMutex_lock(log->lock); in qpTestLog_startSection()
1222 if (!qpXmlWriter_startElement(log->writer, "Section", numAttribs, attribs)) in qpTestLog_startSection()
1225 deMutex_unlock(log->lock); in qpTestLog_startSection()
1229 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SECTION)); in qpTestLog_startSection()
1231 deMutex_unlock(log->lock); in qpTestLog_startSection()
1240 deBool qpTestLog_endSection (qpTestLog* log) in qpTestLog_endSection() argument
1242 DE_ASSERT(log); in qpTestLog_endSection()
1243 deMutex_lock(log->lock); in qpTestLog_endSection()
1246 if (!qpXmlWriter_endElement(log->writer, "Section")) in qpTestLog_endSection()
1249 deMutex_unlock(log->lock); in qpTestLog_endSection()
1253 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SECTION); in qpTestLog_endSection()
1255 deMutex_unlock(log->lock); in qpTestLog_endSection()
1262 deBool qpTestLog_writeKernelSource (qpTestLog* log, const char* source) in qpTestLog_writeKernelSource() argument
1264 const char* sourceStr = (log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) != 0 ? "" : source; in qpTestLog_writeKernelSource()
1266 DE_ASSERT(log); in qpTestLog_writeKernelSource()
1267 deMutex_lock(log->lock); in qpTestLog_writeKernelSource()
1269 if (!qpXmlWriter_writeStringElement(log->writer, "KernelSource", sourceStr)) in qpTestLog_writeKernelSource()
1272 deMutex_unlock(log->lock); in qpTestLog_writeKernelSource()
1276 deMutex_unlock(log->lock); in qpTestLog_writeKernelSource()
1283 deBool qpTestLog_writeSpirVAssemblySource (qpTestLog* log, const char* source) in qpTestLog_writeSpirVAssemblySource() argument
1285 const char* const sourceStr = (log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) != 0 ? "" : source; in qpTestLog_writeSpirVAssemblySource()
1287 deMutex_lock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1289 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_writeSpirVAssemblySource()
1291 if (!qpXmlWriter_writeStringElement(log->writer, "SpirVAssemblySource", sourceStr)) in qpTestLog_writeSpirVAssemblySource()
1294 deMutex_unlock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1298 deMutex_unlock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1305 deBool qpTestLog_writeCompileInfo (qpTestLog* log, const char* name, const char* description, deBoo… in qpTestLog_writeCompileInfo() argument
1310 DE_ASSERT(log && name && description && infoLog); in qpTestLog_writeCompileInfo()
1311 deMutex_lock(log->lock); in qpTestLog_writeCompileInfo()
1317 if (!qpXmlWriter_startElement(log->writer, "CompileInfo", numAttribs, attribs) || in qpTestLog_writeCompileInfo()
1318 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", infoLog) || in qpTestLog_writeCompileInfo()
1319 !qpXmlWriter_endElement(log->writer, "CompileInfo")) in qpTestLog_writeCompileInfo()
1322 deMutex_unlock(log->lock); in qpTestLog_writeCompileInfo()
1326 deMutex_unlock(log->lock); in qpTestLog_writeCompileInfo()
1330 deBool qpTestLog_startSampleList (qpTestLog* log, const char* name, const char* description) in qpTestLog_startSampleList() argument
1335 DE_ASSERT(log && name && description); in qpTestLog_startSampleList()
1336 deMutex_lock(log->lock); in qpTestLog_startSampleList()
1341 if (!qpXmlWriter_startElement(log->writer, "SampleList", numAttribs, attribs)) in qpTestLog_startSampleList()
1344 deMutex_unlock(log->lock); in qpTestLog_startSampleList()
1348 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLELIST)); in qpTestLog_startSampleList()
1350 deMutex_unlock(log->lock); in qpTestLog_startSampleList()
1354 deBool qpTestLog_startSampleInfo (qpTestLog* log) in qpTestLog_startSampleInfo() argument
1356 DE_ASSERT(log); in qpTestLog_startSampleInfo()
1357 deMutex_lock(log->lock); in qpTestLog_startSampleInfo()
1359 if (!qpXmlWriter_startElement(log->writer, "SampleInfo", 0, DE_NULL)) in qpTestLog_startSampleInfo()
1362 deMutex_unlock(log->lock); in qpTestLog_startSampleInfo()
1366 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLEINFO)); in qpTestLog_startSampleInfo()
1368 deMutex_unlock(log->lock); in qpTestLog_startSampleInfo()
1372 deBool qpTestLog_writeValueInfo (qpTestLog* log, const char* name, const char* description, const c… in qpTestLog_writeValueInfo() argument
1378 DE_ASSERT(log && name && description && tagName); in qpTestLog_writeValueInfo()
1379 deMutex_lock(log->lock); in qpTestLog_writeValueInfo()
1381 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLEINFO); in qpTestLog_writeValueInfo()
1390 if (!qpXmlWriter_startElement(log->writer, "ValueInfo", numAttribs, attribs) || in qpTestLog_writeValueInfo()
1391 !qpXmlWriter_endElement(log->writer, "ValueInfo")) in qpTestLog_writeValueInfo()
1394 deMutex_unlock(log->lock); in qpTestLog_writeValueInfo()
1398 deMutex_unlock(log->lock); in qpTestLog_writeValueInfo()
1402 deBool qpTestLog_endSampleInfo (qpTestLog* log) in qpTestLog_endSampleInfo() argument
1404 DE_ASSERT(log); in qpTestLog_endSampleInfo()
1405 deMutex_lock(log->lock); in qpTestLog_endSampleInfo()
1407 if (!qpXmlWriter_endElement(log->writer, "SampleInfo")) in qpTestLog_endSampleInfo()
1410 deMutex_unlock(log->lock); in qpTestLog_endSampleInfo()
1414 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLEINFO); in qpTestLog_endSampleInfo()
1416 deMutex_unlock(log->lock); in qpTestLog_endSampleInfo()
1420 deBool qpTestLog_startSample (qpTestLog* log) in qpTestLog_startSample() argument
1422 DE_ASSERT(log); in qpTestLog_startSample()
1423 deMutex_lock(log->lock); in qpTestLog_startSample()
1425 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLELIST); in qpTestLog_startSample()
1427 if (!qpXmlWriter_startElement(log->writer, "Sample", 0, DE_NULL)) in qpTestLog_startSample()
1430 deMutex_unlock(log->lock); in qpTestLog_startSample()
1434 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLE)); in qpTestLog_startSample()
1436 deMutex_unlock(log->lock); in qpTestLog_startSample()
1440 deBool qpTestLog_writeValueFloat (qpTestLog* log, double value) in qpTestLog_writeValueFloat() argument
1445 deMutex_lock(log->lock); in qpTestLog_writeValueFloat()
1447 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_writeValueFloat()
1449 if (!qpXmlWriter_writeStringElement(log->writer, "Value", &tmpString[0])) in qpTestLog_writeValueFloat()
1452 deMutex_unlock(log->lock); in qpTestLog_writeValueFloat()
1456 deMutex_unlock(log->lock); in qpTestLog_writeValueFloat()
1460 deBool qpTestLog_writeValueInteger (qpTestLog* log, deInt64 value) in qpTestLog_writeValueInteger() argument
1465 deMutex_lock(log->lock); in qpTestLog_writeValueInteger()
1467 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_writeValueInteger()
1469 if (!qpXmlWriter_writeStringElement(log->writer, "Value", &tmpString[0])) in qpTestLog_writeValueInteger()
1472 deMutex_unlock(log->lock); in qpTestLog_writeValueInteger()
1476 deMutex_unlock(log->lock); in qpTestLog_writeValueInteger()
1480 deBool qpTestLog_endSample (qpTestLog* log) in qpTestLog_endSample() argument
1482 DE_ASSERT(log); in qpTestLog_endSample()
1483 deMutex_lock(log->lock); in qpTestLog_endSample()
1485 if (!qpXmlWriter_endElement(log->writer, "Sample")) in qpTestLog_endSample()
1488 deMutex_unlock(log->lock); in qpTestLog_endSample()
1492 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_endSample()
1494 deMutex_unlock(log->lock); in qpTestLog_endSample()
1498 deBool qpTestLog_endSampleList (qpTestLog* log) in qpTestLog_endSampleList() argument
1500 DE_ASSERT(log); in qpTestLog_endSampleList()
1501 deMutex_lock(log->lock); in qpTestLog_endSampleList()
1503 if (!qpXmlWriter_endElement(log->writer, "SampleList")) in qpTestLog_endSampleList()
1506 deMutex_unlock(log->lock); in qpTestLog_endSampleList()
1510 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLELIST); in qpTestLog_endSampleList()
1512 deMutex_unlock(log->lock); in qpTestLog_endSampleList()
1516 deUint32 qpTestLog_getLogFlags (const qpTestLog* log) in qpTestLog_getLogFlags() argument
1518 DE_ASSERT(log); in qpTestLog_getLogFlags()
1519 return log->flags; in qpTestLog_getLogFlags()