/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | BitmapDumper.java | 45 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/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 | 49 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/core/runner/src/com/android/cts/core/internal/runner/ |
D | TestLoader.java | 69 public Class<?> loadClass(String className) { in loadClass() argument 70 Class<?> loadedClass = doLoadClass(className); in loadClass() 72 mLoadedClassesMap.put(className, loadedClass); in loadClass() 89 private Class<?> doLoadClass(String className) { in doLoadClass() argument 90 if (mLoadFailuresMap.containsKey(className)) { in doLoadClass() 93 } else if (mLoadedClassesMap.containsKey(className)) { in doLoadClass() 95 return mLoadedClassesMap.get(className); in doLoadClass() 100 return Class.forName(className, false, myClassLoader); in doLoadClass() 102 String errMsg = String.format("Could not find class: %s", className); in doLoadClass() 104 Description description = Description.createSuiteDescription(className); in doLoadClass() [all …]
|
/cts/tests/core/runner/src/com/android/cts/core/runner/ |
D | TestList.java | 61 for (String className : classNames) { in getClasses() 63 classesToRun.add(Class.forName(className)); in getClasses() 65 throw new IllegalStateException("Could not load class '" + className, e); in getClasses() 107 String className; in shouldRunTest() local 109 className = testName; in shouldRunTest() 111 className = testName.substring(0, index); in shouldRunTest() 114 Class<?> testClass = Class.forName(className); in shouldRunTest() 123 (mIncludedTests.isEmpty() || mIncludedTests.contains(className) || in shouldRunTest() 128 mExcludedTests.contains(className) || in shouldRunTest() 133 Log.w("Could not load class '" + className, e); in shouldRunTest()
|
D | TestClassFinder.java | 101 for (String className : classNames) { in getClasses() 104 Class<?> cls = testLoader.loadIfTest(className); in getClasses() 109 Log.d(TAG, "getClasses: Loaded " + className); in getClasses() 112 Log.d(TAG, "getClasses: Failed to load class " + className); in getClasses()
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/ |
D | ComponentNameUtils.java | 34 static String buildComponentName(final String packageName, final String className) { in buildComponentName() argument 35 return packageName + "/" + (className.startsWith(packageName) in buildComponentName() 36 ? className.substring(packageName.length()) : className); in buildComponentName()
|
/cts/hostsidetests/os/test-apps/StaticSharedNativeLibConsumer/jni/ |
D | version.cpp | 29 static int registerNativeMethods(JNIEnv* env, const char* className, in registerNativeMethods() argument 32 clazz = env->FindClass(className); in registerNativeMethods() 34 ALOGE("Native registration unable to find class '%s'", className); in registerNativeMethods() 38 ALOGE("RegisterNatives failed for '%s'", className); in registerNativeMethods()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | TestSuiteFilter.java | 103 String className = parts[1]; in shouldRun() local 104 String methodName = String.format("%s#%s", className, parts[0]); in shouldRun() 105 int index = className.lastIndexOf('.'); in shouldRun() 106 String packageName = index < 0 ? "" : className.substring(0, index); in shouldRun() 112 if (mExcludes.contains(className)) { in shouldRun() 122 || mIncludes.contains(className) in shouldRun()
|
/cts/tests/signature/src/android/signature/cts/ |
D | CurrentApi.java | 76 static JDiffField loadFieldInfo(String className, XmlPullParser parser) { in loadFieldInfo() argument 79 int modifier = jdiffModifierToReflectionFormat(className, parser); in loadFieldInfo() 91 static JDiffMethod loadMethodInfo(String className, XmlPullParser parser) { in loadMethodInfo() argument 94 int modifier = jdiffModifierToReflectionFormat(className, parser); in loadMethodInfo() 123 String className = parser.getAttributeValue(null, ATTRIBUTE_NAME); in loadClassInfo() local 126 currentClass = new JDiffClassDescription(pkg, className, resultObserver); in loadClassInfo() 128 currentClass = new JDiffClassDescription(pkg, className); in loadClassInfo() 131 currentClass.setModifier(jdiffModifierToReflectionFormat(className, parser)); in loadClassInfo()
|
/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 | DeviceAndProfileOwnerTestApi25.java | 89 protected void executeDeviceTestClass(String className) throws Exception { in executeDeviceTestClass() argument 90 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, mUserId); in executeDeviceTestClass() 93 protected void executeDeviceTestMethod(String className, String testName) throws Exception { in executeDeviceTestMethod() argument 94 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
|
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()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | LockTaskTest.java | 373 private void stopAndFinish(String className) throws InterruptedException { in stopAndFinish() argument 374 stopLockTask(className); in stopAndFinish() 375 finishAndWait(className); in stopAndFinish() 384 private void finishAndWait(String className) throws InterruptedException { in finishAndWait() argument 386 finish(className); in finishAndWait() 408 private void startLockTask(String className) throws InterruptedException { in startLockTask() argument 409 Intent intent = getLockTaskUtility(className); in startLockTask() 417 private void stopLockTask(String className) throws InterruptedException { in stopLockTask() argument 418 Intent intent = getLockTaskUtility(className); in stopLockTask() 426 private void finish(String className) throws InterruptedException { in finish() argument [all …]
|
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/ |
D | SimpleIntentReceiverActivity.java | 36 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/ |
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 | 161 private void runTestAsPrimaryUser(String className, String methodName) throws Exception { in runTestAsPrimaryUser() argument 162 runTestAsUser(className, methodName, getDevice().getPrimaryUserId()); in runTestAsPrimaryUser() 165 private void runTestAsSecondaryUser(String className, String methodName) throws Exception { in runTestAsSecondaryUser() argument 166 runTestAsUser(className, methodName, mSecondaryUserId); in runTestAsSecondaryUser() 169 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser() argument 171 className, methodName, userId); in runTestAsUser() 178 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()
|
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/ |
D | DalvikTestRunner.java | 125 String className = parts[1]; in shouldCollect() local 126 String methodName = String.format("%s#%s", className, parts[0]); in shouldCollect() 127 int index = className.lastIndexOf('.'); in shouldCollect() 128 String packageName = index < 0 ? "" : className.substring(0, index); in shouldCollect() 134 if (excludes.contains(className)) { in shouldCollect() 144 || includes.contains(className) in shouldCollect() 268 String className = test.getClass().getName(); 270 return String.format("%s#%s", className, ((TestCase) test).getName()); 272 return className;
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BaseBackupHostSideTest.java | 93 protected void checkDeviceTest(String packageName, String className, String testName) in checkDeviceTest() argument 95 boolean result = runDeviceTests(packageName, className, testName); in checkDeviceTest() 133 protected void startActivityInPackageAndWait(String packageName, String className) in startActivityInPackageAndWait() argument 138 className)); in startActivityInPackageAndWait()
|
/cts/tools/dex-tools/test/dex/reader/ |
D | DexTestsCommon.java | 93 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/tests/tests/media/src/android/media/cts/ |
D | MediaScannerConnectionTest.java | 131 public void onServiceConnected(ComponentName className, IBinder service) { in onServiceConnected() argument 132 super.onServiceConnected(className, service); in onServiceConnected() 137 public void onServiceDisconnected(ComponentName className) { in onServiceDisconnected() argument 138 super.onServiceDisconnected(className); in onServiceDisconnected()
|
/cts/tests/tests/nativehardware/jni/ |
D | NativeTestHelper.cpp | 34 const char *className = "java/lang/AssertionError"; in fail() local 35 exClass = env->FindClass(className); in fail()
|
/cts/tests/sensor/jni/ |
D | nativeTestHelper.cpp | 34 const char *className = "java/lang/AssertionError"; in fail() local 35 exClass = env->FindClass(className); in fail()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | CaptureValuesTest.java | 77 String className = transition.getClass().getSuperclass().getSimpleName().toString(); in testCaptureValues() local 78 assertNotNull("captureStartValues not called for " + className, in testCaptureValues() 80 assertNotNull("captureEndValues not called for " + className, in testCaptureValues() 93 String className = transition.getClass().getSuperclass().getSimpleName().toString(); in verifyCapturedValues() local 94 assertNotNull(className + " should have non-null transition properties", properties); in verifyCapturedValues() 98 assertTrue(className + " should have written to property " + property, in verifyCapturedValues()
|