Lines Matching full:indent
149 mOut.indent() << "#include \"RenderScript.h\"\n\n";
150 mOut.indent() << "using namespace android::RSC;\n\n";
156 mOut.indent() << "class " << mClassName << " : public android::RSC::ScriptC";
160 mOut.indent() << "private:\n";
168 mOut.indent() << "public:\n";
172 mOut.indent() << mClassName << "(android::RSC::sp<android::RSC::RS> rs);\n";
173 mOut.indent() << "virtual ~" << mClassName << "();\n\n";
215 mOut.indent() << "android::RSC::sp<const android::RSC::Element> "
240 mOut.indent() << GetTypeName(ev->getType()) << " " RS_EXPORT_VAR_PREFIX
254 mOut.indent() << "// No forEach_root(...)\n";
268 mOut.indent() << FunctionStart;
316 mOut.indent() << "// No forEach_root(...)\n";
323 mOut.indent() << FunctionStart;
369 mOut.indent() << "forEach(" << slot << ", ";
411 mOut.indent() << "invoke(" << slot;
433 mOut.indent() << "static const unsigned char __txt[] =";
436 mOut.indent();
457 mOut.indent() << "#include \"" << mClassName << ".h\"\n\n";
460 mOut.indent() << "\n\n";
464 mOut.indent() << mClassName << "::" << mClassName
474 mOut.indent() << kRsElemPrefix << *I << " = android::RSC::Element::" << *I
491 mOut.indent() << mClassName << "::~" << mClassName << "()";
556 mOut.indent() << "void set_" << EV->getName() << "(" << TypeName << " v)";
558 mOut.indent() << "setVar(" << getNextExportVarSlot() << ", ";
565 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n";
568 mOut.indent() << TypeName << " get_" << EV->getName() << "() const";
573 mOut.indent() << "return ";
577 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName()
597 mOut.indent() << "void bind_" << VarName << "(" << TypeName << " v)";
599 mOut.indent() << "bindAllocation(v, " << slot << ");\n";
600 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = v;\n";
603 mOut.indent() << TypeName << " get_" << VarName << "() const";
608 mOut.indent() << "return ";
612 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << VarName << ";\n";
625 mOut.indent() << "void set_" << EV->getName() << "("
629 mOut.indent() << "setVar(" << getNextExportVarSlot()
631 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n";
634 mOut.indent() << rtd.type->rs_c_vector_prefix << EVT->getNumElement()
639 mOut.indent() << "return ";
643 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName()
656 mOut.indent() << "void set_" << EV->getName() << "(float v[16])";
658 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*16);\n";
661 mOut.indent() << "void set_" << EV->getName() << "(float v[9])";
663 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*9);";
666 mOut.indent() << "void set_" << EV->getName() << "(float v[4])";
668 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*4);";
671 mOut.indent() << "#error: TODO: " << ET->getName();
689 mOut.indent() << "void set_" << EV->getName() << "(" << GetTypeName(EV->getType()) << " v "
692 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(" << GetTypeName(EV->getType()) + ") *"
704 mOut.indent() << "void ";
738 mOut.indent() << string(Offset, ' ');
755 mOut.indent() << "android::RSC::FieldPacker " << FieldPackerName << "("
771 mOut.indent() << FieldPackerName << ".add(" << VarName << ");\n";
794 C.indent() << "for (int " << IndexVarName << " = 0; " <<
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
881 mOut.indent() << "mRS->throwError(RS_ERROR_RUNTIME_ERROR, "
883 mOut.indent() << "return;\n";
998 mOut.indent() << "memset(&" << RS_EXPORT_VAR_PREFIX << VarName
1007 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = ";
1061 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = "