Home
last modified time | relevance | path

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

12

/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.java47 public static Uri getTestNameUri(String testName) { in getTestNameUri() argument
48 return Uri.withAppendedPath(RESULTS_CONTENT_URI, testName); in getTestNameUri()
214 static void setTestResult(Context context, String testName, int testResult, in setTestResult() argument
218 values.put(TestResultsProvider.COLUMN_TEST_NAME, testName); in setTestResult()
225 new String[] {testName}); in setTestResult()
DManifestTestListAdapter.java187 String testName = info.activityInfo.name; in getTestsByCategory() local
192 TestListItem item = TestListItem.newTest(title, testName, intent, requiredFeatures, in getTestsByCategory()
/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()
115 … private static void saveFile(String className, String testName, String fileName, Bitmap bitmap) { in saveFile() argument
[all …]
/cts/tools/utils/
DCollectAllTests.java341 final String testName) { in getKnownFailure() argument
342 return getAnnotation(testClass, testName, KNOWN_FAILURE); in getKnownFailure()
346 final String testName) { in isKnownFailure() argument
347 return getAnnotation(testClass, testName, KNOWN_FAILURE) != null; in isKnownFailure()
351 final String testName) { in isSuppressed() argument
352 return getAnnotation(testClass, testName, SUPPRESSED_TEST) != null; in isSuppressed()
356 final String testName, final String annotationName) { in getAnnotation() argument
358 Method testMethod = testClass.getMethod(testName, (Class[])null); in getAnnotation()
397 String testName = testMethod.getName(); in addToTests() local
398 if (testNames.contains(testName)) { in addToTests()
[all …]
DVogarUtils.java121 String testName) { in extractSupportedAbis() argument
123 String fullTestName = buildFullTestName(className, testName); in extractSupportedAbis()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java187 String testName = getTestClassName(); in run() local
192 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in run()
194 testDetails = new SensorTestDetails(testName, "DeactivateSensorFeatures", e); in run()
203 testDetails = executeActivityTests(testName); in run()
211 testDetails = new SensorTestDetails(testName, "RestoreSensorFeatures", e); in run()
449 private SensorTestDetails executeActivityTests(String testName) { in executeActivityTests() argument
453 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in executeActivityTests()
455 testDetails = new SensorTestDetails(testName, "ActivitySetUp", e); in executeActivityTests()
467 testDetails = new SensorTestDetails(testName, "TestExecution", e); in executeActivityTests()
476 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/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/
DTestCase.java37 public void addTest(String testName, int timeout) { in addTest() argument
38 mTests.add(new Test(testName, timeout)); in addTest()
DXmlGenerator.java231 public static boolean isKnownFailure(ExpectationStore expectationStore, String testName) { in isKnownFailure() argument
233 && expectationStore.get(testName).getResult() != Result.SUCCESS; in isKnownFailure()
238 String architecture, String className, String testName) { in getSupportedAbis() argument
245 removeUnsupportedAbis(expectationStore.get(testName), supportedAbis); in getSupportedAbis()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegatedCertInstallerTest.java266 private void assertResult(String testName, Boolean expectSuccess) throws InterruptedException { in assertResult() argument
271 assertTrue(testName + " failed unexpectedly.", mReceivedResult); in assertResult()
272 assertNull(testName + " raised exception", mReceivedException); in assertResult()
274 assertFalse(testName + " succeeded unexpectedly.", mReceivedResult); in assertResult()
275 assertTrue(testName + " did not raise SecurityException", in assertResult()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTestCase.java73 public Test findTest(String testName, boolean insertIfMissing) { in findTest() argument
74 Test t = mChildTestMap.get(testName); in findTest()
76 t = new Test(testName); in findTest()
DTestSuite.java76 public Test findTest(List<String> suiteNames, String testClassName, String testName, in findTest() argument
81 return testCase.findTest(testName, insertIfMissing); in findTest()
85 return suite.findTest(suiteNames, testClassName, testName, insertIfMissing); in findTest()
/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/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java112 protected void startTestActivity(String testName) { in startTestActivity() argument
114 mTestName = testName; in startTestActivity()
115 intent.setAction("android.intent.action.TEST_START_ACTIVITY_" + testName); in startTestActivity()
118 intent.putExtra(Utils.TESTCASE_TYPE, testName); in startTestActivity()
140 protected void startSession(String testName, Bundle extras) { in startSession() argument
142 Log.i(TAG, "passed in class test name is: " + testName); in startSession()
143 intent.putExtra(Utils.TESTCASE_TYPE, testName); in startSession()
/cts/suite/cts/hostTests/jank/src/com/android/cts/jank/
DCtsHostJankTest.java82 public void runUiAutomatorTest(String testName) throws Exception { in runUiAutomatorTest() argument
88 String.format(RUN_UI_AUTOMATOR_CMD, mJarName, mDeviceTestClass + "#" + testName), in runUiAutomatorTest()
135 mHostTestClass + "#" + testName); in runUiAutomatorTest()
/cts/tests/tests/hardware/src/android/hardware/cts/
DCamera_SizeTest.java114 private static void addTestToSuite(TestSuite testSuite, String testName) { in addTestToSuite() argument
116 test.setName(testName); in addTestToSuite()
/cts/common/host-side/xml-plan-generator/src/com/android/compatibility/common/xmlgenerator/
DXmlPlanGenerator.java153 final String testName = test.getName(); in writeTests() local
154 writer.append("<Test name=\"").append(testName).append("\""); in writeTests()
155 final String fullname = name + "#" + testName; in writeTests()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java267 protected void executeDeviceTestMethod(String className, String testName) throws Exception { in executeDeviceTestMethod() argument
268 assertTrue(runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId)); in executeDeviceTestMethod()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DJarHostTest.java275 private Test loadTest(String className, String testName) { in loadTest() argument
283 testCase.setName(testName); in loadTest()
DGeeTestResultParser.java182 public ParsedTestInfo(String testName, String testClassName, String testRunTime) { in ParsedTestInfo() argument
183 mTestName = testName; in ParsedTestInfo()
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java58 String testName = "test???"; in getTestName() local
118 testName = methodName; in getTestName()
122 return testName; in getTestName()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DCtsTestTest.java218 final String testName = String.format("%s#%s", className, methodName); in testRun_test() local
219 mCtsTest.setTestName(testName); in testRun_test()

12