Home
last modified time | relevance | path

Searched refs:assertTrue (Results 1 – 25 of 106) sorted by relevance

12345

/test/vts/testcases/host/fmq_hidl_test/
DVtsHalTestsMsgqV1_0HostTest.py105 asserts.assertTrue(
112 asserts.assertTrue(
138 asserts.assertTrue(
144 asserts.assertTrue(
161 asserts.assertTrue(
166 asserts.assertTrue(
180 asserts.assertTrue(
184 asserts.assertTrue(
206 asserts.assertTrue(
215 asserts.assertTrue(
[all …]
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DBackupUtilsTest.java20 import static org.junit.Assert.assertTrue;
66 assertTrue(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
67 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
86 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
104 assertTrue(backupUtils.enableBackup(false)); in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
105 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
124 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableFalseAndDisabled_returnsFalse()
143 assertTrue(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndEnabledAndCommandsReturnMultipleLines()
144 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableTrueAndEnabledAndCommandsReturnMultipleLines()
171 assertTrue(isExceptionHappened); in testEnableBackup_whenQueryCommandThrows_propagatesException()
[all …]
DCrashUtilsTest.java83 Assert.assertTrue(CrashUtils.detectCrash(new String[] {"AudioOut_D"}, true, mCrashes)); in testValidCrash()
103 Assert.assertTrue(CrashUtils.detectCrash(new String[] {"Binder:12736_2"}, false, mCrashes)); in testIgnoreMinAddressCheck()
108 Assert.assertTrue( in testGoodAndBadCrashes()
116 Assert.assertTrue(CrashUtils.detectCrash(new String[] {"loo"}, true, crashes)); in testNullFaultAddress()
/test/vts/testcases/codelab/fmq_test/
DVtsCodelabFmqTest.py170 asserts.assertTrue(self._queue1_writer.isValid(),
172 asserts.assertTrue(self._queue1_reader.isValid(),
180 asserts.assertTrue(self._queue4_writer.isValid(),
182 asserts.assertTrue(self._queue4_reader.isValid(),
193 asserts.assertTrue(
197 asserts.assertTrue(read_success, "Read queue failed.")
212 asserts.assertTrue(
235 asserts.assertTrue(
240 asserts.assertTrue(read_success,
260 asserts.assertTrue(
[all …]
/test/vts/utils/python/instrumentation/
Dtest_framework_instrumentation_test.py48 self.assertTrue(event.Match(name, category))
59 self.assertTrue(event.error)
79 self.assertTrue(tfi.categories.Add(self.name, self.category))
89 self.assertTrue(bool(tfie.event_stack))
108 self.assertTrue(bool(tfie.event_stack))
142 self.assertTrue(event._enable_logging)
160 self.assertTrue(event_sub._disable_subevent_logging)
168 self.assertTrue(event_sub._disable_subevent_logging)
174 self.assertTrue(event._disable_subevent_logging)
176 self.assertTrue(event_sub1._disable_subevent_logging)
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/util/
DRetryFilterHelperTest.java61 assertTrue(helper.mSubPlan == null); in testClearOptions()
62 assertTrue(helper.mIncludeFilters.isEmpty()); in testClearOptions()
63 assertTrue(helper.mExcludeFilters.isEmpty()); in testClearOptions()
64 assertTrue(helper.mAbiName == null); in testClearOptions()
65 assertTrue(helper.mModuleName == null); in testClearOptions()
66 assertTrue(helper.mTestName == null); in testClearOptions()
67 assertTrue(helper.mRetryType == null); in testClearOptions()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/util/
DProcessHelperTest.java21 import static org.junit.Assert.assertTrue;
128 assertTrue(mProcessHelper.getStdout().equals("123\n")); in testSuccess()
129 assertTrue(mProcessHelper.getStderr().equals("456\n")); in testSuccess()
141 assertTrue(mProcessHelper.getStdout().equals("123\n")); in testFailure()
142 assertTrue(mProcessHelper.getStderr().equals("456\n")); in testFailure()
153 assertTrue(mProcessHelper.isRunning()); in testTimeout()
183 assertTrue(mProcessHelper.isRunning()); in testInterrupt()
DCmdUtilTest.java20 import static org.junit.Assert.assertTrue;
71 assertTrue(mCmdUtil.waitCmdResultWithDelay(mDevice, TEST_CMD, mCheckEmpty)); in testWaitCmdSuccess()
77 assertTrue(mCmdUtil.waitCmdResultWithDelay(mDevice, TEST_CMD, mCheckEmpty)); in testWaitCmdSuccessWithRetry()
89 assertTrue(mCmdUtil.retry(mDevice, RUN_CMD, TEST_CMD, mCheckEmpty)); in testRetrySuccess()
96 assertTrue(mCmdUtil.retry(mDevice, RUN_CMD, TEST_CMD, mCheckEmpty)); in testRetrySuccessWithRetry()
115 assertTrue(mCmdUtil.retry(mDevice, cmds, TEST_CMD, mCheckEmpty)); in testRetryMultipleCommandsSuccess()
/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/
DModuleResultTest.java62 assertTrue("Expected test result", mResult.getResults().contains(caseResult)); in testResultCreation()
88 assertTrue("Expected test result", mResult.getResults().contains(caseResult)); in testMergeModule()
89 assertTrue("Expected test result", mResult.getResults().contains(caseResult2)); in testMergeModule()
102 assertTrue("Expected test result", mResult.getResults().contains(caseResult)); in testMergeModule()
103 assertTrue("Expected test result", mResult.getResults().contains(caseResult2)); in testMergeModule()
104 assertTrue(mResult.isDone()); in testMergeModule()
110 assertTrue(mResult.isDone()); in testSetDone()
DDynamicConfigHandlerTest.java106 assertTrue(configMap.get("override-config-list-1") in testDynamicConfigHandler()
108 assertTrue(configMap.get("override-config-list-1") in testDynamicConfigHandler()
110 assertTrue(configMap.get("override-config-list-3").size() == 0); in testDynamicConfigHandler()
113 assertTrue(configMap.get("config-list").contains("config2")); in testDynamicConfigHandler()
117 assertTrue(configMap.get("override-config-list-2") in testDynamicConfigHandler()
/test/vts-testcase/hal/media/omx/V1_0/host_omxstore/
DVtsHalMediaOmxStoreV1_0HostTest.py105 asserts.assertTrue(
111 asserts.assertTrue(
119 asserts.assertTrue(
344 asserts.assertTrue(
348 asserts.assertTrue(
368 asserts.assertTrue(
376 asserts.assertTrue(
407 asserts.assertTrue(
441 asserts.assertTrue(
471 asserts.assertTrue(
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DModuleRepoTest.java194 assertTrue("Should be initialized", mRepo.isInitialized()); in testInitialization()
200 assertTrue("Unexpected device token", tokens.contains(FOOBAR_TOKEN)); in testInitialization()
209 assertTrue("Should be initialized", mRepo.isInitialized()); in testGetModules()
220 assertTrue("Should be initialized", mRepo.isInitialized()); in testGetModulesSharded()
242 assertTrue("Should be initialized", mRepo.isInitialized()); in testGetModules_onlyTokenModules()
264 assertTrue("Should be initialized", mRepo.isInitialized()); in testGetModules_TokenModules_multiDevices()
271 assertTrue(modules1.get(0).getId().contains(MODULE_NAME_C)); in testGetModules_TokenModules_multiDevices()
272 assertTrue(modules1.get(1).getId().contains(MODULE_NAME_C)); in testGetModules_TokenModules_multiDevices()
276 assertTrue(modules2.get(0).getId().contains("FooModuleD")); in testGetModules_TokenModules_multiDevices()
277 assertTrue(modules2.get(1).getId().contains("FooModuleD")); in testGetModules_TokenModules_multiDevices()
[all …]
DSubPlanTest.java113 assertTrue("Missing expected test include", subPlanIncludes.contains( in checkSubPlan()
115 assertTrue("Missing expected test include", subPlanIncludes.contains( in checkSubPlan()
117 assertTrue("Missing expected test include", subPlanIncludes.contains( in checkSubPlan()
119 assertTrue("Missing expected module include", subPlanIncludes.contains( in checkSubPlan()
123 assertTrue("Missing expected exclude", subPlanExcludes.contains( in checkSubPlan()
125 assertTrue("Missing expected exclude", subPlanExcludes.contains( in checkSubPlan()
127 assertTrue("Missing expected exclude", subPlanExcludes.contains( in checkSubPlan()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationChecksumHelperTest.java19 import static org.junit.Assert.assertTrue;
73 assertTrue(res); in testCreateChecksum()
76 assertTrue(checksum.exists()); in testCreateChecksum()
80 assertTrue(parser.containsFile(mFakeLogFile, mWorkingDir.getName())); in testCreateChecksum()
83 assertTrue(parser.containsTestResult(entry, run1, FINGERPRINT)); in testCreateChecksum()
87 assertTrue(parser.containsTestResult(entry, run2, FINGERPRINT)); in testCreateChecksum()
/test/vts/testcases/host/fastboot/
DVtsFastbootVerification.py66 asserts.assertTrue(retcode == 0, "Incorrect slot operations")
75 asserts.assertTrue(retcode == 0, "Error in logical partition operations")
80 asserts.assertTrue("%s: super" % FASTBOOT_VAR_SUPER_PARTITION_NAME in out,
90 asserts.assertTrue(retcode == 0, "Error in fastbootd reboot test")
99 asserts.assertTrue(retcode == 0, "Error in flashing logical partitions")
/test/vts-testcase/hal/usb/gadget/V1_0/host/
DVtsHalUsbGadgetV1_0HostTest.py86 asserts.assertTrue(self.checkProtocol(255, 66, 1), "ADB not present")
96 asserts.assertTrue(self.checkProtocol(6, 1, 1), "MTP not present")
106 asserts.assertTrue(self.checkProtocol(6, 1, 1), "PTP not present")
116 asserts.assertTrue(self.checkProtocol(1, 3, 0), "MIDI not present")
126 asserts.assertTrue(self.checkProtocol(10, 0, 0), "RNDIS not present")
/test/vti/dashboard/src/test/java/com/android/vts/entity/
DTestAcknowledgmentEntityTest.java72 Assert.assertTrue( in testEntitySerialization()
75 Assert.assertTrue( in testEntitySerialization()
78 Assert.assertTrue( in testEntitySerialization()
87 Assert.assertTrue(deserialized.getBranches().containsAll(branches)); in testEntitySerialization()
88 Assert.assertTrue(deserialized.getDevices().containsAll(devices)); in testEntitySerialization()
89 Assert.assertTrue(deserialized.getTestCaseNames().containsAll(testCaseNames)); in testEntitySerialization()
142 Assert.assertTrue(deserialized.getBranches().containsAll(branches)); in testJsonSerialization()
143 Assert.assertTrue(deserialized.getDevices().containsAll(devices)); in testJsonSerialization()
144 Assert.assertTrue(deserialized.getTestCaseNames().containsAll(testCaseNames)); in testJsonSerialization()
/test/vts-testcase/kernel/api/sysfs/
DKernelApiSysfsTest.py65 asserts.assertTrue(match is not None, message)
90 asserts.assertTrue(target_file_utils.IsReadOnly(permission),
101 asserts.assertTrue(target_file_utils.IsReadWrite(permission),
121 asserts.assertTrue(contents in
152 asserts.assertTrue(m is not None,
250 asserts.assertTrue(lock_name in active_sources,
259 asserts.assertTrue(lock_name not in active_sources,
263 asserts.assertTrue(lock_name in inactive_sources,
/test/vts/utils/python/coverage/
Darc_summary_test.py40 self.assertTrue(arc.Resolve())
76 self.assertTrue(arc.Resolve())
77 self.assertTrue(arc.resolved)
113 self.assertTrue(arc.Resolve())
114 self.assertTrue(arc.resolved)
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DSubPlanHelperTest.java121 assertTrue(planIncludes.contains("CtsMyModuleTestCases")); // command-line '-m' arg in testCreateSubPlan()
122 assertTrue(planIncludes.contains(mf1.toString())); // include module with not-executed test in testCreateSubPlan()
123 assertTrue(planExcludes.contains(tf1.toString())); // exclude passing test in that module in testCreateSubPlan()
124 assertTrue(planIncludes.contains(tf3.toString())); // include failure in executed module in testCreateSubPlan()
132 assertTrue(includes.contains(tf.toString())); in testAddInclude()
140 assertTrue(excludes.contains(tf.toString())); in testAddExclude()
151 assertTrue(includes.contains(filterWithoutSuffix.toString())); in testAddParameterizedInclude()
160 assertTrue(excludes.isEmpty()); in testAddParameterizedExclude()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsPythonVirtualenvPreparerTest.java21 import static org.junit.Assert.assertTrue;
207 assertTrue(VtsPythonVirtualenvPreparer.PIP_INSTALL_DELAY >= 1000); in test_PIP_INSTALL_DELAY_minimum_value()
231 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_reqFile_failure()
264 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_depModule_failure()
296 assertTrue(mPreparer.createVirtualenv()); in test_initVirtualenv_creationSuccess()
318 assertTrue("IOException is expected", false); in test_initVirtualenv_creationSuccess_completionFail()
342 assertTrue(mPreparer.createVirtualenv()); in test_initVirtualenv_creationFail_Errno26_waitSucceed()
363 assertTrue(!mPreparer.createVirtualenv()); in test_initVirtualenv_creationFail_Errno26_waitFailed()
381 assertTrue(!mPreparer.createVirtualenv()); in test_initVirtualenv_creationFail_noErrno26()
DVtsDevicePreparerTest.java19 import static org.junit.Assert.assertTrue;
181 assertTrue(mPreparer.isBootCompleted()); in test_isBootCompleted_true()
195 assertTrue(!mPreparer.isBootCompleted()); in test_isBootCompleted_false1()
207 assertTrue(!mPreparer.isBootCompleted()); in test_isBootCompleted_false2()
219 assertTrue(!mPreparer.isBootCompleted()); in test_isBootCompleted_false3()
231 assertTrue(!mPreparer.isBootCompleted()); in test_isBootCompleted_null1()
243 assertTrue(!mPreparer.isBootCompleted()); in test_isBootCompleted_null2()
255 assertTrue(!mPreparer.isBootCompleted()); in test_isBootCompleted_null3()
268 assertTrue(mPreparer.isFrameworkRunning()); in test_isFrameworkRunning_true()
281 assertTrue(!mPreparer.isFrameworkRunning()); in test_isFrameworkRunning_false()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/build/
DCompatibilityBuildProviderTest.java20 import static org.junit.Assert.assertTrue;
77 assertTrue(info instanceof IDeviceBuildInfo); in testBaseGetBuild()
100 assertTrue(info instanceof IDeviceBuildInfo); in testBaseGetBuild_withDevice()
125 assertTrue(info instanceof IDeviceBuildInfo); in testBaseGetBuild_withDeviceAndBuildFlavorPrefix()
152 assertTrue(info instanceof IDeviceBuildInfo); in testBaseGetBuild_withBuildFlavorAndPrefixOverride()
175 assertTrue(String.format("URL was %s and should have contained %s", url, uniquePattern), in testDynamicUrlOverride()
/test/framework/harnesses/host_controller/build/
Dbuild_provider_test.py114 self.assertTrue(
131 self.assertTrue(
146 self.assertTrue(
148 self.assertTrue(
/test/suite_harness/tools/dex-tools/test/dex/reader/
DDexFileReaderTests.java21 import static org.junit.Assert.assertTrue;
226 assertTrue(value instanceof List); in testG0()
251 assertTrue(value instanceof List); in testG1()
276 assertTrue(Modifier.isInterface(I0.getModifiers())); in testI0()
310 assertTrue(innerTypeNames.contains(inner.getName())); in testOuter0()
311 assertTrue(innerTypeNames.contains(staticInner.getName())); in testOuter0()
363 assertTrue(true); in testAllReader()
379 assertTrue(true); in testAllReader0()

12345