Lines Matching refs:mOut
143 if (!mOut.startFile(mOutputDirectory, mClassName + ".h", mRSSourceFilePath,
149 mOut.indent() << "#include \"RenderScript.h\"\n\n";
150 mOut.indent() << "using namespace android::RSC;\n\n";
152 mOut.comment("This class encapsulates access to the exported elements of the script. "
156 mOut.indent() << "class " << mClassName << " : public android::RSC::ScriptC";
157 mOut.startBlock();
159 mOut.decreaseIndent();
160 mOut.indent() << "private:\n";
161 mOut.increaseIndent();
167 mOut.decreaseIndent();
168 mOut.indent() << "public:\n";
169 mOut.increaseIndent();
172 mOut.indent() << mClassName << "(android::RSC::sp<android::RSC::RS> rs);\n";
173 mOut.indent() << "virtual ~" << mClassName << "();\n\n";
179 mOut.endBlock(true);
180 mOut.closeFile();
211 mOut.comment("The following elements are used to verify the types of "
215 mOut.indent() << "android::RSC::sp<const android::RSC::Element> "
230 mOut.comment("For each non-const variable exported by the script, we "
240 mOut.indent() << GetTypeName(ev->getType()) << " " RS_EXPORT_VAR_PREFIX
254 mOut.indent() << "// No forEach_root(...)\n";
259 mOut.comment("For each kernel of the script corresponds one method. "
268 mOut.indent() << FunctionStart;
293 mOut << ");\n";
316 mOut.indent() << "// No forEach_root(...)\n";
323 mOut.indent() << FunctionStart;
346 mOut << ")";
347 mOut.startBlock();
369 mOut.indent() << "forEach(" << slot << ", ";
374 mOut << "ain, ";
376 mOut << "NULL, ";
380 mOut << "aout, ";
382 mOut << "NULL, ";
386 mOut << "NULL, 0);\n";
387 mOut.endBlock();
401 mOut.startBlock();
411 mOut.indent() << "invoke(" << slot;
413 mOut << ", __fp.getData(), " << param_len << ");\n";
415 mOut << ", NULL, 0);\n";
417 mOut.endBlock();
433 mOut.indent() << "static const unsigned char __txt[] =";
434 mOut.startBlock();
436 mOut.indent();
440 mOut << buf2;
442 mOut << "\n";
444 mOut.endBlock(true);
445 mOut << "\n";
450 if (!mOut.startFile(mOutputDirectory, mClassName + ".cpp", mRSSourceFilePath,
457 mOut.indent() << "#include \"" << mClassName << ".h\"\n\n";
460 mOut.indent() << "\n\n";
464 mOut.indent() << mClassName << "::" << mClassName
470 mOut.startBlock();
474 mOut.indent() << kRsElemPrefix << *I << " = android::RSC::Element::" << *I
488 mOut.endBlock();
491 mOut.indent() << mClassName << "::~" << mClassName << "()";
492 mOut.startBlock();
493 mOut.endBlock();
499 mOut.closeFile();
504 mOut
556 mOut.indent() << "void set_" << EV->getName() << "(" << TypeName << " v)";
557 mOut.startBlock();
558 mOut.indent() << "setVar(" << getNextExportVarSlot() << ", ";
560 mOut << "v";
562 mOut << "&v, sizeof(v)";
564 mOut << ");\n";
565 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n";
566 mOut.endBlock();
568 mOut.indent() << TypeName << " get_" << EV->getName() << "() const";
569 mOut.startBlock();
573 mOut.indent() << "return ";
575 mOut << ";\n";
577 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName()
580 mOut.endBlock();
597 mOut.indent() << "void bind_" << VarName << "(" << TypeName << " v)";
598 mOut.startBlock();
599 mOut.indent() << "bindAllocation(v, " << slot << ");\n";
600 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = v;\n";
601 mOut.endBlock();
603 mOut.indent() << TypeName << " get_" << VarName << "() const";
604 mOut.startBlock();
608 mOut.indent() << "return ";
610 mOut << ";\n";
612 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << VarName << ";\n";
614 mOut.endBlock();
625 mOut.indent() << "void set_" << EV->getName() << "("
628 mOut.startBlock();
629 mOut.indent() << "setVar(" << getNextExportVarSlot()
631 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n";
632 mOut.endBlock();
634 mOut.indent() << rtd.type->rs_c_vector_prefix << EVT->getNumElement()
636 mOut.startBlock();
639 mOut.indent() << "return ";
641 mOut << ";\n";
643 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName()
646 mOut.endBlock();
656 mOut.indent() << "void set_" << EV->getName() << "(float v[16])";
657 mOut.startBlock();
658 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*16);\n";
659 mOut.endBlock();
661 mOut.indent() << "void set_" << EV->getName() << "(float v[9])";
662 mOut.startBlock();
663 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*9);";
664 mOut.endBlock();
666 mOut.indent() << "void set_" << EV->getName() << "(float v[4])";
667 mOut.startBlock();
668 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*4);";
669 mOut.endBlock();
671 mOut.indent() << "#error: TODO: " << ET->getName();
689 mOut.indent() << "void set_" << EV->getName() << "(" << GetTypeName(EV->getType()) << " v "
691 mOut.startBlock();
692 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(" << GetTypeName(EV->getType()) + ") *"
694 mOut.endBlock();
704 mOut.indent() << "void ";
706 mOut << mClassName << "::";
708 mOut << "invoke_" << ef->getName() << "(";
716 mOut << ", ";
720 mOut << GetTypeName((*i)->getType()) << " " << (*i)->getName();
725 mOut << ")";
727 mOut << ");\n";
737 mOut << ",\n";
738 mOut.indent() << string(Offset, ' ');
743 mOut << I->Type << " " << I->Name;
745 mOut << " = " << I->DefaultValue;
755 mOut.indent() << "android::RSC::FieldPacker " << FieldPackerName << "("
771 mOut.indent() << FieldPackerName << ".add(" << VarName << ");\n";
827 mOut.indent() << FieldPackerName << ".skip(" << (FieldOffset - Pos)
835 mOut.indent() << FieldPackerName << ".skip("
844 mOut.indent() << FieldPackerName << ".skip(" << ERT->getAllocSize() - Pos
855 mOut.indent() << "// Type check for " << VarName << "\n";
877 mOut.indent() << "if (!" << VarName
880 mOut.startBlock();
881 mOut.indent() << "mRS->throwError(RS_ERROR_RUNTIME_ERROR, "
883 mOut.indent() << "return;\n";
884 mOut.endBlock();
998 mOut.indent() << "memset(&" << RS_EXPORT_VAR_PREFIX << VarName
1007 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = ";
1009 mOut << ";\n";
1017 mOut << ((api.getSExtValue() == 0) ? "false" : "true");
1020 mOut << api.getSExtValue();
1022 mOut << "L";
1032 mOut << s.c_str();
1035 mOut << ".f";
1037 mOut << "f";
1061 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = "