/system/tools/hidl/ |
H A D | generateJava.cpp | 30 void AST::emitJavaReaderWriter(Formatter& out, const std::string& parcelObj, argument 34 out << arg->type().getJavaType() 41 arg->type().emitJavaReaderWriter(out, parcelObj, 46 void AST::generateJavaTypes(Formatter& out, const std::string& limitToType) const { argument 60 out << "package " << mPackage.javaPackage() << ";\n\n\n"; 62 type->emitJavaTypeDeclarations(out, true /* atTopLevel */); 70 Formatter& out, 74 out << "public static " 78 out << ", boolean retry"; 80 out << ") throw 69 emitGetService( Formatter& out, const std::string& ifaceName, const std::string& fqName, bool isRetry) argument 109 generateJava(Formatter& out, const std::string& limitToType) const argument [all...] |
H A D | generateCppImpl.cpp | 36 void AST::generateFetchSymbol(Formatter &out, const std::string& ifaceName) const { argument 37 out << "HIDL_FETCH_" << ifaceName; 40 void AST::generateStubImplMethod(Formatter& out, const std::string& className, argument 47 method->generateCppSignature(out, className, false /* specifyNamespaces */); 49 out << " {\n"; 51 out.indent(); 52 out << "// TODO implement\n"; 57 out << "return Void();\n"; 59 out << "return " 64 out [all...] |
H A D | generateCpp.cpp | 64 Formatter &out, 68 out << "#include <"; 74 out << component << "/"; 77 out << klass 81 void AST::enterLeaveNamespace(Formatter &out, bool enter) const { argument 88 out << "namespace " << component << " {\n"; 91 out.setNamespace(mPackage.cppNamespace() + "::"); 93 out.setNamespace(std::string()); 98 out << "} // namespace " << *it << "\n"; 103 static void declareGetService(Formatter &out, cons argument 63 generateCppPackageInclude( Formatter &out, const FQName &package, const std::string &klass) argument 121 declareServiceManagerInteractions(Formatter &out, const std::string &interfaceName) argument 136 implementGetService(Formatter &out, const FQName &fqName, bool isTry) argument 155 implementServiceManagerInteractions(Formatter &out, const FQName &fqName, const std::string &package) argument 394 wrapPassthroughArg(Formatter& out, const NamedReference<Type>* arg, bool addPrefixToName, std::function<void(void)> handleError) argument 421 generatePassthroughMethod(Formatter& out, const Method* method) const argument 548 generateMethods(Formatter& out, const MethodGenerator& gen, bool includeParent) const argument 579 generateCppTag(Formatter& out, const std::string& tag) const argument 889 generateCheckNonNull(Formatter &out, const std::string &nonNull) argument 899 generateTypeSource(Formatter& out, const std::string& ifaceName) const argument 903 declareCppReaderLocals(Formatter& out, const std::vector<NamedReference<Type>*>& args, bool forResults) const argument 921 emitCppReaderWriter(Formatter& out, const std::string& parcelObj, bool parcelObjIsPointer, const NamedReference<Type>* arg, bool isReader, Type::ErrorMode mode, bool addPrefixToName) const argument 935 emitCppResolveReferences(Formatter& out, const std::string& parcelObj, bool parcelObjIsPointer, const NamedReference<Type>* arg, bool isReader, Type::ErrorMode mode, bool addPrefixToName) const argument 952 generateProxyMethodSource(Formatter& out, const std::string& klassName, const Method* method, const Interface* superInterface) const argument 1000 generateStaticProxyMethodSource(Formatter& out, const std::string& klassName, const Method* method) const argument 1175 generateProxySource(Formatter& out, const FQName& fqName) const argument 1211 generateStubSource(Formatter& out, const Interface* iface) const argument 1377 generateStubSourceForMethod(Formatter& out, const Method* method, const Interface* superInterface) const argument 1395 generateStaticStubMethodSource(Formatter& out, const FQName& fqName, const Method* method) const argument 1803 generateCppAtraceCall(Formatter &out, InstrumentationEvent event, const Method *method) const argument 1841 generateCppInstrumentationCall( Formatter &out, InstrumentationEvent event, const Method *method) const argument [all...] |
H A D | generateCppAdapter.cpp | 37 void AST::generateCppAdapterHeader(Formatter& out) const { 41 out << "#ifndef " << guard << "\n"; 42 out << "#define " << guard << "\n\n"; 45 generateCppPackageInclude(out, mPackage, getInterface()->localName()); 47 enterLeaveNamespace(out, true /* enter */); 48 out.endl(); 52 out << "class " << klassName << " : public " << mockName << " "; 53 out.block([&] { 54 out << "public:\n"; 55 out << "typede 120 generateAdapterMethod(Formatter& out, const Method* method) const argument [all...] |
H A D | generateVts.cpp | 32 void AST::emitVtsTypeDeclarations(Formatter& out) const { 35 return iface->emitVtsAttributeDeclaration(out); 43 out << "attribute: {\n"; 44 out.indent(); 45 type->emitVtsTypeDeclarations(out); 46 out.unindent(); 47 out << "}\n\n"; 51 void AST::generateVts(Formatter& out) const { 55 out << "component_class: HAL_HIDL\n"; 56 out << "component_type_versio [all...] |
H A D | Interface.cpp | 92 [](auto &out) { 93 out << "return ::android::hardware::Void();\n"; 97 [](auto &out) { 98 out << "return ::android::hardware::Void();\n"; 104 [](auto &out) { 105 out << "return;\n"; 123 [](auto &out) { 124 out << "(void)cookie;\n" 129 [](auto &out) { 130 out << " 291 emitDigestChain( Formatter& out, const std::string& prefix, const std::vector<const Interface*>& chain, std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const argument 773 emitReaderWriter( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 862 emitTypeDefinitions(Formatter& out, const std::string& prefix) const argument 868 emitJavaReaderWriter( Formatter &out, const std::string &parcelObj, const std::string &argName, bool isReader) const argument [all...] |
H A D | CompoundType.cpp | 167 Formatter &out, 179 field->type().emitReaderWriter(out, name + "." + field->name(), 185 out << "size_t " << parentName << ";\n\n"; 188 out << "_hidl_err = " << parcelObjDeref << "readBuffer(" 192 handleError(out, mode); 194 out << "_hidl_err = " 203 handleError(out, mode); 209 emitReaderWriterEmbedded(out, 0 /* depth */, name, name, /* sanitizedName */ 217 Formatter &out, 229 out, 166 emitReaderWriter( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 216 emitReaderWriterEmbedded( Formatter &out, size_t , const std::string &name, const std::string & , bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &parentName, const std::string &offsetText) const argument 243 emitJavaReaderWriter( Formatter &out, const std::string &parcelObj, const std::string &argName, bool isReader) const argument 260 emitJavaFieldInitializer( Formatter &out, const std::string &fieldName) const argument 271 emitJavaFieldReaderWriter( Formatter &out, size_t , const std::string &parcelName, const std::string &blobName, const std::string &fieldName, const std::string &offset, bool isReader) const argument 299 emitResolveReferences( Formatter &out, const std::string &name, bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 321 emitResolveReferencesEmbedded( Formatter &out, size_t , const std::string &name, const std::string & , bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &parentName, const std::string &offsetText) const argument 551 emitTypeDefinitions(Formatter& out, const std::string& prefix) const argument 566 emitJavaTypeDeclarations(Formatter& out, bool atTopLevel) const argument 805 emitStructReaderWriter( Formatter &out, const std::string &prefix, bool isReader) const argument 876 emitResolveReferenceDef(Formatter& out, const std::string& prefix, bool isReader) const argument [all...] |
H A D | VectorType.cpp | 135 Formatter &out, 143 out, name, parcelObj, parcelObjIsPointer, isReader, mode); 152 out << "size_t " << parentName << ";\n\n"; 158 out << "_hidl_err = " 170 handleError(out, mode); 172 out << "_hidl_err = " 182 handleError(out, mode); 186 out, 200 Formatter &out, 210 out << "{\ 134 emitReaderWriter( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 199 emitReaderWriterForVectorOfBinders( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 284 emitReaderWriterEmbedded( Formatter &out, size_t depth, const std::string &name, const std::string &sanitizedName, bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &parentName, const std::string &offsetText) const argument 356 emitResolveReferences( Formatter &out, const std::string &name, bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 378 emitResolveReferencesEmbedded( Formatter &out, size_t depth, const std::string &name, const std::string &sanitizedName, bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string & , const std::string & ) const argument 400 emitResolveReferencesEmbeddedHelper( Formatter &out, size_t depth, const std::string &name, const std::string &sanitizedName, bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &childName, const std::string &childOffsetText) const argument 467 emitJavaReaderWriter( Formatter &out, const std::string &parcelObj, const std::string &argName, bool isReader) const argument 545 emitJavaFieldInitializer( Formatter &out, const std::string &fieldName) const argument 558 emitJavaFieldReaderWriter( Formatter &out, size_t depth, const std::string &parcelName, const std::string &blobName, const std::string &fieldName, const std::string &offset, bool isReader) const argument 577 EmitJavaFieldReaderWriterForElementType( Formatter &out, size_t depth, const Type *elementType, const std::string &parcelName, const std::string &blobName, const std::string &fieldName, const std::string &offset, bool isReader) argument [all...] |
H A D | HandleType.cpp | 59 Formatter &out, 69 out << "const native_handle_t *" 72 out << "_hidl_err = " 78 handleError(out, mode); 80 out << name << " = " << name << "_ptr;\n"; 82 out << "_hidl_err = "; 83 out << parcelObjDeref 88 handleError(out, mode); 97 Formatter &out, 111 out << "cons 58 emitReaderWriter( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 96 emitReaderWriterEmbedded( Formatter &out, size_t , const std::string &name, const std::string &sanitizedName, bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &parentName, const std::string &offsetText) const argument [all...] |
H A D | StringType.cpp | 70 Formatter &out, 77 out << "size_t " << parentName << ";\n\n"; 83 out << "_hidl_err = " 95 handleError(out, mode); 97 out << "_hidl_err = " 107 handleError(out, mode); 111 out, 125 Formatter &out, 137 out, 152 Formatter &out, cons 69 emitReaderWriter( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 124 emitReaderWriterEmbedded( Formatter &out, size_t , const std::string &name, const std::string & , bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &parentName, const std::string &offsetText) const argument 151 emitJavaFieldInitializer( Formatter &out, const std::string &fieldName) const argument 158 emitJavaFieldReaderWriter( Formatter &out, size_t , const std::string &parcelName, const std::string &blobName, const std::string &fieldName, const std::string &offset, bool isReader) const argument [all...] |
/system/tools/hidl/c2hal/ |
H A D | Note.cpp | 36 void Note::generateSource(Formatter &out) const { 37 out.setLinePrefix("//"); 38 out << "NOTE:\n"; 40 out.indent(); 42 mDecl->generateSource(out); 44 out << getName(); 46 out.unindent(); 48 out.unsetLinePrefix(); 49 out << "\n";
|
H A D | Include.cpp | 31 void Include::generateSource(Formatter &out) const { 32 out << "// import " 36 out << "/* library file */"; 38 out << "/* local file */"; 41 out << "\n";
|
H A D | TypeDef.cpp | 29 void TypeDef::generateSource(Formatter &out) const { 30 out << "typedef "; 32 mDeclaration->generateParameterSource(out); 34 out << ";\n";
|
H A D | FunctionDeclaration.cpp | 55 void FunctionDeclaration::generateSource(Formatter &out) const { 56 out << getName(); 58 generateParams(out); 61 out << " generates (" 66 out << ";\n"; 69 void FunctionDeclaration::generateParameterSource(Formatter &out) const { 70 out << getType()->decorateName("(*" + getName() + ")"); 72 generateParams(out); 86 void FunctionDeclaration::generateParams(Formatter &out) const { 87 out << "("; [all...] |
H A D | CompositeDeclaration.cpp | 61 void CompositeDeclaration::generateInterface(Formatter &out) const { 62 generateCommentText(out); 63 out << "interface " << getInterfaceName() << " {\n\n"; 65 generateBody(out); 67 out << "};\n"; 70 void CompositeDeclaration::generateSource(Formatter &out) const { 75 out << Type::qualifierText(mQualifier) << " " << getName(); 78 out << " : "; 81 out << "int32_t /* NOTE: type is guessed */"; 83 out << mEnumTypeNam [all...] |
/system/chre/build/ |
H A D | defs.mk | 7 OUT = out
|
/system/netd/libnetdutils/ |
H A D | Socket.cpp | 26 std::array<char, INET6_ADDRSTRLEN> out = {}; local 27 auto* rv = inet_ntop(AF_INET6, &addr, out.data(), out.size()); 31 return std::string(out.data());
|
/system/core/libsparse/ |
H A 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 in struct:output_file_gz 99 container_of((_o), struct output_file_gz, out) 102 struct output_file out; member in struct:output_file_normal 107 container_of((_o), struct output_file_normal, out) 110 struct output_file out; member in struct:output_file_callback 116 container_of((_o), struct output_file_callback, out) 118 file_open(struct output_file *out, int fd) argument 126 file_skip(struct output_file *out, int64_t cnt) argument 139 file_pad(struct output_file *out, int64_t len) argument 152 file_write(struct output_file *out, void *data, size_t len) argument 174 file_close(struct output_file *out) argument 189 gz_file_open(struct output_file *out, int fd) argument 203 gz_file_skip(struct output_file *out, int64_t cnt) argument 216 gz_file_pad(struct output_file *out, int64_t len) argument 240 gz_file_write(struct output_file *out, void *data, size_t len) argument 259 gz_file_close(struct output_file *out) argument 280 callback_file_skip(struct output_file *out, int64_t off) argument 303 callback_file_write(struct output_file *out, void *data, size_t len) argument 310 callback_file_close(struct output_file *out) argument 347 write_sparse_skip_chunk(struct output_file *out, int64_t skip_len) argument 373 write_sparse_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 408 write_sparse_data_chunk(struct output_file *out, unsigned int len, void *data) argument 449 write_sparse_end_chunk(struct output_file *out) argument 482 write_normal_data_chunk(struct output_file *out, unsigned int len, void *data) argument 500 write_normal_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 525 write_normal_skip_chunk(struct output_file *out, int64_t len) argument 530 write_normal_end_chunk(struct output_file *out) argument 542 output_file_close(struct output_file *out) argument 548 output_file_init(struct output_file *out, int block_size, int64_t len, bool sparse, int chunks, bool crc) argument 667 struct output_file *out; local 690 write_data_chunk(struct output_file *out, unsigned int len, void *data) argument 696 write_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 702 write_fd_chunk(struct output_file *out, unsigned int len, int fd, int64_t offset) argument 755 write_file_chunk(struct output_file *out, unsigned int len, const char *file, int64_t offset) argument 772 write_skip_chunk(struct output_file *out, int64_t len) argument [all...] |
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | position.c | 139 if (!(out.flags & ISTAPE)) { 140 if (ddop_lseek(out, out.fd, 141 (off_t)out.offset * (off_t)out.dbsz, SEEK_SET) == -1) 142 err(EXIT_FAILURE, "%s", out.name); 148 if (out.flags & NOREAD) { 150 t_op.mt_count = out.offset; 152 if (ddop_ioctl(out, out [all...] |
H A D | dd.c | 78 IO in, out; /* input/output state */ variable 179 if (out.name == NULL) { 181 out.fd = STDOUT_FILENO; 182 out.name = "stdout"; 183 out.ops = &ddfops_stdfd; 185 out.ops = prog_ops; 188 out.fd = ddop_open(out, out.name, O_RDWR | OFLAGS, DEFFILEMODE); 194 if (out [all...] |
/system/media/audio_utils/ |
H A D | limiter.c | 42 float out; local 47 out = crossover + atan_approximation((in_abs - crossover)*factor)*ratio; 48 if (out > 1.0) { 49 out = 1.0; 60 out = ((A*in_abs + B)*in_abs + C)*in_abs + D; 62 out = 1.0; 66 out = -out; 68 return out;
|
/system/update_engine/payload_generator/ |
H A D | xz_chromeos.cc | 23 bool XzCompress(const brillo::Blob& in, brillo::Blob* out) { argument
|
H A D | bzip.cc | 29 bool BzipCompress(const brillo::Blob& in, brillo::Blob* out) { argument 30 TEST_AND_RETURN_FALSE(out); 31 out->clear(); 38 out->resize(buf_size); 46 reinterpret_cast<char*>(out->data()), 56 out->resize(data_size); 62 out->resize(buf_size);
|
H A D | zip_unittest.cc | 72 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) { argument 74 new W(std::make_unique<MemoryExtentWriter>(out))); 88 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 89 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 97 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { 98 return BzipCompress(in, out); 100 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { 101 return DecompressWithWriter<BzipExtentWriter>(in, out); 110 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { 111 return XzCompress(in, out); 136 brillo::Blob out; local 148 brillo::Blob out; local 159 brillo::Blob out; local 165 brillo::Blob out; local [all...] |
/system/security/keystore/ |
H A D | OperationResult.cpp | 48 status_t OperationResult::writeToParcel(Parcel* out) const { 49 out->writeInt32(resultCode); 50 out->writeStrongBinder(token); 51 out->writeInt64(handle); 52 out->writeInt32(inputConsumed); 53 keystore::writeKeymasterBlob(data, out); 54 keystore::writeParamSetToParcel(outParams, out);
|