Lines Matching refs:indent

459   mOut.indent() << "private static boolean sIs64Bit;\n\n";  in genCompute64Bit()
460 mOut.indent() << "static"; in genCompute64Bit()
462 mOut.indent() << "if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)"; in genCompute64Bit()
464 mOut.indent() << "sIs64Bit = Process.is64Bit();\n"; in genCompute64Bit()
466 mOut.indent() << "else"; in genCompute64Bit()
468 mOut.indent() << "try"; in genCompute64Bit()
470 mOut.indent() << "Field f = RenderScript.class.getDeclaredField(\"sPointerSize\");\n"; in genCompute64Bit()
471 mOut.indent() << "f.setAccessible(true);\n"; in genCompute64Bit()
472 mOut.indent() << "sIs64Bit = (f.getInt(null) == 8);\n"; in genCompute64Bit()
483 mOut.indent() << "catch (Throwable e)"; in genCompute64Bit()
485 mOut.indent() << "sIs64Bit = false;\n"; in genCompute64Bit()
603 mOut.indent() << "private static final String " RS_RESOURCE_NAME " = \"" in genScriptClassConstructor()
608 mOut.indent() << "// Constructor\n"; in genScriptClassConstructor()
617 mOut.indent() << "super(rs,\n"; in genScriptClassConstructor()
618 mOut.indent() << " " << RS_RESOURCE_NAME ",\n"; in genScriptClassConstructor()
619 mOut.indent() << " " << className << ".getBitCode32(),\n"; in genScriptClassConstructor()
620 mOut.indent() << " " << className << ".getBitCode64());\n"; in genScriptClassConstructor()
624 mOut.indent() << "this(rs,\n"; in genScriptClassConstructor()
625 mOut.indent() << " rs.getApplicationContext().getResources(),\n"; in genScriptClassConstructor()
626 mOut.indent() << " rs.getApplicationContext().getResources()." in genScriptClassConstructor()
628 mOut.indent() << " " RS_RESOURCE_NAME ", \"raw\",\n"; in genScriptClassConstructor()
629 mOut.indent() in genScriptClassConstructor()
637 mOut.indent() << "super(rs, resources, id);\n"; in genScriptClassConstructor()
651 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = new " in genScriptClassConstructor()
671 mOut.indent() << SAVED_RS_REFERENCE << " = rs;\n"; in genScriptClassConstructor()
720 mOut.indent() << "private Element " RS_ELEM_PREFIX << *I << ";\n"; in genScriptClassConstructor()
726 mOut.indent() << "private FieldPacker " RS_FP_PREFIX << *I << ";\n"; in genScriptClassConstructor()
732 mOut.indent() << "private RenderScript " << SAVED_RS_REFERENCE << ";\n"; in genScriptClassConstructor()
742 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = "; in genInitBoolExportVariable()
752 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = "; in genInitPrimitiveExportVariable()
794 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = new " in genInitExportVariable()
834 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName in genInitExportVariable()
869 mOut.indent() << "private final static int " << RS_EXPORT_VAR_INDEX_PREFIX in genExportVariable()
906 mOut.indent() << "private final static int " << RS_EXPORT_FUNC_INDEX_PREFIX in genExportFunction()
927 mOut.indent() << "return createInvokeID(" << RS_EXPORT_FUNC_INDEX_PREFIX in genExportFunction()
942 mOut.indent() << "invoke(" << RS_EXPORT_FUNC_INDEX_PREFIX << EF->getName() in genExportFunction()
957 mOut.indent() << "invoke(" << RS_EXPORT_FUNC_INDEX_PREFIX << EF->getName() in genExportFunction()
967 mOut.indent() << "// Verify dimensions\n"; in genPairwiseDimCheck()
968 mOut.indent() << "t0 = " << name0 << ".getType();\n"; in genPairwiseDimCheck()
969 mOut.indent() << "t1 = " << name1 << ".getType();\n"; in genPairwiseDimCheck()
970 mOut.indent() << "if ((t0.getCount() != t1.getCount()) ||\n"; in genPairwiseDimCheck()
971 mOut.indent() << " (t0.getX() != t1.getX()) ||\n"; in genPairwiseDimCheck()
972 mOut.indent() << " (t0.getY() != t1.getY()) ||\n"; in genPairwiseDimCheck()
973 mOut.indent() << " (t0.getZ() != t1.getZ()) ||\n"; in genPairwiseDimCheck()
974 mOut.indent() << " (t0.hasFaces() != t1.hasFaces()) ||\n"; in genPairwiseDimCheck()
975 mOut.indent() << " (t0.hasMipmaps() != t1.hasMipmaps())) {\n"; in genPairwiseDimCheck()
976 mOut.indent() << " throw new RSRuntimeException(\"Dimension mismatch " in genPairwiseDimCheck()
979 mOut.indent() << "}\n\n"; in genPairwiseDimCheck()
983 mOut.indent() << "// Verify that \"" << ArrayName << "\" is non-null.\n"; in genNullArrayCheck()
984 mOut.indent() << "if (" << ArrayName << " == null) {\n"; in genNullArrayCheck()
985 mOut.indent() << " throw new RSIllegalArgumentException(\"Array \\\"" in genNullArrayCheck()
987 mOut.indent() << "}\n"; in genNullArrayCheck()
992 mOut.indent() << "// Verify that the array length is a multiple of the vector size.\n"; in genVectorLengthCompatibilityCheck()
993 mOut.indent() << "if (" << ArrayName << ".length % " << std::to_string(VecSize) in genVectorLengthCompatibilityCheck()
995 mOut.indent() << " throw new RSIllegalArgumentException(\"Array \\\"" << ArrayName in genVectorLengthCompatibilityCheck()
998 mOut.indent() << "}\n"; in genVectorLengthCompatibilityCheck()
1010 mOut.indent() << "//private final static int " in genExportForEach()
1019 mOut.indent() << "private final static int " << RS_EXPORT_FOREACH_INDEX_PREFIX in genExportForEach()
1080 mOut.indent() << "return createKernelID(" << RS_EXPORT_FOREACH_INDEX_PREFIX in genExportForEach()
1093 mOut.indent() << "forEach_" << EF->getName(); in genExportForEach()
1150 mOut.indent() << "Type t0, t1;"; in genExportForEach()
1154 mOut.indent() << "Type t0, t1;"; in genExportForEach()
1184 mOut.indent() << "forEach(" << RS_EXPORT_FOREACH_INDEX_PREFIX in genExportForEach()
1288 mOut.indent() << "private final static int " << RS_EXPORT_REDUCE_INDEX_PREFIX in genExportReduce()
1396 mOut.indent() << "// " << InComment << "\n"; in genExportReduceArrayVariant()
1416 mOut.indent() << "// Verify that input array lengths are the same.\n"; in genExportReduceArrayVariant()
1417 mOut.indent() << "if (" << In1Length << " != " << InLength << ") {\n"; in genExportReduceArrayVariant()
1418 mOut.indent() << " throw new RSRuntimeException(\"Array length mismatch " in genExportReduceArrayVariant()
1421 mOut.indent() << "}\n"; in genExportReduceArrayVariant()
1425 mOut.indent() << "Allocation " << TempName << " = Allocation.createSized(" in genExportReduceArrayVariant()
1429 mOut.indent() << TempName << ".setAutoPadding(true);\n"; in genExportReduceArrayVariant()
1430 mOut.indent() << TempName << ".copyFrom(" << ArgName << ");\n"; in genExportReduceArrayVariant()
1440 …mOut.indent() << ResultTypeName << " result = " << MethodName << "(" << InputAllocationOutgoingArg… in genExportReduceArrayVariant()
1442 mOut.indent() << "result.mTempIns = new Allocation[]{"; in genExportReduceArrayVariant()
1454 mOut.indent() << "return result;\n"; in genExportReduceArrayVariant()
1478 mOut.indent() << "// " << InComment << "\n"; in genExportReduceAllocationVariant()
1480 mOut.indent() << "return " << MethodName << "("; in genExportReduceAllocationVariant()
1498 mOut.indent() << "// " << InComment << "\n"; in genExportReduceAllocationVariant()
1503 mOut.indent() << "Type t0, t1;\n"; in genExportReduceAllocationVariant()
1516 mOut.indent() << "Allocation " << OutputAllocName << " = Allocation.createSized(" in genExportReduceAllocationVariant()
1520 mOut.indent() << OutputAllocName << ".setAutoPadding(true);\n"; in genExportReduceAllocationVariant()
1522 mOut.indent() << "reduce(" << RS_EXPORT_REDUCE_INDEX_PREFIX << ER->getNameReduce() in genExportReduceAllocationVariant()
1527 mOut.indent() << "return new " << ResultTypeName << "(" << OutputAllocName << ");\n"; in genExportReduceAllocationVariant()
1603 Out.indent() << "if (" << InVal << " < 0)\n"; in genReduceResultRangeCheck()
1604 Out.indent() << " throw new RSRuntimeException(\"Result is not representible in Java\");\n"; in genReduceResultRangeCheck()
1615 mOut.indent() << "// To obtain the result, invoke get(), which blocks\n"; in genExportReduceResultType()
1616 mOut.indent() << "// until the asynchronously-launched operation has completed.\n"; in genExportReduceResultType()
1617 mOut.indent() << "public static class " << ClassName; in genExportReduceResultType()
1641 mOut.indent() << "if (!mGotResult)"; in genExportReduceResultType()
1647 mOut.indent() << ArrayElementTypeName << "[] outArray = new " << ArrayElementTypeName in genExportReduceResultType()
1649 mOut.indent() << "mOut.copyTo(outArray);\n"; in genExportReduceResultType()
1654 mOut.indent() << "mResult = " in genExportReduceResultType()
1661 mOut.indent() << "mResult = outArray;\n"; in genExportReduceResultType()
1668 mOut.indent() << GetTypeName(ResultType) << " result = new " in genExportReduceResultType()
1672 mOut.indent() << "for (int Idx = 0; Idx < " << TypeData.arraySize << "; ++Idx)"; in genExportReduceResultType()
1677 mOut.indent() << "result[Idx] = " in genExportReduceResultType()
1683 …mOut.indent() << "mResult = " << (MFA == MapFromAllocationPositive ? "outArray" : "result") << ";\… in genExportReduceResultType()
1691 mOut.indent() << ArrayElementTypeName << "[] outArray = new " << ArrayElementTypeName in genExportReduceResultType()
1693 mOut.indent() << "mOut.copyTo(outArray);\n"; in genExportReduceResultType()
1695 mOut.indent() << "for (int Idx = 0; Idx < " << OutArrayElementCount << "; ++Idx)"; in genExportReduceResultType()
1702 mOut.indent() << "mResult = " in genExportReduceResultType()
1714 mOut.indent() << GetTypeName(ResultType) << " result = new " in genExportReduceResultType()
1717 mOut.indent() << "for (int Idx = 0; Idx < " << TypeData.arraySize << "; ++Idx)"; in genExportReduceResultType()
1719 mOut.indent() << "result[Idx] = " in genExportReduceResultType()
1726 mOut.indent() << "mResult = result;\n"; in genExportReduceResultType()
1730 mOut.indent() << "mOut.destroy();\n"; in genExportReduceResultType()
1731 mOut.indent() << "mOut = null; // make Java object eligible for garbage collection\n"; in genExportReduceResultType()
1732 mOut.indent() << "if (mTempIns != null)"; in genExportReduceResultType()
1734 mOut.indent() << "for (Allocation tempIn : mTempIns)"; in genExportReduceResultType()
1736 mOut.indent() << "tempIn.destroy();\n"; in genExportReduceResultType()
1738 mOut.indent() << "mTempIns = null; // make Java objects eligible for garbage collection\n"; in genExportReduceResultType()
1740 mOut.indent() << "mGotResult = true;\n"; in genExportReduceResultType()
1743 mOut.indent() << "return mResult;\n"; in genExportReduceResultType()
1750 mOut.indent() << "mTempIns = null;\n"; in genExportReduceResultType()
1751 mOut.indent() << "mOut = out;\n"; in genExportReduceResultType()
1752 mOut.indent() << "mGotResult = false;\n"; in genExportReduceResultType()
1754 mOut.indent() << "private Allocation[] mTempIns;\n"; in genExportReduceResultType()
1755 mOut.indent() << "private Allocation mOut;\n"; in genExportReduceResultType()
1759 mOut.indent() << "private boolean mGotResult;\n"; in genExportReduceResultType()
1760 mOut.indent() << "private " << GetMethodReturnTypeName << " mResult;\n"; in genExportReduceResultType()
1785 mOut.indent() << RS_ELEM_PREFIX << TypeName << " = Element." << TypeName in genTypeInstance()
1794 mOut.indent() << RS_ELEM_PREFIX << ClassName << " = " << ClassName in genTypeInstance()
1823 mOut.indent() << "// check " << VarName << "\n"; in genTypeCheck()
1846 mOut.indent() << "if (!" << VarName in genTypeCheck()
1849 mOut.indent() << " throw new RSRuntimeException(\"Type mismatch with " in genTypeCheck()
1851 mOut.indent() << "}\n"; in genTypeCheck()
1868 mOut.indent() << "public final static " << TypeName in genPrimitiveTypeExportVariable()
1888 mOut.indent() << "if (" << FPName << "!= null) {\n"; in genPrimitiveTypeExportVariable()
1890 mOut.indent() << FPName << ".reset();\n"; in genPrimitiveTypeExportVariable()
1892 mOut.indent() << "} else {\n"; in genPrimitiveTypeExportVariable()
1894 mOut.indent() << FPName << " = new FieldPacker(" << EPT->getElementSizeInBytes() in genPrimitiveTypeExportVariable()
1897 mOut.indent() << "}\n"; in genPrimitiveTypeExportVariable()
1900 mOut.indent() << "setVar(" << RS_EXPORT_VAR_INDEX_PREFIX << VarName in genPrimitiveTypeExportVariable()
1903 mOut.indent() << "setVar(" << RS_EXPORT_VAR_INDEX_PREFIX << VarName in genPrimitiveTypeExportVariable()
1909 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = v;\n"; in genPrimitiveTypeExportVariable()
1978 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = v;\n"; in genPointerTypeExportVariable()
1979 mOut.indent() << "if (v == null) bindAllocation(null, " in genPointerTypeExportVariable()
1983 mOut.indent() << "else bindAllocation(v.getAllocation(), " in genPointerTypeExportVariable()
1986 mOut.indent() << "else bindAllocation(v, " << RS_EXPORT_VAR_INDEX_PREFIX in genPointerTypeExportVariable()
2023 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = v;\n"; in genMatrixTypeExportVariable()
2027 mOut.indent() << "setVar(" RS_EXPORT_VAR_INDEX_PREFIX << VarName << ", " in genMatrixTypeExportVariable()
2072 mOut.indent() << "private " << TypeName << " " << RS_EXPORT_VAR_PREFIX in genPrivateExportVariable()
2087 mOut.indent() << RS_EXPORT_VAR_PREFIX << VarName << " = v;\n"; in genSetExportVariable()
2094 mOut.indent() << "setVar(" << RS_EXPORT_VAR_INDEX_PREFIX << VarName in genSetExportVariable()
2099 mOut.indent() << "int []__dimArr = new int[1];\n"; in genSetExportVariable()
2100 mOut.indent() << "__dimArr[0] = " << Dimension << ";\n"; in genSetExportVariable()
2101 mOut.indent() << "setVar(" << RS_EXPORT_VAR_INDEX_PREFIX << VarName in genSetExportVariable()
2114 mOut.indent() << "return " << RS_EXPORT_VAR_PREFIX << VarName << ";\n"; in genGetExportVariable()
2125 mOut.indent() << "return createFieldID(" << RS_EXPORT_VAR_INDEX_PREFIX in genGetFieldID()
2141 mOut.indent() << "FieldPacker " << FieldPackerName << " = new FieldPacker("; in genCreateFieldPacker()
2160 mOut.indent() << FieldPackerName << "." in genPackVarOfType()
2172 mOut.indent() << FieldPackerName << ".addI32(" << VarName in genPackVarOfType()
2175 mOut.indent() << FieldPackerName << ".addI32(" << VarName in genPackVarOfType()
2181 mOut.indent() << FieldPackerName << ".addMatrix(" << VarName << ");\n"; in genPackVarOfType()
2204 mOut.indent() << "for (int " << IndexVarName << " = 0; " << IndexVarName in genPackVarOfType()
2225 mOut.indent() << FieldPackerName << ".skip("; in genPackVarOfType()
2290 mOut.indent() << VarName << " = null;\n"; in genAllocateVarOfType()
2298 mOut.indent() << VarName << " = new " << GetTypeName(ElementType) << "[" in genAllocateVarOfType()
2303 mOut.indent() << "for (int $ct = 0; $ct < " << ECAT->getNumElement() in genAllocateVarOfType()
2318 mOut.indent() << VarName << " = new " << GetTypeName(T) << "();\n"; in genAllocateVarOfType()
2325 mOut.indent() << "if (" << RS_TYPE_ITEM_BUFFER_NAME " == null) "; in genNewItemBufferIfNull()
2329 mOut.indent() << "if (" << RS_TYPE_ITEM_BUFFER_NAME << "[" << Index in genNewItemBufferIfNull()
2337 mOut.indent() << "if (" << RS_TYPE_ITEM_BUFFER_PACKER_NAME << " == null) "; in genNewItemBufferPackerIfNull()
2364 mOut.indent() << "private " << RS_TYPE_ITEM_CLASS_NAME << " " in genTypeClass()
2366 mOut.indent() << "private FieldPacker " << RS_TYPE_ITEM_BUFFER_PACKER_NAME in genTypeClass()
2368 mOut.indent() << "private static java.lang.ref.WeakReference<Element> " in genTypeClass()
2397 mOut.indent() << "static public class " RS_TYPE_ITEM_CLASS_NAME; in genTypeItemClass()
2402 mOut.indent() << "public static final int sizeof = " << ERT->getAllocSize() in genTypeItemClass()
2411 mOut.indent() << GetTypeName((*FI)->getType()) << " " << (*FI)->getName() in genTypeItemClass()
2417 mOut.indent() << RS_TYPE_ITEM_CLASS_NAME << "()"; in genTypeItemClass()
2448 mOut.indent() << "return eb.create();\n"; in genTypeClassConstructor()
2458 mOut.indent() << RS_TYPE_ITEM_BUFFER_NAME << " = null;\n"; in genTypeClassConstructor()
2459 mOut.indent() << RS_TYPE_ITEM_BUFFER_PACKER_NAME << " = null;\n"; in genTypeClassConstructor()
2460 mOut.indent() << "mElement = createElement(" << RenderScriptVar << ");\n"; in genTypeClassConstructor()
2467 mOut.indent() << RS_TYPE_ITEM_BUFFER_NAME << " = null;\n"; in genTypeClassConstructor()
2468 mOut.indent() << RS_TYPE_ITEM_BUFFER_PACKER_NAME << " = null;\n"; in genTypeClassConstructor()
2469 mOut.indent() << "mElement = createElement(" << RenderScriptVar << ");\n"; in genTypeClassConstructor()
2471 mOut.indent() << "init(" << RenderScriptVar << ", count);\n"; in genTypeClassConstructor()
2478 mOut.indent() << RS_TYPE_ITEM_BUFFER_NAME << " = null;\n"; in genTypeClassConstructor()
2479 mOut.indent() << RS_TYPE_ITEM_BUFFER_PACKER_NAME << " = null;\n"; in genTypeClassConstructor()
2480 mOut.indent() << "mElement = createElement(" << RenderScriptVar << ");\n"; in genTypeClassConstructor()
2482 mOut.indent() << "init(" << RenderScriptVar << ", count, usages);\n"; in genTypeClassConstructor()
2489 mOut.indent() << getClassName() << " obj = new " << getClassName() << "(" in genTypeClassConstructor()
2491 mOut.indent() << "obj.mAllocation = Allocation.createSized(" in genTypeClassConstructor()
2493 mOut.indent() << "return obj;\n"; in genTypeClassConstructor()
2499 mOut.indent() << "return create1D(" << RenderScriptVar in genTypeClassConstructor()
2506 mOut.indent() << "return create2D(" << RenderScriptVar in genTypeClassConstructor()
2515 mOut.indent() << getClassName() << " obj = new " << getClassName() << "(" in genTypeClassConstructor()
2517 mOut.indent() << "Type.Builder b = new Type.Builder(rs, obj.mElement);\n"; in genTypeClassConstructor()
2518 mOut.indent() << "b.setX(dimX);\n"; in genTypeClassConstructor()
2519 mOut.indent() << "b.setY(dimY);\n"; in genTypeClassConstructor()
2520 mOut.indent() << "Type t = b.create();\n"; in genTypeClassConstructor()
2521 mOut.indent() << "obj.mAllocation = Allocation.createTyped(rs, t, usages);\n"; in genTypeClassConstructor()
2522 mOut.indent() << "return obj;\n"; in genTypeClassConstructor()
2528 mOut.indent() << "Element e = createElement(" << RenderScriptVar << ");\n"; in genTypeClassConstructor()
2529 mOut.indent() << "return new Type.Builder(rs, e);\n"; in genTypeClassConstructor()
2536 mOut.indent() << getClassName() << " obj = new " << getClassName() << "(" in genTypeClassConstructor()
2538 mOut.indent() << "Type t = tb.create();\n"; in genTypeClassConstructor()
2539 mOut.indent() << "if (t.getElement() != obj.mElement) {\n"; in genTypeClassConstructor()
2540 mOut.indent() << " throw new RSIllegalArgumentException(" in genTypeClassConstructor()
2542 mOut.indent() << "}\n"; in genTypeClassConstructor()
2543 mOut.indent() << "obj.mAllocation = Allocation.createTyped(rs, t, usages);\n"; in genTypeClassConstructor()
2544 mOut.indent() << "return obj;\n"; in genTypeClassConstructor()
2553 mOut.indent() << RS_TYPE_ITEM_BUFFER_PACKER_NAME << ".reset(index * " in genTypeClassCopyToArray()
2556 mOut.indent() << "copyToArrayLocal(i, " RS_TYPE_ITEM_BUFFER_PACKER_NAME in genTypeClassCopyToArray()
2577 mOut.indent() << RS_TYPE_ITEM_BUFFER_NAME << "[index] = i;\n"; in genTypeClassItemSetter()
2579 mOut.indent() << "if (copyNow) "; in genTypeClassItemSetter()
2582 mOut.indent() << "copyToArray(i, index);\n"; in genTypeClassItemSetter()
2583 mOut.indent() << "FieldPacker fp = new FieldPacker(" << mItemSizeof << ");\n"; in genTypeClassItemSetter()
2584 mOut.indent() << "copyToArrayLocal(i, fp);\n"; in genTypeClassItemSetter()
2585 mOut.indent() << "mAllocation.setFromFieldPacker(index, fp);\n"; in genTypeClassItemSetter()
2596 mOut.indent() << "if (" << RS_TYPE_ITEM_BUFFER_NAME in genTypeClassItemGetter()
2598 mOut.indent() << "return " << RS_TYPE_ITEM_BUFFER_NAME << "[index];\n"; in genTypeClassItemGetter()
2622 mOut.indent() << RS_TYPE_ITEM_BUFFER_NAME << "[index]." << F->getName() in genTypeClassComponentSetter()
2625 mOut.indent() << "if (copyNow) "; in genTypeClassComponentSetter()
2628 mOut.indent() << RS_TYPE_ITEM_BUFFER_PACKER_NAME << ".reset(index * " in genTypeClassComponentSetter()
2635 mOut.indent() << "FieldPacker fp = new FieldPacker("; in genTypeClassComponentSetter()
2640 mOut.indent() << "mAllocation.setFromFieldPacker(index, "; in genTypeClassComponentSetter()
2661 mOut.indent() << "if (" RS_TYPE_ITEM_BUFFER_NAME << " == null) return " in genTypeClassComponentGetter()
2663 mOut.indent() << "return " RS_TYPE_ITEM_BUFFER_NAME << "[index]." in genTypeClassComponentGetter()
2672 mOut.indent() << "for (int ct = 0; ct < " << RS_TYPE_ITEM_BUFFER_NAME in genTypeClassCopyAll()
2676 mOut.indent() << "mAllocation.setFromFieldPacker(0, " in genTypeClassCopyAll()
2686 mOut.indent() << "if (mItemArray != null) "; in genTypeClassResize()
2688 mOut.indent() << "int oldSize = mItemArray.length;\n"; in genTypeClassResize()
2689 mOut.indent() << "int copySize = Math.min(oldSize, newSize);\n"; in genTypeClassResize()
2690 mOut.indent() << "if (newSize == oldSize) return;\n"; in genTypeClassResize()
2691 mOut.indent() << "Item ni[] = new Item[newSize];\n"; in genTypeClassResize()
2692 mOut.indent() << "System.arraycopy(mItemArray, 0, ni, 0, copySize);\n"; in genTypeClassResize()
2693 mOut.indent() << "mItemArray = ni;\n"; in genTypeClassResize()
2695 mOut.indent() << "mAllocation.resize(newSize);\n"; in genTypeClassResize()
2697 mOut.indent() << "if (" RS_TYPE_ITEM_BUFFER_PACKER_NAME in genTypeClassResize()
2723 mOut->indent() << "Element.Builder " << mElementBuilderName in generate()
2887 mOut->indent() << "if ("; in genAddPadding()
2903 mOut->indent() << "if ("; in genAddPadding()
2909 mOut->indent() << "else"; in genAddPadding()
2916 mOut->indent() << mElementBuilderName << ".add("; in genAddStatementStart()
3057 mOut.indent() << "public static class " << ClassName; in startTypeClass()
3086 mOut.indent() << AccessModifierStr(AM) << ((IsStatic) ? " static " : " ") in startFunction()