Home
last modified time | relevance | path

Searched full:options (Results 1 – 25 of 16855) sorted by relevance

12345678910>>...675

/external/zstd/contrib/pzstd/test/
DOptionsTest.cpp9 #include "Options.h"
17 bool operator==(const Options &lhs, const Options &rhs) { in operator ==()
27 std::ostream &operator<<(std::ostream &out, const Options &opt) { in operator <<()
76 constexpr auto autoMode = Options::WriteMode::Auto;
79 #define EXPECT_SUCCESS(...) EXPECT_EQ(Options::Status::Success, __VA_ARGS__)
80 #define EXPECT_FAILURE(...) EXPECT_EQ(Options::Status::Failure, __VA_ARGS__)
81 #define EXPECT_MESSAGE(...) EXPECT_EQ(Options::Status::Message, __VA_ARGS__)
88 TEST(Options, ValidInputs) { in TEST() argument
90 Options options; in TEST() local
92 EXPECT_SUCCESS(options.parse(args.size(), args.data())); in TEST()
[all …]
/external/okio/okio/src/commonTest/kotlin/okio/
DCommonOptionsTest.kt25 /** Confirm that options prefers the first-listed option, not the longest or shortest one. */
47 val options = utf8Options( in realisticOptionsTrie() constant
77 options.trieString(), in realisticOptionsTrie()
151 assertSelect("", -1, options) in realisticOptionsTrie()
152 assertSelect("a", -1, options) in realisticOptionsTrie()
153 assertSelect("eventListenerFactor", -1, options) in realisticOptionsTrie()
154 assertSelect("dnst", 19, options) in realisticOptionsTrie()
155 assertSelect("proxyproxy", 1, options) in realisticOptionsTrie()
156 assertSelect("prox", -1, options) in realisticOptionsTrie()
158 assertSelect("dispatcher", 0, options) in realisticOptionsTrie()
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
DAgentOptionsTest.java40 AgentOptions options = new AgentOptions(); in testDefaults() local
41 assertEquals(AgentOptions.DEFAULT_DESTFILE, options.getDestfile()); in testDefaults()
42 assertTrue(options.getAppend()); in testDefaults()
43 assertEquals("*", options.getIncludes()); in testDefaults()
44 assertEquals("", options.getExcludes()); in testDefaults()
46 options.getExclClassloader()); in testDefaults()
47 assertFalse(options.getInclBootstrapClasses()); in testDefaults()
48 assertFalse(options.getInclNoLocationClasses()); in testDefaults()
49 assertNull(options.getSessionId()); in testDefaults()
50 assertTrue(options.getDumpOnExit()); in testDefaults()
[all …]
/external/libxml2/os400/libxmlrpg/
Dxmlwriter.rpgle34 d uri * value options(*string) const char *
74 d version * value options(*string) const char *
75 d encoding * value options(*string) const char *
76 d standalone * value options(*string) const char *
100 d format * value options(*string: *nopass) const char *
101 d #vararg1 * value options(*string: *nopass) void *
102 d #vararg2 * value options(*string: *nopass) void *
103 d #vararg3 * value options(*string: *nopass) void *
104 d #vararg4 * value options(*string: *nopass) void *
105 d #vararg5 * value options(*string: *nopass) void *
[all …]
Dxmlstring.rpgle28 d cur * value options(*string) const xmlChar *
31 d cur * value options(*string) const xmlChar *
35 d cur * value options(*string) const char *
39 d cur * value options(*string) const char *
42 d str * value options(*string) const xmlChar *
47 d str * value options(*string) const xmlChar *
51 d str * value options(*string) const xmlChar *
52 d val * value options(*string) const xmlChar *
55 d str * value options(*string) const xmlChar *
56 d val * value options(*string) const xmlChar *
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Doptions_test.py15 """Tests for `tf.data.Options`."""
26 from tensorflow.python.data.ops import options as options_lib
37 return dataset.options()
44 self.assertEqual(options_lib.Options(), ds.options())
48 options = options_lib.Options()
49 ds = dataset_ops.Dataset.range(0).with_options(options).cache()
50 self.assertEqual(options, ds.options())
54 options = options_lib.Options()
55 options.autotune.enabled = True
56 ds = dataset_ops.Dataset.range(0).with_options(options).with_options(
[all …]
/external/pytorch/torch/csrc/api/src/nn/modules/
Dembedding.cpp17 : options(std::move(options_)) { in EmbeddingImpl()
23 if (options.padding_idx() != std::nullopt) { in reset()
24 if (*options.padding_idx() > 0) { in reset()
26 *options.padding_idx() < options.num_embeddings(), in reset()
28 } else if (*options.padding_idx() < 0) { in reset()
30 *options.padding_idx() >= -options.num_embeddings(), in reset()
32 options.padding_idx(options.num_embeddings() + *options.padding_idx()); in reset()
36 if (!options._weight().defined()) { in reset()
39 torch::empty({options.num_embeddings(), options.embedding_dim()})); in reset()
43 options._weight().sizes() == in reset()
[all …]
Dpooling.cpp12 : options(options_) {} in AvgPoolImpl()
20 << "(kernel_size=" << options.kernel_size() in pretty_print()
21 << ", stride=" << options.stride() << ", padding=" << options.padding() in pretty_print()
28 options.kernel_size(), in forward()
29 options.stride(), in forward()
30 options.padding(), in forward()
31 options.ceil_mode(), in forward()
32 options.count_include_pad()); in forward()
38 options.kernel_size(), in forward()
39 options.stride(), in forward()
[all …]
/external/grpc-grpc/test/cpp/client/
Dcredentials_test.cc123 grpc::experimental::StsCredentialsOptions options; in TEST() local
124 options.token_exchange_service_uri = "https://foo.com/exchange"; in TEST()
125 options.resource = "resource"; in TEST()
126 options.audience = "audience"; in TEST()
127 options.scope = "scope"; in TEST()
128 // options.requested_token_type explicitly not set. in TEST()
129 options.subject_token_path = "/foo/bar"; in TEST()
130 options.subject_token_type = "nice_token_type"; in TEST()
131 options.actor_token_path = "/foo/baz"; in TEST()
132 options.actor_token_type = "even_nicer_token_type"; in TEST()
[all …]
/external/android-nn-driver/test/1.2/
DDilation.cpp15 DilationTestOptions options; variable
16 options.m_IsDepthwiseConvolution = false;
17 options.m_IsPaddingExplicit = true;
18 options.m_HasDilation = false;
20 DilationTestImpl<hal_1_2::HalPolicy>(options);
25 DilationTestOptions options; variable
26 options.m_IsDepthwiseConvolution = false;
27 options.m_IsPaddingExplicit = true;
28 options.m_HasDilation = true;
30 DilationTestImpl<hal_1_2::HalPolicy>(options);
[all …]
/external/grpc-grpc/src/core/lib/security/credentials/tls/
Dgrpc_tls_credentials_options.cc42 grpc_tls_credentials_options* options) { in grpc_tls_credentials_options_copy() argument
43 GPR_ASSERT(options != nullptr); in grpc_tls_credentials_options_copy()
44 return new grpc_tls_credentials_options(*options); in grpc_tls_credentials_options_copy()
48 grpc_tls_credentials_options* options) { in grpc_tls_credentials_options_destroy() argument
49 delete options; in grpc_tls_credentials_options_destroy()
53 grpc_tls_credentials_options* options, in grpc_tls_credentials_options_set_cert_request_type() argument
55 GPR_ASSERT(options != nullptr); in grpc_tls_credentials_options_set_cert_request_type()
56 options->set_cert_request_type(type); in grpc_tls_credentials_options_set_cert_request_type()
60 grpc_tls_credentials_options* options, int verify_server_cert) { in grpc_tls_credentials_options_set_verify_server_cert() argument
61 GPR_ASSERT(options != nullptr); in grpc_tls_credentials_options_set_verify_server_cert()
[all …]
/external/libchrome/mojo/core/
Dentrypoints.cc23 MojoResult MojoInitializeImpl(const struct MojoInitializeOptions* options) { in MojoInitializeImpl() argument
43 const MojoCreateMessagePipeOptions* options, in MojoCreateMessagePipeImpl() argument
46 return g_core->CreateMessagePipe(options, message_pipe_handle0, in MojoCreateMessagePipeImpl()
52 const MojoWriteMessageOptions* options) { in MojoWriteMessageImpl() argument
53 return g_core->WriteMessage(message_pipe_handle, message, options); in MojoWriteMessageImpl()
57 const MojoReadMessageOptions* options, in MojoReadMessageImpl() argument
59 return g_core->ReadMessage(message_pipe_handle, options, message); in MojoReadMessageImpl()
65 const MojoFuseMessagePipesOptions* options) { in MojoFuseMessagePipesImpl() argument
66 return g_core->FuseMessagePipes(handle0, handle1, options); in MojoFuseMessagePipesImpl()
69 MojoResult MojoCreateMessageImpl(const MojoCreateMessageOptions* options, in MojoCreateMessageImpl() argument
[all …]
/external/cronet/stable/components/cronet/android/api/src/org/chromium/net/
DExperimentalOptionsTranslator.java14 * A helper class to translate the experimental options to other formats(eg json) and vice versa.
20 JSONObject experimentalOptions, ConnectionMigrationOptions options) in connectionMigrationOptionsToJson() argument
24 if (options.getEnableDefaultNetworkMigration() != null) { in connectionMigrationOptionsToJson()
27 options.getEnableDefaultNetworkMigration()); in connectionMigrationOptionsToJson()
29 if (options.getAllowServerMigration() != null) { in connectionMigrationOptionsToJson()
30 quicOptions.put("allow_server_migration", options.getAllowServerMigration()); in connectionMigrationOptionsToJson()
32 if (options.getMigrateIdleConnections() != null) { in connectionMigrationOptionsToJson()
33 quicOptions.put("migrate_idle_sessions", options.getMigrateIdleConnections()); in connectionMigrationOptionsToJson()
35 if (options.getIdleMigrationPeriodSeconds() != null) { in connectionMigrationOptionsToJson()
38 options.getIdleMigrationPeriodSeconds()); in connectionMigrationOptionsToJson()
[all …]
/external/cronet/tot/components/cronet/android/api/src/org/chromium/net/
DExperimentalOptionsTranslator.java14 * A helper class to translate the experimental options to other formats(eg json) and vice versa.
20 JSONObject experimentalOptions, ConnectionMigrationOptions options) in connectionMigrationOptionsToJson() argument
24 if (options.getEnableDefaultNetworkMigration() != null) { in connectionMigrationOptionsToJson()
27 options.getEnableDefaultNetworkMigration()); in connectionMigrationOptionsToJson()
29 if (options.getAllowServerMigration() != null) { in connectionMigrationOptionsToJson()
30 quicOptions.put("allow_server_migration", options.getAllowServerMigration()); in connectionMigrationOptionsToJson()
32 if (options.getMigrateIdleConnections() != null) { in connectionMigrationOptionsToJson()
33 quicOptions.put("migrate_idle_sessions", options.getMigrateIdleConnections()); in connectionMigrationOptionsToJson()
35 if (options.getIdleMigrationPeriodSeconds() != null) { in connectionMigrationOptionsToJson()
38 options.getIdleMigrationPeriodSeconds()); in connectionMigrationOptionsToJson()
[all …]
/external/tinyalsa_new/utils/
Doptparse.h21 * options cannot be processed with getopt(). Most implementations
24 * subcommands and continuing parsing of options with another option
40 * Optparse also supports GNU-style long options with optparse_long().
80 void optparse_init(struct optparse *options, char **argv);
92 int optparse(struct optparse *options, const char *optstring);
95 * Handles GNU-style long options in addition to getopt() options.
101 int optparse_long(struct optparse *options,
110 * function. That would be used to parse the options for the
115 char *optparse_arg(struct optparse *options);
125 optparse_error(struct optparse *options, const char *msg, const char *data) in optparse_error() argument
[all …]
/external/grpc-grpc/test/cpp/server/
Dcredentials_test.cc68 grpc::experimental::TlsServerCredentialsOptions options(certificate_provider); in TEST() local
69 options.watch_root_certs(); in TEST()
70 options.set_root_cert_name(kRootCertName); in TEST()
71 options.watch_identity_key_cert_pairs(); in TEST()
72 options.set_identity_cert_name(kIdentityCertName); in TEST()
73 options.set_cert_request_type( in TEST()
75 auto server_credentials = grpc::experimental::TlsServerCredentials(options); in TEST()
92 grpc::experimental::TlsServerCredentialsOptions options(certificate_provider); in TEST() local
93 options.watch_identity_key_cert_pairs(); in TEST()
94 options.set_identity_cert_name(kIdentityCertName); in TEST()
[all …]
/external/rust/android-crates-io/crates/textwrap/src/
Drefill.rs5 use crate::{fill, LineEnding, Options};
29 /// [`Options::initial_indent`] and the prefix (if any) of the the
30 /// other lines is returned in [`Options::subsequent_indent`].
32 /// Line ending is returned in [`Options::line_ending`]. If line ending
51 /// let (text, options) = unfill("\
58 /// assert_eq!(options.initial_indent, "* ");
59 /// assert_eq!(options.subsequent_indent, " ");
60 /// assert_eq!(options.line_ending, LineEnding::LF);
62 pub fn unfill(text: &str) -> (String, Options<'_>) { in unfill()
65 let mut options = Options::new(0); in unfill() localVariable
[all …]
Doptions.rs1 //! Options for wrapping text.
5 /// Holds configuration options for wrapping and filling text.
8 pub struct Options<'a> { struct
14 /// [`Options::initial_indent`] method. argument
17 /// [`Options::subsequent_indent`] method. argument
21 /// `self.width`. See the [`Options::break_words`] method. argument
35 impl<'a> From<&'a Options<'a>> for Options<'a> { argument
36 fn from(options: &'a Options<'a>) -> Self { in from()
38 width: options.width, in from()
39 line_ending: options.line_ending, in from()
[all …]
/external/libchrome/mojo/public/c/system/
Dthunks.cc65 CoreLibraryInitializer(const MojoInitializeOptions* options) { in CoreLibraryInitializer() argument
69 if (options && options->struct_size >= sizeof(*options) && in CoreLibraryInitializer()
70 options->mojo_core_path) { in CoreLibraryInitializer()
71 base::StringPiece utf8_path(options->mojo_core_path, in CoreLibraryInitializer()
72 options->mojo_core_path_length); in CoreLibraryInitializer()
146 MojoResult MojoInitialize(const struct MojoInitializeOptions* options) { in MojoInitialize() argument
147 static base::NoDestructor<mojo::CoreLibraryInitializer> initializer(options); in MojoInitialize()
151 return INVOKE_THUNK(Initialize, options); in MojoInitialize()
168 MojoResult MojoCreateMessagePipe(const MojoCreateMessagePipeOptions* options, in MojoCreateMessagePipe() argument
171 return INVOKE_THUNK(CreateMessagePipe, options, message_pipe_handle0, in MojoCreateMessagePipe()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DDumperOptionsTest.java29 DumperOptions options = new DumperOptions(); in testDefaultStyle() local
30 Yaml yaml = new Yaml(options); in testDefaultStyle()
35 options.setDefaultScalarStyle(DumperOptions.ScalarStyle.DOUBLE_QUOTED); in testDefaultStyle()
36 yaml = new Yaml(options); in testDefaultStyle()
39 options.setDefaultScalarStyle(DumperOptions.ScalarStyle.SINGLE_QUOTED); in testDefaultStyle()
40 yaml = new Yaml(options); in testDefaultStyle()
43 options.setDefaultScalarStyle(DumperOptions.ScalarStyle.PLAIN); in testDefaultStyle()
44 yaml = new Yaml(options); in testDefaultStyle()
49 options.setDefaultScalarStyle(null); in testDefaultStyle()
64 DumperOptions options = new DumperOptions(); in testDefaultFlowStyle() local
[all …]
/external/toolchain-utils/
Dbuild_chromeos.py140 options = parser.parse_args(argv[1:])
142 if options.chromeos_root is None:
144 options.chromeos_root = os.path.expanduser(options.chromeos_root)
145 scripts_dir = os.path.join(options.chromeos_root, "src", "scripts")
152 if options.board is None:
155 if options.debug:
156 options.dev = True
158 build_packages_env = options.env
168 if options.rebuild:
173 options.chromeos_root, options.board
[all …]
/external/cronet/tot/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dhelpers.h47 #include <google/protobuf/compiler/cpp/options.h>
64 inline std::string ProtobufNamespace(const Options& /* options */) { in ProtobufNamespace() argument
68 inline std::string MacroPrefix(const Options& /* options */) { in MacroPrefix() argument
72 inline std::string DeprecatedAttribute(const Options& /* options */, in DeprecatedAttribute() argument
74 return d->options().deprecated() ? "PROTOBUF_DEPRECATED " : ""; in DeprecatedAttribute()
77 inline std::string DeprecatedAttribute(const Options& /* options */, in DeprecatedAttribute() argument
79 return d->options().deprecated() ? "PROTOBUF_DEPRECATED_ENUM " : ""; in DeprecatedAttribute()
87 void SetCommonVars(const Options& options,
96 const Options& options,
99 bool GetBootstrapBasename(const Options& options, const std::string& basename,
[all …]
/external/cronet/stable/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dhelpers.h47 #include <google/protobuf/compiler/cpp/options.h>
64 inline std::string ProtobufNamespace(const Options& /* options */) { in ProtobufNamespace() argument
68 inline std::string MacroPrefix(const Options& /* options */) { in MacroPrefix() argument
72 inline std::string DeprecatedAttribute(const Options& /* options */, in DeprecatedAttribute() argument
74 return d->options().deprecated() ? "PROTOBUF_DEPRECATED " : ""; in DeprecatedAttribute()
77 inline std::string DeprecatedAttribute(const Options& /* options */, in DeprecatedAttribute() argument
79 return d->options().deprecated() ? "PROTOBUF_DEPRECATED_ENUM " : ""; in DeprecatedAttribute()
87 void SetCommonVars(const Options& options,
96 const Options& options,
99 bool GetBootstrapBasename(const Options& options, const std::string& basename,
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dhelpers.h47 #include <google/protobuf/compiler/cpp/options.h>
64 inline std::string ProtobufNamespace(const Options& /* options */) { in ProtobufNamespace() argument
68 inline std::string MacroPrefix(const Options& /* options */) { in MacroPrefix() argument
72 inline std::string DeprecatedAttribute(const Options& /* options */, in DeprecatedAttribute() argument
74 return d->options().deprecated() ? "PROTOBUF_DEPRECATED " : ""; in DeprecatedAttribute()
77 inline std::string DeprecatedAttribute(const Options& /* options */, in DeprecatedAttribute() argument
79 return d->options().deprecated() ? "PROTOBUF_DEPRECATED_ENUM " : ""; in DeprecatedAttribute()
87 void SetCommonVars(const Options& options,
96 const Options& options,
99 bool GetBootstrapBasename(const Options& options, const std::string& basename,
[all …]
/external/libtextclassifier/native/utils/
Dtoken-feature-extractor_test.cc38 TokenFeatureExtractorOptions options; in TEST_F() local
39 options.num_buckets = 1000; in TEST_F()
40 options.chargram_orders = std::vector<int>{1, 2, 3}; in TEST_F()
41 options.extract_case_feature = true; in TEST_F()
42 options.unicode_aware_features = false; in TEST_F()
43 options.extract_selection_mask_feature = true; in TEST_F()
44 TestingTokenFeatureExtractor extractor(options, &unilib_); in TEST_F()
108 TokenFeatureExtractorOptions options; in TEST_F() local
109 options.num_buckets = 1000; in TEST_F()
110 options.chargram_orders = std::vector<int>{}; in TEST_F()
[all …]

12345678910>>...675