Home
last modified time | relevance | path

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

12345678910>>...12

/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/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/
DEventLibAppComponentFactory.java34 public Activity instantiateActivity(ClassLoader classLoader, String className, Intent intent) in instantiateActivity() argument
38 return super.instantiateActivity(classLoader, className, intent); in instantiateActivity()
41 "Activity class (" + className + ") not found, routing to EventLibActivity"); in instantiateActivity()
45 activity.setOverrideActivityClassName(className); in instantiateActivity()
51 public BroadcastReceiver instantiateReceiver(ClassLoader classLoader, String className, in instantiateReceiver() argument
55 return super.instantiateReceiver(classLoader, className, intent); in instantiateReceiver()
57 if (className.endsWith("DeviceAdminReceiver")) { in instantiateReceiver()
58 Log.d(LOG_TAG, "Broadcast Receiver class (" + className in instantiateReceiver()
64 receiver.setOverrideDeviceAdminReceiverClassName(className); in instantiateReceiver()
66 } else if (className.endsWith("DelegatedAdminReceiver")) { in instantiateReceiver()
[all …]
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DTestAppAppComponentFactory.java138 public Activity instantiateActivity(ClassLoader classLoader, String className, Intent intent) in instantiateActivity() argument
141 + className + " and intent " + intent); in instantiateActivity()
143 return super.instantiateActivity(classLoader, className, intent); in instantiateActivity()
146 "Activity class (" + className + ") not found, routing to TestAppActivity"); in instantiateActivity()
150 activity.setOverrideActivityClassName(className); in instantiateActivity()
156 public BroadcastReceiver instantiateReceiver(ClassLoader classLoader, String className, in instantiateReceiver() argument
160 + className + " and intent " + intent); in instantiateReceiver()
162 return super.instantiateReceiver(classLoader, className, intent); in instantiateReceiver()
164 if (className.endsWith("DeviceAdminReceiver")) { in instantiateReceiver()
165 Log.d(LOG_TAG, "Broadcast Receiver class (" + className 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/tools/cts-api-coverage/src/com/android/cts/ctsprofiles/
DUtils.java29 String className = classSignature.substring(splitPos + 1); in getPackageClass() local
34 return Pair.create(packageName, className.replaceAll("\\$", ".")); in getPackageClass()
47 String className = packageClass.substring(splitPos + 1); in getPackageClassFromASM() local
50 className.replaceAll("\\$", ".") in getPackageClassFromASM()
55 public static String getClassSignature(String packageName, String className) { in getClassSignature() argument
57 return className; in getClassSignature()
59 return String.format("%s.%s", packageName, className); in getClassSignature()
72 String packageName, String className, String methodName, List<String> paramTypes) { in getMethodSignatureWithClass() argument
73 String classSignature = getClassSignature(packageName, className); in getMethodSignatureWithClass()
/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/common/device-side/bedstead/remoteframeworkclasses/src/processor/main/java/com/android/bedstead/remoteframeworkclasses/processor/
DApis.java64 public static Apis forClass(String className, Types types, Elements elements) {
65 if (sPackageToApi.containsKey(className)) {
66 return sPackageToApi.get(className);
70 findParents(parents, className, elements);
81 private static void findParents(Set<String> parents, String className, Elements elements) {
82 parents.add(className);
84 if (className.equals("java.lang.Object")) {
88 TypeElement element = elements.getTypeElement(className);
89 System.out.println("Checking " + className + " got " + element);
101 String filename, String apiTxt, String className, Types types, Elements elements) {
[all …]
/cts/tests/framework/base/windowmanager/app_base/src/android/server/wm/component/
DComponentsBase.java36 Class<? extends ComponentsBase> componentsClass, String className) { in component() argument
37 if (className.startsWith(".")) { in component()
41 final boolean isSimpleClassName = className.indexOf('.') < 0; in component()
42 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/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/jni/libjnitest/
Dhelper.c91 int registerJniMethods(JNIEnv* env, const char* className, const JNINativeMethod* methods, in registerJniMethods() argument
95 "Registering %s's %d native methods...", className, numMethods); in registerJniMethods()
96 jclass clazz = (*env)->FindClass(env, className); in registerJniMethods()
104 "Failed to register JNI methods for %s: %d\n", className, result); in registerJniMethods()
108 void throwException(JNIEnv* env, const char* className, const char* message) { in throwException() argument
109 jclass clazz = (*env)->FindClass(env, className); in throwException()
113 "Failed to throw %s: d\n", className, result); in throwException()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppActivitiesTest.java49 activity().where().activityClass().className().isEqualTo(EXISTING_ACTIVITY)
51 activity().where().activityClass().className().isEqualTo(NON_EXISTING_ACTIVITY)
69 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesActivity_returnsActivity()
78 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesPreviouslyReturnedActivity_throwsException()
83 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesPreviouslyReturnedActivity_throwsException()
91 .whereActivity().activityClass().className() in query_doesNotMatchActivity_throwsException()
106 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesActivityPreviouslyReturnedByDifferentInstance_returnsActivity()
113 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesActivityPreviouslyReturnedByDifferentInstance_returnsActivity()
128 queryBuilder.whereActivity().activityClass().className().isNull(); in queryBuilderIsEmpty_hasActivityQuery_returnsFalse()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/
DActivityEventsImpl.java42 .whereActivity().activityClass().className().isEqualTo( in activityCreated()
50 .whereActivity().activityClass().className().isEqualTo( in activityDestroyed()
58 .whereActivity().activityClass().className().isEqualTo( in activityPaused()
66 .whereActivity().activityClass().className().isEqualTo( in activityRestarted()
74 .whereActivity().activityClass().className().isEqualTo( in activityResumed()
83 .whereActivity().activityClass().className().isEqualTo( in activityStarted()
92 .whereActivity().activityClass().className().isEqualTo( in activityStopped()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTestApi30.java45 protected void executeDeviceTestClass(String className) throws Exception { in executeDeviceTestClass() argument
46 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, mUserId); in executeDeviceTestClass()
49 protected void executeDeviceTestMethod(String className, String testName) throws Exception { in executeDeviceTestMethod() argument
50 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
DBaseDeviceOwnerTest.java95 protected final void executeDeviceOwnerTestMethod(String className, String testName) in executeDeviceOwnerTestMethod() argument
97 executeDeviceOwnerPackageTestMethod(className, testName, mDeviceOwnerUserId); in executeDeviceOwnerTestMethod()
100 protected final void executeDeviceTestMethod(String className, String testName) in executeDeviceTestMethod() argument
102 executeDeviceOwnerPackageTestMethod(className, testName, mPrimaryUserId); in executeDeviceTestMethod()
120 private void executeDeviceOwnerPackageTestMethod(String className, String testName, in executeDeviceOwnerPackageTestMethod() argument
122 runDeviceTestsAsUser(DEVICE_OWNER_PKG, className, testName, userId); in executeDeviceOwnerPackageTestMethod()
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/enterprise/settings/
DDeviceAdminAppsRemoveWorkProfileStepAutomation.java37 .className("androidx.recyclerview.widget.RecyclerView")); in automate()
39 .className(TextView.class), "RemoteDPC").click(); in automate()
43 .className(ScrollView.class)); in automate()
46 .className(Button.class), "Remove work profile").click(); in automate()
49 TestApis.ui().device().findObject(new UiSelector().text("Delete").className( in automate()
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/settings/password/
DIsItPossibleToSetPin4444StepAutomation.java35 .className(TextView.class).text("Continue without Pixel Imprint")).click(); in automate()
39 .className(TextView.class).text("PIN")).click(); in automate()
43 .className(EditText.class)).setText("4444"); in automate()
47 .className(Button.class).text("Next")).click(); in automate()
51 .className(TextView.class).textStartsWith("Set a")).exists(); in automate()
DIsItPossibleToSetPin1591StepAutomation.java35 .className(TextView.class).text("Continue without Pixel Imprint")).click(); in automate()
39 .className(TextView.class).text("PIN")).click(); in automate()
43 .className(EditText.class)).setText("1591"); in automate()
47 .className(Button.class).text("Next")).click(); in automate()
51 .className(TextView.class).textStartsWith("Set a")).exists(); in automate()
DIsItPossibleToSetNoScreenLockOrPasswordStepAutomation.java33 .className(TextView.class).text("Continue without Pixel Imprint")).click(); in automate()
37 .className(TextView.class).text("None")).exists()) { in automate()
43 .className(TextView.class).text("None")).click(); in automate()
47 .className(TextView.class).text("None")).exists(); in automate()
DSetPin15911591StepAutomation.java37 .className(TextView.class).text("Continue without Pixel Imprint")).click(); in automate()
41 .className(TextView.class).text("PIN")).click(); in automate()
45 .className(EditText.class)).setText("15911591"); in automate()
54 .className(EditText.class)).setText("15911591"); in automate()
64 .className(Button.class).text("Done")); in automate()
DSetPin1591StepAutomation.java37 .className(TextView.class).text("Continue without Pixel Imprint")).click(); in automate()
41 .className(TextView.class).text("PIN")).click(); in automate()
45 .className(EditText.class)).setText("1591"); in automate()
54 .className(EditText.class)).setText("1591"); in automate()
64 .className(Button.class).text("Done")); in automate()
/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/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/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminTransferAffiliatedProfileOwnershipCompleteEventTest.java66 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_works()
69 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
87 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
90 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
102 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_works()
105 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
122 .whereDeviceAdminReceiver().broadcastReceiver().receiverClass().className() in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
125 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()

12345678910>>...12