HomeSort by relevance Sort by last modified time
    Searched full:newinstance (Results 1 - 25 of 3698) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /art/test/042-new-instance/
info.txt 1 Test various permutations of Class.newInstance and Constructor.newInstance,
  /art/test/594-load-string-regression/
info.txt 2 and triggering a DCHECK() failure when merging ClinitCheck into NewInstance.
  /external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/
UnsafeAllocator.java 30 public abstract <T> T newInstance(Class<T> c) throws Exception;
46 public <T> T newInstance(Class<T> c) throws Exception {
55 // private static native Object newInstance(
59 final Method newInstance = ObjectInputStream.class
60 .getDeclaredMethod("newInstance", Class.class, Class.class);
61 newInstance.setAccessible(true);
65 public <T> T newInstance(Class<T> c) throws Exception {
66 return (T) newInstance.invoke(null, c, Object.class);
75 // private static native Object newInstance(Class<?> instantiationClass, int methodId);
82 final Method newInstance = ObjectStreamClass.clas
    [all...]
  /external/testng/src/test/java/test/objectfactory/
ClassObjectFactory.java 10 public Object newInstance(Class<?> cls) {
13 return ctor.newInstance(new Object[] { 42 });
LoggingObjectFactory.java 21 public Object newInstance(Constructor constructor, Object... params)
24 return super.newInstance(constructor, params);
CombinedTestAndObjectFactorySample.java 24 public Object newInstance(Constructor constructor, Object... params) {
27 o = constructor.newInstance(params);
  /external/javassist/sample/evolve/
CannotCreateException.java 4 * Signals that VersionManager.newInstance() fails.
  /external/mockito/src/org/mockito/internal/stubbing/answers/
ClonesArguments.java 20 Object newInstance = ObjenesisHelper.newInstance(from.getClass());
21 new LenientCopyTool().copyToRealObject(from, newInstance);
22 arguments[i] = newInstance;
  /art/test/435-new-instance/src/
Main.java 24 $opt$NewInstance("newInstanceInterface", InstantiationError.class.getCanonicalName());
26 $opt$NewInstance("newInstanceClass", InstantiationError.class.getCanonicalName());
28 $opt$NewInstance("newInstancePrivateClass", IllegalAccessError.class.getCanonicalName());
30 $opt$NewInstance("newInstanceUnknownClass", NoClassDefFoundError.class.getCanonicalName());
33 private static void $opt$NewInstance(String method, String errorName) throws Throwable {
35 Class<?> c = Class.forName("NewInstance");
37 m.invoke(c.newInstance());
  /libcore/luni/src/main/java/java/nio/charset/
CharsetICU.java 23 return CharsetDecoderICU.newInstance(this, icuCanonicalName);
27 return CharsetEncoderICU.newInstance(this, icuCanonicalName);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
ContentFragment.java 44 public static ContentFragment newInstance(String title) {
45 return newInstance(title, null, null, 0, Color.TRANSPARENT);
48 public static ContentFragment newInstance(String title, String breadcrumb,
50 return newInstance(title, breadcrumb, description, 0, Color.TRANSPARENT);
53 public static ContentFragment newInstance(String title, String breadcrumb, String description,
55 return newInstance(title, breadcrumb, description, iconResourceId, Color.TRANSPARENT);
58 public static ContentFragment newInstance(String title, String breadcrumb, String description,
67 public static ContentFragment newInstance(String title, String breadcrumb, String description,
69 return newInstance(title, breadcrumb, description, iconResourceUri, Color.TRANSPARENT);
72 public static ContentFragment newInstance(String title, String breadcrumb, String description
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
ExpectedKey.java 30 static ExpectedKey EMPTY_KEY = newInstance("");
33 static ExpectedKey newInstance(final String label, final ExpectedKey... moreKeys) {
34 return newInstance(label, label, moreKeys);
38 static ExpectedKey newInstance(final String label, final String outputText,
40 return newInstance(ExpectedKeyVisual.newInstance(label),
41 ExpectedKeyOutput.newInstance(outputText), moreKeys);
45 static ExpectedKey newInstance(final String label, final int code,
47 return newInstance(ExpectedKeyVisual.newInstance(label)
    [all...]
  /external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/
FastConstructor.java 35 public Object newInstance() throws InvocationTargetException {
36 return fc.newInstance(index, null);
39 public Object newInstance(Object[] args) throws InvocationTargetException {
40 return fc.newInstance(index, args);
ConstructorDelegate.java 33 public Object newInstance(String declaring, String iface);
68 Object key = KEY_FACTORY.newInstance(iface.getName(), targetClass.getName());
79 final Method newInstance = ReflectUtils.findNewInstance(iface);
80 if (!newInstance.getReturnType().isAssignableFrom(targetClass)) {
85 constructor = targetClass.getDeclaredConstructor(newInstance.getParameterTypes());
100 ReflectUtils.getSignature(newInstance),
101 ReflectUtils.getExceptionTypes(newInstance));
112 return ReflectUtils.newInstance(type);
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowJsPromptResult.java 10 public static JsPromptResult newInstance() {
  /external/testng/src/main/java/org/testng/
IObjectFactory2.java 15 Object newInstance(Class<?> cls);
  /packages/apps/Email/
proguard.flags 4 public *** newInstance(com.android.emailcommon.provider.Account, android.content.Context);
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
ManagePermissionsActivity.java 45 .ManagePermissionsFragment.newInstance();
48 .ManagePermissionsFragment.newInstance();
60 fragment = AppPermissionsFragmentWear.newInstance(packageName);
63 .AppPermissionsFragment.newInstance(packageName);
66 .AppPermissionsFragment.newInstance(packageName);
79 .PermissionAppsFragment.newInstance(permissionName);
82 .PermissionAppsFragment.newInstance(permissionName);
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ClassType/
NewInstanceTagTest.java 27 * JDWP unit test for ClassType.NewInstance command for particular reference
33 * <li>We do not test JT_ARRAY because arrays are created with ArrayType.NewInstance.</li>
44 * Test ClassType.NewInstance of java.lang.Object returns JT_OBJECT tag.
52 * Test ClassType.NewInstance of a subclass of java.lang.Object returns JT_OBJECT tag.
61 * Test ClassType.NewInstance of java.lang.String returns JT_STRING tag.
69 * Test ClassType.NewInstance of a subclass of java.lang.ClassLoader returns
82 * Test ClassType.NewInstance of java.lang.Thread returns JT_THREAD tag.
90 * Test ClassType.NewInstance of a subclass of java.lang.Thread returns
100 * Test ClassType.NewInstance of java.lang.ThreadGroup returns
119 * Test ClassType.NewInstance of a subclass of java.lang.ThreadGroup return
    [all...]
  /external/slf4j/log4j-over-slf4j/src/main/java/org/apache/log4j/
Log4jLoggerFactory.java 61 Logger newInstance = new Logger(name);
62 Logger oldInstance = log4jLoggers.putIfAbsent(name, newInstance);
63 return oldInstance == null ? newInstance : oldInstance;
72 Logger newInstance = loggerFactory.makeNewLoggerInstance(name);
73 Logger oldInstance = log4jLoggers.putIfAbsent(name, newInstance);
74 return oldInstance == null ? newInstance : oldInstance;
  /libcore/luni/src/main/java/org/xml/sax/helpers/
NewInstance.java 0 // NewInstance.java - create a new instance of a class by name.
6 // $Id: NewInstance.java,v 1.4 2002/01/30 20:52:27 dbrownell Exp $
34 class NewInstance {
41 static Object newInstance (ClassLoader classLoader, String className)
51 return driverClass.newInstance();
66 return NewInstance.class.getClassLoader();
  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
StringTexture.java 29 // To create a StringTexture, use the newInstance() method and specify
53 public static StringTexture newInstance(
55 return newInstance(text, getDefaultPaint(textSize, color));
58 public static StringTexture newInstance(
69 return newInstance(text, paint);
72 private static StringTexture newInstance(String text, TextPaint paint) {
  /external/mockito/cglib-and-asm/src/org/mockito/cglib/core/
ClassesKey.java 22 Object newInstance(Object[] array);
29 return FACTORY.newInstance(array);
  /external/mockito/src/org/mockito/internal/runners/util/
RunnerProvider.java 29 public RunnerImpl newInstance(String runnerClassName, Class<?> constructorParam) throws Exception {
39 return (RunnerImpl) constructor.newInstance(constructorParam);
  /external/testng/src/main/java/org/testng/internal/
ObjectFactoryImpl.java 26 public Object newInstance(Constructor constructor, Object... params) {
29 return constructor.newInstance(params);

Completed in 879 milliseconds

1 2 3 4 5 6 7 8 91011>>