Home
last modified time | relevance | path

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

123

/cts/tests/tests/media/src/android/media/cts/
DVolumeShaperTest.java214 private static void checkEqual(String testName, in checkEqual() argument
216 assertEquals(testName + " configuration should be equal", in checkEqual()
218 assertEquals(testName + " configuration.hashCode() should be equal", in checkEqual()
220 assertEquals(testName + " configuration.toString() should be equal", in checkEqual()
224 private static void checkNotEqual(String testName, in checkNotEqual() argument
226 assertTrue(testName + " configuration should not be equal", in checkNotEqual()
228 assertTrue(testName + " configuration.hashCode() should not be equal", in checkNotEqual()
230 assertTrue(testName + " configuration.toString() should not be equal", in checkNotEqual()
568 final String testName = TEST_NAME + " " + player.name(); in testMaximumShapers() local
575 fail(testName + " should not be able to create " in testMaximumShapers()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapDumper.java45 public static void deleteFileInClassFolder(String className, String testName) { in deleteFileInClassFolder() argument
53 if (file.startsWith(testName)) { in deleteFileInClassFolder()
74 public static void dumpBitmaps(Bitmap idealBitmap, Bitmap testedBitmap, String testName, in dumpBitmaps() argument
89 saveFile(className, testName, IDEAL_RENDERING_FILE_NAME, idealBitmap); in dumpBitmaps()
90 saveFile(className, testName, TESTED_RENDERING_FILE_NAME, croppedBitmap); in dumpBitmaps()
91 saveFile(className, testName, VISUALIZER_RENDERING_FILE_NAME, visualizerBitmap); in dumpBitmaps()
94 public static void dumpBitmap(Bitmap bitmap, String testName, String className) { in dumpBitmap() argument
96 Log.d(TAG, "File not saved, bitmap was null for test : " + testName); in dumpBitmap()
99 saveFile(className, testName, SINGULAR_FILE_NAME, bitmap); in dumpBitmap()
102 … 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/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java86 final String testName; field in TestListAdapter.TestListItem
100 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument
103 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, in newTest()
107 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument
109 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, in newTest()
113 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument
115 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, null, in newTest()
119 public static TestListItem newTest(String title, String testName, Intent intent, in newTest() argument
121 return new TestListItem(title, testName, intent, requiredFeatures, excludedFeatures, in newTest()
125 public static TestListItem newTest(String title, String testName, Intent intent, in newTest() argument
[all …]
DTestResult.java71 private 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/autofillservice/src/android/autofillservice/cts/
DAutofillLoggingTestRule.java54 final String testName = description.getDisplayName(); in apply()
55 Log.v(TAG, "@Before " + testName); in apply()
63 dump(testName, t); in apply()
71 Log.v(TAG, "@After " + testName); in apply()
79 public void dump(@NonNull String testName, @NonNull Throwable t) {
81 Log.e(mTag, "dump(" + testName + "): already dumped");
90 Log.e(mTag, "Dumping after exception on " + testName, t);
/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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java188 String testName = getTestClassName(); in run() local
193 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in run()
195 testDetails = new SensorTestDetails(testName, "DeactivateSensorFeatures", e); in run()
204 testDetails = executeActivityTests(testName); in run()
212 testDetails = new SensorTestDetails(testName, "RestoreSensorFeatures", e); in run()
475 private SensorTestDetails executeActivityTests(String testName) { in executeActivityTests() argument
479 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in executeActivityTests()
481 testDetails = new SensorTestDetails(testName, "ActivitySetUp", e); in executeActivityTests()
493 testDetails = new SensorTestDetails(testName, "TestExecution", e); in executeActivityTests()
502 testDetails = new SensorTestDetails(testName, "ActivityCleanUp", e); in executeActivityTests()
[all …]
DSensorCtsVerifierTestActivity.java88 String testName = String.format("%s#%s", getTestClassName(), testMethodName); in executeTest() local
96 new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS, testSummary); in executeTest()
99 testDetails = new SensorTestDetails(testName, "TestExecution", e.getCause()); in executeTest()
101 testDetails = new SensorTestDetails(testName, "TestInfrastructure", e); in executeTest()
/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()
DAccessoryTestCompanion.java123 String testName; in runTest() local
125 testName = nextTest(connection, in, out, true); in runTest()
127 updateStatus("Running test \"" + testName + "\""); in runTest()
129 switch (testName) { in runTest()
256 } while (!testName.equals("done")); in runTest()
/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()
DDeviceAndProfileOwnerTestApi25.java93 protected void executeDeviceTestMethod(String className, String testName) throws Exception { in executeDeviceTestMethod() argument
94 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBusinessLogicTestCase.java65 String testName = String.format("%s#%s", this.getClass().getName(), methodName); in executeBusinessLogic() local
66 if (mBusinessLogic.hasLogicFor(testName)) { in executeBusinessLogic()
67 Log.i("Finding business logic for test case: ", testName); in executeBusinessLogic()
69 mBusinessLogic.applyLogicFor(testName, executor); in executeBusinessLogic()
/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/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/hostsidetests/incident/src/com/android/server/cts/
DGraphicsStatsValidationTest.java128 private GraphicsStatsProto[] runDrawTest(String testName) throws Exception { in runDrawTest() argument
129 return doRunDrawTest(testName, true); in runDrawTest()
132 private GraphicsStatsProto[] doRunDrawTest(String testName, boolean canRetry) throws Exception { in doRunDrawTest() argument
137 runDeviceTests(DEVICE_SIDE_TEST_PACKAGE, ".SimpleDrawFrameTests", testName); in doRunDrawTest()
146 return doRunDrawTest(testName, false); in doRunDrawTest()
/cts/tests/tests/location/src/android/location/cts/
DGnssTtffTests.java115 private void checkTtffByThreshold(String testName, in checkTtffByThreshold() argument
136 "Test case:" + testName in checkTtffByThreshold() local
143 softAssert.assertTrue("Test case: " + testName +", TTFF should be less than " + threshold in checkTtffByThreshold()
/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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DSensorPowerTestActivity.java44 public void raiseError(String testName, String message) throws Exception { in raiseError() argument
45 getTestLogger().logTestFail(testName, message); in raiseError()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegatedCertInstallerTest.java325 private void assertResult(String testName, Boolean expectSuccess) throws InterruptedException { in assertResult() argument
330 assertTrue(testName + " failed unexpectedly.", mReceivedResult); in assertResult()
331 assertNull(testName + " raised exception", mReceivedException); in assertResult()
333 assertFalse(testName + " succeeded unexpectedly.", mReceivedResult); in assertResult()
334 assertTrue(testName + " did not raise SecurityException", in assertResult()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseBackupHostSideTest.java111 protected void checkDeviceTest(String packageName, String className, String testName) in checkDeviceTest() argument
113 boolean result = runDeviceTests(packageName, className, testName); in checkDeviceTest()
114 assertTrue("Device test failed: " + testName, result); in checkDeviceTest()
/cts/tests/core/runner/src/com/android/cts/core/runner/
DExpectationBasedFilter.java103 String testName = className + "#" + methodName; in shouldRun() local
106 Expectation expectation = expectationStore.get(testName); in shouldRun()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTestCase.java180 final String testName = getName(); in clearDocumentsUi() local
181 if (testName.endsWith("DoNotClear")) { in clearDocumentsUi()
182 Log.d(TAG, "Not clearing DocumentsUI due to test name: " + testName); in clearDocumentsUi()

123