/tools/repohooks/rh/ |
D | shell.py | 47 def shell_quote(s): argument 74 if isinstance(s, bytes): 75 s = s.encode('utf-8') 78 for c in s: 82 return s if s else u"''" 85 if "'" not in s: 86 return u"'%s'" % s 91 if c in s: 92 s = s.replace(c, r'\%s' % c) 93 return u'"%s"' % s [all …]
|
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/data/ |
D | sample_monsoon_data | 1 0s 3.67 2 1s 3.69 3 2s 0.95 4 3s 3.06 5 4s 2.17 6 5s 1.62 7 6s 3.95 8 7s 2.47 9 8s 1.11 10 9s 0.47
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustTestBaseTest.java | 45 String[] s = {"test*filter1", "s1", "*s2", "s3*"}; in testIncludeFilters() local 47 Set<String> set1 = new HashSet<>(Arrays.asList(s[0])); in testIncludeFilters() 48 Set<String> set2 = new HashSet<>(Arrays.asList(s[1], s[2], s[3])); in testIncludeFilters() 50 runner.addIncludeFilter(s[0]); in testIncludeFilters() 54 runner.addIncludeFilter(s[2]); in testIncludeFilters() 66 String[] s = {"test*filter1", "s1", "*s2", "s3*"}; in testExcludeFilters() local 68 Set<String> set1 = new HashSet<>(Arrays.asList(s[0])); in testExcludeFilters() 69 Set<String> set2 = new HashSet<>(Arrays.asList(s[1], s[2], s[3])); in testExcludeFilters() 71 runner.addExcludeFilter(s[0]); in testExcludeFilters() 75 runner.addExcludeFilter(s[2]); in testExcludeFilters()
|
D | RustTestResultParserTest.java | 69 for (String s : goodPatterns) { in testRegexTestCase() 70 assertTrue(s, RustTestResultParser.RUST_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 72 for (String s : wrongPatterns) { in testRegexTestCase() 73 assertFalse(s, RustTestResultParser.RUST_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 91 for (String s : goodPatterns) { in testRegexRunSummary() 92 assertTrue(s, RustTestResultParser.COMPLETE_PATTERN.matcher(s).matches()); in testRegexRunSummary() 94 for (String s : wrongPatterns) { in testRegexRunSummary() 95 assertFalse(s, RustTestResultParser.COMPLETE_PATTERN.matcher(s).matches()); in testRegexRunSummary()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | TargetSetupErrorTest.java | 48 File s = SerializationUtil.serialize(exception); in testSerialization() local 50 assertTrue(s.exists()); in testSerialization() 51 assertTrue(s.isFile()); in testSerialization() 52 Object o = SerializationUtil.deserialize(s, true); in testSerialization() 56 FileUtil.deleteFile(s); in testSerialization() 78 File s = SerializationUtil.serialize(exception); in testSerialization_withIDevice() local 80 assertTrue(s.exists()); in testSerialization_withIDevice() 81 assertTrue(s.isFile()); in testSerialization_withIDevice() 82 Object o = SerializationUtil.deserialize(s, true); in testSerialization_withIDevice() 88 FileUtil.deleteFile(s); in testSerialization_withIDevice()
|
/tools/dexter/testdata/expected/ |
D | hello_nodebug.code_coverage | 1 1: mi=0 s=0 e=4 2 2: mi=0 s=6 e=7 3 3: mi=0 s=10 e=10 4 4: mi=1 s=0 e=2 5 5: mi=1 s=5 e=5 6 6: mi=2 s=0 e=2 7 7: mi=2 s=5 e=5 8 8: mi=3 s=0 e=2 9 9: mi=3 s=5 e=5 10 10: mi=3 s=7 e=7 [all …]
|
D | exit_hooks.code_coverage | 1 1: mi=0 s=0 e=2 2 2: mi=0 s=5 e=5 3 3: mi=1 s=0 e=1 4 4: mi=1 s=3 e=3 5 5: mi=1 s=5 e=5 6 6: mi=1 s=8 e=8 7 7: mi=1 s=11 e=11 8 8: mi=1 s=13 e=13 9 9: mi=1 s=15 e=15 10 10: mi=1 s=18 e=18 [all …]
|
D | try_catch.code_coverage | 1 1: mi=0 s=0 e=2 2 2: mi=0 s=5 e=5 3 3: mi=1 s=0 e=2 4 4: mi=1 s=5 e=5 5 5: mi=2 s=0 e=2 6 6: mi=2 s=5 e=5 7 7: mi=3 s=0 e=2 8 8: mi=3 s=4 e=5 9 9: mi=3 s=8 e=9 10 10: mi=3 s=10 e=10 [all …]
|
D | hello.code_coverage | 1 1: mi=0 s=0 e=4 2 2: mi=0 s=6 e=7 3 3: mi=0 s=10 e=10 4 4: mi=1 s=0 e=2 5 5: mi=1 s=5 e=5 6 6: mi=2 s=0 e=2 7 7: mi=2 s=5 e=5 8 8: mi=3 s=0 e=2 9 9: mi=3 s=5 e=5 10 10: mi=3 s=7 e=7 [all …]
|
D | entry_hooks.code_coverage | 1 1: mi=0 s=0 e=2 2 2: mi=0 s=5 e=5 3 3: mi=1 s=0 e=3 4 4: mi=1 s=5 e=5 5 5: mi=1 s=7 e=8 6 6: mi=1 s=10 e=15 7 7: mi=1 s=18 e=19 8 8: mi=1 s=21 e=26 9 9: mi=1 s=28 e=28 10 10: mi=1 s=31 e=34 [all …]
|
D | mi.code_coverage | 1 1: mi=0 s=0 e=0 2 2: mi=0 s=3 e=3 3 3: mi=1 s=0 e=1 4 4: mi=3 s=0 e=0 5 5: mi=3 s=3 e=3 6 6: mi=3 s=5 e=5 7 7: mi=3 s=7 e=7 8 8: mi=4 s=0 e=0 9 9: mi=4 s=2 e=2 10 10: mi=4 s=5 e=6 [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_records_test.py | 84 s = signals.TestPass(self.details, self.float_extra) 85 record.test_pass(s) 95 s = signals.TestPass(self.details, self.json_extra) 96 record.test_pass(s) 116 s = signals.TestFailure(self.details, self.float_extra) 117 record.test_fail(s) 127 s = signals.TestFailure(self.details, self.json_extra) 128 record.test_fail(s) 148 s = signals.TestSkip(self.details, self.float_extra) 149 record.test_skip(s) [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParserTest.java | 71 String s = "a (b) ... ok"; in testRegexTestCase() local 72 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 73 assertFalse(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 74 s = "a (b) ... FAIL"; in testRegexTestCase() 75 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 76 s = "a (b) ... ERROR"; in testRegexTestCase() 77 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 78 s = "a (b) ... expected failure"; in testRegexTestCase() 79 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 80 s = "a (b) ... skipped 'reason foo'"; in testRegexTestCase() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeParameterList.kt | 63 val s = typeString ?: return emptyList() in typeParameterStrings() constant 68 for (i in 0 until s.length) { in typeParameterStrings() 69 val c = s[i] in typeParameterStrings() 76 add(list, s, start, i + 1) in typeParameterStrings() 79 add(list, s, start, i) in typeParameterStrings() 84 add(list, s, start, i) in typeParameterStrings() 97 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add() 99 if (!Character.isWhitespace(s[i])) { in add() 100 list.add(s.substring(i, to)) in add()
|
D | TextTypeParameterItem.kt | 92 val s = typeString ?: return emptyList() in bounds() constant 93 val index = s.indexOf("extends ") in bounds() 99 if (p.simpleName() == s) { in bounds() 109 val length = s.length in bounds() 111 val c = s[i] in bounds() 133 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add() 135 if (!Character.isWhitespace(s[i])) { in add() 137 while (end > i && s[end - 1].isWhitespace()) { in add() 141 while (begin < end && s[begin].isWhitespace()) { in add() 147 val element = s.substring(begin, end) in add()
|
/tools/loganalysis/src/com/android/loganalysis/util/ |
D | NumberFormattingUtil.java | 52 public static long parseLongOrZero(String s) throws NumberFormatException { in parseLongOrZero() argument 53 if (s == null) { in parseLongOrZero() 56 return Long.parseLong(s); in parseLongOrZero() 67 public static int parseIntOrZero(String s) throws NumberFormatException { in parseIntOrZero() argument 68 if (s == null) { in parseIntOrZero() 71 return Integer.parseInt(s); in parseIntOrZero()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SimplePerfResult.java | 58 protected void setCommandRawOutput(String s) { in setCommandRawOutput() argument 59 if (s != null) { in setCommandRawOutput() 60 commandRawOutput = s.trim(); in setCommandRawOutput() 77 protected void setSimplePerfRawOutput(String s) { in setSimplePerfRawOutput() argument 78 if (s != null) { in setSimplePerfRawOutput() 79 simplePerfRawOutput = s.trim(); in setSimplePerfRawOutput()
|
/tools/test/graphicsbenchmark/apps/alloc_stress_app/src/cpp/ |
D | alloc_stress_activity.cpp | 33 size_t s = 4 * (1 << 20); // 4 MB variable 41 char *ptr = (char *) malloc(s); in Java_com_android_game_qualification_allocstress_MainActivity_cmain() 42 memset(ptr, (int) allocCount >> 10, s); in Java_com_android_game_qualification_allocstress_MainActivity_cmain() 46 allocCount += s; in Java_com_android_game_qualification_allocstress_MainActivity_cmain()
|
/tools/tradefederation/core/src/com/android/tradefed/retry/ |
D | RetryStatistics.java | 37 for (RetryStatistics s : stats) { in aggregateStatistics() 38 aggregatedStats.mRetryTime += s.mRetryTime; in aggregateStatistics() 39 aggregatedStats.mRetrySuccess += s.mRetrySuccess; in aggregateStatistics() 40 aggregatedStats.mRetryFailure += s.mRetryFailure; in aggregateStatistics()
|
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ |
D | host_utils.py | 51 s = socket.socket(socket.AF_INET, socket_type, socket_proto) 54 s.bind(('', port)) 57 return s.getsockname()[1] 61 s.close()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | CollectingOutputReceiver.java | 56 String s = null; in addOutput() local 58 s = new String(data, offset, length, "ISO-8859-1"); //$NON-NLS-1$ in addOutput() 61 s = new String(data, offset,length); in addOutput() 63 mOutputBuffer.append(s); in addOutput()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | FileFormat.kt | 106 private fun firstLine(s: String): String { in firstLine() 107 val index = s.indexOf('\n') in firstLine() 109 return s in firstLine() 112 val end = if (index > 0 && s[index - 1] == '\r') index - 1 else index in firstLine() 113 return s.substring(0, end) in firstLine()
|
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/ |
D | Sl4aClient.java | 86 ServerSocket s = null; in Sl4aClient() local 89 s = new ServerSocket(0); in Sl4aClient() 90 s.setReuseAddress(true); in Sl4aClient() 91 port = s.getLocalPort(); in Sl4aClient() 92 s.close(); in Sl4aClient() 127 ServerSocket s = null; in startSL4A() local 130 s = new ServerSocket(0); in startSL4A() 131 s.setReuseAddress(true); in startSL4A() 132 port = s.getLocalPort(); in startSL4A() 133 s.close(); in startSL4A()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | TestEnvironment.java | 70 public void addSetupScripts(final String s) { in addSetupScripts() argument 71 mSetupScripts.add(s); in addSetupScripts() 88 public void addOutputFilePattern(final String s) { in addOutputFilePattern() argument 89 mOutputFilePatterns.add(s); in addOutputFilePattern() 106 public void setOutputFileUploadUrl(final String s) { in setOutputFileUploadUrl() argument 107 mOutputFileUploadUrl = s; in setOutputFileUploadUrl() 146 public void addJvmOption(final String s) { in addJvmOption() argument 147 mJvmOptions.add(s); in addJvmOption()
|
/tools/tradefederation/core/lite/com/android/tradefed/lite/ |
D | HostUtils.java | 84 Stream<JarEntry> s = jarFile.stream(); in getJUnitClasses() local 91 s = in getJUnitClasses() 92 s.filter( in getJUnitClasses() 101 s = in getJUnitClasses() 102 s.filter( in getJUnitClasses() 110 s.map(je -> HostUtils.getClassName(je.getName())) in getJUnitClasses() 236 .noneMatch(s -> s.contains("Suppress")); in hasJUnitAnnotation()
|