/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/ |
D | MyFactory.java | 28 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/ |
D | BitmapDumper.java | 44 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/ |
D | BitmapDumper.java | 44 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/ |
D | DxTestCase.java | 46 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()
|
D | DxAbstractMain.java | 48 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/util-axt/src/com/android/compatibility/common/util/ |
D | ActivitiesWatcher.java | 114 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/ |
D | ActivitiesWatcher.java | 114 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/tests/keystore/src/android/server/am/component/ |
D | ComponentsBase.java | 39 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/framework/base/windowmanager/app_base/src/android/server/wm/component/ |
D | ComponentsBase.java | 39 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/tools/release-parser/src/com/android/cts/releaseparser/ |
D | TestSuiteParser.java | 218 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 …]
|
D | JarTestFinder.java | 52 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/jdwp/runner/device-side/src/com/android/compatibility/dalvik/ |
D | DalvikTestRunner.java | 153 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/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/ |
D | ComponentNameUtils.java | 34 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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | LockTaskTest.java | 452 private void stopAndFinish(String className) throws InterruptedException { in stopAndFinish() argument 453 stopLockTask(className); in stopAndFinish() 454 finishAndWait(className); in stopAndFinish() 463 private void finishAndWait(String className) throws InterruptedException { in finishAndWait() argument 465 finish(className); in finishAndWait() 487 private void startLockTask(String className) throws InterruptedException { in startLockTask() argument 488 Intent intent = getLockTaskUtility(className); in startLockTask() 496 private void startLockTaskWithOptions(String className) throws InterruptedException { in startLockTaskWithOptions() argument 497 Intent intent = getLockTaskUtility(className); in startLockTaskWithOptions() 505 private void stopLockTask(String className) throws InterruptedException { in stopLockTask() argument [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ComponentNameUtils.java | 48 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/ |
D | MainInteractionSessionService.java | 31 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/ |
D | version.cpp | 33 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/nativetesthelper/jni/ |
D | gtest_wrapper.cpp | 86 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/appsecurity/test-apps/SplitApp/jni/ |
D | com_android_cts_splitapp_Native.cpp | 45 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/src/com/android/cts/devicepolicy/ |
D | BaseDeviceAdminHostSideTest.java | 72 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()
|
D | DeviceAndProfileOwnerTestApi25.java | 98 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/tools/utils/ |
D | rerun.py | 41 className = parentName + child.getAttribute("name") 44 failureName = className + "#" + test.getAttribute("name") 80 [className, methodName] = failure.split('#') 84 command += " --class " + className + " --method " + methodName
|
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingTest.java | 194 private void runTestAsPrimaryUser(String className, String methodName) throws Exception { in runTestAsPrimaryUser() argument 195 runTestAsUser(className, methodName, getDevice().getPrimaryUserId()); in runTestAsPrimaryUser() 198 private void runTestAsSecondaryUser(String className, String methodName) throws Exception { in runTestAsSecondaryUser() argument 199 runTestAsUser(className, methodName, mSecondaryUserId); in runTestAsSecondaryUser() 202 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser() argument 204 className, methodName, userId); in runTestAsUser() 211 testRunner.setMethodName(NUMBER_BLOCKING_TESTS_PKG + "." + className, methodName); in runTestAsUser()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | JarTestFinder.java | 55 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()
|
D | TestCaseReport.java | 189 private static boolean isTargetClass(List<String> pkgList, String className) { in isTargetClass() argument 192 if (className.startsWith(pkg)) { in isTargetClass() 220 String className = classDef.getType().replace('/','.'); in parseApkTestCase() local 222 if (className.length() > 2) { in parseApkTestCase() 223 className = className.substring(1, className.length() - 1); in parseApkTestCase() 233 tClassBuilder.setName(className); in parseApkTestCase() 240 System.err.printf("%s#%s with Suppress:\n", className, mName); in parseApkTestCase() 256 tClassBuilder.setName(className); in parseApkTestCase() 273 tClassBuilder.setName(className); in parseApkTestCase() 313 String className = getClassName(je.getName()); in getJarTestClasses() local [all …]
|