Home
last modified time | relevance | path

Searched refs:testName (Results 1 – 25 of 66) sorted by relevance

123

/cts/tests/tests/media/src/android/media/cts/
DVolumeShaperTest.java213 private static void checkEqual(String testName, in checkEqual() argument
215 assertEquals(testName + " configuration should be equal", in checkEqual()
217 assertEquals(testName + " configuration.hashCode() should be equal", in checkEqual()
219 assertEquals(testName + " configuration.toString() should be equal", in checkEqual()
223 private static void checkNotEqual(String testName, in checkNotEqual() argument
225 assertTrue(testName + " configuration should not be equal", in checkNotEqual()
227 assertTrue(testName + " configuration.hashCode() should not be equal", in checkNotEqual()
229 assertTrue(testName + " configuration.toString() should not be equal", in checkNotEqual()
567 final String testName = TEST_NAME + " " + player.name(); in testMaximumShapers() local
574 fail(testName + " should not be able to create " in testMaximumShapers()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java86 final String testName; field in TestListAdapter.TestListItem
103 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument
106 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, in newTest()
110 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument
112 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, in newTest()
116 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument
118 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, null, in newTest()
122 public static TestListItem newTest(String title, String testName, Intent intent, in newTest() argument
125 return new TestListItem(title, testName, intent, requiredFeatures, requiredConfigs, in newTest()
129 public static TestListItem newTest(String title, String testName, Intent intent, in newTest() argument
[all …]
DTestResult.java71 public static Intent createResult(Activity activity, int testResult, String testName, in createResult() argument
74 addResultData(data, testResult, testName, testDetails, reportLog); in createResult()
78 public static void addResultData(Intent intent, int testResult, String testName, in addResultData() argument
80 intent.putExtra(TEST_NAME, testName); in addResultData()
DTestResultsProvider.java60 final String testName = context.getClass().getName(); in getTestNameUri() local
61 return Uri.withAppendedPath(getResultContentUri(context), testName); in getTestNameUri()
228 static void setTestResult(Context context, String testName, int testResult, in setTestResult() argument
232 values.put(TestResultsProvider.COLUMN_TEST_NAME, testName); in setTestResult()
240 new String[] {testName}); in setTestResult()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/
DBitmapDumper.java44 public static void deleteFileInClassFolder(String className, String testName) { in deleteFileInClassFolder() argument
52 if (file.startsWith(testName)) { in deleteFileInClassFolder()
73 public static void dumpBitmaps(Bitmap idealBitmap, Bitmap testedBitmap, String testName, in dumpBitmaps() argument
88 saveFile(className, testName, IDEAL_RENDERING_FILE_NAME, idealBitmap); in dumpBitmaps()
89 saveFile(className, testName, TESTED_RENDERING_FILE_NAME, croppedBitmap); in dumpBitmaps()
90 saveFile(className, testName, VISUALIZER_RENDERING_FILE_NAME, visualizerBitmap); in dumpBitmaps()
93 public static void dumpBitmap(Bitmap bitmap, String testName, String className) { in dumpBitmap() argument
95 Log.d(TAG, "File not saved, bitmap was null for test : " + testName); in dumpBitmap()
98 saveFile(className, testName, SINGULAR_FILE_NAME, bitmap); in dumpBitmap()
101 … private static void saveFile(String className, String testName, String fileName, Bitmap bitmap) { in saveFile() argument
[all …]
DBitmapAsserter.java50 String testName, String debugMessage) { in assertBitmapsAreSimilar() argument
66 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, testName, mClassName, mDifferenceVisualizer); in assertBitmapsAreSimilar()
77 String testName, String debugMessage) { in assertBitmapIsVerified() argument
83 BitmapDumper.dumpBitmap(croppedBitmap, testName, mClassName); in assertBitmapIsVerified()
84 BitmapDumper.dumpBitmap(bitmapVerifier.getDifferenceBitmap(), testName + "_verifier", in assertBitmapIsVerified() local
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapDumper.java44 public static void deleteFileInClassFolder(String className, String testName) { in deleteFileInClassFolder() argument
52 if (file.startsWith(testName)) { in deleteFileInClassFolder()
73 public static void dumpBitmaps(Bitmap idealBitmap, Bitmap testedBitmap, String testName, in dumpBitmaps() argument
88 saveFile(className, testName, IDEAL_RENDERING_FILE_NAME, idealBitmap); in dumpBitmaps()
89 saveFile(className, testName, TESTED_RENDERING_FILE_NAME, croppedBitmap); in dumpBitmaps()
90 saveFile(className, testName, VISUALIZER_RENDERING_FILE_NAME, visualizerBitmap); in dumpBitmaps()
93 public static void dumpBitmap(Bitmap bitmap, String testName, String className) { in dumpBitmap() argument
95 Log.d(TAG, "File not saved, bitmap was null for test : " + testName); in dumpBitmap()
98 saveFile(className, testName, SINGULAR_FILE_NAME, bitmap); in dumpBitmap()
101 … private static void saveFile(String className, String testName, String fileName, Bitmap bitmap) { in saveFile() argument
[all …]
DBitmapAsserter.java50 String testName, String debugMessage) { in assertBitmapsAreSimilar() argument
66 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, testName, mClassName, mDifferenceVisualizer); in assertBitmapsAreSimilar()
77 String testName, String debugMessage) { in assertBitmapIsVerified() argument
83 BitmapDumper.dumpBitmap(croppedBitmap, testName, mClassName); in assertBitmapIsVerified()
84 BitmapDumper.dumpBitmap(bitmapVerifier.getDifferenceBitmap(), testName + "_verifier", in assertBitmapIsVerified() local
/cts/tools/utils/
DCollectAllTests.java349 final String testName) { in getKnownFailure() argument
350 return getAnnotation(testClass, testName, KNOWN_FAILURE); in getKnownFailure()
354 final String testName) { in isKnownFailure() argument
355 return getAnnotation(testClass, testName, KNOWN_FAILURE) != null; in isKnownFailure()
359 final String testName) { in isSuppressed() argument
360 return getAnnotation(testClass, testName, SUPPRESSED_TEST) != null; in isSuppressed()
364 final String testName, final String annotationName) { in getAnnotation() argument
366 Method testMethod = testClass.getMethod(testName, (Class[])null); in getAnnotation()
405 String testName = testMethod.getName(); in addToTests() local
406 if (testNames.contains(testName)) { in addToTests()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAutofillLoggingTestRule.java57 final String testName = description.getDisplayName(); in apply()
65 dump(testName, t); in apply()
73 Log.v(TAG, "@After " + testName); in apply()
81 public void dump(@NonNull String testName, @NonNull Throwable t) {
83 Log.e(mTag, "dump(" + testName + "): already dumped");
92 Log.e(mTag, "Dumping after exception on " + testName, t);
DAutofillTestWatcher.java50 final String testName = description.getDisplayName(); in starting() local
51 Log.i(TAG, "Starting " + testName); in starting()
52 TestNameUtils.setCurrentTestName(testName); in starting()
57 final String testName = description.getDisplayName(); in finished() local
64 Log.i(TAG, "Finished " + testName); in finished()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DContentCaptureLoggingTestRule.java53 final String testName = description.getDisplayName(); in apply()
57 dump(testName, t); in apply()
65 public void dump(@NonNull String testName, @NonNull Throwable t) {
67 Log.e(TAG, "dump(" + testName + "): already dumped");
78 Log.e(TAG, "Dumping after exception on " + testName, t);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java209 String testName = getTestClassName(); in run() local
214 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in run()
216 testDetails = new SensorTestDetails(testName, "DeactivateSensorFeatures", e); in run()
225 testDetails = executeActivityTests(testName); in run()
233 testDetails = new SensorTestDetails(testName, "RestoreSensorFeatures", e); in run()
508 private SensorTestDetails executeActivityTests(String testName) { in executeActivityTests() argument
512 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in executeActivityTests()
514 testDetails = new SensorTestDetails(testName, "ActivitySetUp", e); in executeActivityTests()
526 testDetails = new SensorTestDetails(testName, "TestExecution", e); in executeActivityTests()
535 testDetails = new SensorTestDetails(testName, "ActivityCleanUp", e); in executeActivityTests()
[all …]
DSensorCtsVerifierTestActivity.java107 String testName = String.format("%s#%s", getTestClassName(), testMethodName); in executeTest() local
114 new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS, testSummary); in executeTest()
117 testDetails = new SensorTestDetails(testName, "TestExecution", e.getCause()); in executeTest()
119 testDetails = new SensorTestDetails(testName, "TestInfrastructure", e); in executeTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DBaseGnssTestActivity.java170 String testName = getTestClassName(); in run() local
174 testDetails = new GnssTestDetails(testName, GnssTestDetails.ResultCode.PASS); in run()
176 testDetails = new GnssTestDetails(testName, "DeactivateFeatures", e); in run()
185 testDetails = executeActivityTests(testName); in run()
357 private GnssTestDetails executeActivityTests(String testName) { in executeActivityTests() argument
361 testDetails = new GnssTestDetails(testName, GnssTestDetails.ResultCode.PASS); in executeActivityTests()
363 testDetails = new GnssTestDetails(testName, "ActivitySetUp", e); in executeActivityTests()
375 testDetails = new GnssTestDetails(testName, "TestExecution", e); in executeActivityTests()
384 testDetails = new GnssTestDetails(testName, "ActivityCleanUp", e); in executeActivityTests()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DDeviceTestCompanion.java185 String testName; in runTest() local
189 testName = nextTest(is, os, isSuccess); in runTest()
191 updateStatus("Running test \"" + testName + "\""); in runTest()
193 switch (testName) { in runTest()
228 } while (!"done".equals(testName)); in runTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DGoWithConfigTestCase.java159 String testName = "Accept client connection test"; in getTestName() local
161 testName += " with " + mGroupOperatingBand + "G band"; in getTestName()
163 testName += " with " + mGroupOperatingFrequency + " MHz"; in getTestName()
165 return testName; in getTestName()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBusinessLogicTestCase.java72 String testName = String.format("%s#%s", this.getClass().getName(), methodName); in executeBusinessLogic() local
73 if (mBusinessLogic.hasLogicFor(testName)) { in executeBusinessLogic()
74 Log.i(TAG, "Finding business logic for test case: " + testName); in executeBusinessLogic()
76 mBusinessLogic.applyLogicFor(testName, executor); in executeBusinessLogic()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBusinessLogicTestCase.java71 String testName = String.format("%s#%s", this.getClass().getName(), methodName); in executeBusinessLogic() local
72 if (mBusinessLogic.hasLogicFor(testName)) { in executeBusinessLogic()
73 Log.i(TAG, "Finding business logic for test case: " + testName); in executeBusinessLogic()
75 mBusinessLogic.applyLogicFor(testName, executor); in executeBusinessLogic()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DCustomManagedProfileTest.java53 final String testName = expected ? "testIsProvisioningAllowedTrue" in assertIsProvisioningAllowed() local
55 runDeviceTestsAsUser(MANAGED_PROFILE_PKG, ".PreManagedProfileTest", testName, userId); in assertIsProvisioningAllowed()
/cts/tests/tests/location/src/android/location/cts/
DGnssTtffTests.java115 private void checkTtffByThreshold(String testName, in checkTtffByThreshold() argument
136 "Test case:" + testName in checkTtffByThreshold()
143 softAssert.assertTrue("Test case: " + testName +", TTFF should be less than " + threshold in checkTtffByThreshold()
/cts/tests/tests/security/src/android/security/cts/
DAudioSecurityTest.java60 private static void testAllEffects(String testName, TestEffect testEffect) throws Exception { in testAllEffects() argument
71 Log.w(TAG, "effect " + testName + " " + descriptor.name in testAllEffects()
77 Log.d(TAG, "effect " + testName + " " + descriptor.name + " success"); in testAllEffects()
79 Log.e(TAG, "effect " + testName + " " + descriptor.name + " exception failed!", in testAllEffects()
83 Log.e(TAG, "effect " + testName + " " + descriptor.name + " assert failed!", in testAllEffects()
88 assertEquals("found " + testName + " " + failures + " failures", in testAllEffects()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceActivityFlowTest.java486 String testName = getClass().getSimpleName() + "." + mTestName.getMethodName(); in assertScreenshotsAreEqual() local
490 beforeFile = dumpBitmap(before, testName + "-before.png"); in assertScreenshotsAreEqual()
491 afterFile = dumpBitmap(after, testName + "-after.png"); in assertScreenshotsAreEqual()
535 String testName = mTestName.getMethodName(); in requirePortraitModeSupport() local
550 assumeTrue(testName + ": device does not support portrait mode", supportsPortrait); in requirePortraitModeSupport()
555 String testName = mTestName.getMethodName(); in requireLandscapeModeSupport() local
570 assumeTrue(testName + ": device does not support portrait mode", supportsLandscape); in requireLandscapeModeSupport()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java55 void raiseError(String testName, String message) throws Exception; in raiseError() argument
251 final String testName = tokenizer.nextToken(); in processClientRequest() local
252 final String message = request.substring(7 + testName.length()); in processClientRequest()
253 mHostToDeviceExecutor.raiseError(testName, message); in processClientRequest()
271 String testName = ""; in handleSetTestResultCmd() local
276 testName = tokenizer.nextToken(); in handleSetTestResultCmd()
305 String fullMessage = testName + " " + message; in handleSetTestResultCmd()
307 new SensorTestDetails(testName, resultCode, fullMessage)); in handleSetTestResultCmd()
/cts/hostsidetests/incident/src/com/android/server/cts/
DGraphicsStatsValidationTest.java135 private GraphicsStatsProto[] runDrawTest(String testName) throws Exception { in runDrawTest() argument
136 return doRunDrawTest(testName, true); in runDrawTest()
139 private GraphicsStatsProto[] doRunDrawTest(String testName, boolean canRetry) throws Exception { in doRunDrawTest() argument
144 runDeviceTests(DEVICE_SIDE_TEST_PACKAGE, ".SimpleDrawFrameTests", testName); in doRunDrawTest()
153 return doRunDrawTest(testName, false); in doRunDrawTest()

123