Home
last modified time | relevance | path

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

12345678910>>...895

/aosp_15_r20/external/zstd/contrib/pzstd/test/
H A 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 …]
/aosp_15_r20/system/testing/gtest_extras/gtest_isolated/tests/
DOptionsTest.cpp29 #include "Options.h"
56 Options options; in TEST_F() local
57 ASSERT_FALSE(options.Process(cur_args, &child_args_)) << "Process did not fail properly."; in TEST_F()
58 EXPECT_EQ("Unknown argument: --unknown_arg", options.error()); in TEST_F()
63 Options options; in TEST_F() local
64 ASSERT_FALSE(options.Process(cur_args, &child_args_)) << "Process did not fail properly."; in TEST_F()
65 EXPECT_EQ("Unknown argument: -unknown_arg", options.error()); in TEST_F()
70 Options options; in TEST_F() local
71 ASSERT_FALSE(options.Process(cur_args, &child_args_)) << "Process did not fail properly."; in TEST_F()
72 EXPECT_EQ("Unexpected argument 'extra'", options.error()); in TEST_F()
[all …]
/aosp_15_r20/external/libxml2/os400/libxmlrpg/
H A 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 …]
/aosp_15_r20/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
H A 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 …]
/aosp_15_r20/external/okio/okio/src/commonTest/kotlin/okio/
H A 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 …]
/aosp_15_r20/system/tools/aidl/
Doptions_unittest.cpp17 #include "options.h"
100 unique_ptr<Options> GetOptions(const char* command[], in GetOptions()
101 Options::Language default_lang = Options::Language::JAVA) { in GetOptions()
105 unique_ptr<Options> ret(new Options(argc, command, default_lang)); in GetOptions()
114 EXPECT_NE(ret, nullptr) << "Failed to parse options!"; in GetOptions()
121 unique_ptr<Options> options = GetOptions(kPreprocessCommand); in TEST() local
122 EXPECT_EQ(Options::Task::PREPROCESS, options->GetTask()); in TEST()
123 EXPECT_EQ(false, options->FailOnParcelable()); in TEST()
124 EXPECT_EQ(0u, options->ImportDirs().size()); in TEST()
125 EXPECT_EQ(0u, options->PreprocessedFiles().size()); in TEST()
[all …]
/aosp_15_r20/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java23 import android.graphics.BitmapFactory.Options;
43 Options mOptions;
45 public DecodeCanceller(Options options) { in DecodeCanceller() argument
46 mOptions = options; in DecodeCanceller()
56 public static void setOptionsMutable(Options options) { in setOptionsMutable() argument
57 if (ApiHelper.HAS_OPTIONS_IN_MUTABLE) options.inMutable = true; in setOptionsMutable()
60 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { in decode() argument
61 if (options == null) options = new Options(); in decode()
62 jc.setCancelListener(new DecodeCanceller(options)); in decode()
63 setOptionsMutable(options); in decode()
[all …]
/aosp_15_r20/external/grpc-grpc/test/cpp/client/
H A 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 …]
/aosp_15_r20/packages/modules/AdServices/adservices/
DTEST_MAPPING13 "options": [
21 "options": [
29 "options": [
37 "options": [
45 "options": [
53 "options": [
61 "options": [
69 "options": [
77 "options": [
85 "options": [
[all …]
/aosp_15_r20/external/clang/lib/Driver/
H A DTools.cpp23 #include "clang/Driver/Options.h"
114 if (Arg *A = Args.getLastArg(options::OPT_C, options::OPT_CC)) { in CheckPreprocessingOptions()
115 if (!Args.hasArg(options::OPT_E) && !Args.hasArg(options::OPT__SLASH_P) && in CheckPreprocessingOptions()
116 !Args.hasArg(options::OPT__SLASH_EP) && !D.CCCIsCPP()) { in CheckPreprocessingOptions()
128 if (Args.hasArg(options::OPT_static)) in CheckCodeGenerationOptions()
130 Args.getLastArg(options::OPT_dynamic, options::OPT_mdynamic_no_pic)) in CheckCodeGenerationOptions()
241 Args.AddAllArgValues(CmdArgs, options::OPT_Zlinker_input); in AddLinkerInputs()
257 // Handle reserved library options. in AddLinkerInputs()
258 if (A.getOption().matches(options::OPT_Z_reserved_lib_stdcxx)) in AddLinkerInputs()
260 else if (A.getOption().matches(options::OPT_Z_reserved_lib_cckext)) in AddLinkerInputs()
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/python/data/kernel_tests/
H A 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 …]
/aosp_15_r20/external/pytorch/torch/csrc/api/src/nn/modules/
H A 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 …]
/aosp_15_r20/external/protobuf/src/google/protobuf/compiler/cpp/
H A 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 …]
H A Dhelpers.cc50 #include <google/protobuf/compiler/cpp/options.h>
174 std::string IntTypeName(const Options& options, const std::string& type) { in IntTypeName() argument
178 void SetIntVar(const Options& options, const std::string& type, in SetIntVar() argument
180 (*variables)[type] = IntTypeName(options, type); in SetIntVar()
207 bool IsLazy(const FieldDescriptor* field, const Options& options, in IsLazy() argument
209 return IsLazilyVerifiedLazy(field, options) || in IsLazy()
210 IsEagerlyVerifiedLazy(field, options, scc_analyzer); in IsLazy()
216 const Options& options, in IsEagerlyVerifiedLazyByProfile() argument
221 bool IsEagerlyVerifiedLazy(const FieldDescriptor* field, const Options& options, in IsEagerlyVerifiedLazy() argument
227 const Options& options) { in IsLazilyVerifiedLazy() argument
[all …]
/aosp_15_r20/external/cronet/third_party/protobuf/src/google/protobuf/compiler/cpp/
H A 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 …]
H A Dhelpers.cc50 #include <google/protobuf/compiler/cpp/options.h>
182 std::string IntTypeName(const Options& options, const std::string& type) { in IntTypeName() argument
186 void SetIntVar(const Options& options, const std::string& type, in SetIntVar() argument
188 (*variables)[type] = IntTypeName(options, type); in SetIntVar()
215 bool IsLazy(const FieldDescriptor* field, const Options& options, in IsLazy() argument
217 return IsLazilyVerifiedLazy(field, options) || in IsLazy()
218 IsEagerlyVerifiedLazy(field, options, scc_analyzer); in IsLazy()
224 const Options& options, in IsEagerlyVerifiedLazyByProfile() argument
229 bool IsEagerlyVerifiedLazy(const FieldDescriptor* field, const Options& options, in IsEagerlyVerifiedLazy() argument
235 const Options& options) { in IsLazilyVerifiedLazy() argument
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/textwrap/src/
Dlib.rs29 //! use textwrap::{wrap, Options, WordSplitter};
33 //! let options = Options::new(18).word_splitter(WordSplitter::Hyphenation(dictionary));
34 //! assert_eq!(wrap(text, &options),
182 //! [`Options::with_termwidth`] constructor for details.
231 /// Holds configuration options for wrapping and filling text.
234 pub struct Options<'a> { struct
240 /// [`Options::initial_indent`] method. argument
243 /// [`Options::subsequent_indent`] method. argument
247 /// `self.width`. See the [`Options::break_words`] method. argument
262 impl<'a> From<&'a Options<'a>> for Options<'a> { argument
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/regex-automata/data/tests/fowler/
Dbasic.toml3 options = ['escaped'] qkey
10 options = ['escaped'] qkey
17 options = ['escaped'] qkey
24 options = ['escaped'] qkey
31 options = ['escaped'] qkey
38 options = ['escaped'] qkey
45 options = ['escaped'] qkey
52 options = ['escaped'] qkey
59 options = ['escaped'] qkey
66 options = ['escaped'] qkey
[all …]
/aosp_15_r20/build/make/tools/releasetools/
H A Dota_from_target_files.py21 Usage: ota_from_target_files [options] input_target_files output_ota_package
23 Common options that apply to both of non-A/B and A/B OTAs
95 Non-A/B OTA specific options
147 A/B OTA specific options
252 Compression algorithm to be used for VABC. Available options: gz, lz4, zstd, brotli, none.
266 …Specify the maximum block size to be compressed at once during OTA. supported options: 4k, 8k, 16k…
302 OPTIONS = ota_utils.OPTIONS variable
303 OPTIONS.verify = False
304 OPTIONS.patch_threshold = 0.95
305 OPTIONS.wipe_user_data = False
[all …]
H A Dadd_img_to_target_files.py83 OPTIONS = common.OPTIONS variable
84 OPTIONS.add_missing = False
85 OPTIONS.rebuild_recovery = False
86 OPTIONS.replace_updated_files_list = []
87 OPTIONS.is_signing = False
88 OPTIONS.avb_resolve_rollback_index_location_conflict = False
182 if (verity_block_device in OPTIONS.info_dict or
183 OPTIONS.info_dict.get(avb_hashtree_enable) == "true"):
199 partition_props = OPTIONS.info_dict.get(partition + ".build.prop")
234 # Copy the temp file into the OPTIONS.input_tmp dir and update the
[all …]
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/
H A DBitmapFactoryTest.java35 import android.graphics.BitmapFactory.Options;
130 private BitmapFactory.Options mOpt1;
132 private BitmapFactory.Options mOpt2;
142 mOpt1 = new BitmapFactory.Options(); in setup()
144 mOpt2 = new BitmapFactory.Options(); in setup()
250 private Bitmap decodeOpaqueImage(int resId, BitmapFactory.Options options) { in decodeOpaqueImage() argument
251 return decodeOpaqueImage(obtainInputStream(resId), options); in decodeOpaqueImage()
254 private Bitmap decodeOpaqueImage(InputStream stream, BitmapFactory.Options options) { in decodeOpaqueImage() argument
255 Bitmap bitmap = BitmapFactory.decodeStream(stream, null, options); in decodeOpaqueImage()
265 BitmapFactory.Options options = new BitmapFactory.Options(); in testWebpStreamDecode() local
[all …]
/aosp_15_r20/external/flac/src/metaflac/
H A Doptions.c24 #include "options.h"
37 share__getopt format struct; note we don't use short options so we just
41 /* global options */
106 …LAC__bool parse_option(int option_index, const char *option_argument, CommandLineOptions *options);
107 static void append_new_operation(CommandLineOptions *options, Operation operation);
108 static void append_new_argument(CommandLineOptions *options, Argument argument);
109 static Operation *append_major_operation(CommandLineOptions *options, OperationType type);
110 static Operation *append_shorthand_operation(CommandLineOptions *options, OperationType type);
111 static Argument *find_argument(CommandLineOptions *options, ArgumentType type);
112 static Operation *find_shorthand_operation(CommandLineOptions *options, OperationType type);
[all …]
/aosp_15_r20/external/flashrom/
H A Dcli_classic.c664 struct cli_options *options) in parse_options() argument
678 options->filename = get_optional_filename(argv); in parse_options()
679 options->read_it = true; in parse_options()
683 options->filename = get_optional_filename(argv); in parse_options()
684 options->write_it = true; in parse_options()
689 if (options->dont_verify_it) { in parse_options()
692 options->filename = get_optional_filename(argv); in parse_options()
693 options->verify_it = true; in parse_options()
696 if (options->verify_it) { in parse_options()
699 options->dont_verify_it = true; in parse_options()
[all …]
/aosp_15_r20/external/angle/src/libANGLE/renderer/metal/shaders/
H A Dmtl_internal_shaders_autogen.metal344 vertex BlitVSOut blitVS(unsigned int vid [[vertex_id]], constant BlitParams &options [[buffer(0)]])
349 …output.texCoords = select(options.srcTexCoords.xy, options.srcTexCoords.zw, bool2(vid & uint2(2, 1…
374 constant BlitParams &options)
376 uint depth = srcTexture.get_depth(options.srcLevel);
377 float zCoord = (float(options.srcLayer) + 0.5) / float(depth);
379 return srcTexture.sample(textureSampler, float3(texCoords, zCoord), level(options.srcLevel));
383 …extureType3D)]], sampler textureSampler [[sampler(0)]], constant BlitParams &options [[buffer(0)]])
390 output = srcTexture2d.sample(textureSampler, input.texCoords, level(options.srcLevel));
393 output = srcTexture2dArray.sample(textureSampler, input.texCoords, options.srcLayer,
394 level(options.srcLevel));
[all …]
H A Dmtl_internal_shaders_src_autogen.h345 vertex BlitVSOut blitVS(unsigned int vid [[vertex_id]], constant BlitParams &options [[buffer(0)]])
350 …output.texCoords = select(options.srcTexCoords.xy, options.srcTexCoords.zw, bool2(vid & uint2(2, 1…
375 constant BlitParams &options)
377 uint depth = srcTexture.get_depth(options.srcLevel);
378 float zCoord = (float(options.srcLayer) + 0.5) / float(depth);
380 return srcTexture.sample(textureSampler, float3(texCoords, zCoord), level(options.srcLevel));
384 …extureType3D)]], sampler textureSampler [[sampler(0)]], constant BlitParams &options [[buffer(0)]])
391 output = srcTexture2d.sample(textureSampler, input.texCoords, level(options.srcLevel));
394 output = srcTexture2dArray.sample(textureSampler, input.texCoords, options.srcLayer,
395 level(options.srcLevel));
[all …]

12345678910>>...895