Home
last modified time | relevance | path

Searched refs:TestCase (Results 1 – 25 of 194) sorted by relevance

12345678

/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFadingEdgeTest.java67 private static final TestCase[] TEST_DATA = {
69 new TestCase("Should not fade when text:empty, fading:disabled",
71 new TestCase("Should not fade when text:short, dir:LTR, fading:disabled",
73 new TestCase("Should not fade when text:short, dir:RTL, fading:disabled",
75 new TestCase("Should not fade when text:long , dir:LTR, fading:disabled",
77 new TestCase("Should not fade when text:long , dir:RTL, fading:disabled",
79 new TestCase("Should not fade when text:long, dir:LTR, scroll:middle",
81 new TestCase("Should not fade when text:long, dir:RTL, scroll:middle",
85 new TestCase("Should not fade when text:empty",
87 new TestCase("Should not fade when text:short, dir:LTR",
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityRecordTest.java26 import junit.framework.TestCase;
70 TestCase.assertEquals("addedCount not properly recycled", -1, record.getAddedCount()); in assertAccessibilityRecordCleared()
71 TestCase.assertNull("beforeText not properly recycled", record.getBeforeText()); in assertAccessibilityRecordCleared()
72 TestCase.assertFalse("checked not properly recycled", record.isChecked()); in assertAccessibilityRecordCleared()
73 TestCase.assertNull("className not properly recycled", record.getClassName()); in assertAccessibilityRecordCleared()
74 TestCase.assertNull("contentDescription not properly recycled", in assertAccessibilityRecordCleared()
76 TestCase.assertEquals("currentItemIndex not properly recycled", -1, in assertAccessibilityRecordCleared()
78 TestCase.assertFalse("enabled not properly recycled", record.isEnabled()); in assertAccessibilityRecordCleared()
79 TestCase.assertEquals("fromIndex not properly recycled", -1, record.getFromIndex()); in assertAccessibilityRecordCleared()
80 TestCase.assertFalse("fullScreen not properly recycled", record.isFullScreen()); in assertAccessibilityRecordCleared()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DMacAddressTest.java45 static class TestCase { class in MacAddressTest
51 TestCase(String macAddress, String ouiString, int addressType, boolean isLocallyAssigned) { in TestCase() method in MacAddressTest.TestCase
81 TestCase[] tests = { in testMacAddress()
82 new TestCase("ff:ff:ff:ff:ff:ff", "ff:ff:ff", TYPE_BROADCAST, LOCALLY_ASSIGNED), in testMacAddress()
83 new TestCase("d2:c4:22:4d:32:a8", "d2:c4:22", TYPE_UNICAST, LOCALLY_ASSIGNED), in testMacAddress()
84 new TestCase("33:33:aa:bb:cc:dd", "33:33:aa", TYPE_MULTICAST, LOCALLY_ASSIGNED), in testMacAddress()
85 new TestCase("06:00:00:00:00:00", "06:00:00", TYPE_UNICAST, LOCALLY_ASSIGNED), in testMacAddress()
86 new TestCase("07:00:d3:56:8a:c4", "07:00:d3", TYPE_MULTICAST, LOCALLY_ASSIGNED), in testMacAddress()
87 new TestCase("00:01:44:55:66:77", "00:01:44", TYPE_UNICAST, GLOBALLY_UNIQUE), in testMacAddress()
88 new TestCase("08:00:22:33:44:55", "08:00:22", TYPE_UNICAST, GLOBALLY_UNIQUE), in testMacAddress()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java111 List<TestCase> testCases = mTestCaseBuilder.getTestCases(); in tearDown()
117 for (TestCase testCase : testCases) { in tearDown()
145 private TestPositionInfo runRenderSpec(TestCase testCase) { in runRenderSpec()
166 private Bitmap captureRenderSpec(TestCase testCase) { in captureRenderSpec()
204 private List<TestCase> mTestCases;
221 for (TestCase testCase : mTestCases) { in runWithComparer()
238 for (TestCase testCase : mTestCases) { in runWithVerifier()
261 for (TestCase testCase : mTestCases) { in runWithAnimationVerifier()
305 mTestCases.add(new TestCase(layoutId, viewInitializer, useHardware)); in addLayout()
311 TestCase test = new TestCase(layoutId, viewInitializer, useHardware); in addLayout()
[all …]
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java111 List<TestCase> testCases = mTestCaseBuilder.getTestCases(); in tearDown()
117 for (TestCase testCase : testCases) { in tearDown()
145 private TestPositionInfo runRenderSpec(TestCase testCase) { in runRenderSpec()
166 private Bitmap captureRenderSpec(TestCase testCase) { in captureRenderSpec()
204 private List<TestCase> mTestCases;
221 for (TestCase testCase : mTestCases) { in runWithComparer()
237 for (TestCase testCase : mTestCases) { in runWithVerifier()
260 for (TestCase testCase : mTestCases) { in runWithAnimationVerifier()
303 mTestCases.add(new TestCase(layoutId, viewInitializer, useHardware)); in addLayout()
309 TestCase test = new TestCase(layoutId, viewInitializer, useHardware); in addLayout()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DIntentTests.java26 import android.server.wm.intent.Persistence.TestCase;
84 private TestCase mTestCase;
86 public IntentTests(TestCase testCase, String name) { in IntentTests()
118 public static List<TestCase> readAllFromAssets() throws IOException, JSONException { in readAllFromAssets()
119 List<TestCase> testCases = Lists.newArrayList(); in readAllFromAssets()
137 TestCase testCase = TestCase.fromJson( in readAllFromAssets()
147 static void writeToDocumentsStorage(TestCase testCase, int number, String dirName) in writeToDocumentsStorage()
DIntentGenerationTests.java25 import android.server.wm.intent.Persistence.TestCase;
112 TestCase testCase = readFromStorage(test); in verifySingle()
116 private TestCase readFromStorage(String fileName) throws IOException, JSONException { in readFromStorage()
123 return TestCase.fromJson(jsonInTestFile, TABLE, fileName); in readFromStorage()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DBaseInstallMultiple.java25 import junit.framework.TestCase;
143 TestCase.assertTrue(result, result.startsWith("Success")); in run()
174 TestCase.assertTrue(result, result.startsWith("Success")); in run()
186 TestCase.assertTrue(result, result.startsWith("Success")); in run()
197 TestCase.assertTrue(result, result.startsWith("Success")); in run()
199 TestCase.assertFalse(result, result.startsWith("Success")); in run()
202 TestCase.assertTrue(result, result.contains(failure)); in run()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DBaseInstallMultiple.java25 import junit.framework.TestCase;
137 TestCase.assertTrue(result, result.startsWith("Success")); in run()
168 TestCase.assertTrue(result, result.startsWith("Success")); in run()
179 TestCase.assertTrue(result, result.startsWith("Success")); in run()
181 TestCase.assertFalse(result, result.startsWith("Success")); in run()
184 TestCase.assertTrue(result, result.contains(failure)); in run()
/cts/hostsidetests/classloaders/splits/src/android/classloaders/cts/
DBaseInstallMultiple.java25 import junit.framework.TestCase;
137 TestCase.assertTrue(result, result.startsWith("Success")); in run()
168 TestCase.assertTrue(result, result.startsWith("Success")); in run()
179 TestCase.assertTrue(result, result.startsWith("Success")); in run()
181 TestCase.assertFalse(result, result.startsWith("Success")); in run()
184 TestCase.assertTrue(result, result.contains(failure)); in run()
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DBaseInstallMultiple.java23 import junit.framework.TestCase;
84 TestCase.assertTrue(result, result.startsWith("Success")); in run()
115 TestCase.assertTrue(result, result.startsWith("Success")); in run()
125 TestCase.assertTrue(result, result.contains("Success")); in run()
127 TestCase.assertFalse(result, result.contains("Success")); in run()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothSharingRestrictionTest.java30 import junit.framework.TestCase;
122 TestCase.fail("The state of " + component + " should have been " + expectedState in assertComponentStateAfterTimeout()
145 TestCase.fail(component + " is available as a handler for " + intent); in assertHandlerAvailable()
151 TestCase.fail(component + " isn't available as a handler for " + intent); in assertHandlerAvailable()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCtsReportHandler.java44 private CtsReport.TestPackage.TestSuite.TestCase.Builder mTestCaseBld;
66 mTestCaseBld = CtsReport.TestPackage.TestSuite.TestCase.newBuilder(); in startElement()
69 CtsReport.TestPackage.TestSuite.TestCase.Test.Builder testBld; in startElement()
70 testBld = CtsReport.TestPackage.TestSuite.TestCase.Test.newBuilder(); in startElement()
DCtsReportParser.java76 for (CtsReport.TestPackage.TestSuite.TestCase testCase : tSuite.getTestCaseList()) { in printCtsReport()
77 … for (CtsReport.TestPackage.TestSuite.TestCase.Test test : testCase.getTestList()) { in printCtsReport()
105 for (CtsReport.TestPackage.TestSuite.TestCase testCase : tSuite.getTestCaseList()) { in printCtsReportSummary()
106 … for (CtsReport.TestPackage.TestSuite.TestCase.Test test : testCase.getTestList()) { in printCtsReportSummary()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestResult.java22 import junit.framework.TestCase;
138 protected void run(TestCase testCase) { in run()
152 private final TestCase mTestCase;
154 public TestNode(TestCase testCase) { in TestNode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DResponderTestActivity.java33 import com.android.cts.verifier.p2p.testcase.TestCase;
34 import com.android.cts.verifier.p2p.testcase.TestCase.TestCaseListener;
49 private TestCase mTestCase;
79 abstract protected TestCase getTestCase(Context context); in getTestCase()
DRequesterTestListActivity.java31 import com.android.cts.verifier.p2p.testcase.TestCase;
99 private void addTestCase(ArrayTestListAdapter adapter, TestCase testcase) { in addTestCase()
101 intent.putExtra(TestCase.EXTRA_TEST_NAME, in addTestCase()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteQueryTest.java19 import junit.framework.TestCase;
21 public class SQLiteQueryTest extends TestCase {
/cts/tests/camera/src/android/hardware/cts/
DCamera_ParametersTest.java19 import junit.framework.TestCase;
22 public class Camera_ParametersTest extends TestCase {
/cts/tests/tests/os/src/android/os/cts/
DRemoteExceptionTest.java18 import junit.framework.TestCase;
22 public class RemoteExceptionTest extends TestCase {
/cts/tests/tests/drm/src/android/drm/cts/
DNativeCodeTest.java19 import junit.framework.TestCase;
21 public class NativeCodeTest extends TestCase {
/cts/tests/tests/bionic_app/com/android/bionic_app/
DBionicAppTest.java19 import junit.framework.TestCase;
21 public class BionicAppTest extends TestCase {
/cts/tests/tests/telephony/current/src/android/telephony/gsm/cts/
DSmsMessage_MessageClassTest.java19 import junit.framework.TestCase;
24 public class SmsMessage_MessageClassTest extends TestCase {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/
DCameraPerformanceActivity.java39 import junit.framework.TestCase;
70 private HashMap<String, TestCase> mTestCaseMap = new HashMap<String, TestCase>();
80 private void executeTest(TestCase testCase) { in executeTest()
224 TestCase testCase = (CameraTestCase) test; in initializeTestCases()
267 TestCase testCase = mTestCaseMap.get(mTestId); in performTest()
/cts/tests/tests/jni/src/android/jni/cts/
DJniTestCase.java21 import junit.framework.TestCase;
23 class JniTestCase extends TestCase {

12345678