Home
last modified time | relevance | path

Searched refs:className (Results 1 – 25 of 60) sorted by relevance

123

/cts/tools/vm-tests-tf/src/dot/junit/
DDxTestCase.java46 public static Class<?> load(String className, Class<?> expectedErrorClass) { in load() argument
48 Class<?> c = Class.forName(className); in load()
55 fail("Could not load class " + className + ": " + t); in load()
65 public static void loadAndRun(String className, boolean isStatic, boolean wrapped, in loadAndRun() argument
67 Class<?> c = load(className, null); in loadAndRun()
87 fail("Could not instantiate " + className + ": " + exc.getMessage()); in loadAndRun()
99 public static void loadAndRun(String className, Class<?> expectedErrorClass) { in loadAndRun() argument
100 loadAndRun(className, false, true, expectedErrorClass); in loadAndRun()
103 public static void loadAndRun(String className, Class<?> expectedErrorClass, Object... args) { in loadAndRun() argument
104 loadAndRun(className, false, true, expectedErrorClass, args); in loadAndRun()
DDxAbstractMain.java49 public static Class<?> load(String className, Class<?> expectedErrorClass) { in load() argument
51 Class<?> c = Class.forName(className); in load()
59 fail("Could not load class " + className + ": " + t); in load()
69 public static void loadAndRun(String className, boolean isStatic, boolean wrapped, in loadAndRun() argument
71 Class<?> c = load(className, null); in loadAndRun()
91 fail("Could not instantiate " + className + ": " + exc.getMessage()); in loadAndRun()
103 public static void loadAndRun(String className, Class<?> expectedErrorClass) { in loadAndRun() argument
104 loadAndRun(className, false, true, expectedErrorClass); in loadAndRun()
107 public static void loadAndRun(String className, Class<?> expectedErrorClass, Object... args) { in loadAndRun() argument
108 loadAndRun(className, false, true, expectedErrorClass, args); in loadAndRun()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapDumper.java45 public static void deleteFileInClassFolder(String className, String testName) { in deleteFileInClassFolder() argument
46 File directory = new File(CAPTURE_SUB_DIRECTORY + className); in deleteFileInClassFolder()
59 public static void createSubDirectory(String className) { in createSubDirectory() argument
60 File saveDirectory = new File(CAPTURE_SUB_DIRECTORY + className); in createSubDirectory()
75 String className, DifferenceVisualizer differenceVisualizer) { 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
99 saveFile(className, testName, SINGULAR_FILE_NAME, bitmap); in dumpBitmap()
[all …]
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
DCtsUiAutomatorTest.java98 new UiSelector().className(android.widget.ListView.class.getName())); in testListScrollAndSelect()
120 UiObject editText = new UiObject(new UiSelector().className(android.widget.EditText.class in testTextEraseAndInput()
125 .className(android.widget.Button.class.getName()).clickable(true) in testTextEraseAndInput()
129 UiObject result = new UiObject(new UiSelector().className( in testTextEraseAndInput()
131 (new UiSelector().className(android.widget.ScrollView.class.getName()) in testTextEraseAndInput()
132 .childSelector(new UiSelector().className(android.widget.TextView.class in testTextEraseAndInput()
233 UiObject editText = new UiObject(new UiSelector().className(android.widget.EditText.class in testDeviceSoftKeys()
238 .className(android.widget.Button.class.getName()).clickable(true) in testDeviceSoftKeys()
275 UiObject edit = new UiObject(new UiSelector().className(android.widget.EditText.class in testWaitForIdleTimeout()
289 UiObject readTime = new UiObject(new UiSelector().className( in testWaitForIdleTimeout()
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DJarHostTest.java275 private Test loadTest(String className, String testName) { in loadTest() argument
277 Class<?> testClass = loadClass(className); in loadTest()
290 className, mJarFileName)); in loadTest()
293 reportLoadError(mJarFileName, className, e); in loadTest()
295 reportLoadError(mJarFileName, className, e); in loadTest()
300 private Class<?> loadClass(String className) { in loadClass() argument
307 return mClassLoader.loadClass(className); in loadClass()
309 reportLoadError(mJarFileName, className, fnfe); in loadClass()
311 reportLoadError(mJarFileName, className, mue); in loadClass()
313 reportLoadError(mJarFileName, className, ioe); in loadClass()
[all …]
DTestFilter.java60 public void addExcludedClass(String className) { in addExcludedClass() argument
61 mExcludedClasses.add(className); in addExcludedClass()
94 public void addIncludedClass(String className) { in addIncludedClass() argument
95 mIncludedClasses.add(className); in addIncludedClass()
126 public void setTestInclusion(String className, String method) { in setTestInclusion() argument
127 mIncludedClass = className; in setTestInclusion()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DLockTaskTest.java350 private void stopAndFinish(String className) { in stopAndFinish() argument
351 stopLockTask(className); in stopAndFinish()
352 finishAndWait(className); in stopAndFinish()
361 private void finishAndWait(String className) { in finishAndWait() argument
363 finish(className); in finishAndWait()
391 private void startLockTask(String className) { in startLockTask() argument
392 Intent intent = getLockTaskUtility(className); in startLockTask()
400 private void stopLockTask(String className) { in stopLockTask() argument
401 Intent intent = getLockTaskUtility(className); in stopLockTask()
409 private void finish(String className) { in finish() argument
[all …]
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DSimpleIntentReceiverActivity.java36 String className = getIntent().getComponent().getClassName(); in onCreate() local
44 Log.i(TAG, "activity " + className + " started, is in managed profile: " in onCreate()
47 result.putExtra("extra_receiver_class", className); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/jni/
Dcom_android_cts_splitapp_Native.cpp45 static int registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* gMethods, int… in registerNativeMethods() argument
48 clazz = env->FindClass(className); in registerNativeMethods()
50 LOGE("Native registration unable to find class '%s'", className); in registerNativeMethods()
54 LOGE("RegisterNatives failed for '%s'", className); in registerNativeMethods()
/cts/tools/utils/
Drerun.py41 className = parentName + child.getAttribute("name")
44 failureName = className + "#" + test.getAttribute("name")
80 [className, methodName] = failure.split('#')
84 command += " --class " + className + " --method " + methodName
/cts/tests/tests/media/src/android/media/cts/
DMediaScannerConnectionTest.java130 public void onServiceConnected(ComponentName className, IBinder service) { in onServiceConnected() argument
131 super.onServiceConnected(className, service); in onServiceConnected()
136 public void onServiceDisconnected(ComponentName className) { in onServiceDisconnected() argument
137 super.onServiceDisconnected(className); in onServiceDisconnected()
/cts/tools/signature-tools/src/signature/model/util/
DModelUtil.java138 String className = null; in getClassName() local
140 className = classIdentifier; in getClassName()
142 className = classIdentifier.substring(lastIndexOfDot + 1); in getClassName()
144 return className; in getClassName()
DTypePool.java55 public SigClassDefinition getClass(String packageName, String className) { in getClass() argument
56 String key = packageName + "<>" + className; in getClass()
59 clazz = new SigClassDefinition(packageName, className); in getClass()
66 String className) { in getClassReference() argument
67 return new SigClassReference(getClass(packageName, className)); in getClassReference()
DITypeFactory.java39 public SigClassDefinition getClass(String packageName, String className); in getClass() argument
42 String className); in getClassReference() argument
/cts/tools/dex-tools/test/dex/reader/
DDexTestsCommon.java93 protected DexClass getClass(DexFile file, String className) { in getClass() argument
95 assertNotNull(className); in getClass()
97 if(className.equals(clazz.getName())){ in getClass()
101 fail("Class: " + className +" not present in file: " + file.getName()); in getClass()
102 …throw new IllegalArgumentException("Class: " + className +" not present in file: " + file.getName(… in getClass()
/cts/tools/dex-tools/test/dex/reader/util/
DSpecialJavaFileManager.java54 public MemoryByteCode getMemoryByteCode(String className) { in getMemoryByteCode() argument
55 return store.get(className); in getMemoryByteCode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DIntentDrivenTestActivity.java89 final String className = buttonInfo.getIntentFactoryClassName(); in onClick() local
91 factoryClass = Thread.currentThread().getContextClassLoader().loadClass(className); in onClick()
93 throw new IllegalArgumentException("Factory not found: " + className, e); in onClick()
99 throw new IllegalArgumentException("Can't create factory: " + className, e); in onClick()
101 throw new IllegalArgumentException("Can't create factory: " + className, e); in onClick()
/cts/tools/signature-tools/src/signature/converter/dex/
DDexUtil.java109 private static String removeHeadingL(String className) { in removeHeadingL() argument
110 assert className.startsWith("L"); in removeHeadingL()
111 return className.substring(1); in removeHeadingL()
114 private static String removeTrailingSemicolon(String className) { in removeTrailingSemicolon() argument
115 assert className.endsWith(";"); in removeTrailingSemicolon()
116 return className.substring(0, className.length() - 1); in removeTrailingSemicolon()
119 public static String getDexName(String packageName, String className) { in getDexName() argument
121 + className.replace('.', '$') + ";"; in getDexName()
DIClassInitializer.java22 IClassDefinition initializeClass(String packageName, String className); in initializeClass() argument
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceInfoInstrument.java123 String className = activityClass.getSimpleName(); in runActivity() local
126 mBundle.putString(className, activity.getResultFilePath()); in runActivity()
128 mBundle.putString(className, errorMessage); in runActivity()
/cts/tests/tests/content/src/android/content/cts/
DComponentNameTest.java100 final String className = componentName.getClassName(); in testGetShortClassName() local
102 assertEquals("com.android.view.View", className); in testGetShortClassName()
176 final String className = getComponentName().getClassName(); in testGetClassName() local
177 assertEquals("android.content.cts.ComponentNameTest", className); in testGetClassName()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DCtsTestTest.java196 final String className = "className"; in testRun_class() local
198 mCtsTest.setClassName(className); in testRun_class()
201 EasyMock.expect(mMockRepo.findPackageIdsForTest(className)).andReturn(IDS); in testRun_class()
202 mMockPackageDef.setClassName(className, methodName); in testRun_class()
216 final String className = "className"; in testRun_test() local
218 final String testName = String.format("%s#%s", className, methodName); in testRun_test()
221 EasyMock.expect(mMockRepo.findPackageIdsForTest(className)).andReturn(IDS); in testRun_test()
222 mMockPackageDef.setClassName(className, methodName); in testRun_test()
/cts/tests/signature/src/android/signature/cts/
DSignatureTest.java229 private JDiffField loadFieldInfo(String className, XmlPullParser parser) { in loadFieldInfo() argument
232 int modifier = jdiffModifierToReflectionFormat(className, parser); in loadFieldInfo()
243 private JDiffMethod loadMethodInfo(String className, XmlPullParser parser) { in loadMethodInfo() argument
246 int modifier = jdiffModifierToReflectionFormat(className, parser); in loadMethodInfo()
275 String className = parser.getAttributeValue(null, ATTRIBUTE_NAME); in loadClassInfo() local
277 className, in loadClassInfo()
279 currentClass.setModifier(jdiffModifierToReflectionFormat(className, parser)); in loadClassInfo()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java263 protected void executeDeviceTestClass(String className) throws Exception { in executeDeviceTestClass() argument
264 assertTrue(runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, mUserId)); in executeDeviceTestClass()
267 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/cts-api-coverage/src/com/android/cts/apicoverage/
DApiPackage.java90 String className = superClassName.substring( in resolveSuperClasses() local
94 ApiClass superClass = apiPackage.getClass(className); in resolveSuperClasses()

123