Home
last modified time | relevance | path

Searched refs:Options (Results 1 – 25 of 57) sorted by relevance

123

/system/tools/aidl/
Doptions.cpp44 string Options::GetUsage() const { in GetUsage()
65 if (language_ == Options::Language::JAVA) { in GetUsage()
69 } else if (language_ == Options::Language::CPP) { in GetUsage()
144 const string Options::LanguageToString(Language language) { in LanguageToString()
146 case Options::Language::CPP: in LanguageToString()
148 case Options::Language::JAVA: in LanguageToString()
150 case Options::Language::NDK: in LanguageToString()
152 case Options::Language::UNSPECIFIED: in LanguageToString()
160 bool Options::StabilityFromString(const std::string& stability, Stability* out_stability) { in StabilityFromString()
168 Options Options::From(const string& cmdline) { in From()
[all …]
Dgenerate_ndk.h29 void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types,
34 const Options& options);
36 const AidlInterface& defined_type, const Options& options);
38 const AidlInterface& defined_type, const Options& options);
40 const AidlInterface& defined_type, const Options& options);
42 const AidlInterface& defined_type, const Options& options);
44 const AidlInterface& defined_type, const Options& options);
46 const AidlInterface& defined_type, const Options& options);
48 const AidlInterface& defined_type, const Options& options);
51 const AidlStructuredParcelable& defined_type, const Options& options);
[all …]
Dgenerate_cpp.h32 bool GenerateCpp(const string& output_file, const Options& options, const AidlTypenames& typenames,
38 const Options& options);
41 const Options& options);
44 const Options& options);
47 const Options& options);
50 const Options& options);
53 const Options& options);
57 const Options& options);
60 const Options& options);
Daidl_unittest.cpp153 class AidlTest : public ::testing::TestWithParam<Options::Language> {
156 Options::Language lang, AidlError* error = nullptr, in Parse()
161 args.emplace_back("--lang=" + Options::LanguageToString(lang));
172 Options options = Options::From(args);
192 Options::Language GetLanguage() { return GetParam(); } in GetLanguage()
203 testing::Values(Options::Language::CPP, Options::Language::JAVA,
204 Options::Language::NDK),
205 [](const testing::TestParamInfo<Options::Language>& info) { in __anon73b97b860202()
206 return Options::LanguageToString(info.param); in __anon73b97b860202()
439 Options java_options = Options::From("aidl -o out --structured a/Foo.aidl"); in TEST_F()
[all …]
Doptions_unittest.cpp93 unique_ptr<Options> GetOptions(const char* command[], in GetOptions()
94 Options::Language default_lang = Options::Language::JAVA) { in GetOptions()
98 unique_ptr<Options> ret(new Options(argc, command, default_lang)); in GetOptions()
114 unique_ptr<Options> options = GetOptions(kPreprocessCommand); in TEST()
115 EXPECT_EQ(Options::Task::PREPROCESS, options->GetTask()); in TEST()
128 unique_ptr<Options> options = GetOptions(kCompileJavaCommand); in TEST()
129 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST()
130 EXPECT_EQ(Options::Language::JAVA, options->TargetLanguage()); in TEST()
145 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST()
146 EXPECT_EQ(Options::Language::JAVA, options->TargetLanguage()); in TEST()
[all …]
Dmain.cpp24 using android::aidl::Options;
27 constexpr Options::Language kDefaultLang = Options::Language::CPP;
29 constexpr Options::Language kDefaultLang = Options::Language::JAVA;
36 Options options(argc, argv, kDefaultLang); in main()
Daidl.h48 int compile_aidl(const Options& options, const IoDelegate& io_delegate);
49 bool preprocess_aidl(const Options& options, const IoDelegate& io_delegate);
50 bool dump_api(const Options& options, const IoDelegate& io_delegate);
51 bool dump_mappings(const Options& options, const IoDelegate& io_delegate);
54 int aidl_entry(const Options& options, const IoDelegate& io_delegate);
81 AidlError load_and_validate_aidl(const std::string& input_file_name, const Options& options,
Daidl.cpp155 bool write_dep_file(const Options& options, const AidlDefinedType& defined_type, in write_dep_file()
180 options.TargetLanguage() == Options::Language::JAVA) { in write_dep_file()
220 string generate_outputFileName(const Options& options, const AidlDefinedType& defined_type) { in generate_outputFileName()
239 if (options.TargetLanguage() == Options::Language::JAVA) { in generate_outputFileName()
412 AidlError load_and_validate_aidl(const std::string& input_file_name, const Options& options, in load_and_validate_aidl()
525 const bool is_check_api = options.GetTask() == Options::Task::CHECK_API; in load_and_validate_aidl()
605 if (options.GetStability() != Options::Stability::VINTF) { in load_and_validate_aidl()
700 if (options.GetStability() == Options::Stability::VINTF && !type.IsVintfStability()) { in load_and_validate_aidl()
754 int compile_aidl(const Options& options, const IoDelegate& io_delegate) { in compile_aidl()
755 const Options::Language lang = options.TargetLanguage(); in compile_aidl()
[all …]
Doptions.h60 class Options final {
69 Options(int argc, const char* const argv[], Language default_lang = Language::UNSPECIFIED);
71 static Options From(const string& cmdline);
73 static Options From(const vector<string>& args);
147 Options() = default;
Dgenerate_java.h32 const Options& options);
35 const AidlInterface* iface, const AidlTypenames& typenames, const Options& options);
Dgenerate_ndk.cpp40 void GenerateNdkInterface(const string& output_file, const Options& options, in GenerateNdkInterface()
65 void GenerateNdkParcel(const string& output_file, const Options& options, in GenerateNdkParcel()
98 void GenerateNdkEnumDeclaration(const string& output_file, const Options& options, in GenerateNdkEnumDeclaration()
125 void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types, in GenerateNdk()
308 const Options& options) { in GenerateSource()
327 const Options& options) { in GenerateClientMethodDefinition()
362 out << "ScopedTrace _aidl_trace(\"AIDL::" << Options::LanguageToString(options.TargetLanguage()) in GenerateClientMethodDefinition()
452 const AidlMethod& method, const Options& options) { in GenerateServerCaseDefinition()
464 out << "ScopedTrace _aidl_trace(\"AIDL::" << Options::LanguageToString(options.TargetLanguage()) in GenerateServerCaseDefinition()
522 const AidlInterface& defined_type, const Options& options) { in GenerateClassSource()
[all …]
DPREUPLOAD.cfg1 [Options]
/system/testing/gtest_extras/
DOptions.cpp47 const std::unordered_map<std::string, Options::ArgInfo> Options::kArgs = {
48 {"deadline_threshold_ms", {FLAG_REQUIRES_VALUE, &Options::SetNumeric}},
49 {"slow_threshold_ms", {FLAG_REQUIRES_VALUE, &Options::SetNumeric}},
50 {"gtest_list_tests", {FLAG_NONE, &Options::SetBool}},
51 {"gtest_filter", {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE, &Options::SetString}},
52 {"gtest_flagfile", {FLAG_REQUIRES_VALUE, &Options::SetString}},
55 {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE, &Options::SetIterations},
57 {"gtest_output", {FLAG_ENVIRONMENT_VARIABLE | FLAG_REQUIRES_VALUE, &Options::SetXmlFile}},
58 {"gtest_print_time", {FLAG_ENVIRONMENT_VARIABLE | FLAG_OPTIONAL_VALUE, &Options::SetPrintTime}},
61 {FLAG_ENVIRONMENT_VARIABLE | FLAG_CHILD, &Options::SetBool},
[all …]
DOptions.h30 class Options {
32 Options() = default;
33 ~Options() = default;
74 bool (Options::*func)(const std::string&, const std::string&, bool); member
DIsolate.h40 Isolate(const Options& options, const std::vector<char*>& child_args) in Isolate()
54 void (*print_func)(const Options&, const Test&);
81 const Options& options_;
/system/tools/aidl/tests/
Dend_to_end_tests.cpp83 Options options = Options::From(args); in TEST_F()
108 Options options = Options::From(args); in TEST_F()
133 Options options = Options::From(args); in TEST_F()
157 Options options = Options::From(args); in TEST_F()
185 Options options = Options::From(args); in TEST_F()
212 Options options = Options::From(args); in TEST_F()
239 Options options = Options::From(args); in TEST_F()
262 Options options = Options::From(args); in TEST_F()
281 Options options = Options::From(args); in TEST_F()
301 Options options = Options::From(args); in TEST_F()
[all …]
/system/testing/gtest_extras/tests/
DOptionsTest.cpp58 Options options; in TEST_F()
68 Options options; in TEST_F()
78 Options options; in TEST_F()
87 Options options; in TEST_F()
106 Options options; in TEST_F()
115 Options options; in TEST_F()
124 Options options; in TEST_F()
132 Options options; in TEST_F()
141 Options options; in TEST_F()
151 Options options; in TEST_F()
[all …]
/system/tools/xsdc/src/com/android/xsdc/
DMain.java33 import org.apache.commons.cli.Options;
41 Options options = new Options(); in main()
121 private static void help(Options options) { in help()
/system/vold/
Dsecdiscard.cpp38 struct Options { struct
45 bool read_command_line(int argc, const char* const argv[], Options& options);
55 Options options; in main()
104 bool read_command_line(int argc, const char* const argv[], Options& options) { in read_command_line()
/system/bt/service/ipc/dbus/
Dipc_handler_dbus.cc39 base::Thread::Options thread_options; in Run()
52 Bus::Options bus_options; in InitDbus()
/system/libvintf/
DPREUPLOAD.cfg1 [Options]
/system/nfc/
DPREUPLOAD.cfg1 [Options]
/system/libhidl/
DPREUPLOAD.cfg1 [Options]
/system/hardware/interfaces/
DPREUPLOAD.cfg1 [Options]
/system/libfmq/
DPREUPLOAD.cfg1 [Options]

123