/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | PackageFilterTest.kt | 26 assertThat(filter.matches("foo.bar")).isTrue() in testExact() 27 assertThat(filter.matches("bar.baz")).isTrue() in testExact() 28 assertThat(filter.matches("foo.bar.baz")).isFalse() in testExact() 29 assertThat(filter.matches("foo")).isFalse() in testExact() 30 assertThat(filter.matches("foo.barf")).isFalse() in testExact() 36 assertThat(filter.matches("foo.bar")).isTrue() in testWildcard() 37 assertThat(filter.matches("foo.bars")).isTrue() in testWildcard() 38 assertThat(filter.matches("foo.bar.baz")).isTrue() in testWildcard() 39 assertThat(filter.matches("bar.baz")).isTrue() // different from doclava behavior in testWildcard() 40 assertThat(filter.matches("bar.bazz")).isFalse() in testWildcard() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceSelectionOptionsTest.java | 107 assertTrue(options.matches(device)); in testGetSerials_envVariable_nullDevice() 117 assertTrue(options.matches(device)); in testGetSerials_envVariable_FastbootDevice() 127 assertFalse(options.matches(device)); in testGetSerials_envVariable_FastbootDevice_noMatch() 224 assertFalse(mDeviceSelection.matches(mMockDevice)); 238 assertTrue(mDeviceSelection.matches(mMockDevice)); 256 assertTrue(mDeviceSelection.matches(mMockDevice)); 267 assertTrue(mDeviceSelection.matches(mMockDevice)); 277 assertFalse(mDeviceSelection.matches(mMockDevice)); 290 assertTrue(mDeviceSelection.matches(mMockDevice)); 303 assertFalse(mDeviceSelection.matches(mMockDevice)); [all …]
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | MonkeyLogParser.java | 139 if (!m.matches()) { in parseLine() 155 if (m.matches()) { in parseLine() 165 if (!m.matches() && line.startsWith("// ") && !line.startsWith("// ** ")) { in parseLine() 175 if (m.matches()) { in parseLine() 189 if (!m.matches()) { in parseLine() 197 if (m.matches()) { in parseLine() 201 if (m.matches()) { in parseLine() 206 if (m.matches()) { in parseLine() 210 if (m.matches()) { in parseLine() 214 if (m.matches()) { in parseLine() [all …]
|
D | SmartMonkeyLogParser.java | 119 if (m.matches()) { in parseLine() 123 if (m.matches()) { in parseLine() 127 if (m.matches()) { in parseLine() 142 if (m.matches()) { in parseLine() 146 if (m.matches()) { in parseLine() 150 if (m.matches()) { in parseLine() 154 if (m.matches()) { in parseLine() 160 if (m.matches()) { in parseLine() 164 if (m.matches()) { in parseLine() 168 if (m.matches()) { in parseLine() [all …]
|
D | LogcatParser.java | 232 if (m.matches()) { in parseLine() 239 } else if (tm.matches()) { in parseLine() 256 Pattern.matches("Rebooting, reason: .*", msg)) { in parseLine() 259 if (Pattern.matches(".*--------- beginning of .*", line)) { in parseLine() 263 if (!mIsParsing || !(m.matches() || tm.matches())) { in parseLine() 270 if (pidMatcher.matches()) { in parseLine() 281 if (!mDataMap.containsKey(key) || AnrParser.START.matcher(msg).matches()) { in parseLine() 298 … if (!mDataMap.containsKey(key) || NativeCrashParser.FINGERPRINT.matcher(msg).matches()) { in parseLine() 355 if (m.matches()) { in commit() 362 if (m.matches()) { in commit() [all …]
|
D | AnrParser.java | 71 if (m.matches()) { in parse() 78 if (m.matches()) { in parse() 82 if (m.matches()) { in parse() 87 if (m.matches()) { in parse() 94 if (!matchedTotal && m.matches()) { in parse() 99 Double usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse() 103 usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse() 107 usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse()
|
D | DmesgParser.java | 168 if ((match = matches(START_SERVICE, line)) != null) { in parseServiceInfo() 175 } else if ((match = matches(EXIT_SERVICE, line)) != null) { in parseServiceInfo() 199 if ((match = matches(START_STAGE, line)) != null) { in parseStageInfo() 207 if((match = matches(UEVENTD_STAGE_INFO, line)) != null) { in parseStageInfo() 215 if((match = matches(WAIT_FOR_PROPERTY_INFO, line)) != null) { in parseStageInfo() 237 if ((match = matches(START_PROCESSING_ACTION, line)) != null) { in parseActionInfo() 257 private static Matcher matches(Pattern pattern, String line) { in matches() method in DmesgParser 259 return ret.matches() ? ret : null; in matches()
|
D | GfxInfoParser.java | 75 if (m.matches() && m.groupCount() == 2) { in parse() 88 if (totalFrames == null && m.matches()) { in parse() 93 if (jankyFrames == null && m.matches()) { in parse() 98 if (percentile90 == null && m.matches()) { in parse() 103 if (percentile95 == null && m.matches()) { in parse() 108 if (percentile99 == null && m.matches()) { in parse()
|
D | JavaCrashParser.java | 77 if (exceptionMatch.matches()) { in parse() 90 if (causedByMatch.matches()) { in parse() 97 if (atMatch.matches()) { in parse() 102 if (!causedByMatch.matches() && !atMatch.matches()) { in parse()
|
D | CompactMemInfoParser.java | 56 if (m.matches()) { in parse() 75 if (m.matches()) { in parse() 86 if (m.matches()) { in parse() 96 if (m.matches()) { in parse() 107 if (m.matches()) { in parse()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParserTest.java | 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() 75 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 77 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 79 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 81 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 83 assertFalse(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 84 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 86 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() 88 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/statsd/ |
D | ConfigUtilTest.java | 23 import static org.mockito.ArgumentMatchers.matches; 70 when(mTestDevice.executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER))) in testPushDeviceConfig() 83 verify(mTestDevice, times(1)).executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER)); in testPushDeviceConfig() 84 verify(mTestDevice, times(1)).deleteFile(matches(REMOTE_PATH_MATCHER)); in testPushDeviceConfig() 94 when(mTestDevice.executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER))) in testPushInvalidDeviceConfig() 120 when(mTestDevice.executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER))) in testPushBinaryDeviceConfig() 126 verify(mTestDevice, times(1)).executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER)); in testPushBinaryDeviceConfig() 127 verify(mTestDevice, times(1)).deleteFile(matches(REMOTE_PATH_MATCHER)); in testPushBinaryDeviceConfig()
|
D | MetricUtilTest.java | 23 import static org.mockito.Mockito.matches; 171 matches( in testNonEmptyMetricReportList() 199 matches( in testEmptyMetricReportList() 225 matches( in testMultipleReportsInReportList_differentAtoms() 256 matches( in testMultipleReportsInReportList_sameAtom() 284 matches( in testInvalidDumpedReportThrows() 306 matches( in testLegacyDumpReportCmd()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | HermeticLaunchTest.java | 385 if ((match = matches(LAUNCH_ENTRY, line)) != null) { in analyzeLogCatData() 387 if ((match = matches(pattern, line)) != null) { in analyzeLogCatData() 554 if ((match = matches(ATRACE_HEADER_ENTRIES, line)) != null) { in parseAtraceInfoFile() 563 } else if ((match = matches(TRACE_ENTRY1, line)) != null in parseAtraceInfoFile() 564 || (match = matches(TRACE_ENTRY2, line)) != null) { in parseAtraceInfoFile() 580 if ((match = matches(ATRACE_BEGIN, function)) != null) { in parseAtraceInfoFile() 585 } else if ((match = matches(ATRACE_END, function)) != null) { in parseAtraceInfoFile() 614 } else if ((match = matches(ATRACE_COUNTER, function)) != null) { in parseAtraceInfoFile() 700 private static Matcher matches(Pattern pattern, String line) { in matches() method in HermeticLaunchTest 702 return ret.matches() ? ret : null; in matches()
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | TraceFormatParserTest.java | 70 Assert.assertTrue(m.matches()); in testParseFormatLine() 86 Assert.assertTrue(m.matches()); in testNoParameters() 142 Assert.assertTrue(m.matches()); in testQuoteInParams() 170 Assert.assertTrue(m.matches()); in testCaseConvertParameterName() 182 Assert.assertTrue(m.matches()); in testMatchInt() 195 Assert.assertTrue(m.matches()); in testMatchFloat() 209 Assert.assertTrue(m.matches()); in testMatchHex() 223 Assert.assertTrue(m.matches()); in testMatchString()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ApiLint.kt | 520 if (!constantNamePattern.matches(name)) { in <lambda>() 614 if (!onCallbackNamePattern.matches(methodName)) { in <lambda>() 998 if (!fieldNamePattern.matches(field.name())) { in <lambda>() 1003 if (internalNamePattern.matches(field.name())) { in <lambda>() 1007 if (constantNamePattern.matches(field.name())) { in <lambda>() 1299 if (!onCallbackNamePattern.matches(name)) { in <lambda>() 2339 if (name.startsWith("on") && onCallbackNamePattern.matches(name)) { in <lambda>() 2522 if (!configFieldPattern.matches(name)) { in <lambda>() 2530 if (!resourceFileFieldPattern.matches(name)) { in <lambda>() 2548 if (name.startsWith("config_") && configFieldPattern.matches(name)) { in <lambda>() [all …]
|
D | AnnotationFilter.kt | 10 fun matches(annotation: AnnotationItem): Boolean in <lambda>() method 12 fun matches(annotationSource: String): Boolean in <lambda>() method 41 override fun matches(annotationSource: String): Boolean { in matches() method in com.android.tools.metalava.MutableAnnotationFilter 44 return matches(wrapper) in matches() 47 override fun matches(annotation: AnnotationItem): Boolean { in matches() method in com.android.tools.metalava.MutableAnnotationFilter 52 return matches(wrapper) in matches() 55 private fun matches(annotation: AnnotationFilterEntry): Boolean { in matches() method
|
D | ApiAnalyzer.kt | 426 if (method.matches(superMethod)) { in <lambda>() 447 if (method.matches(inheritedMethod)) { in <lambda>() 494 if (method.matches(inheritedMethod)) { in <lambda>() 667 options.showAnnotations.matches(it) in <lambda>() 671 options.showSingleAnnotations.matches(it) in <lambda>() 772 options.showAnnotations.matches(ANDROID_SYSTEM_API) && options.manifest != null in <lambda>() 801 options.showAnnotations.matches(annotation) in <lambda>()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | ShardHelperTest.java | 146 public boolean matches(IConfiguration argument) { in testSplitWithShardCount() 172 public boolean matches(IConfiguration argument) { in testSplit_noShardCount() 206 public boolean matches(IConfiguration argument) { in testSplitWithShardCount_notEnoughTest() 249 public boolean matches(IConfiguration argument) { in testCloneStatusChecker() 296 public boolean matches(IConfiguration argument) { in testCloneMetricCollector() 370 public boolean matches(IConfiguration argument) { in testClone_withKeystore() 409 public boolean matches(IConfiguration argument) { in testSplitWithTokens()
|
/tools/test/connectivity/acts_tests/tests/google/usb/ |
D | UsbTetheringThroughputTest.py | 102 matches = re.findall('inet (\d+.\d+.42.\d+)', check_usb_tethering) 103 if not matches: 107 return matches[0] 120 matches = re.findall('addr:(\d+.\d+.42.\d+)', check_usb_tethering) 121 if not matches: 125 return matches[0]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ManagedDeviceList.java | 56 public boolean matches(IManagedTestDevice element) { in matches() method in ManagedDeviceList.AllocationMatcher 57 if (mDeviceSelectionMatcher.matches(element.getIDevice())) { in matches() 121 public boolean matches(IManagedTestDevice element) { in find() 180 if (m.matches(d)) { 196 if (m.matches(d)) {
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | IncidentReportCollectorTest.java | 21 import static org.mockito.ArgumentMatchers.matches; 136 matches(".*incident.*"), in testPullWithIncidentPrefix() 141 matches(".*-processed"), in testPullWithIncidentPrefix() 175 verify(mInvocationListener).testLog(matches(".*incident.*"), any(), any()); in testIgnoreAndLogFailures() 177 verify(mInvocationListener, never()).testLog(matches(".*processed.*"), any(), any()); in testIgnoreAndLogFailures()
|
/tools/test/connectivity/acts/framework/acts/ |
D | test_runner.py | 232 matches = fnmatch.filter(self.test_classes.keys(), test_cls_name) 233 if not matches: 241 if matches != [test_cls_name]: 243 test_cls_name, matches) 245 for test_cls_name_match in matches:
|
D | base_test.py | 777 matches = [] 781 and valid_test not in matches): 782 matches.append(valid_test) 784 matches = valid_tests 785 self.results.requested = matches 788 tests = self._get_test_methods(matches)
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParser.java | 388 return mCurrentMatcher.matches(); in lineMatchesPattern() 421 } else if (PATTERN_TEST_SUCCESS.matcher(mCurrentTestStatus).matches()) { in reportNonFailureTestResult() 423 } else if (PATTERN_TEST_SKIPPED.matcher(mCurrentTestStatus).matches()) { in reportNonFailureTestResult() 425 } else if (PATTERN_TEST_UNEXPECTED_SUCCESS.matcher(mCurrentTestStatus).matches()) { in reportNonFailureTestResult() 427 } else if (PATTERN_TEST_FAILURE.matcher(mCurrentTestStatus).matches()) { in reportNonFailureTestResult()
|