Home
last modified time | relevance | path

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

12345678910>>...12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DRebootReasonCollectorTest.java88 argThat(l -> l.contains(Atom.BOOT_SEQUENCE_REPORTED_FIELD_NUMBER))); in testStatsdInteractions_singleDevice()
123 entry.getKey().contains(RebootReasonCollector.METRIC_PREFIX) in testAddingMetrics_singleDevice()
124 && entry.getKey().contains("bootloader_reason") in testAddingMetrics_singleDevice()
125 && entry.getKey().contains("system_reason_1") in testAddingMetrics_singleDevice()
126 && (!entry.getKey().contains(DEVICE_SERIAL_1)) in testAddingMetrics_singleDevice()
138 entry.getKey().contains(RebootReasonCollector.METRIC_PREFIX) in testAddingMetrics_singleDevice()
139 && entry.getKey().contains("bootloader_reason") in testAddingMetrics_singleDevice()
140 && entry.getKey().contains("system_reason_2") in testAddingMetrics_singleDevice()
141 && (!entry.getKey().contains(DEVICE_SERIAL_1)) in testAddingMetrics_singleDevice()
170 argThat(l -> l.contains(Atom.BOOT_SEQUENCE_REPORTED_FIELD_NUMBER))); in testStatsdInteractions_multiDevice()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationUtilTest.java78 assertTrue(content.contains("<configuration>")); in testDumpClassToXml()
79 assertTrue(content.contains("<option name=\"adb-path\" value=\"adb\" />")); in testDumpClassToXml()
81 content.contains( in testDumpClassToXml()
122 assertTrue(content.contains("<configuration>")); in testDumpClassToXml_filtered()
124 content.contains( in testDumpClassToXml_filtered()
128 content.contains( in testDumpClassToXml_filtered()
156 assertTrue(configs.contains(config2.getAbsolutePath())); in testGetConfigNamesFromDirs()
161 assertTrue(configs.contains(config1.getAbsolutePath())); in testGetConfigNamesFromDirs()
162 assertTrue(configs.contains(config2.getAbsolutePath())); in testGetConfigNamesFromDirs()
191 assertTrue(configs.contains(config2)); in testGetConfigNamesFromDirs_patterns()
[all …]
DConfigurationTest.java429 assertTrue("Usage text does not contain config name", usageString.contains(CONFIG_NAME)); in testPrintCommandUsage()
430 assertTrue("Usage text does not contain config description", usageString.contains( in testPrintCommandUsage()
432 assertTrue("Usage text does not contain object name", usageString.contains( in testPrintCommandUsage()
434 assertTrue("Usage text does not contain option name", usageString.contains(OPTION_NAME)); in testPrintCommandUsage()
436 usageString.contains(OPTION_DESCRIPTION)); in testPrintCommandUsage()
440 usageString.contains("serial")); in testPrintCommandUsage()
666 assertTrue(content.contains("<configuration>")); in testDumpXml()
667 assertTrue(content.contains("<test class")); in testDumpXml()
687 assertTrue(content.contains("<configuration>")); in testDumpXml_withFilter()
688 assertFalse(content.contains("<test class")); in testDumpXml_withFilter()
[all …]
DArgsOptionParserTest.java404 e.getMessage()), e.getMessage().contains("key")); in testParseMapArg_mismatchKeyType()
406 expectedKey, e.getMessage()), e.getMessage().contains(expectedKey)); in testParseMapArg_mismatchKeyType()
424 e.getMessage()), e.getMessage().contains("value")); in testParseMapArg_mismatchValueType()
426 expectedValue, e.getMessage()), e.getMessage().contains(expectedValue)); in testParseMapArg_mismatchValueType()
442 e.getMessage()), e.getMessage().contains("key")); in testParseMapArg_missingKey()
459 e.getMessage()), e.getMessage().contains("value")); in testParseMapArg_missingValue()
498 assertTrue(leftOver.contains(posArg)); in testParse_posArgs()
943 assertTrue(help.contains(InheritedOptionSource.OPTION_NAME)); in testGetOptionHelp()
944 assertTrue(help.contains(InheritedOptionSource.OPTION_DESC)); in testGetOptionHelp()
945 assertTrue(help.contains(OneOptionSource.OPTION_NAME)); in testGetOptionHelp()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/
DTestMappingTest.java74 assertTrue(names.contains("test1")); in testparseTestMapping()
83 assertTrue(names.contains("suite/stub1")); in testparseTestMapping()
98 assertTrue(names.contains("test2")); in testparseTestMapping()
99 assertTrue(names.contains("instrument")); in testparseTestMapping()
100 assertTrue(testOptions.contains(testOption)); in testparseTestMapping()
113 assertTrue(names.contains("test3")); in testparseTestMapping()
115 assertTrue(sources.contains(rootDirName)); in testparseTestMapping()
182 assertTrue(!names.contains("suite/stub1")); in testGetTests()
183 assertTrue(names.contains("test1")); in testGetTests()
296 assertTrue(new HashSet<TestOption>(test1.getOptions()).contains(option1)); in testMergeSuccess_2Filters()
[all …]
/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/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/src/com/android/tradefed/util/
DTestFilterHelper.java177 if (mExcludeAnnotations.contains(a.annotationType().getName())) { in isExcluded()
191 if (neededAnnotation.contains(a.annotationType().getName())) { in isIncluded()
235 || mIncludeFilters.contains(methodName) in shouldRun()
236 || mIncludeFilters.contains(className) in shouldRun()
237 || mIncludeFilters.contains(packageName); in shouldRun()
266 || mIncludeFilters.contains(methodName) in shouldRun()
267 || mIncludeFilters.contains(className) in shouldRun()
268 || mIncludeFilters.contains(packageName); in shouldRun()
276 if (mExcludeFilters.contains(packageName)) { in shouldRunFilter()
280 if (mExcludeFilters.contains(className)) { in shouldRunFilter()
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
DInterruptParser.java73 if (interruptName.contains("bcmsdh_sdmmc") || interruptName.contains("msm_pcie_wake")) { in getInterruptCategory()
75 } else if (interruptName.contains("smd-modem") || in getInterruptCategory()
76 interruptName.contains("smsm-modem")) { in getInterruptCategory()
78 } else if (interruptName.contains("smd-adsp")) { in getInterruptCategory()
80 } else if (interruptName.contains("max77686-irq") || in getInterruptCategory()
81 interruptName.contains("cpcap-irq") || in getInterruptCategory()
82 interruptName.contains("TWL6030-PIH")) { in getInterruptCategory()
/tools/tradefederation/core/src/com/android/tradefed/result/
DFilteredResultForwarder.java40 if (!mAllowedTests.contains(test)) { in testStarted()
48 if (!mAllowedTests.contains(test)) { in testStarted()
56 if (!mAllowedTests.contains(test)) { in testEnded()
64 if (!mAllowedTests.contains(test)) { in testEnded()
72 if (!mAllowedTests.contains(test)) { in testEnded()
80 if (!mAllowedTests.contains(test)) { in testEnded()
88 if (!mAllowedTests.contains(test)) { in testAssumptionFailure()
96 if (!mAllowedTests.contains(test)) { in testIgnored()
/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()
/tools/metalava/src/main/java/com/android/tools/metalava/
DAndroidApiChecks.kt61 if (field.name().contains("ACTION")) { in check()
170 if (item.documentation.contains("TODO:") || item.documentation.contains("TODO(")) { in checkTodos()
195 if (text.contains(perm)) { in checkRequiresPermission()
205 … } else if (text.contains("android.Manifest.permission") || text.contains("android.permission.")) { in checkRequiresPermission()
224 if (text.contains("Broadcast Action:") || in checkIntentAction()
225 text.contains("protected intent") && text.contains("system") in checkIntentAction()
241 if (text.contains("Activity Action:")) { in checkIntentAction()
/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.java136 assertTrue(checker.testList.contains("value2")); in testInjectConfigOptions_moduleArgs()
137 assertTrue(checker.testList.contains("value3")); in testInjectConfigOptions_moduleArgs()
138 assertTrue(checker.testList.contains("set-option:moreoption")); in testInjectConfigOptions_moduleArgs()
185 assertTrue(checker.testList.contains("value2")); in testInjectConfigOptions_testArgs()
186 assertTrue(checker.testList.contains("value3")); in testInjectConfigOptions_testArgs()
187 assertTrue(checker.testList.contains("set-option:moreoption")); in testInjectConfigOptions_testArgs()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
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 …]
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()
/tools/metalava/src/test/java/com/android/tools/metalava/apilevels/
DApiGeneratorTest.kt84 assertTrue(xml.contains("<class name=\"android/Manifest\$permission\" since=\"1\">")) in Extract API levels()
85 …assertTrue(xml.contains("<field name=\"BIND_CARRIER_MESSAGING_SERVICE\" since=\"22\" deprecated=\"… in Extract API levels()
86 assertTrue(xml.contains("<class name=\"android/pkg/MyTest\" since=\"36\"")) in Extract API levels()
87 assertFalse(xml.contains("<implements name=\"java/lang/annotation/Annotation\" removed=\"")) in Extract API levels()
88 assertFalse(xml.contains("<extends name=\"java/lang/Enum\" removed=\"")) in Extract API levels()
89 assertFalse(xml.contains("<method name=\"append(C)Ljava/lang/AbstractStringBuilder;\"")) in Extract API levels()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
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()
179 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun_withModuleName()
181 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withModuleName()
183 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun_withModuleName()
222 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun_withRunReportName()
224 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withRunReportName()
255 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun_exceptionDuringExecShell()
257 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_exceptionDuringExecShell()
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()
/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/device/
DTestDeviceTest.java1250 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(certFile))).andReturn( in testInstallPackages()
1252 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(apkFile))).andReturn( in testInstallPackages()
1263 EasyMock.contains(apkFile)); in testInstallPackages()
1277 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(certFile))) in testInstallPackages_timeout()
1279 EasyMock.expect(mMockIDevice.syncPackageToDevice(EasyMock.contains(apkFile))) in testInstallPackages_timeout()
1291 EasyMock.contains(apkFile)); in testInstallPackages_timeout()
1301 .contains("InstallException during package installation.")); in testInstallPackages_timeout()
1398 EasyMock.contains(apkFile), in testInstallPackage_default_runtimePermissionNotSupported()
1414 EasyMock.contains(apkFile), in testInstallPackage_default_timeout()
1425 .contains( in testInstallPackage_default_timeout()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt42 override var docOnly = documentation.contains("@doconly")
44 override var removed = documentation.contains("@removed")
48 documentation.contains('@') &&
49 (documentation.contains("@hide") ||
50 documentation.contains("@pending") ||
52 documentation.contains("@suppress")) ||
/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/tradefederation/core/tests/src/com/android/tradefed/targetprep/
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/src/com/android/tradefed/util/testmapping/
DTestOption.java60 return mName.contains("include") || mName.contains("positive"); in isInclusive()
79 return mName.contains("exclude") || mName.contains("negative"); in isExclusive()

12345678910>>...12