HomeSort by relevance Sort by last modified time
    Searched full:newinstance (Results 1 - 25 of 2106) 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,
  /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/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;
  /packages/apps/Email/
proguard.flags 4 public *** newInstance(com.android.emailcommon.provider.Account, android.content.Context);
  /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/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowJsPromptResult.java 10 public static JsPromptResult newInstance() {
  /external/smack/asmack-master/patch/
20-remove-mxparser.sh 4 find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
  /sdk/emulator/opengl/shared/emugl/common/
smart_ptr_unittest.cpp 22 // the MyTestClass instances that are created through newInstance().
36 MyClass* newInstance() {
74 MyClass* obj = newInstance();
91 MyClass* obj = newInstance();
115 SmartPtr<MyClass> ptr1(newInstance());
116 SmartPtr<MyClass> ptr2(newInstance());
132 SmartPtr<MyClass> ptr(newInstance());
  /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 30 // To create a StringTexture, use the newInstance() method and specify
54 public static StringTexture newInstance(
56 return newInstance(text, getDefaultPaint(textSize, color));
59 public static StringTexture newInstance(
70 return newInstance(text, paint);
73 private static StringTexture newInstance(String text, TextPaint paint) {
  /external/chromium_org/extensions/renderer/
binding_generating_native_handler.h 23 // Object returned by |NewInstance| to the generated binding.
28 virtual v8::Handle<v8::Object> NewInstance() OVERRIDE;
  /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);
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/database/
NoNullCursorAsyncQueryHandlerTest.java 58 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance();
59 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false);
86 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false);
88 final ObjectHolder<Object> cookieHolder = ObjectHolder.newInstance();
113 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false);
115 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance();
142 public static <E> ObjectHolder<E> newInstance() {
146 public static <E> ObjectHolder<E> newInstance(E value) {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
ServReqAllTestCase02.java 30 * WifiP2pServiceRequest.newInstance(WifiP2pServiceInfo.SERVICE_TYPE_BONJOUR) and
31 * WifiP2pServiceRequest.newInstance(WifiP2pServiceInfo.SERVICE_TYPE_UPNP).
48 reqList.add(WifiP2pServiceRequest.newInstance(
50 reqList.add(WifiP2pServiceRequest.newInstance(
ServReqAllTestCase03.java 31 * WifiP2pDnsSdServiceRequest.newInstance() and
32 * WifiP2pUpnpServiceRequest.newInstance().
49 reqList.add(WifiP2pDnsSdServiceRequest.newInstance());
50 reqList.add(WifiP2pUpnpServiceRequest.newInstance());
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
JsPromptResultTest.java 15 JsPromptResult result = ShadowJsPromptResult.newInstance();
  /art/test/042-new-instance/src/
Main.java 31 * Tests Class.newInstance().
37 Object obj = c.newInstance();
47 Object obj = c.newInstance();
69 * Tests Constructor.newInstance().
88 Object obj = cons.newInstance();
99 Object obj = cons.newInstance(new Main());
110 Object obj = cons.newInstance();
134 Object obj = cons.newInstance();
149 Object obj = cons.newInstance();
180 CC.newInstance();
    [all...]
  /external/objenesis/main/src/org/objenesis/instantiator/basic/
ConstructorInstantiator.java 24 * Instantiates a class by grabbing the no args constructor and calling Constructor.newInstance().
43 public Object newInstance() {
45 return constructor.newInstance((Object[]) null);
NewInstanceInstantiator.java 22 * The simplest instantiator - simply calls Class.newInstance(). This can deal with default public
36 public Object newInstance() {
38 return type.newInstance();

Completed in 1375 milliseconds

1 2 3 4 5 6 7 8 91011>>