Home
last modified time | relevance | path

Searched refs:assertTrue (Results 1 – 25 of 120) 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;
67 assertTrue(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
68 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
87 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
105 assertTrue(backupUtils.enableBackup(false)); in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
106 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
125 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableFalseAndDisabled_returnsFalse()
144 assertTrue(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndEnabledAndCommandsReturnMultipleLines()
145 assertTrue(mIsEnableCommandCalled); in testEnableBackup_whenEnableTrueAndEnabledAndCommandsReturnMultipleLines()
172 assertTrue(isExceptionHappened); in testEnableBackup_whenQueryCommandThrows_propagatesException()
[all …]
/test/vts/testcases/host/fastboot_getvar/src/com/android/tests/
DFastbootGetvarUserspaceTest.java20 import static org.junit.Assert.assertTrue;
61 Assert.assertTrue(m1.find()); in setUp()
86 assertTrue(allCpuAbis.contains(cpuAbi)); in testCpuAbiInfo()
98 assertTrue(intOsVersion >= ANDROID_RELEASE_VERSION_R); in testOsVersion()
100 assertTrue(osVersion.matches("[A-Z]+")); in testOsVersion()
113 assertTrue(intVndkVersion >= PLATFORM_API_LEVEL_R); in testVndkVersion()
115 assertTrue(vndkVersion.matches("[A-Z]+")); in testVndkVersion()
124 assertTrue(dynamic_partition.equals("true")); in testDynamicPartition()
132 assertTrue(treble_enabled.equals("true") || treble_enabled.equals("false")); in testTrebleEnable()
142 assertTrue(api_level >= PLATFORM_API_LEVEL_R); in testFirstApiLevel()
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationSuiteResultReporterTest.java18 import static org.junit.Assert.assertTrue;
110 assertTrue(reportFile.exists()); in testSuiteVariant()
112 assertTrue(content.contains("suite_name=\"CTS\"")); in testSuiteVariant()
113 assertTrue(content.contains("suite_variant=\"CTS\"")); in testSuiteVariant()
114 assertTrue(content.contains("suite_version=\"version\"")); in testSuiteVariant()
136 assertTrue(reportFile.exists()); in testSuiteVariantGSI()
138 assertTrue(content.contains("suite_name=\"CTS\"")); in testSuiteVariantGSI()
139 assertTrue(content.contains("suite_variant=\"CTS_ON_GSI\"")); in testSuiteVariantGSI()
140 assertTrue(content.contains("suite_version=\"version\"")); in testSuiteVariantGSI()
166 assertTrue(reportFile.exists()); in testSuiteVariantGSI_R_Compatibility()
[all …]
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-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java19 import static org.junit.Assert.assertTrue;
46 assertTrue(TargetFileUtils.isReadOnly(state, getDevice())); in testAndroidUSB()
50 assertTrue(possibles.contains(content)); in testAndroidUSB()
63 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testCpuOnlineFormat()
65 assertTrue(content.matches("(\\d+(-\\d+)?)(,\\d+(-\\d+)?)*")); in testCpuOnlineFormat()
69 assertTrue("Failed readonly check of " + filePath, in isReadOnlyAndIntegerContent()
77 assertTrue("Failed readwrite check of " + filePath, in isReadWriteAndIntegerContent()
91 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testPerCpuCpufreq()
98 assertTrue("Malformatted range in " + filePath, m.find()); in testPerCpuCpufreq()
129 assertTrue(TargetFileUtils.isReadOnly(f, getDevice())); in testPerCpuCpufreq()
[all …]
/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/testcases/host/kernel_proc_file_api_test/
Dvts_kernel_proc_file_api_test.py137 self.assertTrue(serial_number, "$ANDROID_SERIAL is empty.")
164 self.assertTrue(self.dut.IsShutdown(10), "Device is still alive.")
165 self.assertTrue(self.dut.WaitForBootCompletion(300))
166 self.assertTrue(self.dut.Root())
222 self.assertTrue(self.dut.Exists(filepath),
225 self.assertTrue(target_file_utils.IsReadOnly(permission))
242 self.assertTrue(self.dut.Exists(filepath), '%s does not exist.' % filepath)
244 self.assertTrue(target_file_utils.IsReadWrite(permission))
251 self.assertTrue(swp_state >= 0 and swp_state <= 2,
285 self.assertTrue(self.dut.Exists(filepath), '%s does not exist.' % filepath)
[all …]
/test/vts/testcases/host/selinux_test/src/com/android/tests/selinux/
DKernelSelinuxFileApiTest.java19 import static org.junit.Assert.assertTrue;
57 assertTrue( in testSelinuxCheckReqProt()
61 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permissionBits) in testSelinuxCheckReqProt()
67 assertTrue("Results not valid!", "0".equals(content) || "1".equals(content)); in testSelinuxCheckReqProt()
75 assertTrue( in testSelinuxPolicy()
84 assertTrue( in testSelinuxNull()
88 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permissionBits) in testSelinuxNull()
/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")
106 asserts.assertTrue(cpu_abi in ['armeabi-v7a', 'arm64-v8a',
/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()
DPollingCheckTest.java21 import static org.junit.Assert.assertTrue;
40 assertTrue("check failed", PollingCheck.check(testClock, 10, 100, () -> true)); in testCheckSuccess()
46 assertTrue("check failed", PollingCheck.check(testClock, 10, 1000, () -> ++i[0] == 3)); in testCheckEventualSuccess()
78 assertTrue("Expected condition to be checked", conditionChecked[0]); in testCheckChecksConditionAtLeastOnce()
/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/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()

12345