Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerTestBase.java43 public static <T extends FocusableActivity> T startActivity(Class<T> cls) { in startActivity() argument
44 return startActivity(cls, DEFAULT_DISPLAY); in startActivity()
47 protected static <T extends FocusableActivity> T startActivity(Class<T> cls, int displayId) { in startActivity() argument
48 return startActivity(cls, displayId, true /* hasFocus */); in startActivity()
52 Class<T> cls, int displayId, boolean hasFocus) { in startActivity() argument
53 return startActivity(cls, displayId, hasFocus, WINDOWING_MODE_UNDEFINED); in startActivity()
57 Class<T> cls, int windowingMode) { in startActivityInWindowingMode() argument
58 return startActivity(cls, DEFAULT_DISPLAY, true /* hasFocus */, windowingMode); in startActivityInWindowingMode()
62 Class<T> cls) { in startActivityInWindowingModeFullScreen() argument
63 return startActivity(cls, DEFAULT_DISPLAY, true /* hasFocus */, WINDOWING_MODE_FULLSCREEN); in startActivityInWindowingModeFullScreen()
[all …]
/cts/hostsidetests/gwp_asan/common/android/cts/gwp_asan/
DGwpAsanServiceTest.java53 private void runServiceAndCheckSuccess(Class<?> cls, int testNum) throws Exception { in runServiceAndCheckSuccess() argument
54 Intent serviceIntent = new Intent(getApplicationContext(), cls); in runServiceAndCheckSuccess()
63 private void runService(Class<?> cls, int testNum) throws Exception { in runService() argument
64 Intent serviceIntent = new Intent(getApplicationContext(), cls); in runService()
76 public void testCrash(Class<?> cls, String processNameSuffix, String crashTag, in testCrash() argument
80 runServiceAndCheckSuccess(cls, Utils.TEST_USE_AFTER_FREE); in testCrash()
82 runService(cls, Utils.TEST_USE_AFTER_FREE); in testCrash()
DTestActivityLauncher.java43 public void callActivity(Class<?> cls, int testId) throws Exception { in callActivity() argument
48 Intent intent = new Intent(getApplicationContext(), cls); in callActivity()
56 public void callActivityAndCheckSuccess(Class<?> cls, int testId) throws Exception { in callActivityAndCheckSuccess() argument
62 Intent intent = new Intent(getApplicationContext(), cls); in callActivityAndCheckSuccess()
DGwpAsanActivityTest.java62 public void testCrash(Class<?> cls, String processNameSuffix, String crashTag, in testCrash() argument
67 activity.callActivityAndCheckSuccess(cls, Utils.TEST_USE_AFTER_FREE); in testCrash()
69 activity.callActivity(cls, Utils.TEST_USE_AFTER_FREE); in testCrash()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/
DTestNgRunnerBuilder.java50 private static boolean isTestNgTestClass(Class<?> cls) { in isTestNgTestClass() argument
52 if (cls.getAnnotation(Test.class) != null) { in isTestNgTestClass()
57 for (Method m : cls.getDeclaredMethods()) { in isTestNgTestClass()
DTestNgRunner.java184 private Description generateTestNgDescription(Class<?> cls) { in generateTestNgDescription() argument
186 Description parent = Description.createSuiteDescription(cls); in generateTestNgDescription()
189 Log.d("TestNgRunner", "Generating TestNg Description for class " + cls.getName()); in generateTestNgDescription()
193 for (Method m : cls.getDeclaredMethods()) { in generateTestNgDescription()
213 Log.d("TestNgRunner", "Already added child " + cls.getName() + "#" + name); in generateTestNgDescription()
218 Description child = Description.createTestDescription(cls, name, m.getAnnotations()); in generateTestNgDescription()
223 Log.d("TestNgRunner", "Add child " + cls.getName() + "#" + name); in generateTestNgDescription()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DParcelTest.java37 public static <T extends Parcelable> void assertParcelsCorrectly(Class<T> cls, T obj) { in assertParcelsCorrectly() argument
38 T newInstance = parcelAndUnparcel(cls, obj); in assertParcelsCorrectly()
48 public static <T extends Parcelable> T parcelAndUnparcel(Class<T> cls, T obj) { in parcelAndUnparcel() argument
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionCustomIntentActivity.java52 final String cls = getIntent().getStringExtra(EXTRA_FGS_CLASS); in getForegroundServiceComponentName() local
53 return cls != null ? new ComponentName(this, cls) in getForegroundServiceComponentName()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0965/src/android/security/cts/CVE_2021_0965/
DDeviceTest.java85 String cls = ""; in testPermission() local
87 cls = ".accessories.BluetoothPairingDialog"; in testPermission()
89 cls = ".bluetooth.BluetoothPairingDialog"; in testPermission()
94 intent.setClassName(pkg, pkg + cls); in testPermission()
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/
DDalvikTestRunner.java223 Class<?> cls = loader.loadClass(e); in getClasses() local
224 if (isTestClass(cls)) { in getClasses()
225 classes.add(cls); in getClasses()
248 private static boolean isTestClass(Class<?> cls) { in isTestClass() argument
254 if (cls == null) { in isTestClass()
257 for (Annotation a : cls.getAnnotations()) { in isTestClass()
264 if (!hasPublicTestMethods(cls)) { in isTestClass()
268 throw new RuntimeException(cls.toString(), exc); in isTestClass()
272 int modifiers = cls.getModifiers(); in isTestClass()
273 return (Test.class.isAssignableFrom(cls) in isTestClass()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/
DDeviceTest.java73 public void testActivity(String cls) throws Exception { in testActivity() argument
94 mViolations.add(cls + mContext.getString(R.string.overlayUiScreenError)); in testActivity()
101 String vulActivity = pkg + cls; in testActivity()
106 mViolations.add(cls + mContext.getString(R.string.msgActivityNotFound, intent)); in testActivity()
125 cls + mContext.getString(R.string.vulActivityNotRunningError, vulActivity)); in testActivity()
131 mVulnerabilities.add(cls); in testActivity()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DJarTestFinder.java57 Class<?> cls = cl.loadClass(className); in getClasses() local
58 int modifiers = cls.getModifiers(); in getClasses()
65 classes.add(cls); in getClasses()
DTestSuiteParser.java439 Class<?> cls = cl.loadClass(className); in getJarTestClasses() local
441 if (IRemoteTest.class.isAssignableFrom(cls) in getJarTestClasses()
442 || Test.class.isAssignableFrom(cls)) { in getJarTestClasses()
443 classes.add(cls); in getJarTestClasses()
444 } else if (!Modifier.isAbstract(cls.getModifiers()) in getJarTestClasses()
445 && hasJUnit4Annotation(cls)) { in getJarTestClasses()
446 classes.add(cls); in getJarTestClasses()
505 for (ApiClass cls : pkg.getClassesList()) { in writeCsvFile()
506 for (ApiMethod mtd : cls.getMethodsList()) { in writeCsvFile()
511 cls.getName(), in writeCsvFile()
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DJarTestFinder.java60 Class<?> cls = cl.loadClass(className); in getClasses() local
61 int modifiers = cls.getModifiers(); in getClasses()
68 classes.add(cls); in getClasses()
DTestCaseReport.java319 Class<?> cls = cl.loadClass(className); in getJarTestClasses() local
321 if (IRemoteTest.class.isAssignableFrom(cls) in getJarTestClasses()
322 || Test.class.isAssignableFrom(cls)) { in getJarTestClasses()
323 classes.add(cls); in getJarTestClasses()
324 } else if (!Modifier.isAbstract(cls.getModifiers()) in getJarTestClasses()
325 && hasJUnit4Annotation(cls)) { in getJarTestClasses()
326 classes.add(cls); in getJarTestClasses()
492 for (TestSuite.Package.Class cls : pkg.getClassesList()) { in printTestSuite()
493 for (TestSuite.Package.Class.Method mtd : cls.getMethodsList()) { in printTestSuite()
498 cls.getName(), in printTestSuite()
[all …]
DComparisonReport.java80 for (TestSuite.Package.Class cls : pkg.getClassesList()) { in writeComparisonReport()
81 for (TestSuite.Package.Class.Method mtd : cls.getMethodsList()) { in writeComparisonReport()
86 cls.getName(), in writeComparisonReport()
90 String testApkType = String.format("%s,%s", cls.getApk(), pkg.getType()); in writeComparisonReport()
/cts/tests/tests/os/jni/
Dandroid_os_cts_OSFeatures.cpp65 jclass cls = env->FindClass("java/lang/RuntimeException"); in android_os_cts_OSFeatures_hasSeccompSupport() local
66 env->ThrowNew(cls, "fork failed"); in android_os_cts_OSFeatures_hasSeccompSupport()
/cts/hostsidetests/tagging/sdk_30/src/android/cts/tagging/sdk30/
DTestActivity.java57 public void callActivity(Class<?> cls) throws Exception { in callActivity() argument
63 Intent intent = new Intent(context, cls); in callActivity()
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DBroadcastTestStartActivity.java42 void startTest(String testCaseType, String pkg, String cls) { in startTest() argument
47 intent.setComponent(new ComponentName(pkg, cls)); in startTest()
DBroadcastTestBase.java138 String pkg, String cls) throws Exception { in startTestAndWaitForBroadcast() argument
141 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForBroadcast() local
180 String pkg, String cls) in startTestAndWaitForChange() argument
189 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForChange() local
/cts/common/device-side/interactive/src/main/java/com/android/interactive/
DAutomator.java195 Class<?> cls = dLoader.loadClass(className); in init() local
196 String automationFor = getAutomationFor(cls); in init()
201 new AutomationExecutor(cls.newInstance())); in init()
213 private String getAutomationFor(Class<?> cls) { in getAutomationFor() argument
214 for (Annotation annotation : cls.getAnnotations()) { in getAutomationFor()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39706/src/android/security/cts/CVE_2021_39706/
DPocActivity.java49 String cls = isCar ? getResources().getString(R.string.certClsCar) in credentialStorageReset() local
51 intent.setClassName(pkg, cls); in credentialStorageReset()
/cts/tests/framework/base/windowmanager/appPrereleaseSdk/fake-framework/src/android/content/
DComponentName.java20 public ComponentName(String pkg, String cls) {} in ComponentName() argument
/cts/tests/tests/security/jni/
Dandroid_security_cts_LinuxRngTest.cpp39 jclass cls = env->FindClass("java/io/IOException"); in throwIOException() local
40 env->ThrowNew(cls, message); in throwIOException()
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp32 static std::string GetClassName(JNIEnv* jni_env, jclass cls) { in GetClassName() argument
33 ScopedLocalRef<jclass> class_class(jni_env, jni_env->GetObjectClass(cls)); in GetClassName()
36 jni_env, reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid))); in GetClassName()

12