Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 156) sorted by relevance

1234567

/system/tools/aidl/
Doptions_unittest.cpp114 unique_ptr<Options> options = GetOptions(kPreprocessCommand); in TEST() local
115 EXPECT_EQ(Options::Task::PREPROCESS, options->GetTask()); in TEST()
116 EXPECT_EQ(false, options->FailOnParcelable()); in TEST()
117 EXPECT_EQ(0u, options->ImportDirs().size()); in TEST()
118 EXPECT_EQ(0u, options->PreprocessedFiles().size()); in TEST()
119 EXPECT_EQ(string{kPreprocessCommandOutputFile}, options->OutputFile()); in TEST()
120 EXPECT_EQ(false, options->AutoDepFile()); in TEST()
124 EXPECT_EQ(expected_input, options->InputFiles()); in TEST()
128 unique_ptr<Options> options = GetOptions(kCompileJavaCommand); in TEST() local
129 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST()
[all …]
Daidl_unittest.cpp153 Options options = Options::From(args); local
158 path, options, io_delegate_, types, &defined_types, &imported_files);
318 Options options = Options::From(args); in TEST_F() local
319 EXPECT_TRUE(::android::aidl::preprocess_aidl(options, io_delegate_)); in TEST_F()
339 Options options = Options::From(args); in TEST_F() local
340 EXPECT_EQ(0, ::android::aidl::compile_aidl(options, io_delegate_)); in TEST_F()
548 Options options = Options::From(args); in TEST_F() local
549 io_delegate_.SetFileContents(options.InputFiles().front(), "package p; interface IFoo {}"); in TEST_F()
550 EXPECT_EQ(0, ::android::aidl::compile_aidl(options, io_delegate_)); in TEST_F()
552 EXPECT_TRUE(io_delegate_.GetWrittenContents(options.DependencyFile(), &actual_dep_file_contents)); in TEST_F()
[all …]
Dmain.cpp36 Options options(argc, argv, Options::Language::JAVA); in main() local
37 if (!options.Ok()) { in main()
38 std::cerr << options.GetErrorMessage(); in main()
39 std::cerr << options.GetUsage(); in main()
44 switch (options.GetTask()) { in main()
46 return android::aidl::compile_aidl(options, io_delegate); in main()
48 return android::aidl::preprocess_aidl(options, io_delegate) ? 0 : 1; in main()
50 return android::aidl::dump_api(options, io_delegate) ? 0 : 1; in main()
52 return android::aidl::check_api(options, io_delegate) ? 0 : 1; in main()
54 return android::aidl::dump_mappings(options, io_delegate) ? 0 : 1; in main()
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.h33 bool GenerateCpp(const string& output_file, const Options& options, const cpp::TypeNamespace& types,
39 const Options& options);
42 const Options& options);
45 const Options& options);
48 const Options& options);
51 const Options& options);
54 const Options& options);
58 const Options& options);
61 const Options& options);
Daidl.cpp211 bool write_dep_file(const Options& options, const AidlDefinedType& defined_type, in write_dep_file() argument
214 string dep_file_name = options.DependencyFile(); in write_dep_file()
215 if (dep_file_name.empty() && options.AutoDepFile()) { in write_dep_file()
239 if (!options.DependencyFileNinja()) { in write_dep_file()
248 if (options.IsCppOutput()) { in write_dep_file()
249 if (!options.DependencyFileNinja()) { in write_dep_file()
254 headers.push_back(options.OutputHeaderDir() + in write_dep_file()
269 string generate_outputFileName(const Options& options, const AidlDefinedType& defined_type) { in generate_outputFileName() argument
272 string result = options.OutputDir(); in generate_outputFileName()
288 if (options.TargetLanguage() == Options::Language::JAVA) { in generate_outputFileName()
[all …]
Dmain_cpp.cpp35 Options options(argc, argv, Options::Language::CPP); in main() local
36 if (!options.Ok()) { in main()
37 std::cerr << options.GetErrorMessage(); in main()
38 std::cerr << options.GetUsage(); in main()
43 return android::aidl::compile_aidl(options, io_delegate); in main()
Dgenerate_ndk.cpp38 void GenerateNdkInterface(const string& output_file, const Options& options, in GenerateNdkInterface() argument
41 const string i_header = options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkInterface()
43 GenerateInterfaceHeader(*i_writer, types, defined_type, options); in GenerateNdkInterface()
47 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::CLIENT); in GenerateNdkInterface()
49 GenerateClientHeader(*bp_writer, types, defined_type, options); in GenerateNdkInterface()
53 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::SERVER); in GenerateNdkInterface()
55 GenerateServerHeader(*bn_writer, types, defined_type, options); in GenerateNdkInterface()
59 GenerateSource(*source_writer, types, defined_type, options); in GenerateNdkInterface()
63 void GenerateNdkParcel(const string& output_file, const Options& options, in GenerateNdkParcel() argument
67 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkParcel()
[all …]
Daidl.h49 int compile_aidl(const Options& options, const IoDelegate& io_delegate);
50 bool preprocess_aidl(const Options& options, const IoDelegate& io_delegate);
51 bool dump_api(const Options& options, const IoDelegate& io_delegate);
52 bool dump_mappings(const Options& options, const IoDelegate& io_delegate);
58 AidlError load_and_validate_aidl(const std::string& input_file_name, const Options& options,
Dgenerate_cpp.cpp162 const Options& options, bool for_interface) { in BuildMetaMethodDecl() argument
164 if (method.GetName() == kGetInterfaceVersion && options.Version()) { in BuildMetaMethodDecl()
230 const AidlMethod& method, const Options& options) { in DefineClientTransaction() argument
250 if (options.GenTraces()) { in DefineClientTransaction()
256 if (options.GenLog()) { in DefineClientTransaction()
386 if (options.GenLog()) { in DefineClientTransaction()
400 const Options& options) { in DefineClientMetaTransaction() argument
402 if (method.GetName() == kGetInterfaceVersion && options.Version() > 0) { in DefineClientMetaTransaction()
435 const Options& options) { in BuildClientSource() argument
441 if (options.GenLog()) { in BuildClientSource()
[all …]
/system/testing/gtest_extras/tests/
DOptionsTest.cpp37 Options options; in TEST() local
38 bool parsed = options.Process(cur_args, &child_args); in TEST()
48 Options options; in TEST() local
49 bool parsed = options.Process(cur_args, &child_args); in TEST()
59 Options options; in TEST() local
60 bool parsed = options.Process(cur_args, &child_args); in TEST()
69 Options options; in TEST() local
70 ASSERT_TRUE(options.Process(cur_args, &child_args)); in TEST()
71 EXPECT_LT(0U, options.job_count()); in TEST()
72 EXPECT_EQ(90000ULL, options.deadline_threshold_ms()); in TEST()
[all …]
/system/sepolicy/tests/
Dsepolicy_tests.py79 (options, args) = parser.parse_args()
81 if not options.libpath:
83 if not os.path.exists(options.libpath):
84 sys.exit("Error: library-path " + options.libpath + " does not exist\n"
87 if not options.policy:
89 if not os.path.exists(options.policy):
90 sys.exit("Error: policy file " + options.policy + " does not exist\n"
93 if not options.file_contexts:
95 for f in options.file_contexts:
100 pol = policy.Policy(options.policy, options.file_contexts, options.libpath)
[all …]
Dtreble_sepolicy_tests.py348 (options, args) = parser.parse_args()
350 if not options.libpath:
352 if not os.path.exists(options.libpath):
353 sys.exit("Error: library-path " + options.libpath + " does not exist\n"
355 if not options.policy:
357 if not os.path.exists(options.policy):
358 sys.exit("Error: policy file " + options.policy + " does not exist\n"
360 if not options.file_contexts:
362 for f in options.file_contexts:
369 if options.tests is None or options.tests is "TrebleCompatMapping":
[all …]
/system/tools/aidl/tests/
Dend_to_end_tests.cpp83 Options options = Options::From(args); in TEST_F() local
86 io_delegate_.SetFileContents(options.InputFiles().front(), kInterfaceDefinition); in TEST_F()
92 EXPECT_EQ(android::aidl::compile_aidl(options, io_delegate_), 0); in TEST_F()
94 CheckFileContents(options.DependencyFile(), kExpectedJavaDepsOutput); in TEST_F()
108 Options options = Options::From(args); in TEST_F() local
111 io_delegate_.SetFileContents(options.InputFiles().front(), kInterfaceDefinition); in TEST_F()
117 EXPECT_EQ(android::aidl::compile_aidl(options, io_delegate_), 0); in TEST_F()
119 CheckFileContents(options.DependencyFile(), kExpectedJavaDepsOutput); in TEST_F()
133 Options options = Options::From(args); in TEST_F() local
136 io_delegate_.SetFileContents(options.InputFiles().front(), kInterfaceDefinition); in TEST_F()
[all …]
/system/update_engine/scripts/update_payload/
Dupdate_metadata_pb2.py28 options=None,
32 options=None,
36 options=None,
40 options=None,
44 options=None,
48 options=None,
52 options=None,
56 options=None,
60 options=None,
64 options=None,
[all …]
/system/extras/simpleperf/scripts/
Dprofile_pb2.py42 options=None),
49 options=None),
56 options=None),
63 options=None),
70 options=None),
77 options=None),
84 options=None),
91 options=None),
98 options=None),
105 options=None),
[all …]
/system/libufdt/utils/src/
Dmkdtimg_core.c67 static void init_dt_options(struct dt_options *options) { in init_dt_options() argument
68 memset(options, 0, sizeof(struct dt_options)); in init_dt_options()
71 static void init_dt_global_options(struct dt_global_options *options) { in init_dt_global_options() argument
72 init_dt_options(&options->default_options); in init_dt_global_options()
73 options->dt_type = DTB; in init_dt_global_options()
74 options->page_size = DT_TABLE_DEFAULT_PAGE_SIZE; in init_dt_global_options()
75 options->version = DT_TABLE_DEFAULT_VERSION; in init_dt_global_options()
78 static void copy_dt_options(struct dt_options *target, struct dt_options *options) { in copy_dt_options() argument
79 memcpy(target, options, sizeof(struct dt_options)); in copy_dt_options()
180 struct dt_global_options *options) { in output_img_header() argument
[all …]
/system/tools/xsdc/src/com/android/xsdc/
DMain.java41 Options options = new Options(); in main() local
42 options.addOption(OptionBuilder in main()
48 options.addOption(OptionBuilder in main()
53 options.addOption(OptionBuilder in main()
58 options.addOption(OptionBuilder in main()
68 cmd = CommandParser.parse(options, args); in main()
71 help(options); in main()
81 help(options); in main()
114 private static void help(Options options) { in help() argument
116 "xsdc path/to/xsd_file.xsd","", options, null, true); in help()
/system/netd/resolv/
Dres_init.cpp139 if ((statp->options & RES_INIT) != 0U) res_ndestroy(statp); in res_vinit()
143 statp->options = RES_DEFAULT; in res_vinit()
197 statp->options |= RES_INIT; in res_vinit()
202 static void res_setoptions(res_state statp, const char* options, const char* source) { in res_setoptions() argument
203 const char* cp = options; in res_setoptions()
207 LOG(DEBUG) << "res_setoptions(\"" << options << "\", \"" << source << "\")..."; in res_setoptions()
222 if (!(statp->options & RES_DEBUG)) { in res_setoptions()
223 LOG(DEBUG) << "res_setoptions(\"" << options << "\", \"" << source << "\").."; in res_setoptions()
224 statp->options |= RES_DEBUG; in res_setoptions()
230 statp->options |= RES_NOTLDQUERY; in res_setoptions()
[all …]
/system/vold/
Dsecdiscard.cpp45 bool read_command_line(int argc, const char* const argv[], Options& options);
55 Options options; in main() local
56 if (!read_command_line(argc, argv, options)) { in main()
61 for (auto const& target : options.targets) { in main()
87 LOG(DEBUG) << "Securely discarding '" << target << "' unlink=" << options.unlink; in main()
91 if (options.unlink) { in main()
104 bool read_command_line(int argc, const char* const argv[], Options& options) { in read_command_line() argument
107 options.unlink = false; in read_command_line()
111 options.targets.emplace_back(argv[j]); in read_command_line()
113 return options.targets.size() > 0; in read_command_line()
/system/libvintf/
Dmain.cpp78 std::string getShortOptions(const std::vector<Option>& options) { in getShortOptions() argument
80 for (const auto& e : options) in getShortOptions()
85 std::unique_ptr<struct option[]> getLongOptions(const std::vector<Option>& options, in getLongOptions() argument
87 std::unique_ptr<struct option[]> ret{new struct option[options.size() + 1]}; in getLongOptions()
89 for (const auto& e : options) { in getLongOptions()
106 Status parseOptions(int argc, char** argv, const std::vector<Option>& options, ParsedOptions* out) { in parseOptions() argument
108 std::unique_ptr<struct option[]> longOptions = getLongOptions(options, &longOptFlag); in parseOptions()
109 std::string shortOptions = getShortOptions(options); in parseOptions()
117 for (size_t i = 0; i < options.size(); ++i) in parseOptions()
119 (c != 0 && c == options[i].shortOption)) in parseOptions()
[all …]
/system/tools/hidl/test/vendor/
Dupdate-makefile.sh3 options="-O some-owner-name
8 hidl-gen -Landroidbp $options hidl.tests.vendor@1.0;
9 hidl-gen -Landroidbp $options hidl.tests.vendor@1.1;
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp52 struct options { struct
56 } options = { // Set defaults argument
95 new AddIntsService(options.serverCPU))) != 0) { in server()
112 if (options.clientCPU != unbound) { bindCPU(options.clientCPU); } in BM_addInts()
160 if (options.iterDelay > 0.0) { testDelaySpin(options.iterDelay); } in BM_addInts()
284 *((opt == 'c') ? &options.clientCPU : &options.serverCPU) = cpu; in main()
289 options.iterDelay = strtod(optarg, &chptr); in main()
290 if ((*chptr != '\0') || (options.iterDelay < 0.0)) { in main()
/system/sepolicy/tools/
Dinsertkeys.py121 options = self.options(tag)
123 for option in options:
242 (options, args) = parser.parse_args()
247 logging.basicConfig(level=logging.INFO if options.verbose == True else logging.WARN)
253 os.chdir(options.root)
255 output_file = sys.stdout if options.output_file == "stdout" else open(options.output_file, "w")
256 logging.info("Setting output file to: " + options.output_file)
259 key_map = config.generateKeyMap(options.target_build_variant.lower(), options.key_directory)
/system/extras/simpleperf/
DInplaceSamplerClient.cpp99 std::string options; in SendStartProfilingMessage() local
100 options += "freq=" + std::to_string(sample_freq_); in SendStartProfilingMessage()
102 options += " dump_callchain=1"; in SendStartProfilingMessage()
105 options += " tids="; in SendStartProfilingMessage()
111 options.push_back(','); in SendStartProfilingMessage()
113 options += std::to_string(tid); in SendStartProfilingMessage()
116 size_t size = sizeof(UnixSocketMessage) + options.size() + 1; in SendStartProfilingMessage()
121 strcpy(msg->data, options.c_str()); in SendStartProfilingMessage()

1234567