/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | MemLeaksHelperTest.java | 21 import static org.mockito.ArgumentMatchers.matches; 138 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testGetMetricsNoIncrease() 143 matches(String.format(mMemLeaksHelper.DUMPSYS_MEMIFNO_CMD, 25905))); in testGetMetricsNoIncrease() 312 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testGetMetricsHasIncrease() 317 matches(String.format(mMemLeaksHelper.DUMPSYS_MEMIFNO_CMD, 25905))); in testGetMetricsHasIncrease() 412 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testNoUnreachableMemory() 416 matches(String.format(mMemLeaksHelper.DUMPSYS_MEMIFNO_CMD, 31966))); in testNoUnreachableMemory() 477 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testNoProcessName() 481 matches(String.format(mMemLeaksHelper.DUMPSYS_MEMIFNO_CMD, 31966))); in testNoProcessName() 532 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testEnclosedProcessName() [all …]
|
D | ShowmapSnapshotHelperTest.java | 25 import static org.mockito.ArgumentMatchers.matches; 406 .executeShellCommand(matches(mShowmapSnapshotHelper.THREADS_CMD)); in testCountThreads() 424 .executeShellCommand(matches(mShowmapSnapshotHelper.THREADS_CMD)); in testNoCountThreads()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | BatteryUsageStatsHelperTest.java | 76 .matches(); in testBatteryUsageStatsMetrics() 81 .matches(); in testBatteryUsageStatsMetrics() 86 .matches(); in testBatteryUsageStatsMetrics() 89 || Pattern.compile("duration-by.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics() 92 || Pattern.compile("time-in-fg.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics() 95 || Pattern.compile("time-in-bg.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics() 126 if (total.matcher(entry.getKey()).matches()) { in testTotalConsumptionIsSumOfPerPackageConsumption() 128 } else if (partial.matcher(entry.getKey()).matches()) { in testTotalConsumptionIsSumOfPerPackageConsumption() 152 if (total.matcher(entry.getKey()).matches()) { in testTotalDurationIsSumOfPerPackageDurations() 154 } else if (partial.matcher(entry.getKey()).matches()) { in testTotalDurationIsSumOfPerPackageDurations()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | IncidentReportListenerTest.java | 24 import static org.mockito.ArgumentMatchers.matches; 84 .executeCommandBlocking(matches("rm -rf .*")); in testCreateDirectoryAtStart() 96 .executeCommandBlocking(matches("incident -b -p .*")); in testCollectFullReportAtEnd() 98 .executeCommandBlocking(matches("rm -rf .*")); in testCollectFullReportAtEnd() 112 .executeCommandBlocking(matches("incident -b -p .*")); in testFailCollectIfNoDestinationDirectory() 138 .executeCommandBlocking(matches("incident -b -p .*")); in testCollectEmptyReportFails() 140 .executeCommandBlocking(matches("rm -rf .*")); in testCollectEmptyReportFails() 155 .executeCommandBlocking(matches("incident -b -p .*")); in testReportMetricsAsData() 157 .executeCommandBlocking(matches("rm -rf .*")); in testReportMetricsAsData()
|
D | ScreenRecordCollectorTest.java | 26 import static org.mockito.ArgumentMatchers.matches; 127 verify(mDevice, times(i)).executeShellCommand(matches("screenrecord .*video.mp4")); in testScreenRecord() 131 matches(String.format("screenrecord .*video%d.mp4", r))); in testScreenRecord() 142 verify(mDevice, times(i)).executeShellCommand(matches("kill -2 1234")); in testScreenRecord() 196 .executeShellCommand(matches("^.*[^1]-video.*.mp4$")); in testScreenRecord_multipleTests() 224 verify(mDevice).executeShellCommand(matches("screenrecord --size=1080x720 .*video.mp4")); in testScreenRecord_qualityHigh() 240 verify(mDevice).executeShellCommand(matches("screenrecord --size=540x360 .*video.mp4")); in testScreenRecord_qualityMedium() 256 verify(mDevice).executeShellCommand(matches("screenrecord --size=135x90 .*video.mp4")); in testScreenRecord_qualityLow() 271 verify(mDevice, never()).executeShellCommand(matches("screenrecord.*size.*video.mp4")); in testScreenRecord_qualityUnknown() 273 .executeShellCommand(not(matches("screenrecord .*video.mp4"))); in testScreenRecord_qualityUnknown() [all …]
|
D | LogcatCollectorTest.java | 352 if (line.matches(message1Regex)) { in testRetrievingLogcat() 355 if (line.matches(message2Regex)) { in testRetrievingLogcat() 358 if (line.matches(message3Regex)) { in testRetrievingLogcat() 423 if (line.matches("^-+\\s+beginning of.*$")) { in testLogcatTimespan() 435 assertTrue(firstLine.matches(logcatLineRegex)); in testLogcatTimespan() 436 assertTrue(lastLine.matches(logcatLineRegex)); in testLogcatTimespan()
|
D | ScreenshotOnFailureCollectorTest.java | 23 import static org.mockito.ArgumentMatchers.matches; 241 screenshotSaveVerifier.verify(mListener).takeScreenshot(matches("^.*[^1].png$")); in testSavesIterations() 252 xmlSaveVerifier.verify(mListener).takeScreenshot(matches("^.*[^1]$")); in testSavesIterations()
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/ |
D | AlmostPerfectMatcher.kt | 65 val matches = different <= threshold in <lambda>() constant 69 if (matches) { in <lambda>() 82 return MatchResult(matches = matches, diff = diffBmp, comparisonStatistics = stats) in <lambda>() 117 val matches = different <= threshold in <lambda>() constant 121 if (matches) { in <lambda>() 134 return MatchResult(matches = matches, diff = diffBmp, comparisonStatistics = stats) in <lambda>()
|
D | BitmapMatcher.kt | 98 MatchResult(matches = false, diff = diff, comparisonStatistics = stats) in <lambda>() 100 MatchResult(matches = true, diff = null, comparisonStatistics = stats) in <lambda>() 137 val matches: Boolean, constant in platform.test.screenshot.matchers.MatchResult
|
D | PixelPerfectMatcher.kt | 62 MatchResult(matches = false, diff = diff, comparisonStatistics = stats) in <lambda>() 64 MatchResult(matches = true, diff = null, comparisonStatistics = stats) in <lambda>()
|
D | HumanEyeMatcher.kt | 213 MatchResult(matches = false, diff = diff, comparisonStatistics = stats) in <lambda>() 215 MatchResult(matches = true, diff = null, comparisonStatistics = stats) in <lambda>()
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/ |
D | PixelPerfectMatcherTest.kt | 46 assertThat(result.matches).isTrue() in performDiff_sameBitmaps() 64 assertThat(result.matches).isFalse() in performDiff_sameSize_partialCompare_topLeftOutOfBoundaries_diff() 82 assertThat(result.matches).isFalse() in performDiff_sameSize_partialCompare_topLeft_diffBoundaries() 100 assertThat(result.matches).isFalse() in performDiff_sameSize_partialCompare_bottomRight() 121 assertThat(result.matches).isFalse() in performDiff_sameSize_partialCompare_bottomRightOutOfBoundaries_diff() 138 assertThat(result.matches).isFalse() in performDiff_sameSize_differentBorders() 156 assertThat(result.matches).isTrue() in performDiff_sameSize_differentBorders_partialCompare() 176 assertThat(result.matches).isFalse() in performDiff_sameSize_partialCompare_checkDiffImage()
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/ |
D | AlmostPerfectMatcherTest.kt | 43 assertThat(result.matches).isTrue() in diffColor_exactMatch() 61 assertThat(result.matches).isTrue() in diffColor_almostMatchLowRed() 79 assertThat(result.matches).isTrue() in diffColor_almostMatchHighRed() 97 assertThat(result.matches).isFalse() in diffColor_notMatch() 115 assertThat(result.matches).isTrue() in performDiff_sameBitmaps() 135 assertThat(result.matches).isFalse() in performDiff_sameSize_partialCompare_checkDiffImage()
|
/platform_testing/libraries/collectors-helper/power/test/src/com/android/helpers/ |
D | PwrStatsUtilHelperTest.java | 21 import static org.mockito.ArgumentMatchers.matches; 57 doReturn(metric_output).when(mHelper).executeShellCommand(matches("kill -INT \\d+")); in successfulRun() 58 doReturn(pid_output).when(mHelper).executeShellCommand(matches("pwrstats_util -d .*")); in successfulRun()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | Transition.kt | 91 val matches = in getStartTransaction() constant 96 require(matches.size <= 1) { in getStartTransaction() 99 return matches.firstOrNull() in getStartTransaction() 103 val matches = in getFinishTransaction() constant 108 require(matches.size <= 1) { in getFinishTransaction() 111 return matches.firstOrNull() in getFinishTransaction()
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | ProcLoadHelper.java | 111 if ((match = matches(LOAD_OUTPUT_PATTERN, output.trim())) != null) { in getProcLoadInLastMinute() 139 private static Matcher matches(Pattern pattern, String line) { in matches() method in ProcLoadHelper 141 return ret.matches() ? ret : null; in matches()
|
D | TimingHelper.java | 101 if (!durationPattern.matcher(info[1]).matches()) { in parseTimingInfo()
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | BinderCollectionHelper.java | 144 if (TRACE_FOR_PROCESS_PATTERN.matcher(line).matches()) { in getNextCounter() 147 if (COUNT_PATTERN.matcher(line).matches()) { in getNextCounter() 160 if (TRACE_FOR_PROCESS_PATTERN.matcher(line).matches()) { in parseMetrics()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | FreeMemHelper.java | 130 if ((match = matches(PID_PATTERN, process)) != null) { in getMetrics() 175 private static Matcher matches(Pattern pattern, String line) { in matches() method in FreeMemHelper 177 return ret.matches() ? ret : null; in matches() 196 && (match = matches(CACHE_PROC_START_PATTERN, currLine)) == null) { in getCachedProcesses()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | BackupUtils.java | 349 if (output.matches(MATCH_LINE_BACKUP_MANAGER_IS_NOT_PENDING_INIT)) { in waitForBackupInitialization() 371 if (output.matches(MATCH_LINE_BACKUP_MANAGER_IS_NOT_PENDING_INIT)) { in waitForNonGmsTransportInitialization() 374 if (output.matches(MATCH_LINE_ONLY_GMS_BACKUP_TRANSPORT_PENDING_INIT)) { in waitForNonGmsTransportInitialization() 400 return output.matches( in waitUntilBackupServiceIsRunning()
|
D | CrashUtils.java | 220 if (p.matcher(input).matches()) { in matchesAny() 286 if (backtraceNoteMatcher.matches()) { in addAllCrashes() 296 if (backtraceFrameWithBuildIdMatcher.matches()) { in addAllCrashes() 299 } else if (backtraceFrameWithoutBuildIdMatcher.matches()) { in addAllCrashes()
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/ |
D | ScreenshotTestRule.kt | 171 if (!goldenIdentifier.matches("^[A-Za-z0-9_-]+$".toRegex())) { in <lambda>() 235 if (comparisonResult.matches) { in <lambda>() 241 if (!comparisonResult.matches) { in <lambda>()
|
/platform_testing/tests/automotive/functional/settings/src/android/platform/tests/ |
D | DateTimeSettingTest.java | 79 assertTrue(mDateTimeSettingsHelper.get().getTime().matches(FULL_TIME_TWELVE_REGEX)); in testSetTimeTwelveHourFormat()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | ThermalHelper.java | 75 if (severityMatcher.matches()) { in startCollecting() 138 if (inCurrentTempSection && temperatureMatcher.matches()) { in updateTemperatureMetrics()
|
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/util/ |
D | TombstoneParser.java | 804 int matches = 0; in matchLines() local 805 while (lines.hasNext() && (times < 0 || matches < times)) { in matchLines() 808 if (m.matches()) { in matchLines() 809 matches++; in matchLines() 815 return matches; in matchLines()
|