Home
last modified time | relevance | path

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

12345678

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationUtilTest.java67 assertTrue(content.contains("<configuration>")); in testDumpClassToXml()
68 assertTrue(content.contains("<option name=\"adb-path\" value=\"adb\" />")); in testDumpClassToXml()
70 content.contains( in testDumpClassToXml()
109 assertTrue(content.contains("<configuration>")); in testDumpClassToXml_filtered()
111 content.contains( in testDumpClassToXml_filtered()
115 content.contains( in testDumpClassToXml_filtered()
143 assertTrue(configs.contains(config2.getAbsolutePath())); in testGetConfigNamesFromDirs()
148 assertTrue(configs.contains(config1.getAbsolutePath())); in testGetConfigNamesFromDirs()
149 assertTrue(configs.contains(config2.getAbsolutePath())); in testGetConfigNamesFromDirs()
178 assertTrue(configs.contains(config2)); in testGetConfigNamesFromDirs_patterns()
DConfigurationTest.java422 assertTrue("Usage text does not contain config name", usageString.contains(CONFIG_NAME)); in testPrintCommandUsage()
423 assertTrue("Usage text does not contain config description", usageString.contains( in testPrintCommandUsage()
425 assertTrue("Usage text does not contain object name", usageString.contains( in testPrintCommandUsage()
427 assertTrue("Usage text does not contain option name", usageString.contains(OPTION_NAME)); in testPrintCommandUsage()
429 usageString.contains(OPTION_DESCRIPTION)); in testPrintCommandUsage()
433 usageString.contains("serial")); in testPrintCommandUsage()
639 assertTrue(content.contains("<configuration>")); in testDumpXml()
640 assertTrue(content.contains("<test class")); in testDumpXml()
660 assertTrue(content.contains("<configuration>")); in testDumpXml_withFilter()
661 assertFalse(content.contains("<test class")); in testDumpXml_withFilter()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DTestFilterHelper.java164 if (mExcludeAnnotations.contains(a.annotationType().getName())) { in isExcluded()
179 if (neededAnnotation.contains(a.annotationType().getName())) { in isIncluded()
224 || mIncludeFilters.contains(methodName) in shouldRun()
225 || mIncludeFilters.contains(className) in shouldRun()
226 || mIncludeFilters.contains(packageName); in shouldRun()
255 || mIncludeFilters.contains(methodName) in shouldRun()
256 || mIncludeFilters.contains(className) in shouldRun()
257 || mIncludeFilters.contains(packageName); in shouldRun()
265 if (mExcludeFilters.contains(packageName)) { in shouldRunFilter()
270 if (mExcludeFilters.contains(className)) { in shouldRunFilter()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxConfigDumpTest.java62 assertTrue(output.contains("<test class")); in testParseCommandLine()
64 output.contains( in testParseCommandLine()
83 assertFalse(output.contains("<test class")); in testParseCommandLine_filtered()
85 output.contains( in testParseCommandLine_filtered()
104 assertTrue(output.contains("<test class")); in testParseCommandLine_run()
106 output.contains( in testParseCommandLine_run()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DByteArrayListTest.java204 assertTrue(e.getMessage().contains("New size")); in testLimits_setSize()
205 assertTrue(e.getMessage().contains("non-negative")); in testLimits_setSize()
215 assertTrue(e.getMessage().contains("Minimum capacity")); in testLimits_ensureCapacity()
216 assertTrue(e.getMessage().contains("non-negative")); in testLimits_ensureCapacity()
260 assertTrue(e.getMessage().contains("New size")); in testLimits_constructor()
261 assertTrue(e.getMessage().contains("non-negative")); in testLimits_constructor()
269 assertTrue(e.getMessage().contains("New size")); in testLimits_constructor()
270 assertTrue(e.getMessage().contains("non-negative")); in testLimits_constructor()
278 assertTrue(e.getMessage().contains("Growth factor")); in testLimits_constructor()
279 assertTrue(e.getMessage().contains("1.1")); in testLimits_constructor()
DDirectedGraphTest.java30 assertTrue(graph.contains(0)); in testBasicGraph()
31 assertTrue(graph.contains(1)); in testBasicGraph()
32 assertTrue(graph.contains(2)); in testBasicGraph()
33 assertTrue(graph.contains(3)); in testBasicGraph()
DConfigCompletorTest.java58 assertTrue(mCandidates.contains("util/wifi")); in testPartialMatch()
59 assertTrue(mCandidates.contains("util/wipe")); in testPartialMatch()
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DMonkeyLogParserTest.java82 assertTrue(monkeyLog.getPackages().contains("com.google.android.browser")); in testParse_success()
84 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_success()
188 assertTrue(monkeyLog.getPackages().contains("com.google.android.youtube")); in testParse_anr()
190 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_anr()
261 assertTrue(monkeyLog.getPackages().contains("com.google.android.apps.maps")); in testParse_java_crash()
263 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_java_crash()
333 assertTrue(monkeyLog.getPackages().contains("com.google.android.apps.maps")); in testParse_java_crash_mixed()
335 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_java_crash_mixed()
424 assertTrue(monkeyLog.getPackages().contains("com.google.android.apps.maps")); in testParse_native_crash()
426 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_native_crash()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDeviceSetupFuncTest.java70 assertTrue(getDevice().executeShellCommand("getprop ro.audio.silent").contains("1")); in testSetup()
71 assertTrue(getDevice().executeShellCommand("getprop ro.monkey").contains("1")); in testSetup()
72 assertTrue(getDevice().executeShellCommand("getprop ro.test_harness").contains("1")); in testSetup()
74 assertTrue(getDevice().executeShellCommand("id").contains("root")); in testSetup()
DDefaultTestsZipInstallerTest.java90 assertTrue("Invalid wipe list set. Missing value set.", skipList.contains("foo")); in testSkipWipeFileSetup()
97 skipList.contains("foo")); in testSkipWipeFileSetup()
98 assertTrue("Invalid wipe list set. Missing value set.", skipList.contains("bar")); in testSkipWipeFileSetup()
99 assertTrue("Invalid wipe list set. Missing value set.", skipList.contains("foobar")); in testSkipWipeFileSetup()
147 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.contains("rm -r data/app"))) in testPushTestsZipOntoData()
153 EasyMock.contains(FileListingService.DIRECTORY_DATA))) in testPushTestsZipOntoData()
191 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.contains("rm -r data/app"))) in testPushTestsZipOntoData_retry()
DFlashingResourcesParserTest.java112 assertTrue(reqBoards.contains("gamma")); in testParseAndroidInfo_boardAndProduct()
113 assertTrue(reqBoards.contains("delta")); in testParseAndroidInfo_boardAndProduct()
127 assertTrue(reqBoards.contains("gamma")); in testParseAndroidInfo_onlyBoard()
128 assertTrue(reqBoards.contains("delta")); in testParseAndroidInfo_onlyBoard()
145 assertTrue(reqBoards.contains("alpha")); in testParseAndroidInfo_onlyProduct()
146 assertTrue(reqBoards.contains("beta")); in testParseAndroidInfo_onlyProduct()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DValidateSuiteConfigHelperTest.java75 assertTrue(expected.getMessage().contains(Configuration.BUILD_PROVIDER_TYPE_NAME)); in testNotRunningAsSuite_buildProvider()
95 assertTrue(expected.getMessage().contains(Configuration.BUILD_PROVIDER_TYPE_NAME)); in testNotRunningAsSuite_MultiDevice_buildProvider()
129 assertTrue(expected.getMessage().contains(Configuration.RESULT_REPORTER_TYPE_NAME)); in testNotRunningAsSuite_resultReporter()
145 assertTrue(expected.getMessage().contains(Configuration.RESULT_REPORTER_TYPE_NAME)); in testNotRunningAsSuite_multi_resultReporter()
170 assertTrue(expected.getMessage().contains(Configuration.TARGET_PREPARER_TYPE_NAME)); in testTargetPrep_badPreparer()
171 assertTrue(expected.getMessage().contains(Configuration.MULTI_PREPARER_TYPE_NAME)); in testTargetPrep_badPreparer()
187 assertTrue(expected.getMessage().contains(Configuration.TARGET_PREPARER_TYPE_NAME)); in testTargetPrep_badMultiPreparer()
188 assertTrue(expected.getMessage().contains(Configuration.MULTI_PREPARER_TYPE_NAME)); in testTargetPrep_badMultiPreparer()
228 .contains(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME)); in testMetricCollectors()
262 assertTrue(expected.getMessage().contains(ModuleDefinition.MODULE_CONTROLLER)); in testModuleController_fail()
DSuiteModuleLoaderTest.java129 assertTrue(checker.testList.contains("value2")); in testInjectConfigOptions_moduleArgs()
130 assertTrue(checker.testList.contains("value3")); in testInjectConfigOptions_moduleArgs()
131 assertTrue(checker.testList.contains("set-option:moreoption")); in testInjectConfigOptions_moduleArgs()
177 assertTrue(checker.testList.contains("value2")); in testInjectConfigOptions_testArgs()
178 assertTrue(checker.testList.contains("value3")); in testInjectConfigOptions_testArgs()
179 assertTrue(checker.testList.contains("set-option:moreoption")); in testInjectConfigOptions_testArgs()
/tools/metalava/src/main/java/com/android/tools/metalava/
DAndroidApiChecks.kt62 if (field.name().contains("ACTION")) { in check()
171 if (item.documentation.contains("TODO:") || item.documentation.contains("TODO(")) { in checkTodos()
196 if (text.contains(perm)) { in checkRequiresPermission()
206 … } else if (text.contains("android.Manifest.permission") || text.contains("android.permission.")) { in checkRequiresPermission()
225 if (text.contains("Broadcast Action:") || in checkIntentAction()
226 text.contains("protected intent") && text.contains("system") in checkIntentAction()
242 if (text.contains("Activity Action:")) { in checkIntentAction()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DMetricsXMLResultReporterTest.java87 assertTrue(output.contains("<runmetric name=\"metric-1\" value=\"1.0\" />")); in testRunMetrics()
92 assertTrue(output.contains(testCaseTag)); in testRunMetrics()
114 assertTrue(output.contains("<testmetric name=\"metric-1\" value=\"1.0\" />")); in testTestMetrics()
119 assertTrue(output.contains(testCaseTag)); in testTestMetrics()
140 assertTrue(output.contains("tests=\"1\" failures=\"1\"")); in testTestFailMetrics()
145 assertTrue(output.contains(testCaseTag)); in testTestFailMetrics()
147 assertTrue(output.contains(failureTag)); in testTestFailMetrics()
DXmlResultReporterTest.java131 assertTrue(output.contains("tests=\"1\" failures=\"0\" errors=\"0\"")); in testSinglePass()
134 assertTrue(output.contains(testCaseTag)); in testSinglePass()
156 assertTrue(output.contains("tests=\"1\" failures=\"1\" errors=\"0\"")); in testSingleFail()
159 assertTrue(output.contains(testCaseTag)); in testSingleFail()
161 assertTrue(output.contains(failureTag)); in testSingleFail()
DBugreportCollectorTest.java174 mMockListener.testLog(EasyMock.contains("bug-FAILED-FooTest__testName1."), in testTestFailed()
177 mMockListener.testLog(EasyMock.contains("bug-FAILED-FooTest__testName2."), in testTestFailed()
195 mMockListener.testLog(EasyMock.contains("bug-FooTest__testName1."), in testTestEnded()
198 mMockListener.testLog(EasyMock.contains("bug-FooTest__testName2."), in testTestEnded()
218 mMockListener.testLog(EasyMock.contains("bug-FooTest__testName1."), in testWaitForDevice()
221 mMockListener.testLog(EasyMock.contains("bug-FooTest__testName2."), in testWaitForDevice()
239 mMockListener.testLog(EasyMock.contains("bug-FooTest__testName1."), in testTestEnded_firstCase()
242 mMockListener.testLog(EasyMock.contains("bug-FooTest__testName2."), in testTestEnded_firstCase()
260 mMockListener.testLog(EasyMock.contains(pred.toString()), in testTestEnded_firstRun()
278 mMockListener.testLog(EasyMock.contains(pred.toString()), in testTestRunEnded()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/
DArgsOptionParserTest.java369 e.getMessage()), e.getMessage().contains("key")); in testParseMapArg_mismatchKeyType()
371 expectedKey, e.getMessage()), e.getMessage().contains(expectedKey)); in testParseMapArg_mismatchKeyType()
389 e.getMessage()), e.getMessage().contains("value")); in testParseMapArg_mismatchValueType()
391 expectedValue, e.getMessage()), e.getMessage().contains(expectedValue)); in testParseMapArg_mismatchValueType()
407 e.getMessage()), e.getMessage().contains("key")); in testParseMapArg_missingKey()
424 e.getMessage()), e.getMessage().contains("value")); in testParseMapArg_missingValue()
463 assertTrue(leftOver.contains(posArg)); in testParse_posArgs()
554 assertTrue(help.contains(InheritedOptionSource.OPTION_NAME)); in testGetOptionHelp()
555 assertTrue(help.contains(InheritedOptionSource.OPTION_DESC)); in testGetOptionHelp()
556 assertTrue(help.contains(OneOptionSource.OPTION_NAME)); in testGetOptionHelp()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DNativeStressTestTest.java67 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.contains("chmod"))).andReturn(""); in setUp()
87 mMockDevice.executeShellCommand(EasyMock.contains("-s 0 -e 99"), (IShellOutputReceiver) in testRun()
101 mMockDevice.executeShellCommand(EasyMock.contains("-s 0 -e 99"), (IShellOutputReceiver) in testRun_twoRuns()
104 mMockDevice.executeShellCommand(EasyMock.contains("-s 100 -e 199"), (IShellOutputReceiver) in testRun_twoRuns()
118 mMockDevice.executeShellCommand(EasyMock.contains("-s 0 -e 99"), (IShellOutputReceiver) in testRun_deviceNotAvailable()
DGoogleBenchmarkTestTest.java101 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun()
103 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun()
105 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun()
183 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun_withModuleName()
185 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withModuleName()
187 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun_withModuleName()
232 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun_withRunReportName()
234 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withRunReportName()
268 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun_exceptionDuringExecShell()
270 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_exceptionDuringExecShell()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationTest.java74 assertTrue(linesSet.contains("Built-By: Me, of course")); in elementaryManifestGeneration()
75 assertTrue(linesSet.contains("Created-By: Myself")); in elementaryManifestGeneration()
110 assertTrue(linesSet.contains("Built-By: Me, of course")); in manifestGenerationOnHalfWrittenFile()
111 assertTrue(linesSet.contains("Created-By: Myself")); in manifestGenerationOnHalfWrittenFile()
148 assertTrue(linesSet.contains("Built-By: Me, of course")); in manifestGenerationOnExistingFile()
149 assertTrue(linesSet.contains("Created-By: Myself")); in manifestGenerationOnExistingFile()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt71 while (s.contains(JAVA_LANG_PREFIX)) { in <lambda>()
74 if (s.contains("...")) { in <lambda>()
135 fun hasTypeArguments(): Boolean = toTypeString().contains("<") in <lambda>()
156 if (cleaned.contains("@androidx.annotation.")) { in <lambda>()
159 if (cleaned.contains("@android.support.annotation.")) { in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt48 override var docOnly = documentation.contains("@doconly")
50 override var removed = documentation.contains("@removed")
52 override var hidden = (documentation.contains("@hide") || documentation.contains("@pending") ||
141 if (!(documentation.contains("@link") || // includes @linkplain in fullyQualifiedDocumentation()
142 documentation.contains("@see") || in fullyQualifiedDocumentation()
143 documentation.contains("@throws")) in fullyQualifiedDocumentation()
155 if (documentation.startsWith("//") && documentation.contains("/**")) { in fullyQualifiedDocumentation()
/tools/tradefederation/core/prod-tests/tests/src/com/android/monkey/
DMonkeyBaseTest.java56 assertTrue(output.contains("a")); in testSetSubtract()
57 assertFalse(output.contains("b")); in testSetSubtract()
58 assertTrue(output.contains("c")); in testSetSubtract()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandRunnerTest.java156 mStackTraceOutput.contains( in testRun_deviceUnresponsive()
178 mStackTraceOutput.contains( in testRun_deviceUnavailable()
200 mStackTraceOutput.contains( in testRun_throwable()
215 mStackTraceOutput.contains(FAKE_CONFIG)); in testRun_ConfigError()
252 mStackTraceOutput.contains( in testRun_noDevice()

12345678