Home
last modified time | relevance | path

Searched refs:testCase (Results 1 – 23 of 23) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DParentChildTestBase.java36 private void startTestCase(String testCase) throws Exception { in startTestCase() argument
38 .putExtra(EXTRA_TEST_CASE, testCase); in startTestCase()
42 private void startTestCaseDocked(String testCase) throws Exception { in startTestCaseDocked() argument
43 startTestCase(testCase); in startTestCaseDocked()
52 void doFullscreenTest(String testCase, ParentChildTest t) throws Exception { in doFullscreenTest() argument
54 startTestCase(testCase); in doFullscreenTest()
59 private void doDockedTest(String testCase, ParentChildTest t) throws Exception { in doDockedTest() argument
65 startTestCaseDocked(testCase); in doDockedTest()
70 void doParentChildTest(String testCase, ParentChildTest t) throws Exception { in doParentChildTest() argument
71 doFullscreenTest(testCase, t); in doParentChildTest()
[all …]
DDialogFrameTestActivity.java73 final String testCase = intent.getStringExtra(EXTRA_TEST_CASE); in setupTest() local
74 switch (testCase) { in setupTest()
/cts/suite/audio_quality/test/
DAudioHardwareTest.cpp39 TaskCase* testCase = new TaskCase(); in TEST_F() local
40 ASSERT_TRUE(testCase != NULL); in TEST_F()
41 android::sp<AudioHardware> playback = AudioHardware::createAudioHw(false, true, testCase); in TEST_F()
43 android::sp<AudioHardware> recording = AudioHardware::createAudioHw(false, false, testCase); in TEST_F()
45 delete testCase; in TEST_F()
DModelBuilderTest.cpp29 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() local
30 ASSERT_TRUE(testCase != NULL); in TEST_F()
32 delete testCase; in TEST_F()
37 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() local
38 ASSERT_TRUE(testCase != NULL); in TEST_F()
40 delete testCase; in TEST_F()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java111 for (TestCase testCase : testCases) { in tearDown()
112 if (!testCase.wasTestRan) { in tearDown()
138 protected TestPositionInfo runRenderSpec(TestCase testCase) { in runRenderSpec() argument
140 testCase.layoutID, testCase.canvasClient, in runRenderSpec()
141 testCase.viewInitializer, testCase.useHardware, testCase.usePicture); in runRenderSpec()
142 testCase.wasTestRan = true; in runRenderSpec()
143 if (testCase.readyFence != null) { in runRenderSpec()
145 testCase.readyFence.await(5, TimeUnit.SECONDS); in runRenderSpec()
156 protected Bitmap captureRenderSpec(TestCase testCase) { in captureRenderSpec() argument
157 return takeScreenshot(runRenderSpec(testCase)); in captureRenderSpec()
[all …]
/cts/suite/audio_quality/lib/src/audio/
DAudioHardware.cpp77 TaskCase* testCase) in createAudioHw() argument
93 if (testCase != NULL) { in createAudioHw()
95 hw = new AudioRemotePlayback(testCase->getRemoteAudio()); in createAudioHw()
97 hw = new AudioRemoteRecording(testCase->getRemoteAudio()); in createAudioHw()
109 bool AudioHardware::startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase) in startPlaybackOrRecordById() argument
111 if (testCase == NULL) { // default implementation only handles local buffer. in startPlaybackOrRecordById()
114 android::sp<Buffer> buffer = testCase->findBuffer(id); in startPlaybackOrRecordById()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp1386 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() local
1388 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1394 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1401 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1407 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1415 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1420 ret = testCase.closeCamera(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1428 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1434 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
1666 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestResult.java138 protected void run(TestCase testCase) { in run() argument
139 if (testCase instanceof SensorTestCase) { in run()
140 SensorTestCase sensorTestCase = (SensorTestCase) testCase; in run()
143 sensorTestCase.setCurrentTestNode(new TestNode(testCase)); in run()
148 super.run(testCase); in run()
154 public TestNode(TestCase testCase) { in TestNode() argument
155 mTestCase = testCase; in TestNode()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTestReceiver.java34 public static void waitSessionStarted(TestCase testCase, long timeout, TimeUnit unit) in waitSessionStarted() argument
37 testCase.fail("Timed out waiting for session to start"); in waitSessionStarted()
41 testCase.fail(error); in waitSessionStarted()
/cts/common/device-side/nativetesthelper/jni/
Dgtest_wrapper.cpp103 auto testCase = unitTest.GetTestCase(testCaseIndex); in OnTestProgramEnd() local
104 for (int testIndex = 0; testIndex < testCase->total_test_count(); testIndex++) { in OnTestProgramEnd()
105 auto testInfo = testCase->GetTestInfo(testIndex); in OnTestProgramEnd()
108 createTestDescription(mEnv, testCase->name(), testInfo->name())); in OnTestProgramEnd()
166 auto testCase = unitTest->GetTestCase(testCaseIndex); in Java_com_android_gtestrunner_GtestRunner_nInitialize() local
167 for (int testIndex = 0; testIndex < testCase->total_test_count(); testIndex++) { in Java_com_android_gtestrunner_GtestRunner_nInitialize()
168 auto testInfo = testCase->GetTestInfo(testIndex); in Java_com_android_gtestrunner_GtestRunner_nInitialize()
170 createTestDescription(env, testCase->name(), testInfo->name())); in Java_com_android_gtestrunner_GtestRunner_nInitialize()
/cts/tests/tests/print/src/android/print/cts/
DCustomPrintOptionsTest.java243 private void testCase(final boolean copyFromOriginal, final Integer numCopies, in testCase() method in CustomPrintOptionsTest
394 testCase(false, 2, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToChangeEveryThingButPages()
400 testCase(false, null, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToAttributes()
406 testCase(false, 2, PAGESS[1], null, true, null, null, null); in changeToNonAttributes()
411 testCase(true, null, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToAttributesNoCopy()
417 testCase(true, 2, PAGESS[1], null, true, null, null, null); in changeToNonAttributesNoCopy()
422 testCase(false, 1, DEFAULT_PAGES, DEFAULT_MEDIA_SIZE, DEFAULT_MEDIA_SIZE.isPortrait(), in changeToDefault()
428 testCase(true, 1, DEFAULT_PAGES, DEFAULT_MEDIA_SIZE, DEFAULT_MEDIA_SIZE.isPortrait(), in changeToDefaultNoCopy()
434 testCase(false, null, null, null, true, null, null, null); in changeToNothing()
439 testCase(true, null, null, null, true, null, null, null); in testChangeToNothingNoCopy()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DGnssCtsTestResult.java136 protected void run(TestCase testCase) { in run() argument
137 if (testCase instanceof GnssTestCase) { in run()
138 GnssTestCase gnssTestCase = (GnssTestCase) testCase; in run()
144 super.run(testCase); in run()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCtsReportParser.java76 for (CtsReport.TestPackage.TestSuite.TestCase testCase : tSuite.getTestCaseList()) { in printCtsReport()
77 … for (CtsReport.TestPackage.TestSuite.TestCase.Test test : testCase.getTestList()) { in printCtsReport()
81 testCase.getName(), 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()
DComparisonReport.java110 for (CtsReport.TestPackage.TestSuite.TestCase testCase : module.getTestCaseList()) { in writeComparsionReport()
112 testCase.getTestList()) { in writeComparsionReport()
117 testCase.getName(), in writeComparsionReport()
/cts/suite/audio_quality/lib/include/audio/
DAudioHardware.h58 TaskCase* testCase = NULL);
70 virtual bool startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase = NULL);
/cts/suite/audio_quality/lib/src/task/
DModelBuilder.cpp207 std::unique_ptr<TaskCase> testCase; in parseBatch() local
216 testCase.reset(parseInclude(*inc, path)); in parseBatch()
217 if (testCase.get() == NULL) { in parseBatch()
221 if (!batch.get()->addChild(testCase.get())) { in parseBatch()
224 TaskGeneric* donotuse = testCase.release(); // parent will take care of destruction. in parseBatch()
/cts/tests/tests/media/libimagereaderjni/
DAImageReaderCts.cpp463 ImageReaderTestCase testCase( in takePictures() local
466 ret = testCase.initImageReader(); in takePictures()
471 CameraHelper cameraHelper(testCase.getNativeWindow()); in takePictures()
494 if (testCase.getAcquiredImageCount() == pictureCount) { in takePictures()
501 return testCase.getAcquiredImageCount() == pictureCount ? 0 : -1; in takePictures()
552 ImageReaderTestCase testCase( in Java_android_media_cts_NativeImageReaderTest_testCreateSurfaceNative() local
555 int ret = testCase.initImageReader(); in Java_android_media_cts_NativeImageReaderTest_testCreateSurfaceNative()
562 ANativeWindow* window = testCase.getNativeWindow(); in Java_android_media_cts_NativeImageReaderTest_testCreateSurfaceNative()
/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGLES20NativeActivityOne.java91 public OpenGLES20View(Context context, int category, int testCase, CountDownLatch latch) { in OpenGLES20View() argument
94 mRenderer = new GL2Renderer(category, testCase, latch); in OpenGLES20View()
/cts/tests/tests/media/src/android/media/cts/
DMediaMetadataRetrieverTest.java406 private void verifyVideoFrame(Bitmap bitmap, int[] testCase) { in verifyVideoFrame() argument
408 assertTrue("Failed to get bitmap for " + testCase[0], bitmap != null); in verifyVideoFrame()
409 assertEquals("Counter value incorrect for " + testCase[0], in verifyVideoFrame()
410 testCase[1], CodecUtils.readBinaryCounterFromBitmap(bitmap)); in verifyVideoFrame()
413 CodecUtils.saveBitmapToFile(bitmap, "test_" + testCase[0] + ".jpg"); in verifyVideoFrame()
/cts/suite/cts/utils/
Dget_csv_report.py86 testCase = TestCase(caseName, summary, details, result)
87 cases[caseName] = testCase
/cts/tests/tests/view/src/android/view/cts/
DSurfaceViewSyncTest.java234 private void verifyTest(AnimationTestCase testCase) throws Throwable { in verifyTest() argument
235 CapturedActivity.TestResult result = mActivity.runTest(testCase); in verifyTest()
/cts/tools/vm-tests-tf/lib/
Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/ ...
/cts/tests/libcore/javautilcollections/libs/
Dguava-testlib-20.0.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...