• Home
  • Raw
  • Download

Lines Matching refs:indent

149   mOut.indent() << "#include \"RenderScript.h\"\n\n";  in writeHeaderFile()
152 mOut.indent() << "using namespace android::RSC; // NOLINT\n\n"; in writeHeaderFile()
158 mOut.indent() << "class " << mClassName << " : public android::RSC::ScriptC"; in writeHeaderFile()
162 mOut.indent() << "private:\n"; in writeHeaderFile()
170 mOut.indent() << "public:\n"; in writeHeaderFile()
174 mOut.indent() << mClassName << "(android::RSC::sp<android::RSC::RS> rs);\n"; in writeHeaderFile()
175 mOut.indent() << "virtual ~" << mClassName << "();\n\n"; in writeHeaderFile()
217 mOut.indent() << "android::RSC::sp<const android::RSC::Element> " in genFieldsForAllocationTypeVerification()
242 mOut.indent() << GetTypeName(ev->getType()) << " " RS_EXPORT_VAR_PREFIX in genFieldsToStoreExportVariableValues()
256 mOut.indent() << "// No forEach_root(...)\n"; in genForEachDeclarations()
270 mOut.indent() << FunctionStart; in genForEachDeclarations()
318 mOut.indent() << "// No forEach_root(...)\n"; in genExportForEachBodies()
325 mOut.indent() << FunctionStart; in genExportForEachBodies()
371 mOut.indent() << "forEach(" << slot << ", "; in genExportForEachBodies()
413 mOut.indent() << "invoke(" << slot; in genExportFunctionBodies()
435 mOut.indent() << "static const unsigned char __txt[] ="; in genEncodedBitCode()
438 mOut.indent(); in genEncodedBitCode()
459 mOut.indent() << "#include \"" << mClassName << ".h\"\n\n"; in writeImplementationFile()
462 mOut.indent() << "\n\n"; in writeImplementationFile()
466 mOut.indent() << mClassName << "::" << mClassName in writeImplementationFile()
476 mOut.indent() << kRsElemPrefix << *I << " = android::RSC::Element::" << *I in writeImplementationFile()
493 mOut.indent() << mClassName << "::~" << mClassName << "()"; in writeImplementationFile()
558 mOut.indent() << "void set_" << EV->getName() << "(" << TypeName << " v)"; in genGetterAndSetter()
560 mOut.indent() << "setVar(" << getNextExportVarSlot() << ", "; in genGetterAndSetter()
567 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n"; in genGetterAndSetter()
570 mOut.indent() << TypeName << " get_" << EV->getName() << "() const"; in genGetterAndSetter()
575 mOut.indent() << "return "; in genGetterAndSetter()
579 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName() in genGetterAndSetter()
599 mOut.indent() << "void bind_" << VarName << "(" << TypeName << " v)"; in genPointerTypeExportVariable()
601 mOut.indent() << "bindAllocation(v, " << slot << ");\n"; in genPointerTypeExportVariable()
602 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = v;\n"; in genPointerTypeExportVariable()
605 mOut.indent() << TypeName << " get_" << VarName << "() const"; in genPointerTypeExportVariable()
610 mOut.indent() << "return "; in genPointerTypeExportVariable()
614 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << VarName << ";\n"; in genPointerTypeExportVariable()
627 mOut.indent() << "void set_" << EV->getName() << "(" in genGetterAndSetter()
631 mOut.indent() << "setVar(" << getNextExportVarSlot() in genGetterAndSetter()
633 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = v;\n"; in genGetterAndSetter()
636 mOut.indent() << rtd.type->rs_c_vector_prefix << EVT->getNumElement() in genGetterAndSetter()
641 mOut.indent() << "return "; in genGetterAndSetter()
645 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << EV->getName() in genGetterAndSetter()
658 mOut.indent() << "void set_" << EV->getName() << "(float v[16])"; in genMatrixTypeExportVariable()
660 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*16);\n"; in genMatrixTypeExportVariable()
663 mOut.indent() << "void set_" << EV->getName() << "(float v[9])"; in genMatrixTypeExportVariable()
665 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*9);"; in genMatrixTypeExportVariable()
668 mOut.indent() << "void set_" << EV->getName() << "(float v[4])"; in genMatrixTypeExportVariable()
670 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(float)*4);"; in genMatrixTypeExportVariable()
673 mOut.indent() << "#error: TODO: " << ET->getName(); in genMatrixTypeExportVariable()
691 mOut.indent() << "void set_" << EV->getName() << "(" << GetTypeName(EV->getType()) << " v " in genGetterAndSetter()
694 mOut.indent() << "setVar(" << tmp.str() << ", v, sizeof(" << GetTypeName(EV->getType()) + ") *" in genGetterAndSetter()
706 mOut.indent() << "void "; in makeFunctionSignature()
740 mOut.indent() << string(Offset, ' '); in genArguments()
757 mOut.indent() << "android::RSC::FieldPacker " << FieldPackerName << "(" in genCreateFieldPacker()
773 mOut.indent() << FieldPackerName << ".add(" << VarName << ");\n"; in genPackVarOfType()
829 mOut.indent() << FieldPackerName << ".skip(" << (FieldOffset - Pos) in genPackVarOfType()
837 mOut.indent() << FieldPackerName << ".skip(" in genPackVarOfType()
846 mOut.indent() << FieldPackerName << ".skip(" << ERT->getAllocSize() - Pos in genPackVarOfType()
857 mOut.indent() << "// Type check for " << VarName << "\n"; in genTypeCheck()
879 mOut.indent() << "if (!" << VarName in genTypeCheck()
883 mOut.indent() << "mRS->throwError(RS_ERROR_RUNTIME_ERROR, " in genTypeCheck()
885 mOut.indent() << "return;\n"; in genTypeCheck()
1000 mOut.indent() << "memset(&" << RS_EXPORT_VAR_PREFIX << VarName in genZeroInitExportVariable()
1009 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = "; in genInitPrimitiveExportVariable()
1063 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = " in genInitBoolExportVariable()