Home
last modified time | relevance | path

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

123

/test/vts/testcases/host/fastboot_getvar/src/com/android/tests/
DFastbootGetvarUserspaceTest.java20 import static org.junit.Assert.assertTrue;
64 Assert.assertTrue(m1.find()); in setUpClass()
93 assertTrue(allCpuAbis.contains(cpuAbi)); in testCpuAbiInfo()
105 assertTrue(intOsVersion >= ANDROID_RELEASE_VERSION_R); in testOsVersion()
107 assertTrue(osVersion.matches("[A-Z]+")); in testOsVersion()
120 assertTrue(intVndkVersion >= PLATFORM_API_LEVEL_R); in testVndkVersion()
122 assertTrue(vndkVersion.matches("[A-Z]+")); in testVndkVersion()
131 assertTrue(dynamic_partition.equals("true")); in testDynamicPartition()
139 assertTrue(treble_enabled.equals("true") || treble_enabled.equals("false")); in testTrebleEnable()
149 assertTrue(api_level >= PLATFORM_API_LEVEL_R); in testFirstApiLevel()
[all …]
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java19 import static org.junit.Assert.assertTrue;
50 assertTrue(TargetFileUtils.isReadOnly(state, getDevice())); in testAndroidUSB()
54 assertTrue(possibles.contains(content)); in testAndroidUSB()
68 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testCpuOnlineFormat()
70 assertTrue(content.matches("(\\d+(-\\d+)?)(,\\d+(-\\d+)?)*")); in testCpuOnlineFormat()
74 assertTrue("Failed readonly check of " + filePath, in isReadOnlyAndIntegerContent()
82 assertTrue("Failed readwrite check of " + filePath, in isReadWriteAndIntegerContent()
96 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testPerCpuCpufreq()
103 assertTrue("Malformatted range in " + filePath, m.find()); in testPerCpuCpufreq()
134 assertTrue(TargetFileUtils.isReadOnly(f, getDevice())); in testPerCpuCpufreq()
[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/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/app_compat/csuite/harness/src/test/java/com/android/compatibility/testtype/
DAppLaunchTestTest.java34 import static org.junit.Assert.assertTrue;
169 assertTrue(sut.mIncludeFilters.contains("test_filter")); in addIncludeFilter_validIncludeFilter()
188 assertTrue(sut.mIncludeFilters.contains("filter_one")); in addAllIncludeFilters_validIncludeFilters()
189 assertTrue(sut.mIncludeFilters.contains("filter_two")); in addAllIncludeFilters_validIncludeFilters()
199 assertTrue(sut.mIncludeFilters.isEmpty()); in clearIncludeFilters()
230 assertTrue(sut.mExcludeFilters.contains("test_filter")); in addExcludeFilter_validExcludeFilter()
249 assertTrue(sut.mExcludeFilters.contains("filter_one")); in addAllExcludeFilters_validExcludeFilters()
250 assertTrue(sut.mExcludeFilters.contains("filter_two")); in addAllExcludeFilters_validExcludeFilters()
260 assertTrue(sut.mExcludeFilters.isEmpty()); in clearExcludeFilters()
276 assertTrue(sut.inFilter("filter_one")); in inFilter_withEmptyFilter()
[all …]
/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()
DCodeCoverageEntityTest.java26 import static org.junit.Assert.assertTrue;
56 assertTrue(codeCoverageEntity.getUrlSafeKey().endsWith(urlKey)); in getUrlSafeKeyTest()
DApiCoverageExcludedEntityTest.java25 import static org.junit.Assert.assertTrue;
61 assertTrue(codeCoverageEntity.getUrlSafeKey().endsWith(urlKey)); in getUrlSafeKeyTest()
/test/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/
DHalUsbGadgetV1_0HostTest.java19 import static org.junit.Assert.assertTrue;
101 assertTrue("ADB not present", checkProtocol(255, 66, 1)); in testAndroidUSB()
115 assertTrue("MTP not present", checkProtocol(6, 1, 1)); in testMtp()
129 assertTrue("PTP not present", checkProtocol(6, 1, 1)); in testPtp()
145 assertTrue("MIDI not present", checkProtocol(1, 3, 0)); in testMIDI()
161 assertTrue("RNDIS not present", checkProtocol(10, 0, 0)); in testRndis()
/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/vts-testcase/hal/treble/platform_version/
Dvts_treble_platform_version_test.py31 self.assertTrue(serial_number, "$ANDROID_SERIAL is empty.")
41 self.assertTrue(len(out.strip()) > 0,
73 self.assertTrue(firstApiLevel >= api.PLATFORM_API_LEVEL_O,
87 self.assertTrue(sdkVersion >= api.PLATFORM_API_LEVEL_O,
DVtsTreblePlatformVersionTest.py41 asserts.assertTrue(len(results[const.STDOUT][0].strip()) > 0,
73 asserts.assertTrue(launchApiLevel >= api.PLATFORM_API_LEVEL_O,
81 asserts.assertTrue(firstApiLevel >= api.PLATFORM_API_LEVEL_P,
94 asserts.assertTrue(sdkVersion >= api.PLATFORM_API_LEVEL_O,
/test/vts-testcase/vndk/files/
Dvts_vndk_files_test.py48 self.assertTrue(serial_number, "$ANDROID_SERIAL is empty.")
50 self.assertTrue(self._dut.IsRoot(), "This test requires adb root.")
92 self.assertTrue(vndk_lists, "Cannot load VNDK library lists.")
112 self.assertTrue(vndk_lists, "Cannot load VNDK library lists.")
/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/
DTargetFileUtilsTest.java20 import static org.junit.Assert.assertTrue;
50 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permission)); in testHasPermission()
56 assertTrue(TargetFileUtils.hasPermission(FilePermission.WRITE, permission)); in testHasPermission()
62 assertTrue( in testHasPermission()
/test/vti/test_serving/gae/webapp/src/endpoint/
Dendpoint_base_test.py81 self.assertTrue(set(full_attrs) <= set(result))
104 self.assertTrue(set(full_attrs) <= set(result))
166 self.assertTrue(more)
235 self.assertTrue(result[i]["serial"] < result[i + 1]["serial"])
252 self.assertTrue(result[i]["serial"] > result[i + 1]["serial"])
/test/vti/dashboard/src/test/java/com/android/vts/job/
DVtsProfilingStatsJobServletTest.java21 import static org.junit.Assert.assertTrue;
168 assertTrue(testKeys.contains(profilingPointRunKey)); in testTasksScheduled()
253 assertTrue(result); in testNewSummary()
278 assertTrue( in testNewSummary()
281 assertTrue( in testNewSummary()
356 assertTrue(result); in testUpdateSummary()
373 assertTrue(pps.getBranch().equals(device.getBranch())); in testUpdateSummary()
374 assertTrue(pps.getBuildFlavor().equals(device.getBuildFlavor())); in testUpdateSummary()
DVtsAlertJobServletTest.java21 import static org.junit.Assert.assertTrue;
98 assertTrue(acknowledged.containsAll(allTestCases)); in testSeparateAcknowledgedAll()
151 assertTrue(acknowledged.contains("testCase1")); in testSeparateAcknowledgedSpecificMismatch()
152 assertTrue(!testCases.contains("testCase1")); in testSeparateAcknowledgedSpecificMismatch()
/test/vts/testcases/host/firmware_test/src/com/android/tests/firmware/
DFirmwareBootHeaderVerification.java96 Assert.assertTrue("Device must at least have a boot image of version 2", in CheckImageHeader()
102 Assert.assertTrue("Device must at least have a boot image of version 1", in CheckImageHeader()
136 Assert.assertTrue("Pull " + bootPaths.get(0) + " failed!", in testBootImageHeader()
155 Assert.assertTrue("Pull " + recoveryPaths.get(0) + " failed!", in testRecoveryImageHeader()
/test/vts-testcase/vndk/abi/
Dvts_vndk_abi_test.py44 self.assertTrue(serial_number, "$ANDROID_SERIAL is empty")
310 self.assertTrue(self._dut.IsRoot(), "This test requires adb root.")
313 self.assertTrue(binder_bitness, "Cannot determine binder bitness.")
315 self.assertTrue(dump_version, "Cannot determine VNDK version.")
322 self.assertTrue(
/test/app_compat/csuite/tools/script/
Dgenerate_module_test.py220 self.assertTrue(
222 self.assertTrue(
225 self.assertTrue(
227 self.assertTrue(
/test/vts/utils/python/common/
Dcmd_result_test.py93 self.assertTrue(any(self.res_multiple_one_error[cmd_utils.STDERR]))
94 self.assertTrue(any(self.res_multiple_one_error[cmd_utils.EXIT_CODE]))
98 self.assertTrue(any(self.res_multiple_one_stderr_only[cmd_utils.STDERR]))
/test/vts/utils/python/controllers/
Dandroid_device_test.py42 self.assertTrue(self.dut.isFrameworkRunning(), err_msg)
54 self.assertTrue(self.dut.isFrameworkRunning(), err_msg)
/test/vti/dashboard/src/test/java/com/android/vts/util/
DProfilingPointSummaryTest.java23 import static org.junit.Assert.assertTrue;
93 assertTrue(summary.hasLabel(label)); in testHasLabel()
142 assertTrue(summary.hasLabel(labels[0])); in testUpdateLabelGrouped()
/test/vts/utils/python/library/
Delf_parser_test.py136 self.assertTrue(is_shared_object)
141 self.assertTrue(has_android_ident)
145 self.assertTrue(self.elf_file.MatchCpuAbi("x86_64"))

123