HomeSort by relevance Sort by last modified time
    Searched refs:testCase (Results 1 - 25 of 94) sorted by null

1 2 3 4

  /system/extras/tests/sdcard/
sdcard_perf_test.cpp 44 #include "testcase.h"
103 using android_test::TestCase;
149 void printHeader(int argc, char **argv, const TestCase& testCase)
193 printf("# Fadvise: %s\n", testCase.fadviseAsStr());
203 // @param[out] testCase Structure built from the cmd line args.
204 void parseCmdLine(int argc, char **argv, TestCase *testCase)\
223 testCase->setDataSize(atoi(optarg) * 1024);
226 testCase->setChunkSize(atoi(optarg) * 1024)
    [all...]
  /cts/suite/audio_quality/test/
AudioHardwareTest.cpp 39 TaskCase* testCase = new TaskCase();
40 ASSERT_TRUE(testCase != NULL);
41 android::sp<AudioHardware> playback = AudioHardware::createAudioHw(false, true, testCase);
43 android::sp<AudioHardware> recording = AudioHardware::createAudioHw(false, false, testCase);
45 delete testCase;
ModelBuilderTest.cpp 29 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile);
30 ASSERT_TRUE(testCase != NULL);
31 //TODO verify TestCase
32 delete testCase;
37 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile);
38 ASSERT_TRUE(testCase != NULL);
39 //TODO verify TestCase
40 delete testCase;
47 //TODO verify TestCase
  /external/webkit/Tools/Scripts/webkitperl/VCSUtils_unittest/
