HomeSort by relevance Sort by last modified time
    Searched full:newinstance (Results 1 - 25 of 4247) 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/dexmaker-mockito/src/main/java/com/android/dx/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);
  /art/test/639-checker-code-sinking/src/
Main.java 53 /// CHECK: <<New:l\d+>> NewInstance [<<LoadClass>>]
60 /// CHECK-NOT: NewInstance
66 /// CHECK: <<New:l\d+>> NewInstance [<<LoadClass>>]
69 /// CHECK: NewInstance [<<Error>>]
80 /// CHECK: NewInstance [<<LoadClass>>]
86 /// CHECK-NOT: NewInstance
92 /// CHECK: NewInstance [<<LoadClass>>]
94 /// CHECK: NewInstance [<<Error>>]
106 /// CHECK: <<NewInstance:l\d+>> NewInstance [<<LoadClass>>
    [all...]
  /external/javassist/sample/evolve/
CannotCreateException.java 4 * Signals that VersionManager.newInstance() fails.
  /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...]
  /art/test/476-checker-ctor-memory-barrier/src/
Main.java 69 /// CHECK: <<NewInstance:l\d+>> NewInstance
70 /// CHECK-DAG: ConstructorFence [<<NewInstance>>]
71 /// CHECK-DAG: ConstructorFence [<<NewInstance>>]
110 /// CHECK-DAG: <<NewHere:l\d+>> NewInstance klass:InheritFromClassWithFinals
157 /// CHECK-DAG: <<NewHF:l\d+>> NewInstance klass:HaveFinalsAndInheritFromClassWithFinals
158 /// CHECK-DAG: <<NewIF:l\d+>> NewInstance klass:InheritFromClassWithFinals
194 /// CHECK: <<NewInstance:l\d+>> NewInstance
195 /// CHECK: ConstructorFence [<<NewInstance>>]
    [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/src/main/java/org/mockito/internal/creation/instance/
Instantiator.java 15 <T> T newInstance(Class<T> cls) throws InstantiationException;
  /external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
ClonesArguments.java 22 Object newInstance = instantiator.newInstance(from.getClass());
23 new LenientCopyTool().copyToRealObject(from, newInstance);
24 arguments[i] = newInstance;
  /external/mockito/src/test/java/org/mockito/internal/creation/instance/
ConstructorInstantiatorTest.java 33 assertEquals(new ConstructorInstantiator(null).newInstance(SomeClass.class).getClass(), SomeClass.class);
38 assertEquals(new ConstructorInstantiator(this).newInstance(SomeInnerClass.class).getClass(), SomeInnerClass.class);
39 assertEquals(new ConstructorInstantiator(new ChildOfThis()).newInstance(SomeInnerClass.class).getClass(), SomeInnerClass.class);
45 new ConstructorInstantiator(null).newInstance(SomeClass2.class);
  /external/r8/src/main/java/com/android/tools/r8/code/
NewInstance.java 11 public class NewInstance extends Format21c {
14 public static final String NAME = "NewInstance";
17 NewInstance(int high, BytecodeStream stream, OffsetToObjectMapping mapping) {
21 public NewInstance(int AA, DexType BBBB) {
  /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/Launcher3/src/com/android/launcher3/
AppFilter.java 8 public static AppFilter newInstance(Context context) {
  /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/r8/src/main/java/com/android/tools/r8/ir/code/
NewInstance.java 10 public class NewInstance extends Instruction {
14 public NewInstance(DexType clazz, Value dest) {
28 builder.add(this, new com.android.tools.r8.code.NewInstance(dest, clazz));
48 assert false : "NewInstance has no register arguments";
69 public NewInstance asNewInstance() {
  /external/protobuf/java/core/src/test/java/com/google/protobuf/
UnknownFieldSetLiteTest.java 63 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray());
65 UnknownFieldSetLite instance = UnknownFieldSetLite.newInstance();
76 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray());
78 UnknownFieldSetLite instance = UnknownFieldSetLite.newInstance();
85 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.newInstance();
89 CodedInputStream.newInstance(toByteString(unknownFields).toByteArray());
99 UnknownFieldSetLite builder = UnknownFieldSetLite.newInstance();
103 CodedInputStream.newInstance(toByteString(builder).toByteArray());
113 UnknownFieldSetLite unknownFields1 = UnknownFieldSetLite.newInstance();
116 UnknownFieldSetLite unknownFields2 = UnknownFieldSetLite.newInstance();
    [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();

Completed in 947 milliseconds

1 2 3 4 5 6 7 8 91011>>