/external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/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/apache-commons-math/src/main/java/org/apache/commons/math/dfp/ |
D | DfpMath.java | 253 return base.newInstance(result); in pow() 272 return a.newInstance((byte)1, Dfp.INFINITE); in exp() 277 return a.newInstance(); in exp() 327 return a.dotrap(DfpField.FLAG_INVALID, "ln", a, a.newInstance((byte)1, Dfp.QNAN)); in log() 337 x = x.divide(pow(a.newInstance(10000), lr)); /* This puts x in the range 0-10000 */ in log() 352 spy[0] = a.newInstance("1.33333"); // Use spy[0] for comparison in log() 362 spx[0] = a.newInstance(new StringBuilder().append(p2+4*lr).toString()); in log() 369 spx[0] = a.newInstance(new StringBuilder().append(4*lr).toString()); in log() 376 return a.newInstance(spz[0].add(spz[1])); in log() 441 Dfp x = t.add(a[0].newInstance("-0.25")).divide(t.add(a[0].newInstance("0.25"))); in logInternal() [all …]
|
D | Dfp.java | 550 public Dfp newInstance() { in newInstance() method in Dfp 558 public Dfp newInstance(final byte x) { in newInstance() method in Dfp 566 public Dfp newInstance(final int x) { in newInstance() method in Dfp 574 public Dfp newInstance(final long x) { in newInstance() method in Dfp 582 public Dfp newInstance(final double x) { in newInstance() method in Dfp 591 public Dfp newInstance(final Dfp d) { in newInstance() method in Dfp 596 final Dfp result = newInstance(getZero()); in newInstance() 610 public Dfp newInstance(final String s) { in newInstance() method in Dfp 620 public Dfp newInstance(final byte sig, final byte code) { in newInstance() method in Dfp 755 final Dfp result = newInstance(getZero()); in lessThan() [all …]
|
D | DfpDec.java | 98 public Dfp newInstance() { in newInstance() method in DfpDec 104 public Dfp newInstance(final byte x) { in newInstance() method in DfpDec 110 public Dfp newInstance(final int x) { in newInstance() method in DfpDec 116 public Dfp newInstance(final long x) { in newInstance() method in DfpDec 122 public Dfp newInstance(final double x) { in newInstance() method in DfpDec 128 public Dfp newInstance(final Dfp d) { in newInstance() method in DfpDec 133 final Dfp result = newInstance(getZero()); in newInstance() 144 public Dfp newInstance(final String s) { in newInstance() method in DfpDec 150 public Dfp newInstance(final byte sign, final byte nans) { in newInstance() method in DfpDec 300 final Dfp result = newInstance(getZero()); in nextAfter() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | UnknownFieldSetLiteTest.java | 63 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray()); in testMergeFieldFrom() 65 UnknownFieldSetLite instance = UnknownFieldSetLite.newInstance(); in testMergeFieldFrom() 76 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray()); in testSerializedSize() 78 UnknownFieldSetLite instance = UnknownFieldSetLite.newInstance(); in testSerializedSize() 85 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.newInstance(); in testMergeVarintField() 89 CodedInputStream.newInstance(toByteString(unknownFields).toByteArray()); in testMergeVarintField() 99 UnknownFieldSetLite builder = UnknownFieldSetLite.newInstance(); in testMergeVarintField_negative() 103 CodedInputStream.newInstance(toByteString(builder).toByteArray()); in testMergeVarintField_negative() 113 UnknownFieldSetLite unknownFields1 = UnknownFieldSetLite.newInstance(); in testEqualsAndHashCode() 116 UnknownFieldSetLite unknownFields2 = UnknownFieldSetLite.newInstance(); in testEqualsAndHashCode() [all …]
|
D | CodedInputStreamTest.java | 106 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarint() 110 input = CodedInputStream.newInstance(data); in assertReadVarint() 114 input = CodedInputStream.newInstance(data); in assertReadVarint() 118 input = CodedInputStream.newInstance(data); in assertReadVarint() 124 input = CodedInputStream.newInstance( in assertReadVarint() 129 input = CodedInputStream.newInstance( in assertReadVarint() 134 input = CodedInputStream.newInstance( in assertReadVarint() 139 input = CodedInputStream.newInstance( in assertReadVarint() 163 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarintFailure() 171 input = CodedInputStream.newInstance(data); in assertReadVarintFailure() [all …]
|
D | ParseExceptionsTest.java | 99 return DescriptorProto.parseFrom(in, ExtensionRegistry.newInstance()); in message_parseFrom_InputStreamAndExtensionRegistry() 110 return DescriptorProto.parseFrom(CodedInputStream.newInstance(in)); in message_parseFrom_CodedInputStream() 122 CodedInputStream.newInstance(in), ExtensionRegistry.newInstance()); in message_parseFrom_CodedInputStreamAndExtensionRegistry() 144 return DescriptorProto.parseDelimitedFrom(in, ExtensionRegistry.newInstance()); in message_parseDelimitedFrom_InputStreamAndExtensionRegistry() 167 .mergeFrom(in, ExtensionRegistry.newInstance()) in messageBuilder_mergeFrom_InputStreamAndExtensionRegistry() 179 return DescriptorProto.newBuilder().mergeFrom(CodedInputStream.newInstance(in)).build(); in messageBuilder_mergeFrom_CodedInputStream() 191 .mergeFrom(CodedInputStream.newInstance(in), ExtensionRegistry.newInstance()) in messageBuilder_mergeFrom_CodedInputStreamAndExtensionRegistry() 217 builder.mergeDelimitedFrom(in, ExtensionRegistry.newInstance()); in messageBuilder_mergeDelimitedFrom_InputStreamAndExtensionRegistry()
|
D | CodedOutputStreamTest.java | 68 stream = CodedOutputStream.newInstance(output, size); in OutputStreamCoder() 93 stream = CodedOutputStream.newInstance(bytes); in ArrayCoder() 125 stream = CodedOutputStream.newInstance(buffer); in NioHeapCoder() 163 stream = CodedOutputStream.newInstance(buffer); in NioDirectCoder() 423 CodedOutputStream codedStream = CodedOutputStream.newInstance(buffer); 458 CodedOutputStream codedStream = CodedOutputStream.newInstance(outputStream); 482 CodedOutputStream codedStream = CodedOutputStream.newInstance(destination); 518 CodedOutputStream outputWithStream = CodedOutputStream.newInstance(new ByteArrayOutputStream()); 519 CodedOutputStream outputWithArray = CodedOutputStream.newInstance(new byte[10000]); 521 CodedOutputStream.newInstance(ByteBuffer.allocate(10000)); [all …]
|
/external/slf4j/log4j-over-slf4j/src/main/java/org/apache/log4j/ |
D | Log4jLoggerFactory.java | 61 Logger newInstance = new Logger(name); in getLogger() local 62 Logger oldInstance = log4jLoggers.putIfAbsent(name, newInstance); in getLogger() 63 return oldInstance == null ? newInstance : oldInstance; in getLogger() 72 Logger newInstance = loggerFactory.makeNewLoggerInstance(name); in getLogger() local 73 Logger oldInstance = log4jLoggers.putIfAbsent(name, newInstance); in getLogger() 74 return oldInstance == null ? newInstance : oldInstance; in getLogger()
|
/external/robolectric/v1/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/mockito/src/test/java/org/mockito/internal/creation/instance/ |
D | ConstructorInstantiatorTest.java | 33 …assertEquals(new ConstructorInstantiator(null).newInstance(SomeClass.class).getClass(), SomeClass.… in creates_instances() 38 …assertEquals(new ConstructorInstantiator(this).newInstance(SomeInnerClass.class).getClass(), SomeI… in creates_instances_of_inner_classes() 39 …assertEquals(new ConstructorInstantiator(new ChildOfThis()).newInstance(SomeInnerClass.class).getC… in creates_instances_of_inner_classes() 45 new ConstructorInstantiator(null).newInstance(SomeClass2.class); in explains_when_constructor_cannot_be_found()
|
/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/src/main/java/org/mockito/internal/stubbing/answers/ |
D | ClonesArguments.java | 22 Object newInstance = instantiator.newInstance(from.getClass()); in answer() local 23 new LenientCopyTool().copyToRealObject(from, newInstance); in answer() 24 arguments[i] = newInstance; in answer()
|
/external/testng/src/main/java/org/testng/internal/ |
D | ClassHelper.java | 48 public static <T> T newInstance(Class<T> clazz) { in newInstance() method in ClassHelper 50 T instance = clazz.newInstance(); in newInstance() 70 public static <T> T newInstance(Constructor<T> constructor, Object... parameters) { in newInstance() method in ClassHelper 72 return constructor.newInstance(parameters); in newInstance() 193 … IJUnitTestRunner tr = (IJUnitTestRunner) ClassHelper.forName(JUNIT_4_TESTRUNNER).newInstance(); in createTestRunner() 201 … IJUnitTestRunner tr = (IJUnitTestRunner) ClassHelper.forName(JUNIT_TESTRUNNER).newInstance(); in createTestRunner() 273 return (IMethodSelector) cls.newInstance(); in createSelector() 300 return objectFactory.newInstance(declaringClass); in createInstance2() 326 result = objectFactory.newInstance(constructor, parameters); in createInstance1() 353 Object o = objectFactory.newInstance(ec.getConstructor(parameterTypes)); in createInstance1() [all …]
|
/external/slf4j/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/ |
D | SLF4JLogFactory.java | 154 Log newInstance; in getInstance() local 157 newInstance = new SLF4JLocationAwareLog((LocationAwareLogger) slf4jLogger); in getInstance() 159 newInstance = new SLF4JLog(slf4jLogger); in getInstance() 161 Log oldInstance = loggerMap.putIfAbsent(name, newInstance); in getInstance() 162 return oldInstance == null ? newInstance : oldInstance; in getInstance()
|
/external/guice/core/test/com/google/inject/internal/ |
D | ProxyFactoryTest.java | 55 Simple simple = constructionProxy.newInstance(); in testSimpleCase() 89 Foo foo = fooFactory.newInstance(); in testInterceptOneMethod() 90 Bar bar = barFactory.newInstance(); in testInterceptOneMethod() 141 A a = constructor.newInstance(5); in testWithConstructorArguments() 156 A a = constructor.newInstance(5); in testNotProxied() 179 Counter counter = constructor.newInstance(); in testMultipleInterceptors()
|
/external/guice/core/src/com/google/inject/internal/ |
D | DefaultConstructionProxyFactory.java | 60 public T newInstance(Object... arguments) throws InvocationTargetException { in create() 61 return (T) fastConstructor.newInstance(arguments); in create() 84 public T newInstance(Object... arguments) throws InvocationTargetException { in create() 86 return constructor.newInstance(arguments); in create()
|
/external/objenesis/main/src/main/java/org/objenesis/ |
D | ObjenesisHelper.java | 43 public static <T> T newInstance(Class<T> clazz) { in newInstance() method in ObjenesisHelper 44 return OBJENESIS_STD.newInstance(clazz); in newInstance() 56 return (T) OBJENESIS_SERIALIZER.newInstance(clazz); in newSerializableInstance()
|
/external/slf4j/slf4j-simple/src/main/java/org/slf4j/impl/ |
D | SimpleLoggerFactory.java | 55 Logger newInstance = new SimpleLogger(name); in getLogger() local 56 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance); in getLogger() 57 return oldInstance == null ? newInstance : oldInstance; in getLogger()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | AbstractMessageLite.java | 70 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray() 86 CodedOutputStream.newInstance(output, bufferSize); in writeTo() 97 CodedOutputStream.newInstance(output, bufferSize); in writeDelimitedTo() 193 CodedInputStream.newInstance(data, off, len); in mergeFrom() 221 CodedInputStream.newInstance(data, off, len); in mergeFrom() 236 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom() 245 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
|
/external/slf4j/slf4j-jdk14/src/main/java/org/slf4j/impl/ |
D | JDK14LoggerFactory.java | 64 Logger newInstance = new JDK14LoggerAdapter(julLogger); in getLogger() local 65 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance); in getLogger() 66 return oldInstance == null ? newInstance : oldInstance; in getLogger()
|
/external/slf4j/slf4j-log4j12/src/main/java/org/slf4j/impl/ |
D | Log4jLoggerFactory.java | 65 Logger newInstance = new Log4jLoggerAdapter(log4jLogger); in getLogger() local 66 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance); in getLogger() 67 return oldInstance == null ? newInstance : oldInstance; in getLogger()
|
/external/objenesis/main/src/test/java/org/objenesis/instantiator/sun/ |
D | MagicInstantiatorTest.java | 43 assertEquals(EmptyClass.class, o1.newInstance().getClass()); in testNewInstance() 46 assertEquals(EmptyClass.class, o2.newInstance().getClass()); in testNewInstance() 52 assertEquals(EmptyClass.class, o1.newInstance().getClass()); in testInternalInstantiator()
|
/external/slf4j/slf4j-jcl/src/main/java/org/slf4j/impl/ |
D | JCLLoggerFactory.java | 78 Logger newInstance = new JCLLoggerAdapter(jclLogger, name); in getLogger() local 79 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance); in getLogger() 80 return oldInstance == null ? newInstance : oldInstance; in getLogger()
|
/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()
|