Lines Matching defs:function

48 // Returns true if any permutation of the function have tests to b
49 static bool needTestFiles(const Function& function, unsigned int versionOfTestFiles) {
50 for (auto spec : function.getSpecifications()) {
58 /* One instance of this class is generated for each permutation of a function for which
81 /* Shortcuts to the return parameter and the first input parameter of the function
126 /* Generate the code that verify the results for a RenderScript function where a vector
134 // Generate the method header of the verify function.
171 // Write the script test function for this permutation.
889 * For example, if we have a function that takes three arguments, two for input
928 // Write the function header.
963 // Write the function call.
1013 static bool startJavaFile(GeneratedFile* file, const Function& function, const string& directory,
1062 static void finishJavaFile(GeneratedFile* file, const Function& function,
1064 file->indent() << "public void test" << function.getCapitalizedName() << "()";
1075 static bool startRsFile(GeneratedFile* file, const Function& function, const string& directory,
1089 static bool writeRelaxedRsFile(const Function& function, const string& directory,
1108 static bool writeTestFilesForFunction(const Function& function, const string& directory,
1110 // Avoid creating empty files if we're not testing this function.
1111 if (!needTestFiles(function, versionOfTestFiles)) {
1115 const string testName = "Test" + function.getCapitalizedName();
1118 if (!writeRelaxedRsFile(function, directory, testName, relaxedTestName)) {
1124 if (!startRsFile(&rsFile, function, directory, testName)) {
1128 if (!startJavaFile(&javaFile, function, directory, testName, relaxedTestName)) {
1140 for (auto spec : function.getSpecifications()) {
1153 finishJavaFile(&javaFile, function, javaCheckMethods);