/frameworks/proto_logging/stats/stats_log_api_gen/ |
D | java_writer_q.cpp | 24 void write_java_q_logging_constants(FILE* out, const string& indent) { in write_java_q_logging_constants() argument 25 fprintf(out, "%s// Payload limits.\n", indent.c_str()); in write_java_q_logging_constants() 26 fprintf(out, "%sprivate static final int LOGGER_ENTRY_MAX_PAYLOAD = 4068;\n", indent.c_str()); in write_java_q_logging_constants() 27 fprintf(out, in write_java_q_logging_constants() 33 fprintf(out, "\n"); in write_java_q_logging_constants() 34 fprintf(out, "%s// Value types.\n", indent.c_str()); in write_java_q_logging_constants() 35 fprintf(out, "%sprivate static final byte INT_TYPE = 0;\n", indent.c_str()); in write_java_q_logging_constants() 36 fprintf(out, "%sprivate static final byte LONG_TYPE = 1;\n", indent.c_str()); in write_java_q_logging_constants() 37 fprintf(out, "%sprivate static final byte STRING_TYPE = 2;\n", indent.c_str()); in write_java_q_logging_constants() 38 fprintf(out, "%sprivate static final byte LIST_TYPE = 3;\n", indent.c_str()); in write_java_q_logging_constants() [all …]
|
D | native_writer.cpp | 24 static void write_native_annotation_constants(FILE* out) { in write_native_annotation_constants() argument 25 fprintf(out, "// Annotation constants.\n"); in write_native_annotation_constants() 29 fprintf(out, "const uint8_t %s = %hhu;\n", name.c_str(), id); in write_native_annotation_constants() 31 fprintf(out, "\n"); in write_native_annotation_constants() 34 static void write_annotations(FILE* out, int argIndex, in write_annotations() argument 48 fprintf(out, " if (%s == code) {\n", atomConstant.c_str()); in write_annotations() 61 fprintf(out, " %saddInt32Annotation(%s%s%s, %d);\n", in write_annotations() 68 fprintf(out, " %saddBoolAnnotation(%s%s%s, %s);\n", methodPrefix.c_str(), in write_annotations() 80 fprintf(out, " if (arg%d == %d) {\n", argIndex, resetState); in write_annotations() 81 fprintf(out, " %saddInt32Annotation(%s%s%s, %d);\n", methodPrefix.c_str(), in write_annotations() [all …]
|
D | java_writer.cpp | 25 static int write_java_q_logger_class(FILE* out, const SignatureInfoMap& signatureInfoMap, in write_java_q_logger_class() argument 27 fprintf(out, "\n"); in write_java_q_logger_class() 28 fprintf(out, " // Write logging helper methods for statsd in Q and earlier.\n"); in write_java_q_logger_class() 29 fprintf(out, " private static class QLogger {\n"); in write_java_q_logger_class() 31 write_java_q_logging_constants(out, " "); in write_java_q_logger_class() 34 fprintf(out, "\n"); in write_java_q_logger_class() 35 fprintf(out, " // Write methods.\n"); in write_java_q_logger_class() 36 write_java_methods_q_schema(out, signatureInfoMap, attributionDecl, " "); in write_java_q_logger_class() 38 fprintf(out, " }\n"); in write_java_q_logger_class() 42 static void write_java_annotation_constants(FILE* out, const int minApiLevel, in write_java_annotation_constants() argument [all …]
|
D | rust_writer.cpp | 102 static void write_rust_method_signature(FILE* out, const char* namePrefix, in write_rust_method_signature() argument 111 fprintf(out, " pub fn %s(", namePrefix); in write_rust_method_signature() 113 fprintf(out, " %s::%s(", atomDecl.name.c_str(), namePrefix); in write_rust_method_signature() 116 fprintf(out, "\n"); in write_rust_method_signature() 120 fprintf(out, " "); in write_rust_method_signature() 122 fprintf(out, "pulled_data_: &mut AStatsEventList,%s", separator); in write_rust_method_signature() 131 fprintf(out, " "); in write_rust_method_signature() 133 fprintf(out, "%s_chain_: &[%s],%s", chainField.name.c_str(), in write_rust_method_signature() 138 fprintf(out, " "); in write_rust_method_signature() 143 fprintf(out, "%s_non_chained_", atomField.name.c_str()); in write_rust_method_signature() [all …]
|
D | utils.cpp | 178 void write_namespace(FILE* out, const string& cppNamespaces) { in write_namespace() argument 181 fprintf(out, "namespace %s {\n", cppNamespace.c_str()); in write_namespace() 186 void write_closing_namespace(FILE* out, const string& cppNamespaces) { in write_closing_namespace() argument 189 fprintf(out, "} // namespace %s\n", it->c_str()); in write_closing_namespace() 193 static void write_cpp_usage(FILE* out, const string& method_name, const string& atom_code_name, in write_cpp_usage() argument 195 fprintf(out, " * Usage: %s(StatsLog.%s", method_name.c_str(), atom_code_name.c_str()); in write_cpp_usage() 202 fprintf(out, ", const std::vector<%s>& %s", cpp_type_name(chainField.javaType), in write_cpp_usage() 205 fprintf(out, ", const %s* %s, size_t %s_length", in write_cpp_usage() 211 fprintf(out, ", %s %s", cpp_type_name(field->javaType), field->name.c_str()); in write_cpp_usage() 214 fprintf(out, ");\n"); in write_cpp_usage() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | LayerFECompositionState.cpp | 27 void dumpVal(std::string& out, const char* name, half4 value) { in dumpVal() argument 29 StringAppendF(&out, "%s=[%f %f %f] ", name, static_cast<float>(value.r), in dumpVal() 37 std::string out; in dumpAsString() local 39 out.append("GenericLayerMetadataEntry{mandatory: "); in dumpAsString() 40 StringAppendF(&out, "%d", mandatory); in dumpAsString() 41 out.append(" value: "); in dumpAsString() 43 StringAppendF(&out, "0x08%" PRIx8 " ", byte); in dumpAsString() 45 out.append("]}"); in dumpAsString() 46 return out; in dumpAsString() 51 void LayerFECompositionState::dump(std::string& out) const { in dump() [all …]
|
D | OutputCompositionState.cpp | 24 void OutputCompositionState::dump(std::string& out) const { in dump() 25 out.append(" "); in dump() 26 dumpVal(out, "isEnabled", isEnabled); in dump() 27 dumpVal(out, "isSecure", isSecure); in dump() 28 dumpVal(out, "usesDeviceComposition", usesDeviceComposition); in dump() 30 out.append("\n "); in dump() 31 dumpVal(out, "usesClientComposition", usesClientComposition); in dump() 32 dumpVal(out, "flipClientTarget", flipClientTarget); in dump() 33 dumpVal(out, "reusedClientComposition", reusedClientComposition); in dump() 35 out.append("\n "); in dump() [all …]
|
D | OutputLayerCompositionState.cpp | 33 void dumpHwc(const OutputLayerCompositionState::Hwc& hwc, std::string& out) { in dumpHwc() argument 34 out.append("\n hwc: "); in dumpHwc() 37 out.append("No layer "); in dumpHwc() 39 dumpHex(out, "layer", hwc.hwcLayer->getId()); in dumpHwc() 42 dumpVal(out, "composition", toString(hwc.hwcCompositionType), hwc.hwcCompositionType); in dumpHwc() 47 void OutputLayerCompositionState::dump(std::string& out) const { in dump() 48 out.append(" "); in dump() 49 dumpVal(out, "visibleRegion", visibleRegion); in dump() 51 out.append(" "); in dump() 52 dumpVal(out, "visibleNonTransparentRegion", visibleNonTransparentRegion); in dump() [all …]
|
D | DumpHelpers.cpp | 26 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 …]
|
/frameworks/base/tools/aapt/ |
D | AaptConfig.cpp | 34 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/ |
D | ConfigDescription.cpp | 35 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/ |
D | LoggingPrintStreamTest.java | 34 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | Wap230WspContentTypeTest.java | 257 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/ |
D | JniCodeEmitter.java | 137 public void emitNativeDeclaration(JFunc jfunc, PrintStream out) { in emitNativeDeclaration() argument 139 out.println(" /* @hide C function " + jfunc.getCFunc().getOriginal() + " */"); in emitNativeDeclaration() 140 out.println(); in emitNativeDeclaration() 142 out.println(" // C function " + jfunc.getCFunc().getOriginal()); in emitNativeDeclaration() 143 out.println(); in emitNativeDeclaration() 146 emitFunction(jfunc, out, true, false); in emitNativeDeclaration() 149 public void emitJavaInterfaceCode(JFunc jfunc, PrintStream out) { in emitJavaInterfaceCode() argument 150 emitFunction(jfunc, out, false, true); in emitJavaInterfaceCode() 153 public void emitJavaCode(JFunc jfunc, PrintStream out) { in emitJavaCode() argument 154 emitFunction(jfunc, out, false, false); in emitJavaCode() [all …]
|
/frameworks/base/tools/preload/ |
D | PrintCsv.java | 42 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 …]
|
D | PrintHtmlDiff.java | 71 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/rs/toolkit/ |
D | Blend.cpp | 41 void blend(RenderScriptToolkit::BlendingMode mode, const uchar4* in, uchar4* out, 48 BlendTask(RenderScriptToolkit::BlendingMode mode, const uint8_t* in, uint8_t* out, size_t sizeX, in BlendTask() argument 53 mOut{reinterpret_cast<uchar4*>(out)} {} 57 extern "C" int rsdIntrinsicBlend_K(uchar4 *out, uchar4 const *in, int slot, 85 void BlendTask::blend(RenderScriptToolkit::BlendingMode mode, const uchar4* in, uchar4* out, in blend() argument 92 if (rsdIntrinsicBlend_K(out, in, (int) mode, x1, x2) >= 0) { in blend() 101 for (;x1 < x2; x1++, out++) { in blend() 102 *out = 0; in blend() 106 for (;x1 < x2; x1++, out++, in++) { in blend() 107 *out = *in; in blend() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | FastDataTest.java | 91 try (FastDataOutput out = new FastDataOutput(new ByteArrayOutputStream(), BOUNCE_SIZE)) { in testUTF_Bounds() argument 95 out.writeUTF(simple); in testUTF_Bounds() 96 out.writeInternedUTF(simple); in testUTF_Bounds() 101 assertThrows(IOException.class, () -> out.writeUTF(complex)); in testUTF_Bounds() 102 assertThrows(IOException.class, () -> out.writeInternedUTF(complex)); in testUTF_Bounds() 111 final DataOutputStream out = new DataOutputStream(outStream); in testTranscode() local 112 doTranscodeWrite(out); in testTranscode() 113 out.flush(); in testTranscode() 123 final FastDataOutput out = new FastDataOutput(outStream, BOUNCE_SIZE); in testTranscode() local 124 doTranscodeWrite(out); in testTranscode() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicBlend.cpp | 90 extern "C" int rsdIntrinsicBlend_K(uchar4 *out, uchar4 const *in, int slot, 125 uchar4 *out = (uchar4 *)info->outPtr[0]; in kernel() local 132 if (rsdIntrinsicBlend_K(out, in, info->slot, 0, x2 - x1) >= 0) { in kernel() 141 for (;x1 < x2; x1++, out++) { in kernel() 142 *out = 0; in kernel() 146 for (;x1 < x2; x1++, out++, in++) { in kernel() 147 *out = *in; in kernel() 158 rsdIntrinsicBlendSrcOver_K(out, in, len); in kernel() 160 out += len << 3; in kernel() 165 for (;x1 < x2; x1++, out++, in++) { in kernel() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | FontFileParserTest.cpp | 28 static size_t writeU16(uint16_t x, uint8_t* out, size_t offset) { in writeU16() argument 29 out[offset] = x >> 8; in writeU16() 30 out[offset + 1] = x; in writeU16() 34 static size_t writeU32(uint32_t x, uint8_t* out, size_t offset) { in writeU32() argument 35 out[offset] = x >> 24; in writeU32() 36 out[offset + 1] = x >> 16; in writeU32() 37 out[offset + 2] = x >> 8; in writeU32() 38 out[offset + 3] = x; in writeU32() 50 std::vector<uint8_t> out(46); in buildHeadTable() local 51 size_t head = writeU16(1, out.data(), 0); // major version in buildHeadTable() [all …]
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerFirOps.h | 69 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/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | DumpHelpers.h | 34 void dumpVal(std::string& out, const char* name, bool); 35 void dumpVal(std::string& out, const char* name, const void*); 36 void dumpVal(std::string& out, const char* name, int); 37 void dumpVal(std::string& out, const char* name, float); 38 void dumpVal(std::string& out, const char* name, uint32_t); 39 void dumpHex(std::string& out, const char* name, uint64_t); 40 void dumpVal(std::string& out, const char* name, const char* value); 41 void dumpVal(std::string& out, const char* name, const std::string& value); 44 void dumpVal(std::string& out, const char* name, const char*, int); 45 void dumpVal(std::string& out, const char* name, const std::string&, int); [all …]
|
/frameworks/base/tools/incident_report/ |
D | main.cpp | 41 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/keystore/java/android/security/keystore/ |
D | ParcelableKeyGenParameterSpec.java | 50 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.getNamespace()); in writeToParcel() 63 out.writeInt(mSpec.getKeySize()); in writeToParcel() 68 out.writeInt(ALGORITHM_PARAMETER_SPEC_NONE); in writeToParcel() [all …]
|
/frameworks/compile/slang/ |
D | slang_rs_reflect_utils.cpp | 120 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 …]
|