Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DParentChildTestBase.java37 private void startTestCase(String testCase) throws Exception { in startTestCase() argument
39 .putExtra(EXTRA_TEST_CASE, testCase); in startTestCase()
43 private void startTestCaseDocked(String testCase) throws Exception { in startTestCaseDocked() argument
44 startTestCase(testCase); in startTestCaseDocked()
54 void doFullscreenTest(String testCase, ParentChildTest t) throws Exception { in doFullscreenTest() argument
56 startTestCase(testCase); in doFullscreenTest()
61 private void doDockedTest(String testCase, ParentChildTest t) throws Exception { in doDockedTest() argument
67 startTestCaseDocked(testCase); in doDockedTest()
76 void doParentChildTest(String testCase, ParentChildTest t) throws Exception { in doParentChildTest() argument
77 doFullscreenTest(testCase, t); in doParentChildTest()
[all …]
DDialogFrameTestActivity.java70 final String testCase = intent.getStringExtra(EXTRA_TEST_CASE); in setupTest() local
71 switch (testCase) { in setupTest()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java117 for (TestCase testCase : testCases) { in tearDown()
118 if (!testCase.wasTestRan) { in tearDown()
145 private TestPositionInfo runRenderSpec(TestCase testCase) { in runRenderSpec() argument
147 testCase.layoutID, testCase.canvasClient, in runRenderSpec()
148 testCase.viewInitializer, testCase.useHardware, testCase.usePicture); in runRenderSpec()
149 testCase.wasTestRan = true; in runRenderSpec()
150 if (testCase.readyFence != null) { in runRenderSpec()
152 testCase.readyFence.await(5, TimeUnit.SECONDS); in runRenderSpec()
166 private Bitmap captureRenderSpec(TestCase testCase) { in captureRenderSpec() argument
167 return takeScreenshot(runRenderSpec(testCase)); in captureRenderSpec()
[all …]
/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/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/hostsidetests/securitybulletin/securityPatch/CVE-2021-0313/
Dpoc.cpp26 const uint16_t testCase[] = {0x2066, 0x2069, 0x202A, 0x202E, 0x200E, 0x200F}; in main() local
28 size_t len = sizeof(testCase) / sizeof(uint16_t); in main()
29 return (getNextWordBreakForCache(U16StringPiece(testCase, len), offset) == len) in main()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp2133 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() local
2135 camera_status_t ret = testCase.initWithErrorLog(env, jOverrideCameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2141 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2148 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2154 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2162 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2167 ret = testCase.closeCamera(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2175 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2181 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative()
2451 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/framework/base/windowmanager/src/android/server/wm/intent/
DIntentTests.java90 public IntentTests(TestCase testCase, String name) { in IntentTests() argument
91 mTestCase = testCase; in IntentTests()
141 TestCase testCase = TestCase.fromJson( in readAllFromAssets() local
144 testCases.add(testCase); in readAllFromAssets()
151 static void writeToDocumentsStorage(TestCase testCase, int number, String dirName) in writeToDocumentsStorage() argument
161 Lists.newArrayList(testCase.toJson().toString(JSON_INDENTATION_LEVEL))); in writeToDocumentsStorage()
DLaunchRunner.java92 void verify(Context initialContext, Persistence.TestCase testCase) { in verify() argument
93 List<GenerationIntent> initialState = testCase.getSetup().getInitialIntents(); in verify()
94 List<GenerationIntent> act = testCase.getSetup().getAct(); in verify()
113 testCase.getInitialState()); in verify()
114 assertInitialStateEqual(testCase.getInitialState(), setupStateDump); in verify()
128 testCase.getEndState()); in verify()
129 assertEndStatesEqual(testCase.getEndState(), endStateDump); in verify()
143 Persistence.TestCase testCase = this.runAndSerialize(launches.get(i), startContext, in runAndWrite() local
145 IntentTests.writeToDocumentsStorage(testCase, i + 1, name); in runAndWrite()
148 mTestBase.cleanUp(testCase.getSetup().componentsInCase()); in runAndWrite()
DIntentGenerationTests.java125 TestCase testCase = readFromStorage(test); in verifySingle() local
126 mLaunchRunner.verify(mTargetContext, testCase); in verifySingle()
/cts/tests/app/app/src/android/app/stubs/
DBubblesTestService.java48 final int testCase = intent.getIntExtra(EXTRA_TEST_CASE, TEST_CALL); in onStartCommand() local
49 Notification n = getNotificationForTest(testCase, getApplicationContext()); in onStartCommand()
59 private Notification getNotificationForTest(int testCase, Context context) { in getNotificationForTest() argument
79 if (testCase != TEST_MESSAGING) { in getNotificationForTest()
/cts/tests/tests/print/src/android/print/cts/
DCustomPrintOptionsTest.java231 private void testCase(final boolean copyFromOriginal, final Integer numCopies, in testCase() method in CustomPrintOptionsTest
382 testCase(false, 2, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToChangeEveryThingButPages()
388 testCase(false, null, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToAttributes()
394 testCase(false, 2, PAGESS[1], null, true, null, null, null); in changeToNonAttributes()
399 testCase(true, null, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToAttributesNoCopy()
405 testCase(true, 2, PAGESS[1], null, true, null, null, null); in changeToNonAttributesNoCopy()
410 testCase(false, 1, DEFAULT_PAGES, DEFAULT_MEDIA_SIZE, DEFAULT_MEDIA_SIZE.isPortrait(), in changeToDefault()
416 testCase(true, 1, DEFAULT_PAGES, DEFAULT_MEDIA_SIZE, DEFAULT_MEDIA_SIZE.isPortrait(), in changeToDefaultNoCopy()
422 testCase(false, null, null, null, true, null, null, null); in changeToNothing()
427 testCase(true, null, null, null, true, null, null, null); in testChangeToNothingNoCopy()
[all …]
/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/tests/tests/hardware/src/android/hardware/input/cts/tests/
DMicrosoftDesignerKeyboardTest.java48 void assertMetaState(String testCase, int expectedMetaState, int actualMetaState) { in assertMetaState() argument
52 assertEquals(testCase + " (meta state)", expectedMetaState , actualMetaState); in assertMetaState()
DGameviceGv186Test.java40 void assertAxis(String testCase, MotionEvent expectedEvent, MotionEvent actualEvent) { in assertAxis() argument
47 assertEquals(testCase + " (" + MotionEvent.axisToString(axis) + ")", in assertAxis()
DInputTestCase.java175 void assertAxis(String testCase, MotionEvent expectedEvent, MotionEvent actualEvent) { in assertAxis() argument
178 assertEquals(testCase + " pointer " + i in assertAxis()
200 private void assertSource(String testCase, InputEvent expected, InputEvent actual) { in assertSource() argument
201 assertNotEquals(testCase + " (source)", InputDevice.SOURCE_CLASS_NONE, actual.getSource()); in assertSource()
202 assertTrue(testCase + " (source)", expected.isFromSource(actual.getSource())); in assertSource()
212 void assertMetaState(String testCase, int expectedMetaState, int actualMetaState) { in assertMetaState() argument
213 assertEquals(testCase + " (meta state)", expectedMetaState, actualMetaState); in assertMetaState()
/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.cpp465 ImageReaderTestCase testCase( in takePictures() local
468 ret = testCase.initImageReader(); in takePictures()
473 CameraHelper cameraHelper(testCase.getNativeWindow()); in takePictures()
496 if (testCase.getAcquiredImageCount() == pictureCount) { in takePictures()
503 return testCase.getAcquiredImageCount() == pictureCount ? 0 : -1; in takePictures()
554 ImageReaderTestCase testCase( in Java_android_media_cts_NativeImageReaderTest_testCreateSurfaceNative() local
557 int ret = testCase.initImageReader(); in Java_android_media_cts_NativeImageReaderTest_testCreateSurfaceNative()
564 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/common/device-side/nativetesthelper/jni/
Dgtest_wrapper.cpp211 auto testCase = unitTest->GetTestCase(testCaseIndex); in Java_com_android_gtestrunner_GtestRunner_nInitialize() local
212 for (int testIndex = 0; testIndex < testCase->total_test_count(); testIndex++) { in Java_com_android_gtestrunner_GtestRunner_nInitialize()
213 auto testInfo = testCase->GetTestInfo(testIndex); in Java_com_android_gtestrunner_GtestRunner_nInitialize()
215 createTestDescription(env, className, testCase->name(), testInfo->name())); in Java_com_android_gtestrunner_GtestRunner_nInitialize()
/cts/suite/cts/utils/
Dget_csv_report.py86 testCase = TestCase(caseName, summary, details, result)
87 cases[caseName] = testCase

12