/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | PackageFilterTest.kt | 27 assertThat(filter.matches("foo.bar")).isTrue() in testExact() 28 assertThat(filter.matches("bar.baz")).isTrue() in testExact() 29 assertThat(filter.matches("foo.bar.baz")).isFalse() in testExact() 30 assertThat(filter.matches("foo")).isFalse() in testExact() 31 assertThat(filter.matches("foo.barf")).isFalse() in testExact() 38 assertThat(filter.matches("foo.bar")).isTrue() in testWildcard() 39 assertThat(filter.matches("foo.bars")).isTrue() in testWildcard() 40 assertThat(filter.matches("foo.bar.baz")).isTrue() in testWildcard() 41 assertThat(filter.matches("bar.baz")).isTrue() // different from doclava behavior in testWildcard() 42 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 | 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 | 175 if ((match = matches(START_SERVICE, line)) != null) { in parseServiceInfo() 182 } else if ((match = matches(EXIT_SERVICE, line)) != null) { in parseServiceInfo() 206 if ((match = matches(START_STAGE, line)) != null) { in parseStageInfo() 214 if((match = matches(UEVENTD_STAGE_INFO, line)) != null) { in parseStageInfo() 222 if((match = matches(WAIT_FOR_PROPERTY_INFO, line)) != null) { in parseStageInfo() 245 if ((match = matches(START_PROCESSING_ACTION, line)) != null in parseActionInfo() 246 || (match = matches(START_PROCESSING_ACTION_LEGACY, line)) != null) { in parseActionInfo() 263 private static Matcher matches(Pattern pattern, String line) { in matches() method in DmesgParser 265 return ret.matches() ? ret : null; in matches()
|
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 | 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()
|
D | WakelockParser.java | 66 if (m.matches() && !line.contains("PowerManagerService.WakeLocks")) { in parse() 73 if (m.matches()) { in parse() 90 if (!m.matches()) { in parseKernelWakeLock() 114 if (!m.matches()) { in parsePartialWakeLock()
|
D | EventsLogParser.java | 77 if ((match = matches(SYSUI_TRANSITION_INFO_PATTERN, line)) != null) { in parseTransitionDelayInfo() 135 if (((match = matches(ACTION_LATENCY, line))) != null) { in parseLatencyInfo() 151 private static Matcher matches(Pattern pattern, String line) { in matches() method in EventsLogParser 153 return ret.matches() ? ret : null; in matches()
|
D | MemoryHealthParser.java | 77 } else if (COUNT_PATTERN.matcher(line).matches()) { in parse() 81 } else if (METRIC_PATTERN.matcher(line).matches()) { in parse() 83 m.matches(); in parse() 90 } else if (PROCESS_PATTERN.matcher(line).matches()) { in parse()
|
D | DumpsysWifiStatsParser.java | 63 if(m.matches()) { in parse() 68 if (m.matches()) { in parse() 73 if (m.matches()) { in parse()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParserTest.java | 70 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 71 assertFalse(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 73 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.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 assertFalse(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 82 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 84 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() 86 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; 167 matches( in testNonEmptyMetricReportList() 192 matches( in testEmptyMetricReportList() 215 matches( in testMultipleReportsInReportList_differentAtoms() 243 matches( in testMultipleReportsInReportList_sameAtom() 268 matches( in testInvalidDumpedReportThrows()
|
/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/test/connectivity/acts/tests/google/usb/ |
D | UsbTetheringThroughputTest.py | 98 matches = re.findall('inet addr:(\d+.\d+.42.\d+)', check_usb_tethering) 99 if not matches: 103 return matches[0] 116 matches = re.findall('addr:(\d+.\d+.42.\d+)', check_usb_tethering) 117 if not matches: 121 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() 117 public boolean matches(IManagedTestDevice element) { in find() 170 if (m.matches(d)) { 186 if (m.matches(d)) {
|
/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/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/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | ShardHelperTest.java | 145 public boolean matches(IConfiguration argument) { in testSplitWithShardCount() 171 public boolean matches(IConfiguration argument) { in testSplit_noShardCount() 205 public boolean matches(IConfiguration argument) { in testSplitWithShardCount_notEnoughTest() 248 public boolean matches(IConfiguration argument) { in testCloneStatusChecker() 295 public boolean matches(IConfiguration argument) { in testCloneMetricCollector() 369 public boolean matches(IConfiguration argument) { in testClone_withKeystore() 462 public boolean matches(IConfiguration argument) { in testSplitWithTokens()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParser.java | 338 return mCurrentMatcher.matches(); in lineMatchesPattern() 362 if (PATTERN_TEST_SUCCESS.matcher(mCurrentTestStatus).matches()) { in reportNonFailureTestResult() 364 } else if (PATTERN_TEST_SKIPPED.matcher(mCurrentTestStatus).matches()) { in reportNonFailureTestResult() 366 } else if (PATTERN_TEST_UNEXPECTED_SUCCESS.matcher(mCurrentTestStatus).matches()) { in reportNonFailureTestResult() 368 } else if (PATTERN_TEST_FAILURE.matcher(mCurrentTestStatus).matches()) { in reportNonFailureTestResult()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | PackageFilter.kt | 36 fun matches(qualifiedName: String): Boolean { in matches() method 71 fun matches(packageItem: PackageItem): Boolean { in matches() method in com.android.tools.metalava.PackageFilter 72 return matches(packageItem.qualifiedName()) in matches()
|