Home
last modified time | relevance | path

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

12345

/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/
DMyFactory.java28 public Application instantiateApplication(ClassLoader cl, String className) in instantiateApplication() argument
30 if (className.contains(".inject")) { in instantiateApplication()
31 className = className.replace(".inject", ""); in instantiateApplication()
33 return super.instantiateApplication(cl, className); in instantiateApplication()
37 public Activity instantiateActivity(ClassLoader cl, String className, Intent intent) in instantiateActivity() argument
39 if (className.contains(".inject")) { in instantiateActivity()
40 className = className.replace(".inject", ""); in instantiateActivity()
42 return super.instantiateActivity(cl, className, intent); in instantiateActivity()
46 public BroadcastReceiver instantiateReceiver(ClassLoader cl, String className, Intent intent) in instantiateReceiver() argument
48 if (className.contains(".inject")) { in instantiateReceiver()
[all …]
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/
DBitmapDumper.java44 public static void deleteFileInClassFolder(String className, String testName) { in deleteFileInClassFolder() argument
45 File directory = new File(CAPTURE_SUB_DIRECTORY + className); in deleteFileInClassFolder()
58 public static void createSubDirectory(String className) { in createSubDirectory() argument
59 File saveDirectory = new File(CAPTURE_SUB_DIRECTORY + className); in createSubDirectory()
74 String className, DifferenceVisualizer differenceVisualizer) { 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
98 saveFile(className, testName, SINGULAR_FILE_NAME, bitmap); in dumpBitmap()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapDumper.java44 public static void deleteFileInClassFolder(String className, String testName) { in deleteFileInClassFolder() argument
45 File directory = new File(CAPTURE_SUB_DIRECTORY + className); in deleteFileInClassFolder()
58 public static void createSubDirectory(String className) { in createSubDirectory() argument
59 File saveDirectory = new File(CAPTURE_SUB_DIRECTORY + className); in createSubDirectory()
74 String className, DifferenceVisualizer differenceVisualizer) { 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
98 saveFile(className, testName, SINGULAR_FILE_NAME, bitmap); in dumpBitmap()
[all …]
/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.java48 public static Class<?> load(String className, Class<?> expectedErrorClass) { in load() argument
51 c = Class.forName(className); in load()
56 fail("Could not load class " + className, t); in load()
68 public static void loadAndRun(String className, boolean isStatic, boolean wrapped, in loadAndRun() argument
70 Class<?> c = load(className, null); in loadAndRun()
90 fail("Could not instantiate " + className, exc); 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/framework/base/windowmanager/app_base/src/android/server/wm/component/
DComponentsBase.java39 Class<? extends ComponentsBase> componentsClass, String className) { in component() argument
40 assertFalse("className should not start with '.'", className.startsWith(".")); in component()
42 final boolean isSimpleClassName = className.indexOf('.') < 0; in component()
43 final String fullClassName = isSimpleClassName ? packageName + "." + className : className; in component()
/cts/tests/tests/keystore/src/android/server/am/component/
DComponentsBase.java39 Class<? extends ComponentsBase> componentsClass, String className) { in component() argument
40 assertFalse("className should not start with '.'", className.startsWith(".")); in component()
42 final boolean isSimpleClassName = className.indexOf('.') < 0; in component()
43 final String fullClassName = isSimpleClassName ? packageName + "." + className : className; in component()
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/
DComponentNameUtils.java34 static String buildComponentName(String packageName, String className) { in buildComponentName() argument
35 return packageName + "/" + (className.startsWith(packageName) in buildComponentName()
36 ? className.substring(packageName.length()) : className); in buildComponentName()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DActivitiesWatcher.java114 public ActivityWatcher watch(@NonNull String className) { in watch() argument
115 if (mWatchers.containsKey(className)) { in watch()
116 throw new IllegalStateException("Already watching " + className); in watch()
118 Log.d(TAG, "Registering watcher for " + className); in watch()
120 mWatchers.put(className, watcher); in watch()
125 final String className = activity.getComponentName().getClassName(); in notifyWatcher() local
126 final ActivityWatcher watcher = mWatchers.get(className); in notifyWatcher()
128 Log.d(TAG, "notifying watcher of " + className + " of " + lifecycle); in notifyWatcher()
131 Log.v(TAG, lifecycle + ": no watcher for " + className); in notifyWatcher()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DActivitiesWatcher.java114 public ActivityWatcher watch(@NonNull String className) { in watch() argument
115 if (mWatchers.containsKey(className)) { in watch()
116 throw new IllegalStateException("Already watching " + className); in watch()
118 Log.d(TAG, "Registering watcher for " + className); in watch()
120 mWatchers.put(className, watcher); in watch()
125 final String className = activity.getComponentName().getClassName(); in notifyWatcher() local
126 final ActivityWatcher watcher = mWatchers.get(className); in notifyWatcher()
128 Log.d(TAG, "notifying watcher of " + className + " of " + lifecycle); in notifyWatcher()
131 Log.v(TAG, lifecycle + ": no watcher for " + className); in notifyWatcher()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DComponentNameUtils.java48 final String className = componentName.getClassName(); in getLogTag() local
49 final int pos = className.lastIndexOf('.'); in getLogTag()
50 return pos >= 0 ? className.substring(pos + 1) : className; in getLogTag()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSessionService.java31 final String className = (args != null) in onNewSession() local
33 if (className == null) { in onNewSession()
37 final Constructor<?> constructor = Class.forName(className) in onNewSession()
42 throw new RuntimeException("Cannot instantiate class: " + className, e); in onNewSession()
/cts/hostsidetests/os/test-apps/StaticSharedNativeLibConsumer/jni/
Dversion.cpp33 static int registerNativeMethods(JNIEnv* env, const char* className, in registerNativeMethods() argument
36 clazz = env->FindClass(className); in registerNativeMethods()
38 ALOGE("Native registration unable to find class '%s'", className); in registerNativeMethods()
42 ALOGE("RegisterNatives failed for '%s'", className); in registerNativeMethods()
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/
DDalvikTestRunner.java153 private static boolean packageFilterApplies(String className, Set<String> filters) { in packageFilterApplies() argument
155 int index = className.lastIndexOf('.'); in packageFilterApplies()
156 String packageName = index < 0 ? "" : className.substring(0, index); in packageFilterApplies()
163 if (className.startsWith(filter) && className.length() > filter.length() && in packageFilterApplies()
164 className.charAt(filter.length()) == '_') { in packageFilterApplies()
175 String className = parts[1]; in shouldRun() local
176 String methodName = String.format("%s#%s", className, parts[0]); in shouldRun()
178 if (packageFilterApplies(className, excludes)) { in shouldRun()
182 if (excludes.contains(className)) { in shouldRun()
192 || includes.contains(className) in shouldRun()
[all …]
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DTestSuiteParser.java218 String className = classDef.getType().replace('/', '.'); in parseApkTestCase() local
220 if (className.length() > 2) { in parseApkTestCase()
221 className = className.substring(1, className.length() - 1); in parseApkTestCase()
230 tClassBuilder.setName(className); in parseApkTestCase()
239 System.err.printf("%s#%s with Suppress:\n", className, mName); in parseApkTestCase()
244 moduleName, className, method.getName())); in parseApkTestCase()
249 moduleName, className, method.getName())); in parseApkTestCase()
252 className, mName, TEST_ANNOTATION_TAG); in parseApkTestCase()
260 System.err.printf("To count Parameterized tests: %s\n", className); in parseApkTestCase()
262 tClassBuilder.setName(className); in parseApkTestCase()
[all …]
DJarTestFinder.java52 String className = getClassName(je.getName()); in getClasses() local
53 if (!className.endsWith("Test")) { in getClasses()
57 Class<?> cls = cl.loadClass(className); in getClasses()
71 className, jarTestFile.getName())); in getClasses()
/cts/tests/signature/lib/android/src/android/signature/cts/
DCurrentApi.java78 static JDiffField loadFieldInfo(String className, XmlPullParser parser) { in loadFieldInfo() argument
81 int modifier = jdiffModifierToReflectionFormat(className, parser); in loadFieldInfo()
93 static JDiffMethod loadMethodInfo(String className, XmlPullParser parser) { in loadMethodInfo() argument
96 int modifier = jdiffModifierToReflectionFormat(className, parser); in loadMethodInfo()
124 String className = parser.getAttributeValue(null, ATTRIBUTE_NAME); in loadClassInfo() local
125 JDiffClassDescription currentClass = new JDiffClassDescription(pkg, className); in loadClassInfo()
127 currentClass.setModifier(jdiffModifierToReflectionFormat(className, parser)); in loadClassInfo()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DLockTaskTest.java475 private void stopAndFinish(String className) throws InterruptedException { in stopAndFinish() argument
476 stopLockTask(className); in stopAndFinish()
477 finishAndWait(className); in stopAndFinish()
486 private void finishAndWait(String className) throws InterruptedException { in finishAndWait() argument
488 finish(className); in finishAndWait()
510 private void startLockTask(String className) throws InterruptedException { in startLockTask() argument
511 Intent intent = getLockTaskUtility(className); in startLockTask()
519 private void startLockTaskWithOptions(String className) throws InterruptedException { in startLockTaskWithOptions() argument
520 Intent intent = getLockTaskUtility(className); in startLockTaskWithOptions()
528 private void stopLockTask(String className) throws InterruptedException { in stopLockTask() argument
[all …]
/cts/common/device-side/nativetesthelper/jni/
Dgtest_wrapper.cpp86 jobject createTestDescription(JNIEnv* env, jstring className, const std::string& mangledName) { in createTestDescription() argument
89 className, jTestName.get(), gEmptyAnnotationsArray); in createTestDescription()
92 jobject createTestDescription(JNIEnv* env, jstring className, const char* testCaseName, const char*… in createTestDescription() argument
96 return createTestDescription(env, className, mangledName); in createTestDescription()
107 JUnitNotifyingListener(JNIEnv* env, jstring className, jobject runNotifier) in JUnitNotifyingListener() argument
110 , mClassName(className) in JUnitNotifyingListener()
170 Java_com_android_gtestrunner_GtestRunner_nInitialize(JNIEnv *env, jclass, jstring className, jobjec… in Java_com_android_gtestrunner_GtestRunner_nInitialize() argument
215 createTestDescription(env, className, testCase->name(), testInfo->name())); in Java_com_android_gtestrunner_GtestRunner_nInitialize()
234 Java_com_android_gtestrunner_GtestRunner_nRun(JNIEnv *env, jclass, jstring className, jobject notif… in Java_com_android_gtestrunner_GtestRunner_nRun() argument
263 JUnitNotifyingListener junitListener{env, className, notifier}; in Java_com_android_gtestrunner_GtestRunner_nRun()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDeviceAdminHostSideTest.java72 protected void runTests(@Nonnull String apk, @Nonnull String className, in runTests() argument
75 DeviceAdminHelper.getDeviceAdminJavaPackage() + "." + className, method, mUserId); in runTests()
78 protected void runTests(@Nonnull String apk, @Nonnull String className) in runTests() argument
80 runTests(apk, className, null); in runTests()
DDeviceAndProfileOwnerTestApi25.java98 protected void executeDeviceTestClass(String className) throws Exception { in executeDeviceTestClass() argument
99 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, mUserId); in executeDeviceTestClass()
102 protected void executeDeviceTestMethod(String className, String testName) throws Exception { in executeDeviceTestMethod() argument
103 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
/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/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/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/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DJarTestFinder.java55 String className = getClassName(je.getName()); in getClasses() local
56 if (!className.endsWith("Test")) { in getClasses()
60 Class<?> cls = cl.loadClass(className); in getClasses()
73 className, jarTestFile.getName())); in getClasses()

12345