Home
last modified time | relevance | path

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

123456789

/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 …]
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 …]
Daidl.cpp155 bool write_dep_file(const Options& options, const AidlDefinedType& defined_type, in write_dep_file() argument
158 string dep_file_name = options.DependencyFile(); in write_dep_file()
159 if (dep_file_name.empty() && options.AutoDepFile()) { in write_dep_file()
180 options.TargetLanguage() == Options::Language::JAVA) { in write_dep_file()
190 if (!options.DependencyFileNinja()) { in write_dep_file()
199 if (options.IsCppOutput()) { in write_dep_file()
200 if (!options.DependencyFileNinja()) { in write_dep_file()
205 headers.push_back(options.OutputHeaderDir() + in write_dep_file()
220 string generate_outputFileName(const Options& options, const AidlDefinedType& defined_type) { in generate_outputFileName() argument
223 string result = options.OutputDir(); in generate_outputFileName()
[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);
Dgenerate_ndk.cpp40 void GenerateNdkInterface(const string& output_file, const Options& options, in GenerateNdkInterface() argument
43 const string i_header = options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkInterface()
45 GenerateInterfaceHeader(*i_writer, types, defined_type, options); in GenerateNdkInterface()
49 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::CLIENT); in GenerateNdkInterface()
51 GenerateClientHeader(*bp_writer, types, defined_type, options); in GenerateNdkInterface()
55 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::SERVER); in GenerateNdkInterface()
57 GenerateServerHeader(*bn_writer, types, defined_type, options); in GenerateNdkInterface()
61 GenerateSource(*source_writer, types, defined_type, options); in GenerateNdkInterface()
65 void GenerateNdkParcel(const string& output_file, const Options& options, in GenerateNdkParcel() argument
69 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkParcel()
[all …]
Daidl_unittest.cpp172 Options options = Options::From(args); local
176 path, options, io_delegate_, &typenames_, &imported_files);
622 Options options = Options::From(args); in TEST_F() local
623 EXPECT_TRUE(::android::aidl::preprocess_aidl(options, io_delegate_)); in TEST_F()
647 Options options = Options::From(args); in TEST_F() local
648 EXPECT_EQ(0, ::android::aidl::compile_aidl(options, io_delegate_)); in TEST_F()
917 Options options = Options::From(args); in TEST_F() local
918 io_delegate_.SetFileContents(options.InputFiles().front(), "package p; interface IFoo {}"); in TEST_F()
919 EXPECT_EQ(0, ::android::aidl::compile_aidl(options, io_delegate_)); in TEST_F()
921 EXPECT_TRUE(io_delegate_.GetWrittenContents(options.DependencyFile(), &actual_dep_file_contents)); in TEST_F()
[all …]
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,
Dmain.cpp36 Options options(argc, argv, kDefaultLang); in main() local
37 if (!options.Ok()) { in main()
38 std::cerr << options.GetErrorMessage(); in main()
39 std::cerr << options.GetUsage(); in main()
47 int ret = aidl_entry(options, io_delegate); in main()
/system/extras/libfscrypt/tests/
Dfscrypt_test.cpp31 EncryptionOptions options; in TestString() local
34 EXPECT_TRUE(ParseOptionsForApiLevel(first_api_level, instring, &options)); in TestString()
35 EXPECT_TRUE(OptionsToStringForApiLevel(first_api_level, options, &options_string)); in TestString()
37 return options; in TestString()
42 auto options = TestString(first_api_level, instring, outstring);
62 EXPECT_EQ(1, options.version); in TEST()
63 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
64 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
65 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_4, options.flags); in TEST()
70 EXPECT_EQ(2, options.version); in TEST()
[all …]
/system/testing/gtest_extras/tests/
DOptionsTest.cpp58 Options options; in TEST_F() local
59 bool parsed = options.Process(cur_args, &child_args_); in TEST_F()
68 Options options; in TEST_F() local
69 bool parsed = options.Process(cur_args, &child_args_); in TEST_F()
78 Options options; in TEST_F() local
79 bool parsed = options.Process(cur_args, &child_args_); in TEST_F()
87 Options options; in TEST_F() local
88 ASSERT_TRUE(options.Process(cur_args, &child_args_)); in TEST_F()
89 EXPECT_LT(0U, options.job_count()); in TEST_F()
90 EXPECT_EQ(90000ULL, options.deadline_threshold_ms()); in TEST_F()
[all …]
/system/extras/libfscrypt/
Dfscrypt.cpp139 bool OptionsToString(const EncryptionOptions& options, std::string* options_string) { in OptionsToString() argument
140 return OptionsToStringForApiLevel(GetFirstApiLevel(), options, options_string); in OptionsToString()
143 bool OptionsToStringForApiLevel(unsigned int first_api_level, const EncryptionOptions& options, in OptionsToStringForApiLevel() argument
146 if (!LookupModeById(contents_modes, options.contents_mode, &contents_mode)) { in OptionsToStringForApiLevel()
149 if (!LookupModeById(filenames_modes, options.filenames_mode, &filenames_mode)) { in OptionsToStringForApiLevel()
152 *options_string = contents_mode + ":" + filenames_mode + ":v" + std::to_string(options.version); in OptionsToStringForApiLevel()
153 if ((options.flags & FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64)) { in OptionsToStringForApiLevel()
156 if ((options.flags & FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32)) { in OptionsToStringForApiLevel()
159 if (options.use_hw_wrapped_key) { in OptionsToStringForApiLevel()
168 if (options != options_check) { in OptionsToStringForApiLevel()
[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.py350 (options, args) = parser.parse_args()
352 if not options.libpath:
354 if not os.path.exists(options.libpath):
355 sys.exit("Error: library-path " + options.libpath + " does not exist\n"
357 if not options.policy:
359 if not os.path.exists(options.policy):
360 sys.exit("Error: policy file " + options.policy + " does not exist\n"
362 if not options.file_contexts:
364 for f in options.file_contexts:
371 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/extras/simpleperf/
Dcommand_test.cpp78 OptionValueMap options; in TEST() local
108 ASSERT_TRUE(cmd.PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)); in TEST()
109 ASSERT_TRUE(options.PullBoolValue("--bool-option")); in TEST()
110 auto values = options.PullValues("--str-option").value(); in TEST()
114 values = options.PullValues("--opt-str-option").value(); in TEST()
119 ASSERT_TRUE(options.PullUintValue("--uint-option", &uint_value)); in TEST()
122 ASSERT_TRUE(options.PullDoubleValue("--double-option", &double_value)); in TEST()
124 ASSERT_TRUE(options.values.empty()); in TEST()
128 ASSERT_TRUE(cmd.PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)); in TEST()
138 ASSERT_TRUE(cmd.PreprocessOptions({"arg1", "--arg2"}, option_formats, &options, &ordered_options, in TEST()
[all …]
/system/bt/test/headless/
Dmain.cc36 Main(const bluetooth::test::headless::GetOpt& options) in Main() argument
37 : HeadlessTest<int>(options) { in Main()
39 "nop", std::make_unique<bluetooth::test::headless::Nop>(options)); in Main()
42 std::make_unique<bluetooth::test::headless::Pairing>(options)); in Main()
44 "read", std::make_unique<bluetooth::test::headless::Read>(options)); in Main()
46 "sdp", std::make_unique<bluetooth::test::headless::Sdp>(options)); in Main()
63 bluetooth::test::headless::GetOpt options(argc, argv); in main() local
64 if (!options.IsValid()) { in main()
68 Main main(options); in main()
/system/vold/
DMetadataCrypt.cpp85 const KeyGeneration makeGen(const CryptoOptions& options) { in makeGen() argument
86 return KeyGeneration{options.cipher.get_keysize(), true, options.use_hw_wrapped_key}; in makeGen()
184 const KeyBuffer& key, const CryptoOptions& options, in create_crypto_blk_dev() argument
192 if (options.use_hw_wrapped_key) { in create_crypto_blk_dev()
208 auto target = std::make_unique<DmTargetDefaultKey>(0, *nr_sec, options.cipher.get_kernel_name(), in create_crypto_blk_dev()
210 if (options.use_legacy_options_format) target->SetUseLegacyOptionsFormat(); in create_crypto_blk_dev()
211 if (options.set_dun) target->SetSetDun(); in create_crypto_blk_dev()
212 if (options.use_hw_wrapped_key) target->SetWrappedKeyV0(); in create_crypto_blk_dev()
247 static bool parse_options(const std::string& options_string, CryptoOptions* options) { in parse_options() argument
254 options->cipher = lookup_cipher(cipher_name); in parse_options()
[all …]
/system/tools/hidl/test/host_test/
Dmain.cpp114 void populateArgv(std::vector<const char*> options, char** argv) { in populateArgv() argument
115 for (int i = 0; i < options.size(); i++) { in populateArgv()
116 argv[i] = const_cast<char*>(options.at(i)); in populateArgv()
124 std::vector<const char*> options = {"hidl-gen", "-p", "~/"}; in TEST_F() local
125 char* argv[options.size()]; in TEST_F()
127 populateArgv(options, argv); in TEST_F()
128 coordinator.parseOptions(options.size(), argv, "", [&](int /* res */, char* /* arg */) { in TEST_F()
140 std::vector<const char*> options = {"hidl-gen", "-p", "~/", "-p", "."}; in TEST_F() local
141 char* argv[options.size()]; in TEST_F()
143 populateArgv(options, argv); in TEST_F()
[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()
63 options.addOption(OptionBuilder in main()
73 cmd = CommandParser.parse(options, args); in main()
76 help(options); in main()
87 help(options); in main()
121 private static void help(Options options) { in help() argument
[all …]
/system/extras/libfscrypt/include/fscrypt/
Dfscrypt.h44 EncryptionOptions options; member
52 bool OptionsToString(const EncryptionOptions& options, std::string* options_string);
54 bool OptionsToStringForApiLevel(unsigned int first_api_level, const EncryptionOptions& options,
57 bool ParseOptions(const std::string& options_string, EncryptionOptions* options);
60 EncryptionOptions* options);
75 return lhs.key_raw_ref == rhs.key_raw_ref && lhs.options == rhs.options;
/system/core/init/
Dcheck_builtins.cpp127 auto options = ParseMountAll(args.args); in check_mount_all() local
128 if (!options.ok()) { in check_mount_all()
129 return options.error(); in check_mount_all()
135 auto options = ParseMkdir(args.args); in check_mkdir() local
136 if (!options.ok()) { in check_mkdir()
137 return options.error(); in check_mkdir()
206 auto options = ParseSwaponAll(args.args); in check_swapon_all() local
207 if (!options.ok()) { in check_swapon_all()
208 return options.error(); in check_swapon_all()
224 auto options = ParseUmountAll(args.args); in check_umount_all() local
[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;
10 hidl-gen -Landroidbp $options hidl.tests.vendor.android@1.0;
/system/core/libmodprobe/
Dlibmodprobe_ext.cpp43 std::string options = ""; in Insmod() local
46 options = options_iter->second; in Insmod()
49 options = options + " " + parameters; in Insmod()
52 LOG(INFO) << "Loading module " << path_name << " with args '" << options << "'"; in Insmod()
53 int ret = syscall(__NR_finit_module, fd.get(), options.c_str(), 0); in Insmod()
60 PLOG(ERROR) << "Failed to insmod '" << path_name << "' with args '" << options << "'"; in Insmod()

123456789