Home
last modified time | relevance | path

Searched refs:indent (Results 1 – 25 of 90) sorted by relevance

1234

/frameworks/base/tools/stats_log_api_gen/
Djava_writer_q.cpp23 void write_java_q_logging_constants(FILE* out, const string& indent) { in write_java_q_logging_constants() argument
24 fprintf(out, "%s// Payload limits.\n", indent.c_str()); in write_java_q_logging_constants()
25 fprintf(out, "%sprivate static final int LOGGER_ENTRY_MAX_PAYLOAD = 4068;\n", indent.c_str()); in write_java_q_logging_constants()
28 indent.c_str()); in write_java_q_logging_constants()
32 fprintf(out, "%s// Value types.\n", indent.c_str()); in write_java_q_logging_constants()
33 fprintf(out, "%sprivate static final byte INT_TYPE = 0;\n", indent.c_str()); in write_java_q_logging_constants()
34 fprintf(out, "%sprivate static final byte LONG_TYPE = 1;\n", indent.c_str()); in write_java_q_logging_constants()
35 fprintf(out, "%sprivate static final byte STRING_TYPE = 2;\n", indent.c_str()); in write_java_q_logging_constants()
36 fprintf(out, "%sprivate static final byte LIST_TYPE = 3;\n", indent.c_str()); in write_java_q_logging_constants()
37 fprintf(out, "%sprivate static final byte FLOAT_TYPE = 4;\n", indent.c_str()); in write_java_q_logging_constants()
[all …]
Djava_writer.cpp85 string indent(""); in write_java_methods() local
91 indent = " "; in write_java_methods()
96 indent.c_str()); in write_java_methods()
99 fprintf(out, "%s builder.setAtomId(code);\n", indent.c_str()); in write_java_methods()
107 fprintf(out, "%s builder.writeBoolean(arg%d);\n", indent.c_str(), argIndex); in write_java_methods()
111 fprintf(out, "%s builder.writeInt(arg%d);\n", indent.c_str(), argIndex); in write_java_methods()
114 fprintf(out, "%s builder.writeFloat(arg%d);\n", indent.c_str(), argIndex); in write_java_methods()
117 fprintf(out, "%s builder.writeLong(arg%d);\n", indent.c_str(), argIndex); in write_java_methods()
120 fprintf(out, "%s builder.writeString(arg%d);\n", indent.c_str(), argIndex); in write_java_methods()
124 indent.c_str(), argIndex, argIndex); in write_java_methods()
[all …]
Dnative_writer_q.cpp24 const AtomDecl& attributionDecl, const string& indent, const string& tryMethodName) { in write_native_stats_write_body_q() argument
25 fprintf(out, "%sint ret = 0;\n", indent.c_str()); in write_native_stats_write_body_q()
27 fprintf(out, "%sfor(int retry = 0; retry < 2; ++retry) {\n", indent.c_str()); in write_native_stats_write_body_q()
28 fprintf(out, "%s ret = ", indent.c_str()); in write_native_stats_write_body_q()
30 fprintf(out, "%s if (ret >= 0) { break; }\n", indent.c_str()); in write_native_stats_write_body_q()
32 fprintf(out, "%s {\n", indent.c_str()); in write_native_stats_write_body_q()
33 fprintf(out, "%s std::lock_guard<std::mutex> lock(mLogdRetryMutex);\n", indent.c_str()); in write_native_stats_write_body_q()
35 "kMinRetryIntervalNs) break;\n", indent.c_str()); in write_native_stats_write_body_q()
37 indent.c_str()); in write_native_stats_write_body_q()
38 fprintf(out, "%s }\n", indent.c_str()); in write_native_stats_write_body_q()
[all …]
Djava_writer_q.h33 void write_java_q_logging_constants(FILE* out, const string& indent);
40 const string& indent);
46 const string& indent);
/frameworks/native/vulkan/tools/
Dvkinfo.cpp339 size_t indent) { in PrintExtensions() argument
341 printf("%s%s (v%u)\n", Indent(indent), e.extensionName, e.specVersion); in PrintExtensions()
348 size_t indent) { in PrintLayers() argument
350 printf("%s%s %u.%u.%u/%u\n", Indent(indent), layers[i].layerName, in PrintLayers()
356 printf("%s%s\n", Indent(indent + 1), layers[i].description); in PrintLayers()
359 printf("%sExtensions [%zu]:\n", Indent(indent + 1), in PrintLayers()
361 PrintExtensions(extensions[i], options, indent + 2); in PrintLayers()
367 void PrintAllFeatures(const char* indent, in PrintAllFeatures() argument
370 printf("%srobustBufferAccess: %s\n", indent, features.robustBufferAccess ? "YES" : "NO"); in PrintAllFeatures()
371 printf("%sfullDrawIndexUint32: %s\n", indent, features.fullDrawIndexUint32 ? "YES" : "NO"); in PrintAllFeatures()
[all …]
/frameworks/native/opengl/tools/glgen/src/
DJniCodeEmitter.java34 protected static String indent = " "; field in JniCodeEmitter
184 out.println(iii + indent + "get" + typeName + "Array(" + argName + "),"); in emitFunctionCall()
185 out.print(iii + indent + "getOffset(" + argName + ")"); in emitFunctionCall()
187 out.print(iii + indent + argName); in emitFunctionCall()
192 out.println(iii + indent + argName + ".remaining()"); in emitFunctionCall()
218 out.println(iii + indent + "_exception = 1;"); in printIfcheckPostamble()
219 out.println(iii + indent + in printIfcheckPostamble()
221 out.println(iii + indent + in printIfcheckPostamble()
225 out.println(iii + indent + "goto exit;"); in printIfcheckPostamble()
395 out.println(iii + indent + "_exception = 1;"); in emitNativeBoundsChecks()
[all …]
/frameworks/rs/script_api/
DGenerateTestFiles.cpp250 mJava->indent() << "public class " << name; in writeJavaArgumentClass()
257 mJava->indent() << "public "; in writeJavaArgumentClass()
271 mJava->indent() << "public double"; in writeJavaArgumentClass()
284 mJava->indent() << "private void " << mJavaCheckMethodName << "()"; in writeJavaCheckMethod()
297 mJava->indent() << "enforceOrdering(" << smallerAlloc << ", " << p->javaAllocName in writeJavaCheckMethod()
309 mJava->indent() << p->javaAllocName << ".destroy();\n"; in writeJavaCheckMethod()
323 mJava->indent() << "Allocation " << param.javaAllocName << " = "; in writeJavaInputAllocationDefinition()
404 mJava->indent() << "Allocation " << param.javaAllocName << " = Allocation.createSized(mRS, " in writeJavaOutputAllocationDefinition()
425 mJava->indent() << "StringBuilder message = new StringBuilder();\n"; in writeJavaVerifyScalarMethod()
426 mJava->indent() << "boolean errorFound = false;\n"; in writeJavaVerifyScalarMethod()
[all …]
/frameworks/compile/slang/
Dslang_rs_reflection.cpp459 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()
[all …]
Dslang_rs_reflection_cpp.cpp149 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()
[all …]
Dslang_rs_reflect_utils.cpp122 out.indent() << "// return byte array representation of the " << bitwidth in GenerateAccessorMethod()
124 out.indent() << "public static byte[] getBitCode" << bitwidth << "()"; in GenerateAccessorMethod()
126 out.indent() << "return getBitCode" << bitwidth << "Internal();\n"; in GenerateAccessorMethod()
135 out.indent() << "private static byte[] getSegment" << bitwidth << "_" in GenerateSegmentMethod()
138 out.indent() << "byte[] data = {"; in GenerateSegmentMethod()
146 out.indent(); in GenerateSegmentMethod()
156 out.indent() << "};\n"; in GenerateSegmentMethod()
157 out.indent() << "return data;\n"; in GenerateSegmentMethod()
198 out.indent() << "private static int bitCode" << bitwidth << "Length = " in GenerateJavaCodeAccessorMethodForBitwidth()
200 out.indent() << "private static byte[] getBitCode" << bitwidth in GenerateJavaCodeAccessorMethodForBitwidth()
[all …]
/frameworks/base/tools/split-select/
DRule.cpp25 inline static void indentStr(String8& str, int indent) { in indentStr() argument
26 while (indent > 0) { in indentStr()
28 indent--; in indentStr()
42 String8 Rule::toJson(int indent) const { in toJson()
44 indentStr(str, indent); in toJson()
46 indent++; in toJson()
47 indentStr(str, indent); in toJson()
79 indentStr(str, indent); in toJson()
95 indentStr(str, indent); in toJson()
122 indentStr(str, indent); in toJson()
[all …]
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DVolumeDialogController.java140 public String toString(int indent) { in toString() argument
142 if (indent > 0) sep(sb, indent); in toString()
145 sep(sb, indent); in toString()
155 sep(sb, indent); sb.append("ringerModeExternal:").append(ringerModeExternal); in toString()
156 sep(sb, indent); sb.append("ringerModeInternal:").append(ringerModeInternal); in toString()
157 sep(sb, indent); sb.append("zenMode:").append(zenMode); in toString()
158 sep(sb, indent); sb.append("effectsSuppressor:").append(effectsSuppressor); in toString()
159 sep(sb, indent); sb.append("effectsSuppressorName:").append(effectsSuppressorName); in toString()
160 sep(sb, indent); sb.append("activeStream:").append(activeStream); in toString()
161 sep(sb, indent); sb.append("disallowAlarms:").append(disallowAlarms); in toString()
[all …]
/frameworks/base/tools/streaming_proto/cpp/
Dmain.cpp22 write_enum(stringstream& text, const EnumDescriptorProto& enu, const string& indent) in write_enum() argument
25 text << indent << "// enum " << enu.name() << endl; in write_enum()
28 text << indent << "const int " in write_enum()
36 text << indent << "const int _ENUM_" << name << "_COUNT = " << N << ";" << endl; in write_enum()
37 text << indent << "const char* _ENUM_" << name << "_NAMES[" << N << "] = {" << endl; in write_enum()
39 … text << indent << INDENT << "\"" << stripPrefix(enu.value(i).name(), prefix) << "\"," << endl; in write_enum()
41 text << indent << "};" << endl; in write_enum()
42 text << indent << "const int _ENUM_" << name << "_VALUES[" << N << "] = {" << endl; in write_enum()
44 text << indent << INDENT << make_constant_name(enu.value(i).name()) << "," << endl; in write_enum()
46 text << indent << "};" << endl; in write_enum()
[all …]
/frameworks/av/media/codec2/docs/
Ddoxyfilter.sh4 global in_comment, current, indent, hold
5 in_comment, current, indent, hold = False, None, '', []
29 global current, indent, hold
30 if t != current or ind not in (indent, indent + ' '):
32 current, indent = t, ind
36 global current, indent
37 if ind in (indent, ''):
41 current, indent = None, None
/frameworks/base/libs/hwui/
DRenderProperties.cpp97 static void dumpMatrix(std::ostream& output, std::string& indent, const char* label, in dumpMatrix() argument
100 output << indent << "(" << label << " " << matrix << ": "; in dumpMatrix()
110 auto indent = std::string(level * 2, ' '); in debugOutputProperties() local
112 output << indent << "(Translate (left, top) " << mPrimitiveFields.mLeft << ", " in debugOutputProperties()
115 dumpMatrix(output, indent, "ConcatMatrix (static)", mStaticMatrix); in debugOutputProperties()
116 dumpMatrix(output, indent, "ConcatMatrix (animation)", mAnimationMatrix); in debugOutputProperties()
121 output << indent << "(Translate " << getTranslationX() << ", " << getTranslationY() in debugOutputProperties()
124 dumpMatrix(output, indent, "ConcatMatrix ", mComputedFields.mTransformMatrix); in debugOutputProperties()
137 output << indent << "(ScaleAlpha " << mPrimitiveFields.mAlpha << ")" << std::endl; in debugOutputProperties()
145 output << indent << "(SaveLayerAlpha " << (int)layerBounds.left << ", " in debugOutputProperties()
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java367 public void dump(PrintWriter pw, String indent) { in dump() argument
369 pw.print(indent); in dump()
372 indent = indent + " "; in dump()
378 pw.print(indent); in dump()
382 pw.print(indent); in dump()
392 pw.print(indent); in dump()
401 pw.print(indent); in dump()
408 pw.print(indent); in dump()
411 pw.print(indent); in dump()
413 dumpLineLocked(pw, indent, InteractiveState.NON_INTERACTIVE, "NonIntr", in dump()
[all …]
DBatterySaverPolicy.java996 private void dumpPolicyLocked(PrintWriter pw, String indent, String label, Policy p) { in dumpPolicyLocked() argument
998 pw.print(indent); in dumpPolicyLocked()
1000 pw.print(indent); in dumpPolicyLocked()
1002 pw.print(indent); in dumpPolicyLocked()
1005 pw.print(indent); in dumpPolicyLocked()
1008 pw.print(indent); in dumpPolicyLocked()
1010 pw.print(indent); in dumpPolicyLocked()
1012 pw.print(indent); in dumpPolicyLocked()
1014 pw.print(indent); in dumpPolicyLocked()
1016 pw.print(indent); in dumpPolicyLocked()
[all …]
/frameworks/base/tools/streaming_proto/java/
Dmain.cpp67 indent_more(const string& indent) in indent_more() argument
69 return indent + INDENT; in indent_more()
76 write_enum(stringstream& text, const EnumDescriptorProto& enu, const string& indent) in write_enum() argument
79 text << indent << "// enum " << enu.name() << endl; in write_enum()
82 text << indent << "public static final int " in write_enum()
93 write_field(stringstream& text, const FieldDescriptorProto& field, const string& indent) in write_field() argument
102 text << indent << "// " << optional_comment << repeated_comment << proto_type << ' ' in write_field()
105 text << indent << "public static final long " << make_constant_name(field.name()) << " = 0x"; in write_field()
120 write_message(stringstream& text, const DescriptorProto& message, const string& indent) in write_message() argument
123 const string indented = indent_more(indent); in write_message()
[all …]
/frameworks/av/media/codec2/hidl/1.0/utils/
DComponentStore.cpp323 constexpr const char indent[] = " "; in dump() local
325 out << indent << "name: " << comp->name << std::endl; in dump()
326 out << indent << "domain: " << comp->domain << std::endl; in dump()
327 out << indent << "kind: " << comp->kind << std::endl; in dump()
328 out << indent << "rank: " << comp->rank << std::endl; in dump()
329 out << indent << "mediaType: " << comp->mediaType << std::endl; in dump()
330 out << indent << "aliases:"; in dump()
344 constexpr const char indent[] = " "; in dump() local
353 out << indent << "Creation time: " in dump()
361 out << indent << "Unknown component -- null interface" << std::endl; in dump()
[all …]
/frameworks/base/tools/incident_report/
Dprinter.cpp102 Out::indent() in indent() function in Out
122 int indent = mIndent; in print_indent() local
123 while (indent > SPACE_COUNT) { in print_indent()
125 indent -= SPACE_COUNT; in print_indent()
127 fwrite(SPACES + SPACE_COUNT - indent, indent, 1, mOut); in print_indent()
/frameworks/av/media/libstagefright/foundation/
Dhexdump.cpp32 static void appendIndent(AString *s, int32_t indent) { in appendIndent() argument
37 CHECK_LT((size_t)indent, sizeof(kWhitespace)); in appendIndent()
39 s->append(kWhitespace, indent); in appendIndent()
42 void hexdump(const void *_data, size_t size, size_t indent, AString *appendTo) { in hexdump() argument
49 appendIndent(&line, indent); in hexdump()
/frameworks/ml/nn/tools/test_generator/
Dexample_generator.py57 def IndentedStr(s, indent): argument
58 return ("\n" + " " * indent).join(s.split('\n'))
60 def ToCpp(var, indent=0): argument
80 str_pair = lambda k, v: " .%s = %s" % (k, ToCpp(v, indent + 4))
85 return IndentedStr(agg_init, indent)
87 return "{%s}" % (", ".join(ToCpp(i, indent) for i in var))
169 aggregate_init=ToCpp(GetModelStruct(example), indent=4),
/frameworks/base/core/java/android/util/
DJsonWriter.java134 private String indent; field in JsonWriter
163 public void setIndent(String indent) { in setIndent() argument
164 if (indent.isEmpty()) { in setIndent()
165 this.indent = null; in setIndent()
168 this.indent = indent; in setIndent()
462 if (indent == null) { in newline()
468 out.write(indent); in newline()
/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp34 explicit PrettyPrinter(const int indent = 2) : indent_(indent) {} in PrettyPrinter() argument
51 void VisitConfig(const DominatorTree::Node* node, const int indent) { in VisitConfig() argument
53 buffer_ << std::string(indent, ' ') in VisitConfig()
58 void VisitNode(const DominatorTree::Node* node, const int indent) { in VisitNode() argument
59 VisitConfig(node, indent); in VisitNode()
61 VisitNode(child.get(), indent + indent_); in VisitNode()
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp44 , indent(0) in BufferState()
83 int32_t indent; member
181 if (b->indent > 0) { in print()
183 const char* prefix = stringForIndent(b->indent); in print()
232 b->indent += delta; in moveIndent()
233 if (b->indent < 0) b->indent = 0; in moveIndent()

1234