/test/vts/compilation_tools/vtsc/code_gen/fuzzer/ |
FuzzerCodeGenBase.h | 20 #include <hidl-util/Formatter.h> 41 void GenerateAll(Formatter &header_out, Formatter &source_out); 43 void GenerateHeaderFile(Formatter &out); 45 void GenerateSourceFile(Formatter &out); 49 virtual void GenerateSourceIncludeFiles(Formatter &out) = 0; 51 virtual void GenerateUsingDeclaration(Formatter &out) = 0; 53 virtual void GenerateGlobalVars(Formatter &out) = 0; 55 virtual void GenerateLLVMFuzzerInitialize(Formatter &out) = 0; 57 virtual void GenerateLLVMFuzzerTestOneInput(Formatter &out) = 0 [all...] |
FuzzerCodeGenBase.cpp | 29 void FuzzerCodeGenBase::GenerateAll(Formatter & /* header_out */, 30 Formatter &source_out) { 34 void FuzzerCodeGenBase::GenerateHeaderFile(Formatter & /* out */) { 38 void FuzzerCodeGenBase::GenerateSourceFile(Formatter &out) { 52 void FuzzerCodeGenBase::GenerateOpenNameSpaces(Formatter &out) { 57 void FuzzerCodeGenBase::GenerateCloseNameSpaces(Formatter &out) { 62 void FuzzerCodeGenBase::GenerateWarningComment(Formatter &out) {
|
HalHidlFuzzerCodeGen.h | 31 void GenerateSourceIncludeFiles(Formatter &out) override; 32 void GenerateUsingDeclaration(Formatter &out) override; 33 void GenerateGlobalVars(Formatter &out) override; 34 void GenerateLLVMFuzzerInitialize(Formatter &out) override; 35 void GenerateLLVMFuzzerTestOneInput(Formatter &out) override; 39 void GenerateReturnCallback(Formatter &out, 42 void GenerateHalFunctionCall(Formatter &out,
|
/test/vts/compilation_tools/vtsc/code_gen/driver/ |
DriverCodeGenBase.h | 20 #include <hidl-util/Formatter.h> 42 virtual void GenerateAll(Formatter& header_out, Formatter& source_out, 47 Formatter& out, const ComponentSpecificationMessage& message); 51 Formatter& out, const ComponentSpecificationMessage& message); 56 virtual void GenerateClassHeader(Formatter& out, 61 virtual void GenerateClassImpl(Formatter& out, 66 virtual void GenerateCppBodyFuzzFunction(Formatter& out, 71 virtual void GenerateCppBodyGetAttributeFunction(Formatter& out, 76 virtual void GenerateDriverFunctionImpl(Formatter& out [all...] |
HalHidlCodeGen.h | 40 void GenerateClassHeader(Formatter& out, 44 void GenerateClassImpl(Formatter& out, 48 void GenerateCppBodyFuzzFunction(Formatter& out, 52 virtual void GenerateDriverFunctionImpl(Formatter& out, 56 void GenerateVerificationFunctionImpl(Formatter& out, 60 void GenerateCppBodyGetAttributeFunction(Formatter& out, 65 Formatter& out, const ComponentSpecificationMessage& message) override; 68 Formatter& out, const ComponentSpecificationMessage& message, 71 void GenerateClassConstructionFunction(Formatter& out, 75 void GenerateHeaderGlobalFunctionDeclarations(Formatter& out [all...] |
HalSubmoduleCodeGen.h | 40 void GenerateClassConstructionFunction(Formatter& out, 44 void GenerateAdditionalFuctionDeclarations(Formatter& out, 48 void GeneratePrivateMemberDeclarations(Formatter& out,
|
LegacyHalCodeGen.h | 40 void GenerateCppBodyFuzzFunction(Formatter& out, 44 void GenerateCppBodyGetAttributeFunction(Formatter& out, 48 void GenerateClassConstructionFunction(Formatter& out,
|
LibSharedCodeGen.h | 40 void GenerateCppBodyFuzzFunction(Formatter& out, 44 void GenerateCppBodyGetAttributeFunction(Formatter& out, 48 void GenerateClassConstructionFunction(Formatter& out,
|
HalCodeGen.h | 41 void GenerateCppBodyFuzzFunction(Formatter& out, 45 void GenerateCppBodyGetAttributeFunction(Formatter& out, 50 Formatter& out, const ComponentSpecificationMessage& message, 53 void GenerateClassConstructionFunction(Formatter& out, 57 void GenerateSubStructFuzzFunctionCall(Formatter& out, 60 void GenerateSubStructGetAttributeFunctionCall(Formatter& out, 63 void GenerateCppBodyFuzzFunction(Formatter& out, 68 void GenerateCppBodyGetAttributeFunction(Formatter& out,
|
HalSubmoduleCodeGen.cpp | 36 void HalSubmoduleCodeGen::GenerateClassConstructionFunction(Formatter& out, 43 void HalSubmoduleCodeGen::GenerateAdditionalFuctionDeclarations(Formatter& out, 54 void HalSubmoduleCodeGen::GeneratePrivateMemberDeclarations(Formatter& out,
|
/system/tools/hidl/utils/include/hidl-util/ |
Formatter.h | 27 // Two styles to use a Formatter. 32 struct Formatter { 35 Formatter(FILE *file = NULL); 36 ~Formatter(); 45 Formatter &indent(size_t level, std::function<void(void)> func); 51 Formatter &indent(std::function<void(void)> func); 65 Formatter &block(std::function<void(void)> func); 68 Formatter &endl(); 78 Formatter &sIf(const std::string &cond, std::function<void(void)> block); 79 Formatter &sElseIf(const std::string &cond, std::function<void(void)> block) [all...] |
/cts/tests/tests/text/src/android/text/format/cts/ |
FormatterTest.java | 27 import android.text.format.Formatter; 42 assertEquals("", Formatter.formatFileSize(null, 0)); 52 assertEquals("0 B", Formatter.formatFileSize(context, 0)); 53 assertEquals("1 B", Formatter.formatFileSize(context, 1)); 54 assertEquals("9 B", Formatter.formatFileSize(context, 9)); 55 assertEquals("10 B", Formatter.formatFileSize(context, 10)); 56 assertEquals("99 B", Formatter.formatFileSize(context, 99)); 57 assertEquals("100 B", Formatter.formatFileSize(context, 100)); 58 assertEquals("900 B", Formatter.formatFileSize(context, 900)); 59 assertEquals("0.90 kB", Formatter.formatFileSize(context, 901)) [all...] |
/system/tools/hidl/utils/ |
Formatter.cpp | 17 #include "Formatter.h" 23 Formatter::Formatter(FILE *file) 29 Formatter::~Formatter() { 36 void Formatter::indent(size_t level) { 40 void Formatter::unindent(size_t level) { 45 Formatter &Formatter::indent(size_t level, std::function<void(void)> func) { 52 Formatter &Formatter::indent(std::function<void(void)> func) [all...] |
/test/vts/compilation_tools/vtsc/code_gen/profiler/ |
ProfilerCodeGenBase.h | 20 #include <hidl-util/Formatter.h> 44 void GenerateAll(Formatter& header_out, Formatter& source_out, 48 virtual void GenerateHeaderFile(Formatter &out, 52 virtual void GenerateSourceFile(Formatter &out, 57 virtual void GenerateProfilerForScalarVariable(Formatter& out, 62 virtual void GenerateProfilerForStringVariable(Formatter& out, 67 virtual void GenerateProfilerForEnumVariable(Formatter& out, 72 virtual void GenerateProfilerForVectorVariable(Formatter& out, 77 virtual void GenerateProfilerForArrayVariable(Formatter& out [all...] |
HalHidlProfilerCodeGen.h | 32 virtual void GenerateProfilerForScalarVariable(Formatter& out, 36 virtual void GenerateProfilerForStringVariable(Formatter& out, 40 virtual void GenerateProfilerForEnumVariable(Formatter& out, 44 virtual void GenerateProfilerForVectorVariable(Formatter& out, 48 virtual void GenerateProfilerForArrayVariable(Formatter& out, 52 virtual void GenerateProfilerForStructVariable(Formatter& out, 56 virtual void GenerateProfilerForUnionVariable(Formatter& out, 60 virtual void GenerateProfilerForHidlCallbackVariable(Formatter& out, 64 virtual void GenerateProfilerForHidlInterfaceVariable(Formatter& out, 68 virtual void GenerateProfilerForMaskVariable(Formatter& out [all...] |
/frameworks/base/core/tests/coretests/src/android/text/format/ |
FormatterTest.java | 29 import android.text.format.Formatter.BytesResult; 98 BytesResult r = Formatter.formatBytes(mContext.getResources(), 1, 0); 115 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); 116 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); 117 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); 119 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); 121 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); 122 assertEquals("1 day, 0 hr", Formatter.formatShortElapsedTime(mContext, 1 * DAY)); 123 assertEquals("24 hr", Formatter.formatShortElapsedTime(mContext, 23 * HOUR + 30 * MINUTE)); 124 assertEquals("3 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR + 30 * MINUTE)) [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
FormatterBenchmark.java | 19 import java.util.Formatter; 23 * Compares Formatter against hand-written StringBuilder code. 28 Formatter f = new Formatter(); 43 Formatter f = new Formatter(); 52 Formatter f = new Formatter(); 69 Formatter f = new Formatter(); [all...] |
/libcore/ojluni/src/main/java/java/util/ |
Formattable.java | 33 * specifier of {@link java.util.Formatter}. This interface allows basic 41 * import java.util.Formatter; 57 * public void formatTo(Formatter fmt, int f, int width, int precision) { 94 * <p> When used in conjunction with the {@link java.util.Formatter}, the above 98 * Formatter fmt = new Formatter(); 122 * Formats the object using the provided {@link Formatter formatter}. 124 * @param formatter 125 * The {@link Formatter formatter}. Implementing classes may cal [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
OldFormatterTest.java | 21 import java.util.Formatter; 32 public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalFormatException { 34 formatter.out().append("111"); 41 public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalFormatException { 43 formatter.out().append("222"); 50 assertEquals("aaa 111?", new Formatter().format("aaa %s?", ones).toString()); 51 assertEquals("aaa 111 bbb 222?", new Formatter().format("aaa %s bbb %s?", ones, twos).toString()); 57 Formatter fLoc = null [all...] |
/system/tools/hidl/ |
HidlTypeAssertion.h | 25 struct Formatter; 36 static void EmitAll(Formatter &out);
|
Scope.h | 28 struct Formatter; 51 status_t emitTypeDeclarations(Formatter &out) const override; 52 status_t emitGlobalTypeDeclarations(Formatter &out) const override; 53 status_t emitGlobalHwDeclarations(Formatter &out) const override; 56 Formatter &out, bool atTopLevel) const override; 59 Formatter &out, const std::string prefix) const override; 63 status_t emitVtsTypeDeclarations(Formatter &out) const override;
|
Method.h | 23 #include <hidl-util/Formatter.h> 32 struct Formatter; 46 using MethodImpl = std::map<MethodImplType, std::function<void(Formatter &)>>; 61 void cppImpl(MethodImplType type, Formatter &out) const; 62 void javaImpl(MethodImplType type, Formatter &out) const; 81 void generateCppReturnType(Formatter &out, bool specifyNamespaces = true) const; 82 void generateCppSignature(Formatter &out, 87 void emitCppArgSignature(Formatter &out, bool specifyNamespaces = true) const; 88 void emitCppResultSignature(Formatter &out, bool specifyNamespaces = true) const; 90 void emitJavaArgSignature(Formatter &out) const [all...] |
AST.h | 34 struct Formatter; 168 Formatter &out, 174 void enterLeaveNamespace(Formatter &out, bool enter) const; 176 static void generateCheckNonNull(Formatter &out, const std::string &nonNull); 185 Formatter &out, const std::string &ifaceName) const; 192 void generateTemplatizationLink(Formatter& out) const; 194 status_t generateMethods(Formatter &out, MethodGenerator gen, bool includeParents = true) const; 195 status_t generateStubImplMethod(Formatter &out, 198 status_t generatePassthroughMethod(Formatter &out, 200 status_t generateStaticProxyMethodSource(Formatter &out [all...] |
/test/vts/compilation_tools/vtsc/code_gen/ |
CodeGenBase.h | 20 #include <hidl-util/Formatter.h> 51 virtual void GenerateAll(Formatter& header_out, Formatter& source_out, 56 Formatter& out, const ComponentSpecificationMessage& message) = 0; 60 Formatter& out, const ComponentSpecificationMessage& message) = 0;
|
/external/caliper/examples/src/main/java/examples/ |
FormatterBenchmark.java | 20 import java.util.Formatter; 23 * Compares Formatter against hand-written StringBuilder code. 28 Formatter f = new Formatter(); 43 Formatter f = new Formatter(); 60 Formatter f = new Formatter();
|