/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ParentChildTestBase.java | 36 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 …]
|
D | DialogFrameTestActivity.java | 73 final String testCase = intent.getStringExtra(EXTRA_TEST_CASE); in setupTest() local 74 switch (testCase) { in setupTest()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | ActivityTestBase.java | 117 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/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/ |
D | ActivityTestBase.java | 117 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/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 1871 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() local 1873 camera_status_t ret = testCase.initWithErrorLog(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() 1879 numCameras = testCase.getNumCameras(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() 1886 const char* cameraId = testCase.getCameraId(i); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() 1892 ret = testCase.openCamera(cameraId); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() 1900 if (testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() 1905 ret = testCase.closeCamera(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() 1913 if (!testCase.isCameraAvailable(cameraId)) { in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() 1919 ret = testCase.deInit(); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceOpenAndCloseNative() 2179 PreviewTestCase testCase; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceSessionOpenAndCloseNative() local [all …]
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioHardware.cpp | 77 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/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/ |
D | CameraPerformanceActivity.java | 80 private void executeTest(TestCase testCase) { in executeTest() argument 83 testRunner.run(testCase); in executeTest() 205 Camera2AndroidTestCase testCase = (Camera2AndroidTestCase) test; in initializeTestCases() local 210 Method method = testCase.getClass().getMethod(testCase.getName()); in initializeTestCases() 221 testCase.setContext(ctx); in initializeTestCases() 222 mTestCaseMap.put(testCase.getName(), testCase); in initializeTestCases() local 224 TestCase testCase = (CameraTestCase) test; in initializeTestCases() local 225 mTestCaseMap.put(testCase.getName(), testCase); in initializeTestCases() local 267 TestCase testCase = mTestCaseMap.get(mTestId); in performTest() local 268 if (testCase == null) { in performTest() [all …]
|
/cts/suite/audio_quality/test/ |
D | AudioHardwareTest.cpp | 39 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()
|
D | ModelBuilderTest.cpp | 29 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/app/app/src/android/app/stubs/ |
D | BubblesTestService.java | 50 final int testCase = intent.getIntExtra(EXTRA_TEST_CASE, TEST_SUCCESS); in onStartCommand() local 51 Notification n = getNotificationForTest(testCase, getApplicationContext()); in onStartCommand() 61 private Notification getNotificationForTest(final int testCase, final Context context) { in getNotificationForTest() argument 76 if (testCase != TEST_NO_PERSON) { in getNotificationForTest() 79 if (testCase != TEST_NO_CATEGORY) { in getNotificationForTest() 82 if (testCase != TEST_NO_BUBBLE_METADATA) { in getNotificationForTest()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/ |
D | SensorCtsTestResult.java | 138 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/print/src/android/print/cts/ |
D | CustomPrintOptionsTest.java | 244 private void testCase(final boolean copyFromOriginal, final Integer numCopies, in testCase() method in CustomPrintOptionsTest 395 testCase(false, 2, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToChangeEveryThingButPages() 401 testCase(false, null, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToAttributes() 407 testCase(false, 2, PAGESS[1], null, true, null, null, null); in changeToNonAttributes() 412 testCase(true, null, null, MEDIA_SIZES[1], false, COLOR_MODES[1], DUPLEX_MODES[1], in changeToAttributesNoCopy() 418 testCase(true, 2, PAGESS[1], null, true, null, null, null); in changeToNonAttributesNoCopy() 423 testCase(false, 1, DEFAULT_PAGES, DEFAULT_MEDIA_SIZE, DEFAULT_MEDIA_SIZE.isPortrait(), in changeToDefault() 429 testCase(true, 1, DEFAULT_PAGES, DEFAULT_MEDIA_SIZE, DEFAULT_MEDIA_SIZE.isPortrait(), in changeToDefaultNoCopy() 435 testCase(false, null, null, null, true, null, null, null); in changeToNothing() 440 testCase(true, null, null, null, true, null, null, null); in testChangeToNothingNoCopy() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | LaunchRunner.java | 88 void verify(Context initialContext, Persistence.TestCase testCase) { in verify() argument 89 List<GenerationIntent> initialState = testCase.getSetup().getInitialIntents(); in verify() 90 List<GenerationIntent> act = testCase.getSetup().getAct(); in verify() 109 testCase.getEndState()); in verify() 110 assertInitialStateEqual(testCase.getInitialState(), setupStateDump); in verify() 124 testCase.getEndState()); in verify() 125 assertEndStatesEqual(testCase.getEndState(), endStateDump); in verify() 139 Persistence.TestCase testCase = this.runAndSerialize(launches.get(i), startContext, in runAndWrite() local 141 IntentTests.writeToDocumentsStorage(testCase, i + 1, name); in runAndWrite() 144 mTestBase.cleanUp(testCase.getSetup().componentsInCase()); in runAndWrite()
|
D | IntentTests.java | 86 public IntentTests(TestCase testCase, String name) { in IntentTests() argument 87 mTestCase = testCase; in IntentTests() 137 TestCase testCase = TestCase.fromJson( in readAllFromAssets() local 140 testCases.add(testCase); in readAllFromAssets() 147 static void writeToDocumentsStorage(TestCase testCase, int number, String dirName) in writeToDocumentsStorage() argument 157 Lists.newArrayList(testCase.toJson().toString(JSON_INDENTATION_LEVEL))); in writeToDocumentsStorage()
|
D | IntentGenerationTests.java | 112 TestCase testCase = readFromStorage(test); in verifySingle() local 113 mLaunchRunner.verify(mTargetContext, testCase); in verifySingle()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/ |
D | GnssCtsTestResult.java | 136 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/ |
D | CtsReportParser.java | 76 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()
|
D | ComparisonReport.java | 110 for (CtsReport.TestPackage.TestSuite.TestCase testCase : module.getTestCaseList()) { in writeComparsionReport() 112 testCase.getTestList()) { in writeComparsionReport() 117 testCase.getName(), in writeComparsionReport()
|
/cts/tests/tests/media/libimagereaderjni/ |
D | AImageReaderCts.cpp | 465 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/suite/audio_quality/lib/src/task/ |
D | ModelBuilder.cpp | 207 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/suite/audio_quality/lib/include/audio/ |
D | AudioHardware.h | 58 TaskCase* testCase = NULL); 70 virtual bool startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase = NULL);
|
/cts/common/device-side/nativetesthelper/jni/ |
D | gtest_wrapper.cpp | 211 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/tests/tests/opengl/src/android/opengl/cts/ |
D | OpenGLES20NativeActivityOne.java | 91 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/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | CapturedActivity.java | 324 public void verifyTest(ISurfaceValidatorTestCase testCase, TestName name) throws Throwable { in verifyTest() argument 325 CapturedActivity.TestResult result = runTest(testCase); in verifyTest() 335 if (testCase.hasAnimation()) { in verifyTest()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaMetadataRetrieverTest.java | 477 private void verifyVideoFrame(Bitmap bitmap, int[] testCase) { in verifyVideoFrame() argument 479 assertTrue("Failed to get bitmap for " + testCase[0], bitmap != null); in verifyVideoFrame() 480 assertEquals("Counter value incorrect for " + testCase[0], in verifyVideoFrame() 481 testCase[1], CodecUtils.readBinaryCounterFromBitmap(bitmap)); in verifyVideoFrame() 484 CodecUtils.saveBitmapToFile(bitmap, "test_" + testCase[0] + ".jpg"); in verifyVideoFrame()
|