| /external/truth/core/src/test/java/com/google/common/truth/ |
| D | ComparisonFailureWithFactsTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 19 import static com.google.common.base.Strings.repeat; 53 repeat("b", 100) + "aa", in formatLongOverlapStart() 54 repeat("b", 100) + "oo", in formatLongOverlapStart() 55 "…" + repeat("b", 20) + "aa", in formatLongOverlapStart() 56 "…" + repeat("b", 20) + "oo"); in formatLongOverlapStart() 62 "ba" + repeat("r", 100), in formatLongOverlapEnd() 63 "fu" + repeat("r", 100), in formatLongOverlapEnd() 64 "ba" + repeat("r", 20) + "…", in formatLongOverlapEnd() 65 "fu" + repeat("r", 20) + "…"); in formatLongOverlapEnd() [all …]
|
| /external/okhttp/okio/okio/src/test/java/okio/ |
| D | BufferTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 28 import static okio.TestUtil.repeat; 64 buffer.writeUtf8(repeat('a', Segment.SIZE * 4)); in completeSegmentByteCountOnBufferWithFullSegments() 70 buffer.writeUtf8(repeat('a', Segment.SIZE * 4 - 10)); in completeSegmentByteCountOnBufferWithIncompleteTailSegment() 93 buffer.writeUtf8(repeat('a', 6144)); in toStringOnMultipleSegmentBuffer() 99 buffer.writeUtf8(repeat('a', 1000)); in multipleSegmentBuffers() 100 buffer.writeUtf8(repeat('b', 2500)); in multipleSegmentBuffers() 101 buffer.writeUtf8(repeat('c', 5000)); in multipleSegmentBuffers() 102 buffer.writeUtf8(repeat('d', 10000)); in multipleSegmentBuffers() 103 buffer.writeUtf8(repeat('e', 25000)); in multipleSegmentBuffers() [all …]
|
| D | BufferedSourceTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 31 import static okio.TestUtil.repeat; 49 @Override public String toString() { 63 @Override public String toString() { 81 @Override public String toString() { 95 // ANDROID-BEGIN 98 // ANDROID-END 106 // ANDROID-BEGIN 112 // ANDROID-END 148 sink.writeUtf8(repeat('a', Segment.SIZE - 1)); in readShortSplitAcrossMultipleSegments() [all …]
|
| /external/deqp-deps/amber/src/amberscript/ |
| D | parser_repeat_test.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 23 TEST_F(AmberScriptParserTest, Repeat) { in TEST_F() argument 24 std::string in = R"( in TEST_F() 33 REPEAT 4 in TEST_F() 45 const auto& commands = script->GetCommands(); in TEST_F() 49 ASSERT_TRUE(cmd->IsRepeat()); in TEST_F() 51 auto* repeat = cmd->AsRepeat(); in TEST_F() local 52 EXPECT_EQ(4U, repeat->GetCount()); in TEST_F() 54 const auto& repeat_cmds = repeat->GetCommands(); in TEST_F() 56 ASSERT_TRUE(repeat_cmds[0]->IsCompute()); in TEST_F() [all …]
|
| /external/sdv/vsomeip/third_party/boost/spirit/test/karma/ |
| D | repeat1.cpp | 1 // Copyright (c) 2001-2011 Hartmut Kaiser 27 #include <string> 57 using boost::spirit::karma::repeat; in main() 66 std::string str8("aaaaaaaa"); in main() 67 BOOST_TEST(test("aaaaaaaa", repeat[char_], str8)); // kleene synonym in main() 68 BOOST_TEST(test("aaaaaaaa", repeat(val(8))[char_], str8)); in main() 69 BOOST_TEST(test("aaa", repeat(val(3))[char_], str8)); in main() 70 BOOST_TEST(!test("aaaaaaaa", repeat(val(9))[char_], str8)); in main() 72 std::string str3("aaa"); in main() 73 BOOST_TEST(test("aaaaa", repeat(val(3), val(5))[char_], str8)); in main() [all …]
|
| D | repeat2.cpp | 1 // Copyright (c) 2001-2011 Hartmut Kaiser 27 #include <string> 39 using boost::spirit::karma::repeat; in main() 46 std::string str("aBcdeFGH"); in main() 47 BOOST_TEST(test("abcdefgh", lower[repeat(8)[char_]], str)); in main() 48 BOOST_TEST(test_delimited("A B C D E F G H ", upper[repeat(8)[char_]], str, space)); in main() 52 std::string s1 = "aaaaa"; in main() 53 BOOST_TEST(test("aaaaa", char_ << repeat(2)[char_ << char_], s1)); in main() 55 BOOST_TEST(test("aaa", char_ << repeat(1, 2)[char_ << char_], s1)); in main() 57 BOOST_TEST(!test("", char_ << repeat(1)[char_ << char_], s1)); in main() [all …]
|
| /external/aws-sdk-java-v2/utils/src/test/java/software/amazon/awssdk/utils/ |
| D | StringUtilsTest.java | 30 * Adapted from https://github.com/apache/commons-lang. 33 private static final String FOO_UNCAP = "foo"; 34 private static final String FOO_CAP = "Foo"; 36 private static final String SENTENCE_UNCAP = "foo bar baz"; 37 private static final String SENTENCE_CAP = "Foo Bar Baz"; 42 assertEquals("upperCase(String) failed", in testUpperCase() 44 assertEquals("upperCase(empty-string) failed", in testUpperCase() 51 assertEquals("lowerCase(String) failed", in testLowerCase() 53 assertEquals("lowerCase(empty-string) failed", in testLowerCase() 61 assertEquals("capitalize(empty-string) failed", in testCapitalize() [all …]
|
| /external/sdv/vsomeip/third_party/boost/spirit/test/x3/ |
| D | repeat.cpp | 2 Copyright (c) 2001-2011 Joel de Guzman 7 #include <string> 15 # pragma GCC diagnostic ignored "-Warray-bounds" 18 #include <string> 30 using boost::spirit::x3::repeat; in main() 37 BOOST_SPIRIT_ASSERT_CONSTEXPR_CTORS(repeat['x']); in main() 38 BOOST_SPIRIT_ASSERT_CONSTEXPR_CTORS(repeat(3)['x']); in main() 39 BOOST_SPIRIT_ASSERT_CONSTEXPR_CTORS(repeat(3, 5)['x']); in main() 40 BOOST_SPIRIT_ASSERT_CONSTEXPR_CTORS(repeat(3, inf)['x']); in main() 43 BOOST_TEST(test("aaaaaaaa", repeat[char_])); // kleene synonym in main() [all …]
|
| /external/python/cpython3/Lib/ |
| D | timeit.py | 12 python timeit.py [-n N] [-r N] [-s S] [-p] [-h] [--] [statement] 15 -n/--number N: how many times to execute 'statement' (default: see below) 16 -r/--repeat N: how many times to repeat the timer (default 5) 17 -s/--setup S: statement to be executed once initially (default 'pass'). 19 -p/--process: use time.process_time() (default is time.perf_counter()) 20 -v/--verbose: print raw timing results; repeat for more digits precision 21 -u/--unit: set the output time unit (nsec, usec, msec, or sec) 22 -h/--help: print this usage message and exit 23 --: separate options from statement, use when statement starts with - 26 A multi-line statement may be given by specifying each line as a [all …]
|
| /external/python/cpython2/Lib/ |
| D | timeit.py | 12 python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [--] [statement] 15 -n/--number N: how many times to execute 'statement' (default: see below) 16 -r/--repeat N: how many times to repeat the timer (default 3) 17 -s/--setup S: statement to be executed once initially (default 'pass') 18 -t/--time: use time.time() (default on Unix) 19 -c/--clock: use time.clock() (default on Windows) 20 -v/--verbose: print raw timing results; repeat for more digits precision 21 -h/--help: print this usage message and exit 22 --: separate options from statement, use when statement starts with - 25 A multi-line statement may be given by specifying each line as a [all …]
|
| /external/sdv/vsomeip/third_party/boost/spirit/test/qi/ |
| D | repeat.cpp | 2 Copyright (c) 2001-2011 Joel de Guzman 7 #include <string> 23 #include <string> 57 using boost::spirit::qi::repeat; in main() 65 BOOST_TEST(test("aaaaaaaa", repeat[char_])); // kleene synonym in main() 66 BOOST_TEST(test("aaaaaaaa", repeat(8)[char_])); in main() 67 BOOST_TEST(!test("aa", repeat(3)[char_])); in main() 69 BOOST_TEST(test("aaa", repeat(3, 5)[char_])); in main() 70 BOOST_TEST(test("aaaaa", repeat(3, 5)[char_])); in main() 71 BOOST_TEST(!test("aaaaaa", repeat(3, 5)[char_])); in main() [all …]
|
| D | regression_repeat.cpp | 1 // Copyright (c) 2001-2010 Hartmut Kaiser 13 using qi::repeat; 17 typedef qi::rule<std::string::const_iterator, std::string()> strrule_type; 19 void test(const std::string input, strrule_type rule, std::string result) in test() 21 std::string target; in test() 22 std::string::const_iterator i = input.begin(), ie = input.end(); in test() 30 omit[-qi::char_(" \t")] >> in main() 31 repeat(2)[qi::digit] >> in main() 32 omit[-qi::char_(" \t")]; in main() 33 strrule_type correct_year = repeat(4)[qi::digit]; in main() [all …]
|
| /external/kotlinx.serialization/formats/json-tests/jvmTest/src/kotlinx/serialization/features/ |
| D | JsonJvmStreamsTest.kt | 2 …* Copyright 2017-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen… 26 val str = "a".repeat(strLen) in testParsesStringsLongerThanBuffer() 30 assertEquals(str, Json.decodeViaStream(String.serializer(), "\"$str\"")) in testParsesStringsLongerThanBuffer() 35 val str = "a".repeat(strLen) in testSkipsWhitespacesLongerThanBuffer() 36 val ws = " ".repeat(strLen) in testSkipsWhitespacesLongerThanBuffer() 44 val str = "\\t".repeat(strLen) in testHandlesEscapesLongerThanBuffer() 45 val expected = "\t".repeat(strLen) in testHandlesEscapesLongerThanBuffer() 53 val str = "a".repeat(strLen) in testHandlesLongLenientStrings() 57 assertEquals(str, json.decodeViaStream(String.serializer(), str)) in testHandlesLongLenientStrings() 69 Json.decodeViaStream(String.serializer(), "\"") in testThrowsCorrectExceptionOnEof() [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/mediasession/src/main/res/values/ |
| D | strings.xml | 1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 The Android Open Source Project 8 http://www.apache.org/licenses/LICENSE-2.0 15 --> 17 …<!-- Description for a button that controls the repeat mode of a media playback. In this mode medi… 18 <string name="exo_media_action_repeat_off_description">Repeat none</string> 19 …!-- Description for a button that controls the repeat mode of a media playback. In this mode the c… 20 <string name="exo_media_action_repeat_one_description">Repeat one</string> 21 …<!-- Description for a button that controls the repeat mode of a media playback. In this mode the … 22 <string name="exo_media_action_repeat_all_description">Repeat all</string>
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/mediasession/src/main/res/values/ |
| D | strings.xml | 1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 The Android Open Source Project 8 http://www.apache.org/licenses/LICENSE-2.0 15 --> 17 …<!-- Description for a button that controls the repeat mode of a media playback. In this mode medi… 18 <string name="exo_media_action_repeat_off_description">Repeat none</string> 19 …!-- Description for a button that controls the repeat mode of a media playback. In this mode the c… 20 <string name="exo_media_action_repeat_one_description">Repeat one</string> 21 …<!-- Description for a button that controls the repeat mode of a media playback. In this mode the … 22 <string name="exo_media_action_repeat_all_description">Repeat all</string>
|
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
| D | TrieMapTest.java | 6 * Copyright (C) 2011-2012, Google, International Business Machines Corporation and 50 private Map<String, Integer> unicodeTestMap = new HashMap<String, Integer>(); 64 …on, timing for 1s:\t to get more accurate figures and test for reasonable times, use -e5 or more"); in init() 74 UnicodeSet testSet = new UnicodeSet("[[:^C:]-[:sc=han:]]"); in init() 75 for (String s : testSet) { in init() 77 String extendedName = UCharacter.getExtendedName(codePoint); in init() 88 String localeName; in init() 89 for (String languageCode : ULocale.getISOLanguages()) { in init() 98 for (String countryCode : ULocale.getISOCountries()) { in init() 99 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale); in init() [all …]
|
| /external/icu/icu4j/main/core/src/test/java/com/ibm/icu/dev/test/util/ |
| D | TrieMapTest.java | 5 * Copyright (C) 2011-2012, Google, International Business Machines Corporation and 47 private Map<String, Integer> unicodeTestMap = new HashMap<String, Integer>(); 61 …on, timing for 1s:\t to get more accurate figures and test for reasonable times, use -e5 or more"); in init() 71 UnicodeSet testSet = new UnicodeSet("[[:^C:]-[:sc=han:]]"); in init() 72 for (String s : testSet) { in init() 74 String extendedName = UCharacter.getExtendedName(codePoint); in init() 85 String localeName; in init() 86 for (String languageCode : ULocale.getISOLanguages()) { in init() 95 for (String countryCode : ULocale.getISOCountries()) { in init() 96 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale); in init() [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/main/res/values/ |
| D | strings.xml | 1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 The Android Open Source Project 8 http://www.apache.org/licenses/LICENSE-2.0 15 --> 17 …<!-- Accessibility description for a media player view to indicate that tapping on the view shows … 18 <string name="exo_controls_show">Show player controls</string> 19 …<!-- Accessibility description for a media player view to indicate that tapping on the view hides … 20 <string name="exo_controls_hide">Hide player controls</string> 21 …<!-- Accessibility description for a media player seek bar, which indicates the playback progress.… 22 <string name="exo_controls_seek_bar_description">Playback progress</string> [all …]
|
| /external/aws-sdk-java-v2/core/metrics-spi/src/main/java/software/amazon/awssdk/metrics/ |
| D | LoggingMetricPublisher.java | 18 import static software.amazon.awssdk.utils.StringUtils.repeat; 113 …* @param format the format to print the metrics with (see class-level documentation for examples) 126 LOGGER.log(logLevel, () -> "Metrics published: " + metrics); in publish() 129 String guid = Integer.toHexString(metrics.hashCode()); in publish() 137 private void logPretty(String guid, MetricCollection metrics, int indent) { in logPretty() 138 // Pre-determine metric key-value-pairs so that we can calculate the necessary padding in logPretty() 139 List<String> metricValues = new ArrayList<>(); in logPretty() 140 metrics.forEach(m -> { in logPretty() 141 metricValues.add(String.format("%s=%s", m.metric().name(), m.value())); in logPretty() 147 LOGGER.log(logLevel, () -> String.format("[%s]%s %s", in logPretty() [all …]
|
| /external/libchrome/base/i18n/ |
| D | streaming_utf8_validator_perftest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 17 #include <string> 30 // We want to test ranges of valid UTF-8 sequences. These ranges are inclusive. 37 const char kTwoByteSeqRangeStart[] = "\xc2\xa0"; // U+00A0 non-breaking space 49 // Simplest possible byte-at-a-time validator, to provide a baseline 50 // for comparison. This is only tried on 1-byte UTF-8 sequences, as 52 // top-bit-set bytes. 53 bool IsString7Bit(const std::string& s) { in IsString7Bit() 54 for (std::string::const_iterator it = s.begin(); it != s.end(); ++it) { in IsString7Bit() 61 // Assumes that |previous| is a valid UTF-8 sequence, and attempts to return [all …]
|
| /external/cronet/base/i18n/ |
| D | streaming_utf8_validator_perftest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 17 #include <string> 29 // We want to test ranges of valid UTF-8 sequences. These ranges are inclusive. 36 const char kTwoByteSeqRangeStart[] = "\xc2\xa0"; // U+00A0 non-breaking space 48 // Simplest possible byte-at-a-time validator, to provide a baseline 49 // for comparison. This is only tried on 1-byte UTF-8 sequences, as 51 // top-bit-set bytes. 52 bool IsString7Bit(const std::string& s) { in IsString7Bit() 60 // Assumes that |previous| is a valid UTF-8 sequence, and attempts to return 63 std::string NextUtf8Sequence(const std::string& previous) { in NextUtf8Sequence() [all …]
|
| /external/python/cpython2/Doc/library/ |
| D | timeit.rst | 1 :mod:`timeit` --- Measure execution time of small code snippets 16 -------------- 19 a :ref:`timeit-command-line-interface` as well as a :ref:`callable <python-interface>` 26 -------------- 28 The following example shows how the :ref:`timeit-command-line-interface` 31 .. code-block:: sh 33 $ python -m timeit '"-".join(str(n) for n in range(100))' 35 $ python -m timeit '"-".join([str(n) for n in range(100)])' 37 $ python -m timeit '"-".join(map(str, range(100)))' 40 This can be achieved from the :ref:`python-interface` with:: [all …]
|
| /external/python/cpython2/Lib/lib2to3/ |
| D | patcomp.py | 29 """Tokenizes a string suppressing significant whitespace.""" 56 """Compiles a pattern string to a nested pytree.*Pattern object.""" 72 # XXX Optimize certain Wildcard-containing-Wildcard patterns 104 repeat = None 105 if len(nodes) >= 2 and nodes[-1].type == self.syms.Repeater: 106 repeat = nodes[-1] 107 nodes = nodes[:-1] 109 # Now we've reduced it to: STRING | NAME [Details] | (...) | [...] 110 pattern = self.compile_basic(nodes, repeat) 112 if repeat is not None: [all …]
|
| /external/python/cpython3/Lib/lib2to3/ |
| D | patcomp.py | 29 """Tokenizes a string suppressing significant whitespace.""" 56 """Compiles a pattern string to a nested pytree.*Pattern object.""" 72 # XXX Optimize certain Wildcard-containing-Wildcard patterns 104 repeat = None 105 if len(nodes) >= 2 and nodes[-1].type == self.syms.Repeater: 106 repeat = nodes[-1] 107 nodes = nodes[:-1] 109 # Now we've reduced it to: STRING | NAME [Details] | (...) | [...] 110 pattern = self.compile_basic(nodes, repeat) 112 if repeat is not None: [all …]
|
| /external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/qps/ |
| D | AbstractConfigurationBuilder.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 20 import static java.lang.String.CASE_INSENSITIVE_ORDER; 40 public String getName() { 45 public String getType() { 50 public String getDescription() { 60 public String getDefaultValue() { 65 public void setValue(Configuration config, String value) { 75 * The name of the parameter as it would appear on the command-line. 77 String getName(); in getName() 80 * A string representation of the parameter type. If not applicable, just returns an empty [all …]
|