/external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/ |
D | UnsafeAllocator.java | 30 public abstract <T> T newInstance(Class<T> c) throws Exception; in newInstance() method in UnsafeAllocator 46 public <T> T newInstance(Class<T> c) throws Exception { in create() 59 final Method newInstance = ObjectInputStream.class in create() 61 newInstance.setAccessible(true); in create() 65 public <T> T newInstance(Class<T> c) throws Exception { in create() 66 return (T) newInstance.invoke(null, c, Object.class); in create() 82 final Method newInstance = ObjectStreamClass.class in create() 84 newInstance.setAccessible(true); in create() 88 public <T> T newInstance(Class<T> c) throws Exception { in create() 89 return (T) newInstance.invoke(null, c, constructorId); in create() [all …]
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | CodedInputStreamTest.java | 93 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarint() 96 input = CodedInputStream.newInstance(data); in assertReadVarint() 102 input = CodedInputStream.newInstance( in assertReadVarint() 106 input = CodedInputStream.newInstance( in assertReadVarint() 130 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarintFailure() 138 input = CodedInputStream.newInstance(data); in assertReadVarintFailure() 200 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian32() 206 input = CodedInputStream.newInstance( in assertReadLittleEndian32() 219 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian64() 225 input = CodedInputStream.newInstance( in assertReadLittleEndian64() [all …]
|
D | CodedOutputStreamTest.java | 83 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteVarint() 95 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteVarint() 111 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint() 120 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint() 165 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteLittleEndian32() 173 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian32() 187 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteLittleEndian64() 195 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian64() 288 CodedOutputStream.newInstance(rawOutput, blockSize); in testWriteWholeMessage()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
D | KSBuilder_ImplTest.java | 118 KeyStore.Builder.newInstance(null, protPass); in testNewInstanceKeyStoreProtectionParameter() 129 KeyStore.Builder.newInstance(ks, null); in testNewInstanceKeyStoreProtectionParameter() 151 KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter() 156 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter() 161 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter() 250 KeyStore.Builder.newInstance(null, defaultProvider, fl, protPass); in testNewInstanceStringProviderFileProtectionParameter() 255 KeyStore.Builder.newInstance(defaultType, defaultProvider, null, in testNewInstanceStringProviderFileProtectionParameter() 262 .newInstance(defaultType, defaultProvider, fl, null); in testNewInstanceStringProviderFileProtectionParameter() 268 .newInstance(defaultType, defaultProvider, fl, myPP); in testNewInstanceStringProviderFileProtectionParameter() 273 KeyStore.Builder.newInstance(defaultType, defaultProvider, in testNewInstanceStringProviderFileProtectionParameter() [all …]
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/ |
D | ConstructorDelegate.java | 33 public Object newInstance(String declaring, String iface); in newInstance() method 68 Object key = KEY_FACTORY.newInstance(iface.getName(), targetClass.getName()); in create() 79 final Method newInstance = ReflectUtils.findNewInstance(iface); in generateClass() local 80 if (!newInstance.getReturnType().isAssignableFrom(targetClass)) { in generateClass() 85 constructor = targetClass.getDeclaredConstructor(newInstance.getParameterTypes()); in generateClass() 100 ReflectUtils.getSignature(newInstance), in generateClass() 101 ReflectUtils.getExceptionTypes(newInstance)); in generateClass() 112 return ReflectUtils.newInstance(type); in firstInstance()
|
D | FastConstructor.java | 35 public Object newInstance() throws InvocationTargetException { in newInstance() method in FastConstructor 36 return fc.newInstance(index, null); in newInstance() 39 public Object newInstance(Object[] args) throws InvocationTargetException { in newInstance() method in FastConstructor 40 return fc.newInstance(index, args); in newInstance()
|
D | FastClass.java | 77 return ReflectUtils.newInstance(type, in firstInstance() 91 public Object newInstance() throws InvocationTargetException { in newInstance() method in FastClass 92 return newInstance(getIndex(Constants.EMPTY_CLASS_ARRAY), null); in newInstance() 95 …public Object newInstance(Class[] parameterTypes, Object[] args) throws InvocationTargetException { in newInstance() method in FastClass 96 return newInstance(getIndex(parameterTypes), args); in newInstance() 184 abstract public Object newInstance(int index, Object[] args) throws InvocationTargetException; in newInstance() method in FastClass
|
D | MulticastDelegate.java | 39 MulticastDelegate copy = newInstance(); in addHelper() 49 MulticastDelegate copy = newInstance(); in remove() 59 abstract public MulticastDelegate newInstance(); in newInstance() method in MulticastDelegate 164 return ((MulticastDelegate)ReflectUtils.newInstance(type)).newInstance(); in firstInstance() 168 return ((MulticastDelegate)instance).newInstance(); in nextInstance()
|
D | MethodDelegate.java | 116 Object newInstance(Class delegateClass, String methodName, Class iface); in newInstance() method 148 abstract public MethodDelegate newInstance(Object target); in newInstance() method in MethodDelegate 189 Object key = KEY_FACTORY.newInstance(targetClass, methodName, iface); in create() 194 return ((MethodDelegate)ReflectUtils.newInstance(type)).newInstance(target); in firstInstance() 198 return ((MethodDelegate)instance).newInstance(target); in nextInstance()
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
D | CompositorAnimations.h | 47 static void setInstanceForTesting(CompositorAnimations* newInstance) { instance(newInstance); } in setInstanceForTesting() argument 61 static CompositorAnimations* instance(CompositorAnimations* newInstance) in instance() argument 64 if (newInstance) { in instance() 65 instance = newInstance; in instance()
|
/external/mockito/src/org/mockito/internal/stubbing/answers/ |
D | ClonesArguments.java | 20 Object newInstance = ObjenesisHelper.newInstance(from.getClass()); in answer() local 21 new LenientCopyTool().copyToRealObject(from, newInstance); in answer() 22 arguments[i] = newInstance; in answer()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowNetworkInfo.java | 23 public static NetworkInfo newInstance() { in newInstance() method in ShadowNetworkInfo 24 return newInstance(null); in newInstance() 27 public static NetworkInfo newInstance(NetworkInfo.DetailedState detailedState) { in newInstance() method in ShadowNetworkInfo 28 return newInstance(detailedState, ConnectivityManager.TYPE_MOBILE, 0, true, true); in newInstance() 31 …public static NetworkInfo newInstance(NetworkInfo.DetailedState detailedState, int type, int subTy… in newInstance() method in ShadowNetworkInfo
|
/external/jsilver/src/com/google/clearsilver/jsilver/data/ |
D | DelegatedData.java | 46 protected DelegatedData newInstance(Data newDelegate) { in newInstance() method in DelegatedData 118 return newInstance(getDelegate().getRoot()); in getRoot() 123 return newInstance(getDelegate().getParent()); in getParent() 138 return newInstance(getDelegate().getNextSibling()); in getNextSibling() 162 return newInstance(iterator.next()); in next() 197 return newInstance(getDelegate().getChild(path)); in getChild() 202 return newInstance(getDelegate().createChild(path)); in createChild() 229 return newInstance(getDelegate().getSymlink()); in getSymlink()
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/proxy/ |
D | Factory.java | 35 Object newInstance(Callback callback); in newInstance() method 42 Object newInstance(Callback[] callbacks); in newInstance() method 52 Object newInstance(Class[] types, Object[] args, Callback[] callbacks); in newInstance() method
|
D | Mixin.java | 45 public Object newInstance(int style, String[] classes, int[] route); in newInstance() method 48 abstract public Mixin newInstance(Object[] delegates); in newInstance() method in Mixin 165 …return (Mixin)super.create(KEY_FACTORY.newInstance(style, ReflectUtils.getNames( classes ), route)… in create() 183 return ((Mixin)ReflectUtils.newInstance(type)).newInstance(delegates); in firstInstance() 187 return ((Mixin)instance).newInstance(delegates); in nextInstance()
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | AbstractMessageLite.java | 63 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray() 78 CodedOutputStream.newInstance(output, bufferSize); in writeTo() 88 CodedOutputStream.newInstance(output, bufferSize); in writeDelimitedTo() 161 CodedInputStream.newInstance(data, off, len); in mergeFrom() 187 CodedInputStream.newInstance(data, off, len); in mergeFrom() 201 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom() 211 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
|
/external/objenesis/main/src/org/objenesis/ |
D | ObjenesisHelper.java | 42 public static Object newInstance(Class clazz) { in newInstance() method in ObjenesisHelper 43 return OBJENESIS_STD.newInstance(clazz); in newInstance() 54 return (Serializable) OBJENESIS_SERIALIZER.newInstance(clazz); in newSerializableInstance()
|
/external/objenesis/main/test/org/objenesis/ |
D | ObjenesisTest.java | 41 assertEquals(o.getInstantiatorOf(getClass()).newInstance().getClass(), getClass()); in testObjenesis_WithoutCache() 46 assertEquals(getClass(), o.newInstance(getClass()).getClass()); in testNewInstance() 53 assertEquals(getClass(), i1.newInstance().getClass()); in testGetInstantiatorOf()
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/beans/ |
D | BeanMap.java | 69 public Object newInstance(Class type, int require); in newInstance() method 123 return (BeanMap)super.create(KEY_FACTORY.newInstance(beanClass, require)); in create() 131 return ((BeanMap)ReflectUtils.newInstance(type)).newInstance(bean); in firstInstance() 135 return ((BeanMap)instance).newInstance(bean); in nextInstance() 145 abstract public BeanMap newInstance(Object bean); in newInstance() method in BeanMap
|
/external/javassist/src/test/test/javassist/proxy/ |
D | ProxyFactoryCompatibilityTest.java | 54 TestClass proxy1 = (TestClass)proxyClass1.newInstance(); in testFactoryCompatibility() 61 TestClass proxy2 = (TestClass)proxyClass2.newInstance(); in testFactoryCompatibility() 79 TestClass proxy3 = (TestClass)proxyClass3.newInstance(); in testFactoryCompatibility() 85 TestClass proxy4 = (TestClass)proxyClass4.newInstance(); in testFactoryCompatibility()
|
/external/chromium_org/content/shell/tools/plugin/ |
D | PluginObject.cpp | 1347 PluginObject* newInstance = (PluginObject*)malloc(sizeof(PluginObject)); in pluginAllocate() local 1354 newInstance->pluginTest = 0; in pluginAllocate() 1355 newInstance->npp = npp; in pluginAllocate() 1356 newInstance->testObject = browser->createobject(npp, content::GetTestClass()); in pluginAllocate() 1357 newInstance->rememberedObject = 0; in pluginAllocate() 1358 newInstance->eventLogging = false; in pluginAllocate() 1359 newInstance->onStreamLoad = 0; in pluginAllocate() 1360 newInstance->onStreamDestroy = 0; in pluginAllocate() 1361 newInstance->onDestroy = 0; in pluginAllocate() 1362 newInstance->onURLNotify = 0; in pluginAllocate() [all …]
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | AndroidHttpClientTest.java | 24 AndroidHttpClient client = AndroidHttpClient.newInstance("foo"); in testNewInstance() 30 AndroidHttpClient client = AndroidHttpClient.newInstance("foo", Robolectric.application); in testNewInstanceWithContext() 36 AndroidHttpClient client = AndroidHttpClient.newInstance("foo"); in testExecute()
|
/external/chromium_org/sync/android/javatests/src/org/chromium/sync/notifier/ |
D | InvalidationServiceTest.java | 143 ObjectId objectId = ObjectId.newInstance(1, "obj".getBytes()); in testReady() 178 ObjectId objectId = ObjectId.newInstance(1, "obj".getBytes()); in testReissueRegistrations() 206 ObjectId desiredObjectId = ObjectId.newInstance(1, "obj1".getBytes()); in testInformRegistrationStatus() 207 ObjectId undesiredObjectId = ObjectId.newInstance(1, "obj2".getBytes()); in testInformRegistrationStatus() 267 ObjectId desiredObjectId = ObjectId.newInstance(1, "obj1".getBytes()); in testInformRegistrationFailure() 268 ObjectId undesiredObjectId = ObjectId.newInstance(1, "obj2".getBytes()); in testInformRegistrationFailure() 320 getService().informError(ErrorInfo.newInstance(0, true, "transient", null)); in testInformError() 324 getService().informError(ErrorInfo.newInstance(0, false, "permanent", null)); in testInformError() 364 ObjectId objectId = ObjectId.newInstance(55, "BOOKMARK".getBytes()); in doTestInvalidate() 367 Invalidation.newInstance(objectId, version, payload.getBytes()) : in doTestInvalidate() [all …]
|
/external/objenesis/tck/test/org/objenesis/tck/ |
D | OsgiTest.java | 49 XPathFactory xPathFactory = XPathFactory.newInstance(); in getTestBundlesNames() 59 final DocumentBuilderFactory xmlFact = DocumentBuilderFactory.newInstance(); in getTestBundlesNames() 73 assertSame(OsgiTest.class, ObjenesisHelper.newInstance(getClass()).getClass()); in testCanInstantiate()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
D | URLClassLoaderTest.java | 173 ucl = URLClassLoader.newInstance(urls); in test_newInstance$Ljava_net_URL() 183 ucl = URLClassLoader.newInstance(urls); in test_newInstance$Ljava_net_URL() 195 ucl = URLClassLoader.newInstance(u, cl); in test_newInstance$Ljava_net_URLLjava_lang_ClassLoader() 238 URLClassLoader ucl = URLClassLoader.newInstance(urls, null); in test_findClassLjava_lang_String() 252 ucl = URLClassLoader.newInstance(urls, null); in test_findClassLjava_lang_String() 294 ucl = URLClassLoader.newInstance(urls, null); in test_findClassLjava_lang_String() 298 ucl = URLClassLoader.newInstance(urls, null); in test_findClassLjava_lang_String() 311 ucl = URLClassLoader.newInstance(urls, null); in test_findClassLjava_lang_String() 410 URLClassLoader urlClassloader = URLClassLoader.newInstance( in test_findResource() 517 ucl = URLClassLoader.newInstance(urls, null); in test_findClassLjava_lang_String_Jar_Class_Path()
|