/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 | 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 | 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 | 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 | DumpsysWifiStatsParser.java | 63 if(m.matches()) { in parse() 68 if (m.matches()) { in parse() 73 if (m.matches()) { in parse()
|
D | TracesParser.java | 62 if (m.matches()) { in parse() 66 if (m.matches()) { in parse() 70 if (m.matches()) { in parse()
|
D | DumpsysPackageStatsParser.java | 51 if (m.matches()) { in parse() 58 if (m.matches()) { in parse() 63 if (m.matches()) { in parse()
|
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 | 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 | ProcessUsageParser.java | 62 if (m.matches()) { in parse() 72 if (m.matches()) { in parse() 83 if (m.matches()) { in parse()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
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 in com.android.tools.metalava.MutableAnnotationFilter
|
D | PackageFilter.kt | 34 fun matches(qualifiedName: String): Boolean { in matches() method 69 fun matches(packageItem: PackageItem): Boolean { in matches() method 70 return matches(packageItem.qualifiedName()) in matches()
|
/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()
|
/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/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/tradefederation/core/device_build_interfaces/com/android/tradefed/util/ |
D | KeyguardControllerState.java | 47 if (!matcher.matches()) { in create() 61 if (matcher.matches()) { in extract() 70 if (matcher.matches()) { in extract()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | IncidentReportCollectorTest.java | 21 import static org.mockito.ArgumentMatchers.matches; 142 matches(".*incident.*"), in testPullWithIncidentPrefix() 147 matches(".*-processed"), in testPullWithIncidentPrefix() 181 verify(mInvocationListener).testLog(matches(".*incident.*"), any(), any()); in testIgnoreAndLogFailures() 183 verify(mInvocationListener, never()).testLog(matches(".*processed.*"), any(), any()); in testIgnoreAndLogFailures() 204 matches(".*incident-on-test-run-end.*"), in testCollectOnTestRunEnd() 209 matches(".*incident-on-test-run-end.*-processed"), in testCollectOnTestRunEnd()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustTestResultParserTest.java | 70 assertTrue(s, RustTestResultParser.RUST_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 73 assertFalse(s, RustTestResultParser.RUST_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 92 assertTrue(s, RustTestResultParser.COMPLETE_PATTERN.matcher(s).matches()); in testRegexRunSummary() 95 assertFalse(s, RustTestResultParser.COMPLETE_PATTERN.matcher(s).matches()); in testRegexRunSummary()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | MediaTest.java | 34 assertTrue(m.matches()); in testVideoEditorPositiveOut() 41 assertTrue(m.matches()); in testVideoEditorNegativeOut()
|
/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)) {
|