Lines Matching refs:file
412 GeneratedFile file; in generateWhiteListFile() local
413 if (!file.start(".", "RSStubsWhiteList.cpp")) { in generateWhiteListFile()
417 file.writeNotices(); in generateWhiteListFile()
418 file << "#include \"RSStubsWhiteList.h\"\n\n"; in generateWhiteListFile()
419 file << "std::array<std::string_view, " << allManglings.size() << "> stubList = {\n"; in generateWhiteListFile()
421 file << "\"" << e << "\",\n"; in generateWhiteListFile()
423 file << "};\n"; in generateWhiteListFile()
443 static const string addVariable(GeneratedFile* file, unsigned int* variableNumber) { in addVariable() argument
448 *file << "char " << name << "[200];\n"; in addVariable()
456 static void generateTestCall(GeneratedFile* file, ostringstream* calls, in generateTestCall() argument
464 *calls << "*(" << ret->rsType << "*)" << addVariable(file, variableNumber) << " = "; in generateTestCall()
478 *calls << addVariable(file, variableNumber); in generateTestCall()
480 *calls << "(" << p->rsType << "*) " << addVariable(file, variableNumber); in generateTestCall()
482 *calls << "*(" << p->rsType << "*)" << addVariable(file, variableNumber); in generateTestCall()
500 GeneratedFile file; in generateApiTesterFile() local
501 if (!file.start(slangTestDirectory, "all" + to_string(apiLevel) + ".rs")) { in generateApiTesterFile()
508 file << "// -target-api " << apiLevel << " -Wno-deprecated-declarations\n"; in generateApiTesterFile()
510 file.writeNotices(); in generateApiTesterFile()
511 file << "#pragma version(1)\n"; in generateApiTesterFile()
512 file << "#pragma rs java_package_name(com.example.renderscript.testallapi)\n\n"; in generateApiTesterFile()
514 file << "#include \"rs_graphics.rsh\"\n\n"; in generateApiTesterFile()
542 generateTestCall(&file, &calls, &variableNumber, *permutation); in generateApiTesterFile()
549 file << "\n"; in generateApiTesterFile()
553 file << "void RS_KERNEL test(int in, rs_kernel_context context) {\n"; in generateApiTesterFile()
555 file << "void RS_KERNEL test(int in) {\n"; in generateApiTesterFile()
557 file << "void root(const int* in) {\n"; in generateApiTesterFile()
559 file << calls.str(); in generateApiTesterFile()
560 file << "}\n"; in generateApiTesterFile()