/system/tools/aidl/ |
D | options_unittest.cpp | 77 unique_ptr<T> options(T::Parse(argc, command)); in GetOptions() local 78 if (!options) { in GetOptions() 85 EXPECT_NE(options, nullptr) << "Failed to parse options!"; in GetOptions() 86 return options; in GetOptions() 92 unique_ptr<JavaOptions> options = GetOptions<JavaOptions>(kPreprocessCommand); in TEST() local 93 EXPECT_EQ(JavaOptions::PREPROCESS_AIDL, options->task); in TEST() 94 EXPECT_EQ(false, options->fail_on_parcelable_); in TEST() 95 EXPECT_EQ(0u, options->import_paths_.size()); in TEST() 96 EXPECT_EQ(0u, options->preprocessed_files_.size()); in TEST() 97 EXPECT_EQ(string{}, options->input_file_name_); in TEST() [all …]
|
D | options.cpp | 65 unique_ptr<JavaOptions> options(new JavaOptions()); in Parse() local 72 options->output_file_name_ = argv[2]; in Parse() 74 options->files_to_preprocess_.push_back(argv[i]); in Parse() 76 options->task = PREPROCESS_AIDL; in Parse() 77 return options; in Parse() 80 options->task = COMPILE_AIDL_TO_JAVA; in Parse() 95 options->import_paths_.push_back(s + 2); in Parse() 102 options->dep_file_name_ = s + 2; in Parse() 108 options->auto_dep_file_ = true; in Parse() 111 options->preprocessed_files_.push_back(s + 2); in Parse() [all …]
|
D | aidl_unittest.cpp | 218 JavaOptions options; in TEST_F() local 219 options.output_file_name_ = "preprocessed"; in TEST_F() 220 options.files_to_preprocess_.resize(2); in TEST_F() 221 options.files_to_preprocess_[0] = "p/Outer.aidl"; in TEST_F() 222 options.files_to_preprocess_[1] = "one/IBar.aidl"; in TEST_F() 223 EXPECT_TRUE(::android::aidl::preprocess_aidl(options, io_delegate_)); in TEST_F() 256 JavaOptions options; in TEST_F() local 257 options.input_file_name_ = "p/IFoo.aidl"; in TEST_F() 258 io_delegate_.SetFileContents(options.input_file_name_, in TEST_F() 261 EXPECT_EQ(0, ::android::aidl::compile_aidl_to_java(options, io_delegate_)); in TEST_F() [all …]
|
D | main_java.cpp | 30 std::unique_ptr<JavaOptions> options = JavaOptions::Parse(argc, argv); in main() local 31 if (!options) { in main() 36 switch (options->task) { in main() 38 return android::aidl::compile_aidl_to_java(*options, io_delegate); in main() 40 if (android::aidl::preprocess_aidl(*options, io_delegate)) in main()
|
D | aidl.cpp | 257 bool write_java_dep_file(const JavaOptions& options, in write_java_dep_file() argument 261 string dep_file_name = options.DependencyFilePath(); in write_java_dep_file() 271 vector<string> source_aidl = {options.input_file_name_}; in write_java_dep_file() 283 bool write_cpp_dep_file(const CppOptions& options, in write_cpp_dep_file() argument 290 string dep_file_name = options.DependencyFilePath(); in write_cpp_dep_file() 300 vector<string> source_aidl = {options.InputFileName()}; in write_cpp_dep_file() 311 headers.push_back(options.OutputHeaderDir() + '/' + in write_cpp_dep_file() 315 write_common_dep_file(options.OutputCppFilePath(), source_aidl, writer.get()); in write_cpp_dep_file() 325 string generate_outputFileName(const JavaOptions& options, in generate_outputFileName() argument 333 result = options.output_base_folder_; in generate_outputFileName() [all …]
|
D | main_cpp.cpp | 30 std::unique_ptr<CppOptions> options = CppOptions::Parse(argc, argv); in main() local 31 if (!options) { in main() 36 return android::aidl::compile_aidl_to_cpp(*options, io_delegate); in main()
|
/system/connectivity/shill/vpn/ |
D | openvpn_driver_unittest.cc | 187 vector<vector<string>>* options, Error* error) { in InitManagementChannelOptions() argument 188 return driver_->InitManagementChannelOptions(options, error); in InitManagementChannelOptions() 244 void ExpectInFlags(const vector<vector<string>>& options, const string& flag); 245 void ExpectInFlags(const vector<vector<string>>& options, const string& flag, 247 void ExpectInFlags(const vector<vector<string>>& options, 249 void ExpectNotInFlags(const vector<vector<string>>& options, 298 void OpenVPNDriverTest::ExpectInFlags(const vector<vector<string>>& options, in ExpectInFlags() argument 300 ExpectInFlags(options, vector<string> { flag }); in ExpectInFlags() 303 void OpenVPNDriverTest::ExpectInFlags(const vector<vector<string>>& options, in ExpectInFlags() argument 306 ExpectInFlags(options, vector<string> { flag, value }); in ExpectInFlags() [all …]
|
D | openvpn_driver.cc | 261 string OpenVPNDriver::JoinOptions(const vector<vector<string>>& options, in JoinOptions() argument 264 for (const auto& option : options) { in JoinOptions() 287 const vector<vector<string>>& options, in WriteConfigFile() argument 303 string contents = JoinOptions(options, '\n'); in WriteConfigFile() 317 vector<vector<string>> options; in SpawnOpenVPN() local 319 InitOptions(&options, &error); in SpawnOpenVPN() 323 LOG(INFO) << "OpenVPN process options: " << JoinOptions(options, ','); in SpawnOpenVPN() 324 if (!WriteConfigFile(options, &openvpn_config_file_)) { in SpawnOpenVPN() 496 void OpenVPNDriver::ParseForeignOptions(const ForeignOptions& options, in ParseForeignOptions() argument 500 for (const auto& option_map : options) { in ParseForeignOptions() [all …]
|
D | l2tp_ipsec_driver.cc | 234 vector<string> options; in SpawnL2TPIPSecVPN() local 236 if (!InitOptions(&options, error)) { in SpawnL2TPIPSecVPN() 240 << base::JoinString(options, " "); in SpawnL2TPIPSecVPN() 243 FilePath(kL2TPIPSecVPNPath), options, environment, true, error)) { in SpawnL2TPIPSecVPN() 250 bool L2TPIPSecDriver::InitOptions(vector<string>* options, Error* error) { in InitOptions() argument 258 if (!InitPSKOptions(options, error)) { in InitOptions() 262 if (!InitXauthOptions(options, error)) { in InitOptions() 266 options->push_back(base::StringPrintf("--remote_host=%s", vpnhost.c_str())); in InitOptions() 267 options->push_back(base::StringPrintf("--pppd_plugin=%s", in InitOptions() 270 options->push_back("--nosystemconfig"); in InitOptions() [all …]
|
D | l2tp_ipsec_driver_unittest.cc | 143 void ExpectInFlags(const vector<string>& options, const string& flag, 219 const vector<string>& options, const string& flag, const string& value) { in ExpectInFlags() argument 222 find(options.begin(), options.end(), flagValue); in ExpectInFlags() 224 EXPECT_TRUE(it != options.end()); in ExpectInFlags() 289 vector<string> options; in TEST_F() local 290 EXPECT_FALSE(driver_->InitOptions(&options, &error)); in TEST_F() 292 EXPECT_TRUE(options.empty()); in TEST_F() 319 vector<string> options; in TEST_F() local 320 EXPECT_TRUE(driver_->InitOptions(&options, &error)); in TEST_F() 323 ExpectInFlags(options, "--remote_host", kHost); in TEST_F() [all …]
|
D | openvpn_driver.h | 87 std::vector<std::vector<std::string>>* options); 91 std::vector<std::vector<std::string>>* options); 96 std::vector<std::vector<std::string>>* options); 101 std::vector<std::vector<std::string>>* options); 110 std::vector<std::vector<std::string>>* options); 115 std::vector<std::vector<std::string>>* options); 185 static void ParseForeignOptions(const ForeignOptions& options, 206 std::vector<std::vector<std::string>>* options, Error* error); 208 std::vector<std::vector<std::string>>* options, Error* error); 210 std::vector<std::vector<std::string>>* options); [all …]
|
/system/connectivity/shill/ |
D | ppp_daemon.cc | 45 const PPPDaemon::Options& options, in Start() argument 50 if (options.debug) { in Start() 53 if (options.no_detach) { in Start() 56 if (options.no_default_route) { in Start() 59 if (options.use_peer_dns) { in Start() 62 if (options.use_shim_plugin) { in Start() 66 if (options.use_pppoe_plugin) { in Start() 70 if (options.lcp_echo_interval != kUnspecifiedValue) { in Start() 72 arguments.push_back(base::UintToString(options.lcp_echo_interval)); in Start() 74 if (options.lcp_echo_failure != kUnspecifiedValue) { in Start() [all …]
|
D | ppp_daemon_unittest.cc | 50 std::unique_ptr<ExternalTask> Start(const PPPDaemon::Options& options, in Start() argument 57 options, device, callback, error); in Start() 87 PPPDaemon::Options options; in TEST_F() local 88 std::unique_ptr<ExternalTask> task(Start(options, "eth0", &error)); in TEST_F() 101 PPPDaemon::Options options; in TEST_F() local 102 options.no_detach = true; in TEST_F() 103 options.no_default_route = true; in TEST_F() 104 options.use_peer_dns = true; in TEST_F() 105 options.lcp_echo_interval = 1; in TEST_F() 106 options.lcp_echo_failure = 1; in TEST_F() [all …]
|
/system/tools/aidl/tests/ |
D | end_to_end_tests.cpp | 76 JavaOptions options; in TEST_F() local 77 options.fail_on_parcelable_ = true; in TEST_F() 78 options.import_paths_.push_back(""); in TEST_F() 79 options.input_file_name_ = CanonicalNameToPath(kCanonicalName, ".aidl"); in TEST_F() 80 options.output_file_name_ = kJavaOutputPath; in TEST_F() 81 options.dep_file_name_ = "an/arbitrary/path/to/deps.P"; in TEST_F() 84 io_delegate_.SetFileContents(options.input_file_name_, kInterfaceDefinition); in TEST_F() 90 EXPECT_EQ(android::aidl::compile_aidl_to_java(options, io_delegate_), 0); in TEST_F() 92 CheckFileContents(options.DependencyFilePath(), kExpectedJavaDepsOutput); in TEST_F() 105 auto options = CppOptions::Parse(argc, cmdline); in TEST_F() local [all …]
|
/system/weaved/buffet/ |
D | main.cc | 44 explicit Daemon(const Manager::Options& options) in Daemon() argument 45 : DBusServiceDaemon(kServiceName, kRootServicePath), options_{options} {} in Daemon() 121 buffet::Manager::Options options; in main() local 122 options.xmpp_enabled = FLAGS_enable_xmpp; in main() 123 options.disable_privet = FLAGS_disable_privet; in main() 124 options.enable_ping = FLAGS_enable_ping; in main() 125 options.device_whitelist = {device_whitelist.begin(), device_whitelist.end()}; in main() 127 options.config_options.defaults = base::FilePath{FLAGS_config_path}; in main() 128 options.config_options.settings = base::FilePath{FLAGS_state_path}; in main() 129 options.config_options.definitions = base::FilePath{"/etc/weaved"}; in main() [all …]
|
/system/connectivity/shill/test-scripts/ |
D | crypto_util_pb2.py | 39 options=None, 43 options=None, 47 options=None, 51 options=None, 55 options=None, 59 options=None, 86 options=None), 93 options=None), 100 options=None, 121 options=None), [all …]
|
D | connect-vpn | 84 (options, args) = parser.parse_args(argv[1:]) 100 if options.complzo: # "complzo" can only be enabled. 103 if options.mgmtena: # enable management control channel 106 if (options.remote_cert_tls != "server" and 107 options.remote_cert_tls != "client" and 108 options.remote_cert_tls != "none"): 110 "is invalid.\n" % options.remote_cert_tls) 113 params["OpenVPN.RemoteCertTLS"] = options.remote_cert_tls 141 params["L2TPIPsec.TunnelGroup"] = options.tunnel_group 148 if options.verbose: [all …]
|
D | stability | 128 (options, _) = parser.parse_args() 130 if not options.server: 134 if options.individual_length > options.test_interval: 141 iperf = IperfTest(filename=options.output, 142 servername=options.server, 143 individual_length=options.individual_length) 145 if options.manual: 149 total_duration=options.total_duration, 150 test_interval=options.test_interval,
|
D | connect-disconnect | 30 options = None variable 58 time.sleep(options.sleep_after_connect) 61 time.sleep(options.sleep_after_disconnect) 96 global options 97 (options, remaining) = parser.parse_args() 109 while options.limit == 0 or total < options.limit: 126 if options.keep_going:
|
/system/extras/tests/binder/benchmarks/ |
D | binderAddInts.cpp | 52 struct options { struct 56 } options = { // Set defaults variable 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/ |
D | insertkeys.py | 121 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/vold/ |
D | secdiscard.cpp | 44 bool read_command_line(int argc, const char * const argv[], Options &options); 57 Options options; in main() local 58 if (!read_command_line(argc, argv, options)) { in main() 62 for (auto const &target: options.targets) { in main() 63 LOG(DEBUG) << "Securely discarding '" << target << "' unlink=" << options.unlink; in main() 67 if (options.unlink) { in main() 79 bool read_command_line(int argc, const char * const argv[], Options &options) { in read_command_line() argument 82 options.unlink = false; in read_command_line() 86 options.targets.emplace_back(argv[j]); in read_command_line() 88 return options.targets.size() > 0; in read_command_line()
|
/system/connectivity/shill/pppoe/ |
D | pppoe_service.cc | 114 PPPDaemon::Options options; in Connect() local 115 options.no_detach = true; in Connect() 116 options.no_default_route = true; in Connect() 117 options.use_peer_dns = true; in Connect() 118 options.use_pppoe_plugin = true; in Connect() 119 options.lcp_echo_interval = lcp_echo_interval_; in Connect() 120 options.lcp_echo_failure = lcp_echo_failure_; in Connect() 121 options.max_fail = max_auth_failure_; in Connect() 122 options.use_ipv6 = true; in Connect() 126 options, ethernet()->link_name(), callback, error); in Connect()
|
/system/core/rootdir/ |
D | Android.mk | 32 LOCAL_MODULE := asan.options 43 define create-asan-options-module 45 LOCAL_MODULE := asan.options.$(1) 46 ASAN_OPTIONS_FILES += asan.options.$(1) 49 LOCAL_SRC_FILES := asan.options.off.template 101 …$(foreach binary, $(SANITIZE_ASAN_OPTIONS_FOR), $(eval $(call create-asan-options-module,$(binary)… 116 EXPORT_GLOBAL_ASAN_OPTIONS := export ASAN_OPTIONS include=/system/asan.options 117 LOCAL_REQUIRED_MODULES := asan.options $(ASAN_OPTIONS_FILES)
|
/system/extras/pagecache/ |
D | pagecache.py | 367 options, categories = parser.parse_args(argv[1:]) 368 if options.inode_dump_file and options.inode_data_file: 370 return (options, categories) 373 options, categories = parse_options(sys.argv) 376 inode_data = get_inode_data(options.inode_data_file, options.inode_dump_file, 377 options.device_serial) 383 if options.trace_file is not None: 384 if not os.path.isfile(options.trace_file): 387 trace_file = open(options.trace_file, 'r') 388 read_and_parse_trace_file(trace_file, pagecache_stats, options.app_name) [all …]
|