| /external/autotest/site_utils/deployment/ |
| D | cmdparse_unittest.py | 22 """Tests for parsing and adding boolean arguments.""" 58 arguments = parser.parse_args([]) 59 self.assertFalse(arguments.option) 64 arguments = parser.parse_args([]) 65 self.assertTrue(arguments.option) 70 arguments = parser.parse_args(['--option']) 71 self.assertTrue(arguments.option) 76 arguments = parser.parse_args(['--option']) 77 self.assertTrue(arguments.option) 82 arguments = parser.parse_args(['--nooption']) [all …]
|
| D | cmdvalidate.py | 7 Arguments for the DUT deployment commands require more processing than 9 validation process not only checks that arguments have allowable values, 10 but also may perform a dialog with the user to ask for missing arguments. 93 The function constructs the full GS URI from the arguments, and 250 def _validate_arguments(arguments): argument 251 """Check command line arguments, and account for defaults. 260 @param arguments Parsed results from 266 if arguments.hostnames and arguments.hostname_file: 271 if (arguments.hostname_file and 272 not _is_hostname_file_valid(arguments.hostname_file)): [all …]
|
| D | install.py | 135 def _get_upload_log_path(arguments): argument 138 name=arguments.upload_basename) 179 def _update_build(afe, report_log, arguments): argument 337 def _get_afe_host(afe, hostname, host_attrs, arguments): argument 350 @param arguments Command line arguments with options. 372 if host_attrs and not arguments.labstation: 379 if not arguments.labstation: 384 _ensure_label_in_afe(afe_host, 'board', arguments.board) 385 _ensure_label_in_afe(afe_host, 'model', arguments.model) 418 def _create_host_for_installation(host, arguments): argument [all …]
|
| /external/autotest/site_utils/ |
| D | test_that.py | 73 def validate_arguments(arguments): argument 75 Validates parsed arguments. 77 @param arguments: arguments object, as parsed by ParseArguments 78 @raises: ValueError if arguments were invalid. 80 if arguments.remote == ':lab:': 81 if arguments.args: 84 if arguments.pretend: 87 if arguments.ssh_verbosity: 90 if not arguments.board or arguments.build == test_runner_utils.NO_BUILD: 94 if arguments.web: [all …]
|
| D | dut_status.py | 43 arguments. Options are also available for selecting groups of 144 def _include_status(status, arguments): argument 148 `arguments`. Return whether a host with that status should be 152 @param arguments Parsed arguments object as returned by 160 return arguments.working 162 return arguments.broken 165 def _print_host_summaries(history_list, arguments): argument 171 @param arguments Parsed arguments object as returned by 179 if not _include_status(status, arguments): 204 def _print_hosts(history_list, arguments): argument [all …]
|
| D | dut_status_unittest.py | 37 arguments = dut_status._parse_command( 39 dut_status._validate_time_range(arguments) 40 return arguments 42 def _check_duration(self, arguments, duration): argument 43 start_time = (arguments.until - duration * 3600) 44 self.assertEqual(arguments.since, start_time) 49 arguments = self._try_parse([]) 50 self.assertEqual(arguments.until, end_time) 51 self._check_duration(arguments, dut_status._DEFAULT_DURATION) 62 arguments = self._try_parse([option, start_time_string]) [all …]
|
| D | balance_pools.py | 16 positional arguments: 20 optional arguments: 99 """Log a message with optional format arguments to stdout. 105 the arguments. 108 @param args Format arguments. If empty, the message is logged 125 the arguments. 128 @param args Format arguments. If empty, the message is logged 138 """Log an error to stderr, with optional format arguments. 144 the arguments. 147 @param args Format arguments. If empty, the message is logged [all …]
|
| /external/apache-commons-math/src/main/java/org/apache/commons/math/ |
| D | MathRuntimeException.java | 51 * Arguments used to build the message. 53 private final Object[] arguments; field in MathRuntimeException 60 * @param arguments format arguments 64 public MathRuntimeException(final String pattern, final Object ... arguments) { in MathRuntimeException() argument 65 this(new DummyLocalizable(pattern), arguments); in MathRuntimeException() 73 * @param arguments format arguments 76 public MathRuntimeException(final Localizable pattern, final Object ... arguments) { in MathRuntimeException() argument 78 this.arguments = (arguments == null) ? new Object[0] : arguments.clone(); in MathRuntimeException() 91 this.arguments = new Object[] { (rootCause == null) ? "" : rootCause.getMessage() }; in MathRuntimeException() 101 * @param arguments format arguments [all …]
|
| D | FunctionEvaluationException.java | 68 * @param arguments format arguments 72 String pattern, Object ... arguments) { in FunctionEvaluationException() argument 73 this(argument, new DummyLocalizable(pattern), arguments); in FunctionEvaluationException() 81 * @param arguments format arguments 85 Localizable pattern, Object ... arguments) { in FunctionEvaluationException() argument 86 super(pattern, arguments); in FunctionEvaluationException() 95 * @param arguments format arguments 99 String pattern, Object ... arguments) { in FunctionEvaluationException() argument 100 this(argument, new DummyLocalizable(pattern), arguments); in FunctionEvaluationException() 108 * @param arguments format arguments [all …]
|
| /external/jazzer-api/src/test/java/com/code_intelligence/jazzer/mutation/mutator/lang/ |
| D | FloatingPointMutatorTest.java | 24 import static org.junit.jupiter.params.provider.Arguments.arguments; 36 import org.junit.jupiter.params.provider.Arguments; 43 static Stream<Arguments> floatForceInRangeCases() { in floatForceInRangeCases() 51 arguments(0.0f, 0.0f, 1.0f, true), arguments(0.0f, 1.0f, 1.0f, true), in floatForceInRangeCases() 52 arguments(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY, 1.0f, true), in floatForceInRangeCases() 53 arguments(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY, true), in floatForceInRangeCases() 54 arguments(Float.NaN, 0.0f, 1.0f, true), in floatForceInRangeCases() 55 arguments(1e30f, -Float.MAX_VALUE, Float.MAX_VALUE, true), in floatForceInRangeCases() 56 arguments(-1e30f, -Float.MAX_VALUE, Float.MAX_VALUE, true), in floatForceInRangeCases() 57 arguments(0.0f, Float.NEGATIVE_INFINITY, Float.MAX_VALUE, true), in floatForceInRangeCases() [all …]
|
| /external/jazzer-api/src/main/java/com/code_intelligence/jazzer/runtime/ |
| D | TraceCmpHooks.java | 39 integerCompare(MethodHandle method, Object alwaysNull, Object[] arguments, int hookId) { in integerCompare() argument 40 TraceDataFlowNativeCallbacks.traceCmpInt((int) arguments[0], (int) arguments[1], hookId); in integerCompare() 50 integerCompareTo(MethodHandle method, Object thisObject, Object[] arguments, int hookId) { in integerCompareTo() argument 51 TraceDataFlowNativeCallbacks.traceCmpInt((int) thisObject, (int) arguments[0], hookId); in integerCompareTo() 59 longCompare(MethodHandle method, Object thisObject, Object[] arguments, int hookId) { in longCompare() argument 60 TraceDataFlowNativeCallbacks.traceCmpLong((long) arguments[0], (long) arguments[1], hookId); in longCompare() 66 longCompareTo(MethodHandle method, Long thisObject, Object[] arguments, int hookId) { in longCompareTo() argument 67 TraceDataFlowNativeCallbacks.traceCmpLong(thisObject, (long) arguments[0], hookId); in longCompareTo() 73 longCompareKt(MethodHandle method, Object alwaysNull, Object[] arguments, int hookId) { in longCompareKt() argument 74 TraceDataFlowNativeCallbacks.traceCmpLong((long) arguments[0], (long) arguments[1], hookId); in longCompareKt() [all …]
|
| /external/jazzer-api/src/test/java/com/code_intelligence/jazzer/mutation/engine/ |
| D | SeededPseudoRandomTest.java | 24 import static org.junit.jupiter.params.provider.Arguments.arguments; 31 import org.junit.jupiter.params.provider.Arguments; 35 static Stream<Arguments> doubleClosedRange() { in doubleClosedRange() 36 return Stream.of(arguments(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, false), in doubleClosedRange() 37 arguments(Double.MAX_VALUE, Double.POSITIVE_INFINITY, false), in doubleClosedRange() 38 arguments(Double.NEGATIVE_INFINITY, -Double.MAX_VALUE, false), in doubleClosedRange() 39 arguments(-Double.MAX_VALUE, Double.MAX_VALUE, false), in doubleClosedRange() 40 arguments(-Double.MAX_VALUE, -Double.MAX_VALUE, false), in doubleClosedRange() 41 arguments(-Double.MAX_VALUE * 0.5, Double.MAX_VALUE * 0.5, false), in doubleClosedRange() 42 arguments(-Double.MAX_VALUE * 0.5, Math.nextUp(Double.MAX_VALUE * 0.5), false), in doubleClosedRange() [all …]
|
| /external/skia/src/sksl/ir/ |
| D | SkSLFunctionCall.cpp | 53 static bool has_compile_time_constant_arguments(const ExpressionArray& arguments) { in has_compile_time_constant_arguments() argument 54 for (const std::unique_ptr<Expression>& arg : arguments) { in has_compile_time_constant_arguments() 90 // Takes up to two vector or scalar arguments and coalesces them in sequence: in coalesce_n_way_vector() 98 // If an argument is null, zero is passed to the coalesce function. If the arguments are a mix in coalesce_n_way_vector() 145 static std::unique_ptr<Expression> coalesce_vector(const IntrinsicArguments& arguments, in coalesce_vector() argument 150 SkASSERT(arguments[0]); in coalesce_vector() 151 SkASSERT(!arguments[1]); in coalesce_vector() 152 type_check_expression<T>(*arguments[0]); in coalesce_vector() 154 return coalesce_n_way_vector(arguments[0], /*arg1=*/nullptr, in coalesce_vector() 159 static std::unique_ptr<Expression> coalesce_pairwise_vectors(const IntrinsicArguments& arguments, in coalesce_pairwise_vectors() argument [all …]
|
| /external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/checksum/ |
| D | ChecksumInstantiationTest.java | 25 import org.junit.jupiter.params.provider.Arguments; 35 private static Stream<Arguments> provideAlgorithmAndTestStringChecksums() { in provideAlgorithmAndTestStringChecksums() 37 Arguments.of(Algorithm.SHA1, "761c457bf73b14d27e9e9265c46f4b4dda11f940"), in provideAlgorithmAndTestStringChecksums() 38 …Arguments.of(Algorithm.SHA256, "db4bfcbd4da0cd85a60c3c37d3fbd8805c77f15fc6b1fdfe614ee0a7c8fdb4c0"), in provideAlgorithmAndTestStringChecksums() 39 Arguments.of(Algorithm.CRC32, "000000000000000000000000000000001fc2e6d2"), in provideAlgorithmAndTestStringChecksums() 40 Arguments.of(Algorithm.CRC32C, "00000000000000000000000000000000a245d57d") in provideAlgorithmAndTestStringChecksums() 54 private static Stream<Arguments> provideAlgorithmAndTestBaseEncodedValue() { in provideAlgorithmAndTestBaseEncodedValue() 56 Arguments.of(Algorithm.CRC32C, "Nks/tw=="), in provideAlgorithmAndTestBaseEncodedValue() 57 Arguments.of(Algorithm.CRC32, "NSRBwg=="), in provideAlgorithmAndTestBaseEncodedValue() 58 Arguments.of(Algorithm.SHA1, "qZk+NkcGgWq6PiVxeFDCbJzQ2J0="), in provideAlgorithmAndTestBaseEncodedValue() [all …]
|
| /external/aws-sdk-java-v2/services-custom/s3-transfer-manager/src/test/java/software/amazon/awssdk/transfer/s3/internal/serialization/ |
| D | TransferManagerMarshallerUtilsTest.java | 29 import org.junit.jupiter.params.provider.Arguments; 71 private static Stream<Arguments> marshallingValues() { in marshallingValues() 72 …return Stream.of(Arguments.of("String", MarshallingType.STRING, TransferManagerJsonMarshaller.STRI… in marshallingValues() 73 … Arguments.of((short) 10, MarshallingType.SHORT, TransferManagerJsonMarshaller.SHORT), in marshallingValues() 74 … Arguments.of(100, MarshallingType.INTEGER, TransferManagerJsonMarshaller.INTEGER), in marshallingValues() 75 … Arguments.of(100L, MarshallingType.LONG, TransferManagerJsonMarshaller.LONG), in marshallingValues() 76 … Arguments.of(Instant.now(), MarshallingType.INSTANT, TransferManagerJsonMarshaller.INSTANT), in marshallingValues() 77 … Arguments.of(null, MarshallingType.NULL, TransferManagerJsonMarshaller.NULL), in marshallingValues() 78 … Arguments.of(12.34f, MarshallingType.FLOAT, TransferManagerJsonMarshaller.FLOAT), in marshallingValues() 79 … Arguments.of(12.34d, MarshallingType.DOUBLE, TransferManagerJsonMarshaller.DOUBLE), in marshallingValues() [all …]
|
| /external/apache-commons-lang/src/test/java/org/apache/commons/lang3/time/ |
| D | FastDateParserSDFTest.java | 34 import org.junit.jupiter.params.provider.Arguments; 44 public static Stream<Arguments> data() { in data() 47 …Arguments.of("z yyyy", "GMT 2010", Locale.UK, true), // no offset specified, but this is all… in data() 48 Arguments.of("z yyyy", "GMT-123 2010", Locale.UK, false), in data() 49 Arguments.of("z yyyy", "GMT-1234 2010", Locale.UK, false), in data() 50 Arguments.of("z yyyy", "GMT-12:34 2010", Locale.UK, true), in data() 51 Arguments.of("z yyyy", "GMT-1:23 2010", Locale.UK, true), in data() 53 Arguments.of("z yyyy", "-1234 2010", Locale.UK, true), in data() 54 Arguments.of("z yyyy", "-12:34 2010", Locale.UK, false), in data() 55 Arguments.of("z yyyy", "-123 2010", Locale.UK, false), in data() [all …]
|
| /external/dokka/runners/cli/src/main/kotlin/cli/ |
| D | main.kt | 122 val arguments = DokkaArguments() in entry() constant 123 val freeArgs: List<String> = Args.parse(arguments, args) ?: listOf() in entry() 124 …val sources = if (arguments.src.isNotEmpty()) arguments.src.split(File.pathSeparatorChar).toList()… in entry() 125 …val samples = if (arguments.samples.isNotEmpty()) arguments.samples.split(File.pathSeparatorChar).… in entry() 126 …val includes = if (arguments.include.isNotEmpty()) arguments.include.split(File.pathSeparatorChar)… in entry() 128 val sourceLinks = if (arguments.srcLink.isNotEmpty() && arguments.srcLink.contains("=")) in entry() 129 listOf(SourceLinkDefinitionImpl.parseSourceLinkDefinition(arguments.srcLink)) in entry() 131 if (arguments.srcLink.isNotEmpty()) { in entry() 137 val classPath = arguments.classpath.split(File.pathSeparatorChar).toList() in entry() 139 if (arguments.useSamplesURL) DownloadSamples.downloadSamples() in entry() [all …]
|
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/message2/ |
| D | Mf2FeaturesTest.java | 41 .arguments(Args.NONE) in testEmptyMessage() 50 .arguments(Args.NONE) in testPlainText() 59 .arguments(Args.of("userName", "John")) in testPlaceholders() 72 .arguments(Args.of("name", "John", "today", TEST_DATE)) in testArgumentMissing() 77 .arguments(Args.of("name", "John")) in testArgumentMissing() 82 .arguments(Args.of("today", TEST_DATE)) in testArgumentMissing() 87 .arguments(Args.NONE) in testArgumentMissing() 97 Map<String, Object> arguments = Args.of("date", TEST_DATE); in testDefaultLocale() local 101 .arguments(arguments) in testDefaultLocale() 106 .arguments(arguments) in testDefaultLocale() [all …]
|
| /external/icu/icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/message2/ |
| D | Mf2FeaturesTest.java | 38 .arguments(Args.NONE) in testEmptyMessage() 47 .arguments(Args.NONE) in testPlainText() 56 .arguments(Args.of("userName", "John")) in testPlaceholders() 69 .arguments(Args.of("name", "John", "today", TEST_DATE)) in testArgumentMissing() 74 .arguments(Args.of("name", "John")) in testArgumentMissing() 79 .arguments(Args.of("today", TEST_DATE)) in testArgumentMissing() 84 .arguments(Args.NONE) in testArgumentMissing() 94 Map<String, Object> arguments = Args.of("date", TEST_DATE); in testDefaultLocale() local 98 .arguments(arguments) in testDefaultLocale() 103 .arguments(arguments) in testDefaultLocale() [all …]
|
| /external/ComputeLibrary/src/core/CL/ |
| D | ICLKernel.h | 70 /** Returns the number of arguments enqueued per array object. 72 * @return The number of arguments enqueued per array object. 79 /** Returns the number of arguments enqueued per tensor object. 81 * @return The number of arguments enqueued per tensor object. 146 …/** Add the passed 1D array's parameters to the object's kernel's arguments starting from the inde… 148 … Index at which to start adding the array's arguments. Will be incremented by the number of kernel… 159 …/** Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the ind… 161 …Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel… 169 …/** Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the ind… 172 …Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel… [all …]
|
| /external/antlr/runtime/JavaScript/src/org/antlr/runtime/ |
| D | TokenRewriteStream.js | 66 if (arguments.length===0) { 69 sup.constructor.apply(this, arguments); 154 if (arguments.length===1) { 156 instructionIndex = arguments[0]; 157 } else if (arguments.length===2) { 158 programName = arguments[0]; 159 instructionIndex = arguments[1]; 192 if (arguments.length===1) { 194 op = arguments[0]; 195 } else if (arguments.length===2) { [all …]
|
| /external/autotest/site_utils/stable_images/ |
| D | stable_version_unittest.py | 20 arguments = stable_version._parse_args(['command']) 21 self.assertFalse(arguments.dry_run) 22 self.assertIsNone(arguments.type) 23 self.assertIsNone(arguments.web) 24 self.assertFalse(arguments.delete) 25 self.assertIsNone(arguments.key) 26 self.assertIsNone(arguments.version) 32 arguments = stable_version._parse_args(argv) 33 self.assertEqual(arguments.web, argv[2]) 39 arguments = stable_version._parse_args(argv) [all …]
|
| /external/apache-commons-io/src/test/java/org/apache/commons/io/file/attribute/ |
| D | FileTimesTest.java | 30 import org.junit.jupiter.params.provider.Arguments; 38 public static Stream<Arguments> dateToNtfsProvider() { in dateToNtfsProvider() 41 Arguments.of("1601-01-01T00:00:00.000Z", 0), in dateToNtfsProvider() 42 Arguments.of("1601-01-01T00:00:00.000Z", 1), in dateToNtfsProvider() 43 Arguments.of("1600-12-31T23:59:59.999Z", -1), in dateToNtfsProvider() 44 Arguments.of("1601-01-01T00:00:00.001Z", FileTimes.HUNDRED_NANOS_PER_MILLISECOND), in dateToNtfsProvider() 45 Arguments.of("1601-01-01T00:00:00.001Z", FileTimes.HUNDRED_NANOS_PER_MILLISECOND + 1), in dateToNtfsProvider() 46 Arguments.of("1601-01-01T00:00:00.000Z", FileTimes.HUNDRED_NANOS_PER_MILLISECOND - 1), in dateToNtfsProvider() 47 Arguments.of("1600-12-31T23:59:59.999Z", -FileTimes.HUNDRED_NANOS_PER_MILLISECOND), in dateToNtfsProvider() 48 Arguments.of("1600-12-31T23:59:59.999Z", -FileTimes.HUNDRED_NANOS_PER_MILLISECOND + 1), in dateToNtfsProvider() [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_webbrowser.py | 29 def _test(self, meth, *, args=[URL], kw={}, options, arguments): argument 30 """Given a web browser instance method name along with arguments and 33 indicated instance method with the indicated arguments, and compares 34 the resulting options and arguments passed to Popen by the browser 36 in a position independent fashion, and the arguments are compared in 50 self.assertEqual(popen_args, arguments) 60 arguments=[URL]) 70 arguments=[URL]) 80 arguments=[URL]) 85 arguments=[URL]) [all …]
|
| /external/apache-commons-io/src/test/java/org/apache/commons/io/file/ |
| D | TestArguments.java | 22 import org.junit.jupiter.params.provider.Arguments; 26 static Stream<Arguments> cleaningPathVisitors() { in cleaningPathVisitors() 29 Arguments.of(CleaningPathVisitor.withBigIntegerCounters()), in cleaningPathVisitors() 30 Arguments.of(CleaningPathVisitor.withLongCounters())); in cleaningPathVisitors() 34 static Stream<Arguments> countingPathVisitors() { in countingPathVisitors() 37 Arguments.of(CountingPathVisitor.withBigIntegerCounters()), in countingPathVisitors() 38 Arguments.of(CountingPathVisitor.withLongCounters())); in countingPathVisitors() 42 static Stream<Arguments> deletingPathVisitors() { in deletingPathVisitors() 45 Arguments.of(DeletingPathVisitor.withBigIntegerCounters()), in deletingPathVisitors() 46 Arguments.of(DeletingPathVisitor.withLongCounters())); in deletingPathVisitors() [all …]
|