/system/tools/hidl/ |
D | generateJava.cpp | 30 Formatter &out, in emitJavaReaderWriter() argument 36 out << arg->type().getJavaType() in emitJavaReaderWriter() 43 arg->type().emitJavaReaderWriter(out, parcelObj, in emitJavaReaderWriter() 77 Formatter out(file); in generateJavaTypes() local 83 out << "package " << mPackage.javaPackage() << ";\n\n"; in generateJavaTypes() 85 out << "\n"; in generateJavaTypes() 88 type->emitJavaTypeDeclarations(out, true /* atTopLevel */); in generateJavaTypes() 134 Formatter out(file); in generateJava() local 140 out << "package " << mPackage.javaPackage() << ";\n\n"; in generateJava() 142 out.setNamespace(mPackage.javaPackage() + "."); in generateJava() [all …]
|
D | generateCpp.cpp | 96 Formatter &out, in generateCppPackageInclude() argument 100 out << "#include <"; in generateCppPackageInclude() 106 out << component << "/"; in generateCppPackageInclude() 109 out << klass in generateCppPackageInclude() 113 void AST::enterLeaveNamespace(Formatter &out, bool enter) const { in enterLeaveNamespace() argument 120 out << "namespace " << component << " {\n"; in enterLeaveNamespace() 123 out.setNamespace(mPackage.cppNamespace() + "::"); in enterLeaveNamespace() 125 out.setNamespace(std::string()); in enterLeaveNamespace() 130 out << "} // namespace " << *it << "\n"; in enterLeaveNamespace() 135 static void declareGetService(Formatter &out, const std::string &interfaceName, bool isTry) { in declareGetService() argument [all …]
|
D | CompoundType.cpp | 120 Formatter &out, in emitReaderWriter() argument 128 out << "size_t " << parentName << ";\n\n"; in emitReaderWriter() 134 out << "_hidl_err = " in emitReaderWriter() 146 handleError(out, mode); in emitReaderWriter() 148 out << "_hidl_err = " in emitReaderWriter() 158 handleError(out, mode); in emitReaderWriter() 166 out, in emitReaderWriter() 180 Formatter &out, in emitReaderWriterEmbedded() argument 192 out, in emitReaderWriterEmbedded() 207 Formatter &out, in emitJavaReaderWriter() argument [all …]
|
D | Interface.cpp | 90 [](auto &out) { in fillPingMethod() argument 91 out << "return ::android::hardware::Void();\n"; in fillPingMethod() 95 [](auto &out) { in fillPingMethod() argument 96 out << "return ::android::hardware::Void();\n"; in fillPingMethod() 102 [this](auto &out) { in fillPingMethod() argument 103 out << "return;\n"; in fillPingMethod() 122 [](auto &out) { in fillLinkToDeathMethod() argument 123 out << "(void)cookie;\n" in fillLinkToDeathMethod() 128 [](auto &out) { in fillLinkToDeathMethod() argument 129 out << "::android::hardware::ProcessState::self()->startThreadPool();\n"; in fillLinkToDeathMethod() [all …]
|
D | generateCppImpl.cpp | 45 void AST::generateFetchSymbol(Formatter &out, const std::string& ifaceName) const { in generateFetchSymbol() argument 46 out << "HIDL_FETCH_" << ifaceName; in generateFetchSymbol() 49 status_t AST::generateStubImplMethod(Formatter &out, in generateStubImplMethod() argument 58 method->generateCppSignature(out, className, false /* specifyNamespaces */); in generateStubImplMethod() 60 out << " {\n"; in generateStubImplMethod() 62 out.indent(); in generateStubImplMethod() 63 out << "// TODO implement\n"; in generateStubImplMethod() 68 out << "return Void();\n"; in generateStubImplMethod() 70 out << "return " in generateStubImplMethod() 75 out.unindent(); in generateStubImplMethod() [all …]
|
D | EnumType.cpp | 125 Formatter &out, in emitReaderWriter() argument 135 out, in emitReaderWriter() 145 Formatter &out, in emitJavaFieldReaderWriter() argument 153 out, depth, parcelName, blobName, fieldName, offset, isReader); in emitJavaFieldReaderWriter() 156 status_t EnumType::emitTypeDeclarations(Formatter &out) const { in emitTypeDeclarations() 162 out << "enum class " in emitTypeDeclarations() 168 out.indent(); in emitTypeDeclarations() 177 out << entry->name(); in emitTypeDeclarations() 181 out << " = " << value; in emitTypeDeclarations() 183 out << ","; in emitTypeDeclarations() [all …]
|
D | VectorType.cpp | 137 Formatter &out, in emitReaderWriter() argument 145 out, name, parcelObj, parcelObjIsPointer, isReader, mode); in emitReaderWriter() 154 out << "size_t " << parentName << ";\n\n"; in emitReaderWriter() 160 out << "_hidl_err = " in emitReaderWriter() 172 handleError(out, mode); in emitReaderWriter() 174 out << "_hidl_err = " in emitReaderWriter() 184 handleError(out, mode); in emitReaderWriter() 188 out, in emitReaderWriter() 202 Formatter &out, in emitReaderWriterForVectorOfBinders() argument 212 out << "{\n"; in emitReaderWriterForVectorOfBinders() [all …]
|
D | main.cpp | 168 std::string out; in makeJavaLibraryName() local 169 out = packageFQName.package(); in makeJavaLibraryName() 170 out += "-V"; in makeJavaLibraryName() 171 out += packageFQName.version(); in makeJavaLibraryName() 172 return out; in makeJavaLibraryName() 176 Formatter &out, in generatePackagePathsSection() argument 188 out << "-r" in generatePackagePathsSection() 192 out << "\\\n"; in generatePackagePathsSection() 198 Formatter &out, in generateMakefileSectionForType() argument 204 out << "\n" in generateMakefileSectionForType() [all …]
|
D | HandleType.cpp | 59 Formatter &out, in emitReaderWriter() argument 69 out << "const native_handle_t *" in emitReaderWriter() 72 out << "_hidl_err = " in emitReaderWriter() 78 handleError(out, mode); in emitReaderWriter() 80 out << name << " = " << name << "_ptr;\n"; in emitReaderWriter() 82 out << "_hidl_err = "; in emitReaderWriter() 83 out << parcelObjDeref in emitReaderWriter() 88 handleError(out, mode); in emitReaderWriter() 97 Formatter &out, in emitReaderWriterEmbedded() argument 111 out << "const native_handle_t *" in emitReaderWriterEmbedded() [all …]
|
D | ArrayType.cpp | 141 Formatter &out, in emitReaderWriter() argument 151 out << "size_t " << parentName << ";\n\n"; in emitReaderWriter() 161 out << "_hidl_err = " in emitReaderWriter() 174 handleError(out, mode); in emitReaderWriter() 177 out << "_hidl_err = " in emitReaderWriter() 189 handleError(out, mode); in emitReaderWriter() 193 out, in emitReaderWriter() 207 Formatter &out, in emitReaderWriterEmbedded() argument 228 out << "for (size_t " in emitReaderWriterEmbedded() 238 out.indent(); in emitReaderWriterEmbedded() [all …]
|
D | Type.cpp | 202 Formatter &out, in emitDump() argument 205 emitDumpWithMethod(out, streamName, "::android::hardware::toString", name); in emitDump() 209 Formatter &out, in emitDumpWithMethod() argument 213 out << streamName in emitDumpWithMethod() 222 Formatter &out, in emitJavaDump() argument 225 out << streamName << ".append(" << name << ");\n"; in emitJavaDump() 252 Formatter &out, in emitJavaReaderWriter() argument 257 out, in emitJavaReaderWriter() 266 Formatter &out, in emitJavaFieldInitializer() argument 268 out << getJavaType() in emitJavaFieldInitializer() [all …]
|
D | Method.cpp | 72 void Method::cppImpl(MethodImplType type, Formatter &out) const { in cppImpl() 77 it->second(out); in cppImpl() 82 void Method::javaImpl(MethodImplType type, Formatter &out) const { in javaImpl() 87 it->second(out); in javaImpl() 119 void Method::generateCppSignature(Formatter &out, in generateCppSignature() argument 129 out << space << "Return<void> "; in generateCppSignature() 131 out << space in generateCppSignature() 138 out << className << "::"; in generateCppSignature() 141 out << name() in generateCppSignature() 143 emitCppArgSignature(out, specifyNamespaces); in generateCppSignature() [all …]
|
D | generateVts.cpp | 32 status_t AST::emitVtsTypeDeclarations(Formatter &out) const { in emitVtsTypeDeclarations() 36 status_t status = iface->emitVtsAttributeDeclaration(out); in emitVtsTypeDeclarations() 46 out << "attribute: {\n"; in emitVtsTypeDeclarations() 47 out.indent(); in emitVtsTypeDeclarations() 48 status_t status = type->emitVtsTypeDeclarations(out); in emitVtsTypeDeclarations() 52 out.unindent(); in emitVtsTypeDeclarations() 53 out << "}\n\n"; in emitVtsTypeDeclarations() 86 Formatter out(file); in generateVts() local 88 out << "component_class: HAL_HIDL\n"; in generateVts() 89 out << "component_type_version: " << mPackage.version() in generateVts() [all …]
|
D | StringType.cpp | 70 Formatter &out, in emitReaderWriter() argument 77 out << "size_t " << parentName << ";\n\n"; in emitReaderWriter() 83 out << "_hidl_err = " in emitReaderWriter() 95 handleError(out, mode); in emitReaderWriter() 97 out << "_hidl_err = " in emitReaderWriter() 107 handleError(out, mode); in emitReaderWriter() 111 out, in emitReaderWriter() 125 Formatter &out, in emitReaderWriterEmbedded() argument 137 out, in emitReaderWriterEmbedded() 152 Formatter &out, const std::string &fieldName) const { in emitJavaFieldInitializer() argument [all …]
|
D | RefType.cpp | 94 Formatter &out, in emitResolveReferences() argument 103 out, in emitResolveReferences() 117 Formatter &out, in emitResolveReferencesEmbedded() argument 147 out << "size_t " << handleName << ";\n" in emitResolveReferencesEmbedded() 150 out << "_hidl_err = "; in emitResolveReferencesEmbedded() 153 out << "::android::hardware::read" in emitResolveReferencesEmbedded() 163 out << "::android::hardware::write" in emitResolveReferencesEmbedded() 172 out.indent(); in emitResolveReferencesEmbedded() 173 out.indent(); in emitResolveReferencesEmbedded() 175 out << (isReader ? parcelObjDeref : parcelObjPointer); in emitResolveReferencesEmbedded() [all …]
|
D | ScalarType.cpp | 151 Formatter &out, in emitReaderWriter() argument 158 out, in emitReaderWriter() 168 Formatter &out, in emitReaderWriterWithCast() argument 192 out << "_hidl_err = " in emitReaderWriterWithCast() 199 out << "(" in emitReaderWriterWithCast() 205 out << "&"; in emitReaderWriterWithCast() 208 out << name in emitReaderWriterWithCast() 211 handleError(out, mode); in emitReaderWriterWithCast() 215 Formatter &out, in emitHexDump() argument 218 out << streamName << " += toHexString(" << name << ");\n"; in emitHexDump() [all …]
|
/system/core/libsparse/ |
D | output_file.c | 71 int (*write_data_chunk)(struct output_file *out, unsigned int len, 73 int (*write_fill_chunk)(struct output_file *out, unsigned int len, 75 int (*write_skip_chunk)(struct output_file *out, int64_t len); 76 int (*write_end_chunk)(struct output_file *out); 94 struct output_file out; member 99 container_of((_o), struct output_file_gz, out) 102 struct output_file out; member 107 container_of((_o), struct output_file_normal, out) 110 struct output_file out; member 116 container_of((_o), struct output_file_callback, out) [all …]
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
D | position.c | 139 if (!(out.flags & ISTAPE)) { in pos_out() 140 if (ddop_lseek(out, out.fd, in pos_out() 141 (off_t)out.offset * (off_t)out.dbsz, SEEK_SET) == -1) in pos_out() 142 err(EXIT_FAILURE, "%s", out.name); in pos_out() 148 if (out.flags & NOREAD) { in pos_out() 150 t_op.mt_count = out.offset; in pos_out() 152 if (ddop_ioctl(out, out.fd, MTIOCTOP, &t_op) < 0) in pos_out() 153 err(EXIT_FAILURE, "%s", out.name); in pos_out() 159 for (cnt = 0; cnt < out.offset; ++cnt) { in pos_out() 160 if ((n = ddop_read(out, out.fd, out.db, out.dbsz)) > 0) in pos_out() [all …]
|
D | dd.c | 78 IO in, out; /* input/output state */ variable 179 if (out.name == NULL) { in setup() 181 out.fd = STDOUT_FILENO; in setup() 182 out.name = "stdout"; in setup() 183 out.ops = &ddfops_stdfd; in setup() 185 out.ops = prog_ops; in setup() 188 out.fd = ddop_open(out, out.name, O_RDWR | OFLAGS, DEFFILEMODE); in setup() 194 if (out.fd < 0) { in setup() 195 out.fd = ddop_open(out, out.name, O_WRONLY | OFLAGS, in setup() 197 out.flags |= NOREAD; in setup() [all …]
|
D | conv.c | 73 out.dbp = in.dbp; in def() 74 out.dbcnt = in.dbcnt; in def() 76 if (in.dbcnt >= out.dbsz) { in def() 85 in.dbp = out.dbp; in def() 86 in.dbcnt = out.dbcnt; in def() 96 out.dbcnt = in.dbcnt; in def_close() 149 for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) { in block() 193 out.dbp += cbsz; in block() 194 if ((out.dbcnt += cbsz) >= out.dbsz) in block() 196 outp = out.dbp; in block() [all …]
|
/system/core/healthd/tests/ |
D | AnimationParser_test.cpp | 65 animation::text_field out; in TEST() local 67 EXPECT_TRUE(parse_text_field(TEST_XCENT_YCENT, &out)); in TEST() 68 EXPECT_EQ(CENTER_VAL, out.pos_x); in TEST() 69 EXPECT_EQ(CENTER_VAL, out.pos_y); in TEST() 70 EXPECT_EQ(TEST_R, out.color_r); in TEST() 71 EXPECT_EQ(TEST_G, out.color_g); in TEST() 72 EXPECT_EQ(TEST_B, out.color_b); in TEST() 73 EXPECT_EQ(TEST_A, out.color_a); in TEST() 74 EXPECT_STREQ(TEST_FILE_NAME, out.font_file.c_str()); in TEST() 76 EXPECT_TRUE(parse_text_field(TEST_XCENT_YVAL, &out)); in TEST() [all …]
|
/system/update_engine/payload_generator/ |
D | zip_unittest.cc | 71 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) { in DecompressWithWriter() argument 73 new W(brillo::make_unique_ptr(new MemoryExtentWriter(out)))); in DecompressWithWriter() 87 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 88 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 96 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress() 97 return BzipCompress(in, out); in ZipCompress() 99 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipDecompress() 100 return DecompressWithWriter<BzipExtentWriter>(in, out); in ZipDecompress() 109 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress() 110 return XzCompress(in, out); in ZipCompress() [all …]
|
/system/tools/hidl/c2hal/ |
D | CompositeDeclaration.cpp | 61 void CompositeDeclaration::generateInterface(Formatter &out) const { in generateInterface() 62 generateCommentText(out); in generateInterface() 63 out << "interface " << getInterfaceName() << " {\n\n"; in generateInterface() 65 generateBody(out); in generateInterface() 67 out << "};\n"; in generateInterface() 70 void CompositeDeclaration::generateSource(Formatter &out) const { in generateSource() 75 out << Type::qualifierText(mQualifier) << " " << getName(); in generateSource() 78 out << " : "; in generateSource() 81 out << "int32_t /* NOTE: type is guessed */"; in generateSource() 83 out << mEnumTypeName; in generateSource() [all …]
|
D | FunctionDeclaration.cpp | 55 void FunctionDeclaration::generateSource(Formatter &out) const { in generateSource() 56 out << getName(); in generateSource() 58 generateParams(out); in generateSource() 61 out << " generates (" in generateSource() 66 out << ";\n"; in generateSource() 69 void FunctionDeclaration::generateParameterSource(Formatter &out) const { in generateParameterSource() 70 out << getType()->decorateName("(*" + getName() + ")"); in generateParameterSource() 72 generateParams(out); in generateParameterSource() 86 void FunctionDeclaration::generateParams(Formatter &out) const { in generateParams() 87 out << "("; in generateParams() [all …]
|
D | Note.cpp | 36 void Note::generateSource(Formatter &out) const { in generateSource() 37 out.setLinePrefix("//"); in generateSource() 38 out << "NOTE:\n"; in generateSource() 40 out.indent(); in generateSource() 42 mDecl->generateSource(out); in generateSource() 44 out << getName(); in generateSource() 46 out.unindent(); in generateSource() 48 out.unsetLinePrefix(); in generateSource() 49 out << "\n"; in generateSource()
|