Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 1678) sorted by relevance

12345678910>>...68

/frameworks/base/tools/stats_log_api_gen/
Dnative_writer_q.cpp23 static void write_native_stats_write_body_q(FILE* out, const vector<java_type_t>& signature, 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()
29 write_native_method_call(out, tryMethodName, signature, attributionDecl); 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()
34 fprintf(out, "%s if ((get_elapsed_realtime_ns() - lastRetryTimestampNs) <= " in write_native_stats_write_body_q()
36 fprintf(out, "%s lastRetryTimestampNs = get_elapsed_realtime_ns();\n", in write_native_stats_write_body_q()
[all …]
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()
26 fprintf(out, in write_java_q_logging_constants()
31 fprintf(out, "\n"); 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()
[all …]
Datoms_info_writer.cpp27 static void write_atoms_info_header_body(FILE* out, const Atoms& atoms) { in write_atoms_info_header_body() argument
28 fprintf(out, "struct StateAtomFieldOptions {\n"); in write_atoms_info_header_body()
29 fprintf(out, " std::vector<int> primaryFields;\n"); in write_atoms_info_header_body()
30 fprintf(out, " int exclusiveField;\n"); in write_atoms_info_header_body()
31 fprintf(out, "};\n"); in write_atoms_info_header_body()
32 fprintf(out, "\n"); in write_atoms_info_header_body()
34 fprintf(out, "struct AtomsInfo {\n"); in write_atoms_info_header_body()
35 fprintf(out, in write_atoms_info_header_body()
38 fprintf(out, " const static std::map<int, int> kAtomsWithUidField;\n"); in write_atoms_info_header_body()
39 fprintf(out, in write_atoms_info_header_body()
[all …]
Djava_writer.cpp25 FILE* out, in write_java_q_logger_class() argument
30 fprintf(out, "\n"); in write_java_q_logger_class()
31 fprintf(out, " // Write logging helper methods for statsd in Q and earlier.\n"); in write_java_q_logger_class()
32 fprintf(out, " private static class QLogger {\n"); in write_java_q_logger_class()
34 write_java_q_logging_constants(out, " "); in write_java_q_logger_class()
37 fprintf(out, "\n"); in write_java_q_logger_class()
38 fprintf(out, " // Write methods.\n"); in write_java_q_logger_class()
40 out, signatures_to_modules, attributionDecl, moduleName, " "); in write_java_q_logger_class()
42 fprintf(out, " }\n"); in write_java_q_logger_class()
48 FILE* out, in write_java_methods() argument
[all …]
Dnative_writer.cpp25 static void write_native_key_value_pairs_for_type(FILE* out, const int argIndex, in write_native_key_value_pairs_for_type() argument
27 fprintf(out, " for (const auto& it : arg%d_%d) {\n", argIndex, typeIndex); in write_native_key_value_pairs_for_type()
28 fprintf(out, " pairs.push_back(" in write_native_key_value_pairs_for_type()
31 fprintf(out, " }\n"); in write_native_key_value_pairs_for_type()
35 static int write_native_stats_write_methods(FILE* out, const Atoms& atoms, in write_native_stats_write_methods() argument
37 fprintf(out, "\n"); in write_native_stats_write_methods()
45 write_native_method_signature(out, "int stats_write", signature, in write_native_stats_write_methods()
50 fprintf(out, " StatsEventCompat event;\n"); in write_native_stats_write_methods()
51 fprintf(out, " event.setAtomId(code);\n"); in write_native_stats_write_methods()
58 fprintf(out, " event.writeAttributionChain(%s, %s_length, %s);\n", in write_native_stats_write_methods()
[all …]
Dmain.cpp163 static void write_key_value_map_jni(FILE* out) { in write_key_value_map_jni() argument
164 fprintf(out, " std::map<int, int32_t> int32_t_map;\n"); in write_key_value_map_jni()
165 fprintf(out, " std::map<int, int64_t> int64_t_map;\n"); in write_key_value_map_jni()
166 fprintf(out, " std::map<int, float> float_map;\n"); in write_key_value_map_jni()
167 fprintf(out, " std::map<int, char const*> string_map;\n\n"); in write_key_value_map_jni()
169 fprintf(out, " jclass jmap_class = env->FindClass(\"android/util/SparseArray\");\n"); in write_key_value_map_jni()
171 …fprintf(out, " jmethodID jget_size_method = env->GetMethodID(jmap_class, \"size\", \"()I\");\n"… in write_key_value_map_jni()
172 …fprintf(out, " jmethodID jget_key_method = env->GetMethodID(jmap_class, \"keyAt\", \"(I)I\");\n… in write_key_value_map_jni()
173 …fprintf(out, " jmethodID jget_value_method = env->GetMethodID(jmap_class, \"valueAt\", \"(I)Lja… in write_key_value_map_jni()
176 fprintf(out, " std::vector<std::unique_ptr<ScopedUtfChars>> scoped_ufs;\n\n"); in write_key_value_map_jni()
[all …]
Dutils.cpp117 void write_namespace(FILE* out, const string& cppNamespaces) { in write_namespace() argument
120 fprintf(out, "namespace %s {\n", cppNamespace.c_str()); in write_namespace()
125 void write_closing_namespace(FILE* out, const string& cppNamespaces) { in write_closing_namespace() argument
128 fprintf(out, "} // namespace %s\n", it->c_str()); in write_closing_namespace()
133 FILE* out, const string& method_name, const string& atom_code_name, in write_cpp_usage() argument
135 fprintf(out, " * Usage: %s(StatsLog.%s", method_name.c_str(), in write_cpp_usage()
143 fprintf(out, ", const std::vector<%s>& %s", in write_cpp_usage()
147 fprintf(out, ", const %s* %s, size_t %s_length", in write_cpp_usage()
153 fprintf(out, ", const std::map<int, int32_t>& %s_int" in write_cpp_usage()
162 fprintf(out, ", %s %s", cpp_type_name(field->javaType), field->name.c_str()); in write_cpp_usage()
[all …]
/frameworks/base/tools/aapt/
DAaptConfig.cpp34 bool parse(const String8& str, ConfigDescription* out) { in parse() argument
242 if (out != NULL) { in parse()
244 *out = config; in parse()
299 bool parseMcc(const char* name, ResTable_config* out) { in parseMcc() argument
301 if (out) out->mcc = 0; in parseMcc()
322 if (out) out->mcc = d; in parseMcc()
329 bool parseMnc(const char* name, ResTable_config* out) { in parseMnc() argument
331 if (out) out->mcc = 0; in parseMnc()
350 if (out) { in parseMnc()
351 out->mnc = atoi(val); in parseMnc()
[all …]
/frameworks/base/libs/androidfw/
DConfigDescription.cpp35 static bool parseMcc(const char* name, ResTable_config* out) { in parseMcc() argument
37 if (out) out->mcc = 0; in parseMcc()
58 if (out) out->mcc = d; in parseMcc()
65 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc() argument
67 if (out) out->mnc = 0; in parseMnc()
86 if (out) { in parseMnc()
87 out->mnc = atoi(val); in parseMnc()
88 if (out->mnc == 0) { in parseMnc()
89 out->mnc = ACONFIGURATION_MNC_ZERO; in parseMnc()
96 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection() argument
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLoggingPrintStreamTest.java34 TestPrintStream out = new TestPrintStream(); field in LoggingPrintStreamTest
43 t.printStackTrace(out); in testPrintException()
47 assertEquals(Arrays.asList(lines), out.lines); in testPrintException()
52 out.print(4); in testPrintObject()
53 out.print(o); in testPrintObject()
54 out.print(2); in testPrintObject()
55 out.flush(); in testPrintObject()
56 assertEquals(Arrays.asList("4" + o + "2"), out.lines); in testPrintObject()
61 out.print(4); in testPrintlnObject()
62 out.println(o); in testPrintlnObject()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DLayerCompositionState.cpp27 void dumpVal(std::string& out, const char* name, Hwc2::IComposerClient::Color value) { in dumpVal() argument
29 StringAppendF(&out, "%s=[%d %d %d] ", name, value.r, value.g, value.b); in dumpVal()
32 void dumpFrontEnd(std::string& out, const LayerFECompositionState& state) { in dumpFrontEnd() argument
33 out.append(" "); in dumpFrontEnd()
34 dumpVal(out, "isSecure", state.isSecure); in dumpFrontEnd()
35 dumpVal(out, "geomUsesSourceCrop", state.geomUsesSourceCrop); in dumpFrontEnd()
36 dumpVal(out, "geomBufferUsesDisplayInverseTransform", in dumpFrontEnd()
38 dumpVal(out, "geomLayerTransform", state.geomLayerTransform); in dumpFrontEnd()
40 out.append("\n "); in dumpFrontEnd()
41 dumpVal(out, "geomBufferSize", state.geomBufferSize); in dumpFrontEnd()
[all …]
DDumpHelpers.cpp26 void dumpVal(std::string& out, const char* name, bool value) { in dumpVal() argument
27 StringAppendF(&out, "%s=%s ", name, value ? "true" : "false"); in dumpVal()
30 void dumpVal(std::string& out, const char* name, const void* value) { in dumpVal() argument
31 StringAppendF(&out, "%s=%p ", name, value); in dumpVal()
34 void dumpVal(std::string& out, const char* name, int value) { in dumpVal() argument
35 StringAppendF(&out, "%s=%d ", name, value); in dumpVal()
38 void dumpVal(std::string& out, const char* name, float value) { in dumpVal() argument
39 StringAppendF(&out, "%s=%f ", name, value); in dumpVal()
42 void dumpVal(std::string& out, const char* name, uint32_t value) { in dumpVal() argument
43 StringAppendF(&out, "%s=%u ", name, value); in dumpVal()
[all …]
DOutputCompositionState.cpp22 void OutputCompositionState::dump(std::string& out) const { in dump()
23 out.append(" "); in dump()
24 dumpVal(out, "isEnabled", isEnabled); in dump()
25 dumpVal(out, "isSecure", isSecure); in dump()
27 dumpVal(out, "layerStack", layerStackId); in dump()
28 dumpVal(out, "layerStackInternal", layerStackInternal); in dump()
30 out.append("\n "); in dump()
32 dumpVal(out, "transform", transform); in dump()
34 out.append("\n "); in dump()
36 dumpVal(out, "frame", frame); in dump()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DWap230WspContentTypeTest.java257 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testDecodeReturnsFalse_WhenOnlyAZeroBytePresent() local
258 out.write(0x00); in testDecodeReturnsFalse_WhenOnlyAZeroBytePresent()
259 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testDecodeReturnsFalse_WhenOnlyAZeroBytePresent()
266 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testConstrainedMediaExtensionMedia() local
267 out.write(testType.getBytes("US-ASCII")); in testConstrainedMediaExtensionMedia()
268 out.write(WSP_STRING_TERMINATOR); in testConstrainedMediaExtensionMedia()
270 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testConstrainedMediaExtensionMedia()
281 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testGeneralFormShortLengthExtensionMedia() local
282 out.write(testType.length() + 1); in testGeneralFormShortLengthExtensionMedia()
283 out.write(testType.getBytes("US-ASCII")); in testGeneralFormShortLengthExtensionMedia()
[all …]
/frameworks/native/opengl/tools/glgen/src/
DJniCodeEmitter.java136 public void emitNativeDeclaration(JFunc jfunc, PrintStream out) { in emitNativeDeclaration() argument
138 out.println(" /* @hide C function " + jfunc.getCFunc().getOriginal() + " */"); in emitNativeDeclaration()
139 out.println(); in emitNativeDeclaration()
141 out.println(" // C function " + jfunc.getCFunc().getOriginal()); in emitNativeDeclaration()
142 out.println(); in emitNativeDeclaration()
145 emitFunction(jfunc, out, true, false); in emitNativeDeclaration()
148 public void emitJavaInterfaceCode(JFunc jfunc, PrintStream out) { in emitJavaInterfaceCode() argument
149 emitFunction(jfunc, out, false, true); in emitJavaInterfaceCode()
152 public void emitJavaCode(JFunc jfunc, PrintStream out) { in emitJavaCode() argument
153 emitFunction(jfunc, out, false, false); in emitJavaCode()
[all …]
/frameworks/base/tools/preload/
DPrintCsv.java42 printHeaders(System.out); in main()
51 printRow(System.out, baseline, loadedClass); in main()
55 static void printHeaders(PrintStream out) { in printHeaders() argument
56 out.println("Name" in printHeaders()
70 static void printRow(PrintStream out, MemoryUsage baseline, in printRow() argument
72 out.print(loadedClass.name); in printRow()
73 out.print(','); in printRow()
74 out.print(loadedClass.preloaded); in printRow()
75 out.print(','); in printRow()
76 out.print(loadedClass.medianLoadTimeMicros()); in printRow()
[all …]
DPrintHtmlDiff.java71 PrintStream out = System.out; in main() local
73 out.println("<html><body>"); in main()
74 out.println("<style>"); in main()
75 out.println("a, th, td, h2 { font-family: arial }"); in main()
76 out.println("th, td { font-size: small }"); in main()
77 out.println("</style>"); in main()
78 out.println("<script src=\"sorttable.js\"></script>"); in main()
79 out.println("<p><a href=\"#removed\">Removed</a>"); in main()
80 out.println("<a name=\"added\"/><h2>Added</h2>"); in main()
81 printTable(out, root.baseline, added); in main()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DOsuProviderInfoTestUtil.java65 ByteArrayOutputStream out = new ByteArrayOutputStream(); in getTestData() local
67 writeShortLE(out, payload.length); in getTestData()
68 out.write(payload); in getTestData()
69 return out.toByteArray(); in getTestData()
82 ByteArrayOutputStream out = new ByteArrayOutputStream(); in getTestDataWithInvalidLength() local
85 writeShortLE(out, OsuProviderInfo.MINIMUM_LENGTH - 1); in getTestDataWithInvalidLength()
86 out.write(payload); in getTestDataWithInvalidLength()
87 return out.toByteArray(); in getTestDataWithInvalidLength()
101 ByteArrayOutputStream out = new ByteArrayOutputStream(); in getTestPayload() local
105 writeShortLE(out, friendlyNamesData.length); in getTestPayload()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlend.cpp90 extern "C" int rsdIntrinsicBlend_K(uchar4 *out, uchar4 const *in, int slot,
116 uchar4 *out = (uchar4 *)info->outPtr[0]; in kernel() local
123 if (rsdIntrinsicBlend_K(out, in, info->slot, x1, x2) >= 0) in kernel()
129 for (;x1 < x2; x1++, out++) { in kernel()
130 *out = 0; in kernel()
134 for (;x1 < x2; x1++, out++, in++) { in kernel()
135 *out = *in; in kernel()
146 rsdIntrinsicBlendSrcOver_K(out, in, len); in kernel()
148 out += len << 3; in kernel()
153 for (;x1 < x2; x1++, out++, in++) { in kernel()
[all …]
/frameworks/base/tools/incident_report/
Dmain.cpp41 static void print_message(Out* out, Descriptor const* descriptor, GenericMessage const* message);
143 print_value(Out* out, FieldDescriptor const* field, GenericMessage::Node const& node) in print_value() argument
151 out->printf("%u", node.value32); in print_value()
154 out->printf("%d", node.value32); in print_value()
157 out->printf("%f", *(float*)&node.value32); in print_value()
160 out->printf("(unexpected type %d: value32 %d (0x%x)", in print_value()
168 out->printf("%f", *(double*)&node.value64); in print_value()
174 out->printf("%d", node.value64); in print_value()
179 out->printf("%lld", node.value64); in print_value()
184 out->printf("%u", node.value64); in print_value()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerShellCommand.java76 final PrintWriter out = getOutPrintWriter(); in onHelp() local
77 out.println("Overlay manager (overlay) commands:"); in onHelp()
78 out.println(" help"); in onHelp()
79 out.println(" Print this help text."); in onHelp()
80 out.println(" dump [--verbose] [--user USER_ID] [[FIELD] PACKAGE]"); in onHelp()
81 out.println(" Print debugging information about the overlay manager."); in onHelp()
82 out.println(" With optional parameter PACKAGE, limit output to the specified"); in onHelp()
83 out.println(" package. With optional parameter FIELD, limit output to"); in onHelp()
84 out.println(" the value of that SettingsItem field. Field names are"); in onHelp()
85 out.println(" case insensitive and out.println the m prefix can be omitted,"); in onHelp()
[all …]
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirOps.h69 int32_t out;
72 : [out]"=r"(out)
77 : [out]"=r"(out)
81 return out;
92 int32_t out;
94 : [out]"=r"(out)
97 return out;
107 int32_t out;
109 : [out]"=r"(out)
112 return out;
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Ddct.cpp38 Void BlockDCT_AANwSub(Short *out, UChar *cur, UChar *pred, Int width) in BlockDCT_AANwSub() argument
50 dst = out + 64 ; in BlockDCT_AANwSub()
52 out += 128; in BlockDCT_AANwSub()
158 while (dst < out); in BlockDCT_AANwSub()
160 out -= 64; in BlockDCT_AANwSub()
161 dst = out + 8; in BlockDCT_AANwSub()
166 k0 = out[0]; in BlockDCT_AANwSub()
167 k1 = out[8]; in BlockDCT_AANwSub()
168 k2 = out[16]; in BlockDCT_AANwSub()
169 k3 = out[24]; in BlockDCT_AANwSub()
[all …]
/frameworks/compile/slang/
Dslang_rs_reflect_utils.cpp120 int bitwidth, GeneratedFile &out) { in GenerateAccessorMethod() argument
122 out.indent() << "// return byte array representation of the " << bitwidth in GenerateAccessorMethod()
124 out.indent() << "public static byte[] getBitCode" << bitwidth << "()"; in GenerateAccessorMethod()
125 out.startBlock(); in GenerateAccessorMethod()
126 out.indent() << "return getBitCode" << bitwidth << "Internal();\n"; in GenerateAccessorMethod()
127 out.endBlock(true); in GenerateAccessorMethod()
134 int seg_num, GeneratedFile &out) { in GenerateSegmentMethod() argument
135 out.indent() << "private static byte[] getSegment" << bitwidth << "_" in GenerateSegmentMethod()
137 out.startBlock(); in GenerateSegmentMethod()
138 out.indent() << "byte[] data = {"; in GenerateSegmentMethod()
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DParcelableKeyGenParameterSpec.java50 private static void writeOptionalDate(Parcel out, Date date) { in writeOptionalDate() argument
52 out.writeBoolean(true); in writeOptionalDate()
53 out.writeLong(date.getTime()); in writeOptionalDate()
55 out.writeBoolean(false); in writeOptionalDate()
59 public void writeToParcel(Parcel out, int flags) { in writeToParcel() argument
60 out.writeString(mSpec.getKeystoreAlias()); in writeToParcel()
61 out.writeInt(mSpec.getPurposes()); in writeToParcel()
62 out.writeInt(mSpec.getUid()); in writeToParcel()
63 out.writeInt(mSpec.getKeySize()); in writeToParcel()
68 out.writeInt(ALGORITHM_PARAMETER_SPEC_NONE); in writeToParcel()
[all …]

12345678910>>...68