fixChangeLogPatchThenSetChangeLogDateAndReviewer.pl 80 foreach my $testCase (@testCaseHashRefs) {
81 my $testNameStart = "setChangeLogDateAndReviewer(fixChangeLogPatch()): $testCase->{testName}: comparing";
83 my $patch = $testCase->{patch};
84 my $reviewer = $testCase->{reviewer};
85 my $epochTime = $testCase->{epochTime};
89 my $expectedReturn = $testCase->{expectedReturn};
parseDiffHeader.pl 107 foreach my $testCase (@testCaseHashRefs) {
108 my $testNameStart = "parseDiffHeader(): $testCase->{diffName}: comparing";
111 open($fileHandle, "<", \$testCase->{inputText});
115 my $expectedReturn = $testCase->{expectedReturn};
120 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
prepareParsedPatch.pl 127 foreach my $testCase (@testCases) {
128 my $testName = $testCase->{testName};
129 my @diffHashRefs = @{$testCase->{diffHashRefsInput}};
130 my $expected = $testCase->{expected};
setChangeLogDateAndReviewer.pl 117 foreach my $testCase (@testCaseHashRefs) {
118 my $testNameStart = "setChangeLogDateAndReviewer(): $testCase->{testName}: comparing";
120 my $patch = $testCase->{patch};
121 my $reviewer = $testCase->{reviewer};
122 my $epochTime = $testCase->{epochTime};
125 my $expectedReturn = $testCase->{expectedReturn};
parseSvnDiffHeader.pl 206 foreach my $testCase (@testCaseHashRefs) {
207 my $testNameStart = "parseSvnDiffHeader(): $testCase->{diffName}: comparing";
210 open($fileHandle, "<", \$testCase->{inputText});
214 my $expectedReturn = $testCase->{expectedReturn};
219 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
parseSvnPropertyValue.pl 219 foreach my $testCase (@testCaseHashRefs) {
220 my $testNameStart = "parseSvnPropertyValue(): $testCase->{diffName}: comparing";
223 open($fileHandle, "<", \$testCase->{inputText});
227 my $expectedReturn = $testCase->{expectedReturn};
232 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
  /cts/suite/audio_quality/lib/src/audio/
AudioHardware.cpp 77 TaskCase* testCase)
93 if (testCase != NULL) {
95 hw = new AudioRemotePlayback(testCase->getRemoteAudio());
97 hw = new AudioRemoteRecording(testCase->getRemoteAudio());
109 bool AudioHardware::startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase)
111 if (testCase == NULL) { // default implementation only handles local buffer.
114 android::sp<Buffer> buffer = testCase->findBuffer(id);
  /cts/suite/audio_quality/lib/include/audio/
AudioHardware.h 58 TaskCase* testCase = NULL);
67 * Convenience API to pass buffer ID. The buffer can be either present in testCase
68 * or in remote device (when testCase is NULL)
70 virtual bool startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase = NULL);
  /cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
TestSuite.java 43 Map<String, TestCase> mChildTestCaseMap = new LinkedHashMap<String, TestCase>();
81 TestCase testCase = getTestCase(testClassName);
82 return testCase.findTest(testName, insertIfMissing);
98 * Gets all the child {@link TestCase}s
100 public Collection<TestCase> getTestCases() {
120 * Get the child {@link TestCase} with given name, creating if necessary.
124 private TestCase getTestCase(String testCaseName) {
125 TestCase testCase = mChildTestCaseMap.get(testCaseName)
    [all...]
  /frameworks/base/test-runner/tests/src/android/test/
TestCaseUtilTest.java 20 import junit.framework.TestCase;
25 public class TestCaseUtilTest extends TestCase {
38 TestCase testCase = new OneTestTestCaseWithSuite();
40 List<String> testCaseNames = TestCaseUtil.getTestCaseNames(testCase, false);
65 public static class OneTestTestCase extends TestCase {
70 public static class OneTestTestCaseWithSuite extends TestCase {
72 TestCase testCase = new OneTestTestCase();
73 testCase.setName("testOne")
    [all...]
AndroidTestRunnerTest.java 24 import junit.framework.TestCase;
37 public class AndroidTestRunnerTest extends TestCase {
53 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
63 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
107 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
108 for (TestCase testCase : testCases) {
109 assertSame(mStubContext, ((AndroidTestCase) testCase).getContext());
123 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
124 for (TestCase testCase : testCases)
    [all...]
  /external/junit/src/junit/textui/
TestRunner.java 7 import junit.framework.TestCase;
19 * <p>TestRunner expects the name of a TestCase class as argument.
59 * Runs a suite extracted from a TestCase subclass.
61 static public void run(Class<? extends TestCase> testClass) {
153 String testCase= "";
161 testCase= extractClassName(args[++i]);
165 testCase= arg.substring(0, lastIndex);
170 testCase= args[i];
173 if (testCase.equals(""))
174 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class")
    [all...]
  /external/icu4c/test/intltest/
ssearch.h 51 virtual int32_t monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
54 virtual int32_t bmMonkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
uts46test.cpp 237 struct TestCase {
245 static const TestCase testCases[]={
585 const TestCase &testCase=testCases[i];
586 UnicodeString input(ctou(testCase.s));
587 UnicodeString expected(ctou(testCase.u));
596 (int)i, testCase.o, testCase.s)
601 uint32_t uniErrors=testCase.errors&~
605 char mode=testCase.o[0]
    [all...]
ssearch.cpp 172 const UXMLElement *testCase;
175 while((testCase = root->nextChildElement(tc)) != NULL) {
177 if (testCase->getTagName().compare("test-case") != 0) {
181 const UnicodeString *id = testCase->getAttribute("id");
195 const UnicodeString *strength = testCase->getAttribute("strength");
216 const UnicodeString *norm = testCase->getAttribute("norm");
226 const UnicodeString *alt = testCase->getAttribute("alternate_handling");
234 const UnicodeString *locale = testCase->getAttribute("locale");
249 n = testCase->getChildElement("pattern");
259 n = testCase->getChildElement("pre")
    [all...]
  /libcore/dom/src/test/java/org/w3c/domts/
DOMErrorMonitor.java 57 public void assertLowerSeverity(DOMTestCase testCase, String id, int severity) {
62 testCase.fail(id + error.getMessage());
  /packages/apps/Gallery2/tests/src/com/android/photos/data/
DataTestRunner.java 23 import junit.framework.TestCase;
34 public void initialize(TestCase testCase) {
35 MediaCacheTest test = (MediaCacheTest) testCase;
  /cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/
TestListParser.java 37 TestCase currentCase = null;
96 private TestCase handleCase(TestSuite suite, String caseName) {
97 TestCase testCase = new TestCase(caseName);
98 suite.addCase(testCase);
99 return testCase;
102 private void handleTest(TestCase testCase, String test, int timeout) {
103 testCase.addTest(test, timeout)
    [all...]
TestSuite.java 31 private final List<TestCase> mCases = new ArrayList<TestCase>();
57 public void addCase(TestCase testCase) {
58 mCases.add(testCase);
61 public Collection<TestCase> getCases() {
  /frameworks/base/test-runner/src/android/test/
AndroidTestRunner.java 26 import junit.framework.TestCase;
40 private List<TestCase> mTestCases;
53 TestCase testCase = buildSingleTestMethod(testClass, testMethodName);
54 mTestCases = Lists.newArrayList(testCase);
66 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true);
94 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) {
110 private TestCase newSingleTestMethod(Class testClass, String testMethodName,
113 TestCase testCase = (TestCase) constructor.newInstance(args)
    [all...]
  /external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/
TestSuiteAdapter.java 59 TestCase testCase = new TestCase(in, out);
60 currentRule.addTestCase(testCase);
  /external/webkit/Tools/TestWebKitAPI/
Test.h 43 Register(const std::string& testSuite, const std::string& testCase)
45 TestsController::shared().registerCreateTestFunction(testSuite + "/" + testCase, Register::create);

Completed in 655 milliseconds

1 2 3 4