Lines Matching refs:file
410 GeneratedFile file; in generateWhiteListFile() local
411 if (!file.start(".", "RSStubsWhiteList.cpp")) { in generateWhiteListFile()
415 file.writeNotices(); in generateWhiteListFile()
416 file << "#include \"RSStubsWhiteList.h\"\n\n"; in generateWhiteListFile()
417 file << "std::vector<std::string> stubList = {\n"; in generateWhiteListFile()
419 file << "\"" << e << "\",\n"; in generateWhiteListFile()
421 file << "};\n"; in generateWhiteListFile()
427 static const string addVariable(GeneratedFile* file, unsigned int* variableNumber) { in addVariable() argument
432 *file << "char " << name << "[200];\n"; in addVariable()
440 static void generateTestCall(GeneratedFile* file, ostringstream* calls, in generateTestCall() argument
448 *calls << "*(" << ret->rsType << "*)" << addVariable(file, variableNumber) << " = "; in generateTestCall()
462 *calls << addVariable(file, variableNumber); in generateTestCall()
464 *calls << "(" << p->rsType << "*) " << addVariable(file, variableNumber); in generateTestCall()
466 *calls << "*(" << p->rsType << "*)" << addVariable(file, variableNumber); in generateTestCall()
484 GeneratedFile file; in generateApiTesterFile() local
485 if (!file.start(slangTestDirectory, "all" + to_string(apiLevel) + ".rs")) { in generateApiTesterFile()
492 file << "// -target-api " << apiLevel << " -Wno-deprecated-declarations\n"; in generateApiTesterFile()
494 file.writeNotices(); in generateApiTesterFile()
495 file << "#pragma version(1)\n"; in generateApiTesterFile()
496 file << "#pragma rs java_package_name(com.example.renderscript.testallapi)\n\n"; in generateApiTesterFile()
498 file << "#include \"rs_graphics.rsh\"\n\n"; in generateApiTesterFile()
526 generateTestCall(&file, &calls, &variableNumber, *function, *permutation); in generateApiTesterFile()
533 file << "\n"; in generateApiTesterFile()
537 file << "void RS_KERNEL test(int in, rs_kernel_context context) {\n"; in generateApiTesterFile()
539 file << "void RS_KERNEL test(int in) {\n"; in generateApiTesterFile()
541 file << "void root(const int* in) {\n"; in generateApiTesterFile()
543 file << calls.str(); in generateApiTesterFile()
544 file << "}\n"; in generateApiTesterFile()