/tools/metalava/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 …]
|
D | AnnotationFilterTest.kt | 213 assertEquals(params.expectedMatchesSimple, filter.matches("test.pkg.Annotation")) in Test match simple annotation no parentheses() 220 assertEquals(params.expectedMatchesSimple, filter.matches("test.pkg.Annotation()")) in Test match simple annotation, parentheses but no arguments() 229 filter.matches("""test.pkg.Annotation("value")""") in Test match annotation, implicit property name() 239 filter.matches("""test.pkg.Annotation(value = "value")""") in Test match annotation, value property() 249 filter.matches("""test.pkg.Annotation(other = "other")""") in Test match annotation, other property() 254 fun `Test matches annotation name`() { in Test matches annotation name()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | DeviceSelectionOptionsTest.java | 114 assertTrue(options.matches(device)); in testGetSerials_envVariable_nullDevice() 124 assertTrue(options.matches(device)); in testGetSerials_envVariable_FastbootDevice() 134 assertFalse(options.matches(device)); in testGetSerials_envVariable_FastbootDevice_noMatch() 227 assertFalse(mDeviceSelection.matches(mMockDevice)); 241 assertTrue(mDeviceSelection.matches(mMockDevice)); 259 assertTrue(mDeviceSelection.matches(mMockDevice)); 269 assertTrue(mDeviceSelection.matches(mMockDevice)); 279 assertFalse(mDeviceSelection.matches(mMockDevice)); 291 assertTrue(mDeviceSelection.matches(mMockDevice)); 303 assertFalse(mDeviceSelection.matches(mMockDevice)); [all …]
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
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 | DmesgParser.java | 212 if ((match = matches(START_SERVICE, line)) != null) { in parseServiceInfo() 219 } else if ((match = matches(EXIT_SERVICE, line)) != null) { in parseServiceInfo() 242 if ((match = matches(START_STAGE, line)) != null) { in parseStageInfo() 250 if((match = matches(UEVENTD_STAGE_INFO, line)) != null) { in parseStageInfo() 258 if((match = matches(WAIT_FOR_PROPERTY_INFO, line)) != null) { in parseStageInfo() 266 if ((match = matches(MOUNT_STAGE_INFO, line)) != null) { in parseStageInfo() 295 if ((match = matches(START_PROCESSING_ACTION, line)) != null) { in parseActionInfo() 320 if ((match = matches(MODULES_INFO, line)) != null) { in parseModuleInfo() 329 if ((match = matches(MODULE_LOADING, line)) != null) { in parseModuleInfo() 335 } else if ((match = matches(MODULE_LOADED, line)) != null) { in parseModuleInfo() [all …]
|
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 | LogcatParser.java | 235 if (m.matches()) { in parseLine() 242 } else if (tm.matches()) { in parseLine() 259 Pattern.matches("Rebooting, reason: .*", msg)) { in parseLine() 262 if (Pattern.matches(".*--------- beginning of .*", line)) { in parseLine() 266 if (!mIsParsing || !(m.matches() || tm.matches())) { in parseLine() 273 if (pidMatcher.matches()) { in parseLine() 284 if (!mDataMap.containsKey(key) || AnrParser.START.matcher(msg).matches()) { in parseLine() 301 … if (!mDataMap.containsKey(key) || NativeCrashParser.FINGERPRINT.matcher(msg).matches()) { in parseLine() 358 if (m.matches()) { in commit() 365 if (m.matches()) { in commit() [all …]
|
D | DumpsysWifiStatsParser.java | 63 if(m.matches()) { in parse() 68 if (m.matches()) { in parse() 73 if (m.matches()) { in parse()
|
D | EventsLogParser.java | 96 if ((match = matches(SYSUI_TRANSITION_INFO_PATTERN, line)) != null) { in parseTransitionDelayInfo() 154 if ((match = matches(ACTION_LATENCY, line)) != null) { in parseLatencyInfo() 176 if ((match = matches(BOOT_DURATION, line)) != null in parseBootEventInfo() 177 || (match = matches(STOPANIM_DURATION, line)) != null) { in parseBootEventInfo() 193 private static Matcher matches(Pattern pattern, String line) { in matches() method in EventsLogParser 195 return ret.matches() ? ret : null; in matches()
|
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 | 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 | ProcrankParser.java | 62 if (endMatcher.matches()) { in parse() 67 if (m.matches()) { in parse() 75 if (m.matches()) { in parse()
|
D | ProcessUsageParser.java | 62 if (m.matches()) { in parse() 72 if (m.matches()) { in parse() 83 if (m.matches()) { in parse()
|
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()
|
/tools/tradefederation/core/javatests/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/javatests/com/android/tradefed/testtype/rust/ |
D | RustTestResultParserTest.java | 87 assertTrue(s, RustTestResultParser.RUST_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 90 assertFalse(s, RustTestResultParser.RUST_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 109 assertTrue(s, RustTestResultParser.COMPLETE_PATTERN.matcher(s).matches()); in testRegexRunSummary() 112 assertFalse(s, RustTestResultParser.COMPLETE_PATTERN.matcher(s).matches()); in testRegexRunSummary() 125 assertTrue(s, RustTestResultParser.RUNNING_PATTERN.matcher(s).matches()); in testRegexRunning() 128 assertFalse(s, RustTestResultParser.RUNNING_PATTERN.matcher(s).matches()); in testRegexRunning() 143 assertTrue(s, RustTestResultParser.TEST_FAIL_PATTERN.matcher(s).matches()); in testRegexTestFail() 146 assertFalse(s, RustTestResultParser.TEST_FAIL_PATTERN.matcher(s).matches()); in testRegexTestFail() 159 assertTrue(s, RustTestResultParser.FAILURES_PATTERN.matcher(s).matches()); in testRegexFailures() 162 assertFalse(s, RustTestResultParser.FAILURES_PATTERN.matcher(s).matches()); in testRegexFailures()
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/ |
D | AnnotationFilter.kt | 29 fun matches(annotation: AnnotationItem): Boolean in <lambda>() method 31 fun matches(annotationSource: String): Boolean in <lambda>() method 118 override fun matches(annotationSource: String): Boolean { in matches() method in com.android.tools.metalava.ImmutableAnnotationFilter 120 return matches(wrapper) in matches() 123 override fun matches(annotation: AnnotationItem): Boolean { in matches() method in com.android.tools.metalava.ImmutableAnnotationFilter 132 return matches(wrapper) in matches() 135 private fun matches(annotation: AnnotationFilterEntry): Boolean { in matches() method
|
D | PackageFilter.kt | 31 fun matches(qualifiedName: String): Boolean { in matches() method in com.android.tools.metalava.PackageFilter 69 fun matches(packageItem: PackageItem): Boolean { in matches() method 70 return matches(packageItem.qualifiedName()) in matches()
|
/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() 68 if (matcher.matches()) { in extract() 75 if (matcher.matches()) { in extract()
|
/tools/loganalysis/javatests/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/javatests/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParserTest.java | 71 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 72 assertFalse(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 74 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 76 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 78 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 80 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 82 assertFalse(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 83 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 85 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() 87 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() [all …]
|
/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]
|