Home
last modified time | relevance | path

Searched refs:contains (Results 1 – 25 of 197) sorted by relevance

12345678

/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayersTraceEntryTest.kt58 Truth.assertThat(msg).contains("ScreenDecorOverlay#0") in canParseVisibleLayersLauncher()
59 Truth.assertThat(msg).contains("ScreenDecorOverlayBottom#0") in canParseVisibleLayersLauncher()
60 Truth.assertThat(msg).contains("NavigationBar0#0") in canParseVisibleLayersLauncher()
61 Truth.assertThat(msg).contains("ImageWallpaper#0") in canParseVisibleLayersLauncher()
62 Truth.assertThat(msg).contains("StatusBar#0") in canParseVisibleLayersLauncher()
63 Truth.assertThat(msg).contains("NexusLauncherActivity#0") in canParseVisibleLayersLauncher()
76 Truth.assertThat(msg).contains("ScreenDecorOverlayBottom#0") in canParseVisibleLayersSplitScreen()
77 Truth.assertThat(msg).contains("ScreenDecorOverlay#0") in canParseVisibleLayersSplitScreen()
78 Truth.assertThat(msg).contains("NavigationBar0#0") in canParseVisibleLayersSplitScreen()
79 Truth.assertThat(msg).contains("StatusBar#0") in canParseVisibleLayersSplitScreen()
[all …]
DLayersTraceTest.kt77 .contains("SkRegion((346,1583,1094,2839))") in canTestLayerOccludedByAppLayerHasVisibleRegion()
87 .contains("SkRegion((346,1583,1094,2839))") in canTestLayerOccludedByAppLayerHasVisibleRegion()
106 .contains( in canTestLayerOccludedByAppLayerIsOccludedBySplashScreen()
126 Truth.assertThat(e).hasMessageThat().contains("No entry after") in getFirstEntryWithOnDisplay()
143 Truth.assertThat(e).hasMessageThat().contains("No entry before") in getLastEntryWithOnDisplay()
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/
DBugReportDurationHelperTest.java205 assertTrue(filtered.contains(dumpstateLine1)); in testExtractAndFilterBugReport()
206 assertTrue(filtered.contains(dumpstateLine2)); in testExtractAndFilterBugReport()
207 assertTrue(filtered.contains(dumpsysLine1)); in testExtractAndFilterBugReport()
208 assertTrue(filtered.contains(dumpsysLine2)); in testExtractAndFilterBugReport()
209 assertTrue(filtered.contains(validTimeoutLine)); in testExtractAndFilterBugReport()
210 assertFalse(filtered.contains(invalidLine)); in testExtractAndFilterBugReport()
211 assertFalse(filtered.contains(showmapLine)); in testExtractAndFilterBugReport()
212 assertFalse(filtered.contains(invalidTimeoutLine)); in testExtractAndFilterBugReport()
241 assertTrue(filtered.contains(sectionLine1)); in testExtractAndFilterDumpstateBoard()
242 assertTrue(filtered.contains(sectionLine2)); in testExtractAndFilterDumpstateBoard()
[all …]
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DAppStartupHelperTest.java133 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchMetricKey)); in testSingleColdLaunchMetric()
143 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchTransitionMetricKey)); in testSingleColdLaunchMetric()
152 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchProcessMetricKey)); in testSingleColdLaunchMetric()
166 assertTrue(appLaunchMetrics.keySet().contains(sourceEventDelayMetricKey)); in testSingleColdLaunchMetric()
190 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchMetricKey)); in testMultipleColdLaunchMetric()
201 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchProcessMetricKey)); in testMultipleColdLaunchMetric()
247 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchCalculatorMetricKey)); in testDifferentAppColdLaunchMetric()
248 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchClockMetricKey)); in testDifferentAppColdLaunchMetric()
267 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchTransCalMetricKey)); in testDifferentAppColdLaunchMetric()
268 assertTrue(appLaunchMetrics.keySet().contains(coldLaunchTransSetMetricKey)); in testDifferentAppColdLaunchMetric()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/
DEdgeExtensionComponentMatcher.kt39 if (it.name.contains("bbq-wrapper")) { in layerMatchesAnyOf()
44 return it.name.contains("Left Edge Extension") || in layerMatchesAnyOf()
45 it.name.contains("Right Edge Extension") in layerMatchesAnyOf()
DComponentName.kt83 if (result.contains("/") && !result.contains("#")) { in toLayerName()
114 if (name.contains("/")) { in toString()
115 if (name.contains("#")) { in toString()
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DBugReportDurationHelper.java116 public boolean contains(String s) { in contains() method in BugReportDurationHelper.BugReportDurationLines
117 return dumpstateLines.contains(s) in contains()
118 || dumpsysLines.contains(s) in contains()
119 || timeoutLines.contains(s); in contains()
147 public boolean contains(String s) { in contains() method in BugReportDurationHelper.DumpstateBoardLines
148 return sectionNameLines.contains(s) || durationLines.contains(s); in contains()
263 if (file.contains("bugreport") && file.endsWith("zip")) { in getLatestBugReport()
267 if (file.contains("wifi") || file.contains("telephony")) { in getLatestBugReport()
313 if (line.contains(DUMPSTATE_DURATION_FILTER) && !line.contains(SHOWMAP_FILTER)) { in extractAndFilterBugReport()
315 } else if (line.contains(DUMPSYS_DURATION_FILTER)) { in extractAndFilterBugReport()
[all …]
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DTracePointRuleTest.java40 assertThat(rule.getOperations()).contains("begin: mthd(clzz)"); in testNoNameGiven()
49 assertThat(rule.getOperations()).contains("begin: mthd(clzz)"); in testEmptyStringGiven()
58 assertThat(rule.getOperations()).contains("begin: FakeName"); in testTagGiven()
77 assertThat(rule.getOperations()).contains("begin: Name"); in testSectionNameMaxLength_withTag()
86 assertThat(rule.getOperations()).contains("begin: d(clzz)"); in testSectionNameMaxLength_withTestName()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/
DWindowManagerStateSubject.kt69 get() = subjects.filter { wmState.appWindows.contains(it.windowState) } in <lambda>()
72 get() = subjects.filter { wmState.nonAppWindows.contains(it.windowState) } in <lambda>()
75 get() = subjects.filter { wmState.aboveAppWindows.contains(it.windowState) } in <lambda>()
78 get() = subjects.filter { wmState.belowAppWindows.contains(it.windowState) } in <lambda>()
81 get() = subjects.filter { wmState.visibleWindows.contains(it.windowState) } in <lambda>()
84 get() = subjects.filter { wmState.visibleAppWindows.contains(it.windowState) } in <lambda>()
132 if (!wmState.contains(componentMatcher)) { in <lambda>()
144 if (!wmState.contains(componentMatcher)) { in <lambda>()
157 contains(aboveWindowComponentMatcher) in <lambda>()
158 contains(belowWindowComponentMatcher) in <lambda>()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/
DLegacyFlickerJUnit4ClassRunnerTest.kt86 .contains(NO_SCENARIO_MESSAGE) in <lambda>()
102 .contains(NO_SCENARIO_MESSAGE) in <lambda>()
141 argThat { description -> description.methodName.contains("flakyTest") } in <lambda>()
158 verify(notifier).fireTestStarted(argThat { it.methodName.contains("test") }) in <lambda>()
159 verify(notifier).fireTestFinished(argThat { it.methodName.contains("test") }) in <lambda>()
160 verify(notifier, atLeast(1)).fireTestStarted(argThat { it.methodName.contains("FaaS") }) in <lambda>()
161 verify(notifier, atLeast(1)).fireTestFinished(argThat { it.methodName.contains("FaaS") }) in <lambda>()
176 verify(notifier, atLeast(2)).fireTestStarted(argThat { it.methodName.contains("FaaS") }) in <lambda>()
178 .fireTestAssumptionFailed(argThat { it.description.methodName.contains("FaaS") }) in <lambda>()
179 verify(notifier, atLeast(2)).fireTestFinished(argThat { it.methodName.contains("FaaS") }) in <lambda>()
[all …]
DFlickerServiceJUnit4ClassRunnerTest.kt67 .fireTestStarted(ArgumentMatchers.argThat { it.methodName.contains("FaaS") }) in <lambda>()
70 ArgumentMatchers.argThat { it.description.methodName.contains("FaaS") } in <lambda>()
73 .fireTestFinished(ArgumentMatchers.argThat { it.methodName.contains("FaaS") }) in <lambda>()
86 .fireTestStarted(ArgumentMatchers.argThat { it.methodName.contains("FaaS") }) in <lambda>()
89 ArgumentMatchers.argThat { it.description.methodName.contains("FaaS") } in <lambda>()
92 .fireTestFinished(ArgumentMatchers.argThat { it.methodName.contains("FaaS") }) in <lambda>()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DLongevitySuiteTest.java172 Assert.assertTrue(runners.get(0).getDescription().getDisplayName().contains("TestOne")); in testReportingIteration_set()
174 Assert.assertTrue(runners.get(1).getDescription().getDisplayName().contains("TestTwo")); in testReportingIteration_set()
176 Assert.assertTrue(runners.get(2).getDescription().getDisplayName().contains("TestOne")); in testReportingIteration_set()
215 Assert.assertTrue(runners.get(0).getDescription().getDisplayName().contains("TestOne")); in testAdditionalRunners()
216 Assert.assertTrue(runners.get(1).getDescription().getDisplayName().contains("TestTwo")); in testAdditionalRunners()
217 Assert.assertTrue(runners.get(2).getDescription().getDisplayName().contains("TestOne")); in testAdditionalRunners()
219 runners.get(3).getDescription().getDisplayName().contains("AdditionalTest")); in testAdditionalRunners()
221 runners.get(4).getDescription().getDisplayName().contains("AdditionalTest")); in testAdditionalRunners()
224 runners.get(8).getDescription().getDisplayName().contains("AdditionalTest")); in testAdditionalRunners()
226 runners.get(9).getDescription().getDisplayName().contains("AdditionalTest")); in testAdditionalRunners()
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DDumpsysMeminfoHelperTest.java176 assertTrue(results.keySet().contains(SYSTEMUI_VIEW_KEY)); in testCollectMeminfo_oneProcessObjectMap()
177 assertTrue(results.keySet().contains(SYSTEMUI_VIEW_ROOT_KEY)); in testCollectMeminfo_oneProcessObjectMap()
191 assertTrue(results.keySet().contains(SYSTEMUI_VIEW_KEY)); in testCollectMeminfo_twoProcessObjectMap()
192 assertTrue(results.keySet().contains(SYSTEMUI_VIEW_ROOT_KEY)); in testCollectMeminfo_twoProcessObjectMap()
193 assertTrue(results.keySet().contains(LAUNCHER_VIEW_KEY)); in testCollectMeminfo_twoProcessObjectMap()
194 assertTrue(results.keySet().contains(LAUNCHER_VIEW_ROOT_KEY)); in testCollectMeminfo_twoProcessObjectMap()
209 assertTrue(results.keySet().contains(SYSTEMUI_VIEW_KEY)); in testCollectMeminfo_oneProcessAndProcessObjectMap()
210 assertTrue(results.keySet().contains(SYSTEMUI_VIEW_ROOT_KEY)); in testCollectMeminfo_oneProcessAndProcessObjectMap()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/
DScenarioInstanceTest.kt94 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertionSingle") in willReportFlickerAssertions()
96 .contains("MY_CUSTOM_SCENARIO::myAssertionMultiple") in willReportFlickerAssertions()
168 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertion1") in willReportMainBlockAssertions()
169 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertion2") in willReportMainBlockAssertions()
182 .contains("Some flicker error") in willReportMainBlockAssertions()
184 .contains(errorMessage) in willReportMainBlockAssertions()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DIncidentReportListenerTest.java119 assertTrue(e.getMessage().contains("Couldn't create")); in testFailCollectIfNoDestinationDirectory()
120 assertTrue(e.getMessage().contains("destination folder")); in testFailCollectIfNoDestinationDirectory()
128 assertTrue(e.getMessage().contains("destination folder")); in testFailCollectIfNoDestinationDirectory()
129 assertTrue(e.getMessage().contains("does not exist")); in testFailCollectIfNoDestinationDirectory()
146 assertTrue(e.getMessage().contains("no data")); in testCollectEmptyReportFails()
DScreenRecordCollectorTest.java162 if (key.contains("mp4")) { in testScreenRecord()
164 assertTrue(key.contains(mTestDesc.getClassName())); in testScreenRecord()
165 assertTrue(key.contains(mTestDesc.getMethodName())); in testScreenRecord()
167 assertTrue(fileName.contains(mTestDesc.getClassName())); in testScreenRecord()
168 assertTrue(fileName.contains(mTestDesc.getMethodName())); in testScreenRecord()
338 assertTrue(key.contains(mRunDesc.getClassName())); in testNullMethodNameDoesNotAppearInVideoName()
339 assertFalse(key.contains("null")); in testNullMethodNameDoesNotAppearInVideoName()
341 assertTrue(fileName.contains(mRunDesc.getClassName())); in testNullMethodNameDoesNotAppearInVideoName()
342 assertFalse(fileName.contains("null")); in testNullMethodNameDoesNotAppearInVideoName()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DScenarioAssertionTest.kt53 Truth.assertThat(assertionMessage).contains("My assertion") in addsExtraDataToFlickerAssertionMessage()
54 Truth.assertThat(assertionMessage).contains("extraKey") in addsExtraDataToFlickerAssertionMessage()
55 Truth.assertThat(assertionMessage).contains("extraValue") in addsExtraDataToFlickerAssertionMessage()
85 .contains("expected: efg\nbut was : abc") in supportsRunningAssertionsWithTruthAssertions()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBackupUtils.java125 .contains("* " + getLocalTransportName()); in isLocalTransportSelected()
134 .contains("* " + getLocalTransportName()); in isLocalTransportSelectedForUser()
138 return getShellCommandOutput("bmgr enabled").contains("currently enabled"); in isBackupEnabled()
147 .contains("currently enabled"); in isBackupEnabledForUser()
160 return getShellCommandOutput("pm list packages").contains(LOCAL_TRANSPORT_PACKAGE) in getLocalTransportName()
192 if (line.contains(packageName)) { in assertBackupNotAllowed()
216 if (line.contains(packageName)) { in assertBackupIsSuccessful()
259 if (line.contains("restoreFinished: 0")) { in assertRestoreIsSuccessful()
322 .contains("currently activated"); in isBackupActivatedForUser()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/
DFocusEvent.kt82 data.contains(" entering ") -> Type.GAINED in getFocusFromData()
83 data.contains(" leaving ") -> Type.LOST in getFocusFromData()
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/
DTimeSeriesSubjectTest.kt57 factKeys().contains("TimeSeries.frames does not match") in <lambda>()
73 factKeys().contains("TimeSeries.frames does not match") in <lambda>()
89 factKeys().contains("TimeSeries.frames does not match") in <lambda>()
112 factKeys().contains("TimeSeries.features does not match") in <lambda>()
131 factKeys().contains("TimeSeries.features does not match") in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DTraceMonitorRuleTest.kt79 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in executesWithStartFailure()
91 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in executesStartFailureMonitor2()
103 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in executesWithStopFailure()
115 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in executesStopFailureMonitor2()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DCompilationFilterRule.java68 if (mCompiledTests.contains(testId)) { in finished()
82 } else if (!COMPILE_FILTER_LIST.contains(filter)) { in finished()
110 if (!response.contains(COMPILE_SUCCESS)) { in finished()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/values/
DMotionTestValueTest.kt42 assertThat(semanticsNode.config.contains(foo.semanticsPropertyKey)).isFalse() in modifier_isIgnored()
54 assertThat(semanticsNode.config.contains(foo.semanticsPropertyKey)).isTrue() in modifier_withEnableMotionTesting_isAttached()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/
DLayerTraceEntrySubjectTest.kt61 Truth.assertThat(error).hasMessageThat().contains(TestComponents.IMAGINARY.className) in exceptionContainsDebugInfo()
294 subject.contains(ComponentNameMatcher(app1Name)) in canUseOrComponentMatcher_contains_withOneExists()
297 subject.contains(component) in canUseOrComponentMatcher_contains_withOneExists()
319 assertThrows<AssertionError> { subject.contains(component) } in canUseOrComponentMatcher_contains_withNoneExists()
348 subject.contains(ComponentNameMatcher(app1Name)) in canUseOrComponentMatcher_contains_withBothExists()
349 subject.contains(ComponentNameMatcher(app2Name)) in canUseOrComponentMatcher_contains_withBothExists()
352 subject.contains(component) in canUseOrComponentMatcher_contains_withBothExists()
380 .contains(imeActivityLayer) in detectOccludedLayerBecauseOfRoundedCorners()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DBitmap.kt28 if (Build.CPU_ABI == "x86_64" || Build.FINGERPRINT.contains("robolectric")) {

12345678