/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/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ |
D | ConstraintFormula.java | 31 ReductionResult newInstance = new ReductionResult(); in withConstraint() local 32 newInstance.boundSet = this.boundSet; in withConstraint() 33 newInstance.constraintFormulas = new LinkedList<>(); in withConstraint() 34 newInstance.constraintFormulas.addAll(this.constraintFormulas); in withConstraint() 35 newInstance.constraintFormulas.add(constraintFormula); in withConstraint() 36 return newInstance; in withConstraint() 40 ReductionResult newInstance = new ReductionResult(); in withBound() local 41 newInstance.boundSet = this.boundSet.withBound(bound); in withBound() 42 newInstance.constraintFormulas = this.constraintFormulas; in withBound() 43 return newInstance; in withBound()
|
D | InferenceVariableSubstitution.java | 28 InferenceVariableSubstitution newInstance = new InferenceVariableSubstitution(); in withPair() local 29 newInstance.inferenceVariables.addAll(this.inferenceVariables); in withPair() 30 newInstance.types.addAll(this.types); in withPair() 31 newInstance.inferenceVariables.add(inferenceVariable); in withPair() 32 newInstance.types.add(type); in withPair() 33 return newInstance; in withPair()
|
D | Substitution.java | 24 Substitution newInstance = new Substitution(); in withPair() local 25 newInstance.typeParameterDeclarations.addAll(this.typeParameterDeclarations); in withPair() 26 newInstance.types.addAll(this.types); in withPair() 27 newInstance.typeParameterDeclarations.add(typeParameterDeclaration); in withPair() 28 newInstance.types.add(type); in withPair() 29 return newInstance; in withPair()
|
/external/mockito/src/test/java/org/mockito/internal/creation/instance/ |
D | ConstructorInstantiatorTest.java | 44 …assertEquals(new ConstructorInstantiator(false, new Object[0]).newInstance(SomeClass.class).getCla… in creates_instances() 49 …assertEquals(new ConstructorInstantiator(true, this).newInstance(SomeInnerClass.class).getClass(),… in creates_instances_of_inner_classes() 50 …assertEquals(new ConstructorInstantiator(true, new ChildOfThis()).newInstance(SomeInnerClass.class… in creates_instances_of_inner_classes() 55 …assertEquals(new ConstructorInstantiator(false, "someString").newInstance(SomeClass2.class).getCla… in creates_instances_with_arguments() 60 …assertEquals(new ConstructorInstantiator(false, new Object[]{null}).newInstance(SomeClass2.class).… in creates_instances_with_null_arguments() 65 …assertEquals(new ConstructorInstantiator(false, 123).newInstance(SomeClass3.class).getClass(), Som… in creates_instances_with_primitive_arguments() 70 …assertEquals(new ConstructorInstantiator(false, new Object[]{null}).newInstance(SomeClass3.class).… in fails_when_null_is_passed_for_a_primitive() 76 new ConstructorInstantiator(false, new Object[0]).newInstance(SomeClass2.class); in explains_when_constructor_cannot_be_found()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowBitmapRegionDecoder.java | 27 protected static BitmapRegionDecoder newInstance( in newInstance() method in ShadowBitmapRegionDecoder 29 return fillWidthAndHeight(newInstance(), new ByteArrayInputStream(data)); in newInstance() 33 protected static BitmapRegionDecoder newInstance(FileDescriptor fd, boolean isShareable) in newInstance() method in ShadowBitmapRegionDecoder 35 return fillWidthAndHeight(newInstance(), new FileInputStream(fd)); in newInstance() 39 protected static BitmapRegionDecoder newInstance(InputStream is, boolean isShareable) in newInstance() method in ShadowBitmapRegionDecoder 41 return fillWidthAndHeight(newInstance(), is); in newInstance() 45 protected static BitmapRegionDecoder newInstance(String pathName, boolean isShareable) in newInstance() method in ShadowBitmapRegionDecoder 47 return fillWidthAndHeight(newInstance(), new FileInputStream(pathName)); in newInstance() 76 private static BitmapRegionDecoder newInstance() { in newInstance() method in ShadowBitmapRegionDecoder
|
D | ShadowBluetoothGatt.java | 22 public static BluetoothGatt newInstance(BluetoothDevice device) { in newInstance() method in ShadowBluetoothGatt 30 Shadow.newInstance( in newInstance() 42 Shadow.newInstance( in newInstance() 50 Shadow.newInstance( in newInstance() 58 Shadow.newInstance( in newInstance()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowAppTaskTest.java | 23 final AppTask appTask = ShadowAppTask.newInstance(); in finishAndRemoveTask_marksTaskFinished() 32 assertThat(shadowOf(ShadowAppTask.newInstance()).isFinishedAndRemoved()).isFalse(); in taskIsNotFinishedInitially() 37 assertThat(ShadowAppTask.newInstance().getTaskInfo()).isNull(); in getTaskInfo_returnsNullInitially() 42 final AppTask appTask = ShadowAppTask.newInstance(); in getTaskInfo_returnsCorrectValue() 53 final AppTask appTask = ShadowAppTask.newInstance(); in moveToFront_movesTaskToFront() 62 assertThat(shadowOf(ShadowAppTask.newInstance()).hasMovedToFront()).isFalse(); in taskIsNotMovedToFrontInitially() 67 final AppTask appTask = ShadowAppTask.newInstance(); in startActivity() 80 final AppTask appTask = ShadowAppTask.newInstance(); in setExcludeFromRecents_excludesFromRecents() 89 assertThat(shadowOf(ShadowAppTask.newInstance()).isExcludedFromRecents()).isFalse(); in taskIsNotExcludedFromRecentsInitially()
|
D | ShadowBitmapRegionDecoderTest.java | 33 …assertThat(BitmapRegionDecoder.newInstance(ByteStreams.toByteArray(getImageInputStream()), 0, 0, f… in testNewInstance() 35 assertThat(BitmapRegionDecoder.newInstance(getImageFd(), false)) in testNewInstance() 37 assertThat(BitmapRegionDecoder.newInstance(getImageInputStream(), false)) in testNewInstance() 39 assertThat(BitmapRegionDecoder.newInstance(getGeneratedImageFile(), false)) in testNewInstance() 45 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(getImageInputStream(), true); in getWidthAndGetHeight_shouldReturnCorrectValuesForImage() 52 …BitmapRegionDecoder bitmapRegionDecoder = BitmapRegionDecoder.newInstance(getImageInputStream(), f… in testDecodeRegionReturnsExpectedSize() 62 …BitmapRegionDecoder bitmapRegionDecoder = BitmapRegionDecoder.newInstance(getImageInputStream(), f… in testDecodeRegionReturnsExpectedConfig()
|
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | CodedInputStreamTest.java | 94 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarint() 97 input = CodedInputStream.newInstance(data); in assertReadVarint() 103 input = CodedInputStream.newInstance( in assertReadVarint() 107 input = CodedInputStream.newInstance( in assertReadVarint() 129 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadVarintFailure() 137 input = CodedInputStream.newInstance(data); in assertReadVarintFailure() 182 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian32() 188 input = CodedInputStream.newInstance( in assertReadLittleEndian32() 201 CodedInputStream input = CodedInputStream.newInstance(data); in assertReadLittleEndian64() 207 input = CodedInputStream.newInstance( in assertReadLittleEndian64() [all …]
|
D | CodedOutputStreamTest.java | 85 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteVarint() 97 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteVarint() 113 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint() 122 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint() 167 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteLittleEndian32() 175 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian32() 189 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in assertWriteLittleEndian64() 197 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian64() 290 CodedOutputStream.newInstance(rawOutput, blockSize); in testWriteWholeMessage()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | ParseExceptionsTest.java | 99 return DescriptorProto.parseFrom(in, ExtensionRegistry.newInstance()); in message_parseFrom_InputStreamAndExtensionRegistry() 111 return DescriptorProto.parseFrom(CodedInputStream.newInstance(in)); in message_parseFrom_CodedInputStream() 124 CodedInputStream.newInstance(in), ExtensionRegistry.newInstance()); in message_parseFrom_CodedInputStreamAndExtensionRegistry() 148 return DescriptorProto.parseDelimitedFrom(in, ExtensionRegistry.newInstance()); in message_parseDelimitedFrom_InputStreamAndExtensionRegistry() 173 .mergeFrom(in, ExtensionRegistry.newInstance()) in messageBuilder_mergeFrom_InputStreamAndExtensionRegistry() 186 return DescriptorProto.newBuilder().mergeFrom(CodedInputStream.newInstance(in)).build(); in messageBuilder_mergeFrom_CodedInputStream() 199 .mergeFrom(CodedInputStream.newInstance(in), ExtensionRegistry.newInstance()) in messageBuilder_mergeFrom_CodedInputStreamAndExtensionRegistry() 222 CodedOutputStream cos = CodedOutputStream.newInstance(body); in messageBuilder_mergeDelimitedFrom_InputStream_malformed() 244 builder.mergeDelimitedFrom(in, ExtensionRegistry.newInstance()); in messageBuilder_mergeDelimitedFrom_InputStreamAndExtensionRegistry()
|
D | AbstractSchemaTest.java | 58 Protobuf.getInstance().registerSchemaOverride(schema.newInstance().getClass(), schema); in registerSchemas() 78 Reader reader = BinaryReader.newInstance(invalidUtf8Bytes, /* bufferIsImmutable= */ true); in invalidUtf8StringParsing() 80 T newMsg = schema.newInstance(); in invalidUtf8StringParsing() 100 T message = schema.newInstance(); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 120 M newMsg = schema.newInstance(); in roundtrip() 126 M newMsg = schema.newInstance(); in roundtrip() 127 Reader reader = BinaryReader.newInstance(ByteBuffer.wrap(serializedBytes), true); in roundtrip()
|
D | CodedInputStreamTest.java | 63 return CodedInputStream.newInstance(data); in newDecoder() 69 return CodedInputStream.newInstance(ByteBuffer.wrap(data)); in newDecoder() 78 return CodedInputStream.newInstance(buffer); in newDecoder() 84 return CodedInputStream.newInstance(new SmallBlockInputStream(data, blockSize)); in newDecoder() 101 return CodedInputStream.newInstance(input); in newDecoder() 118 return CodedInputStream.newInstance(new IterableByteBufferInputStream(input)); in newDecoder() 455 CodedInputStream input = CodedInputStream.newInstance(bytes, 1); // Tiny buffer in testSkipRawBytesActuallySkips() 481 CodedInputStream.newInstance(is).skipRawBytes(Integer.MAX_VALUE); in testSkipMaliciouslyHugeBlob() 517 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in testReadMaliciouslyLargeBlob() 667 CodedInputStream.newInstance( in testSizeLimit() [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/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ |
D | DefaultMediaSourceFactoryTest.java | 48 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withoutMimeType_progressiveSource() 60 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withTag_tagInSource() 71 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withPath_progressiveSource() 82 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withNull_usesNonNullDefaults() 98 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withSubtitle_isMergingMediaSource() 115 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withSubtitle_hasTag() 134 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withStartPosition_isClippingMediaSource() 146 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withEndPosition_isClippingMediaSource() 158 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_relativeToDefaultPosition_isClippingMediaSource() 173 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_defaultToEnd_isNotClippingMediaSource() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | ExoPlayerFactory.java | 201 DefaultMediaSourceFactory.newInstance(context), in newSimpleInstance() 213 public static ExoPlayer newInstance( in newInstance() method in ExoPlayerFactory 215 return newInstance(context, renderers, trackSelector, new DefaultLoadControl()); in newInstance() 221 public static ExoPlayer newInstance( in newInstance() method in ExoPlayerFactory 223 return newInstance(context, renderers, trackSelector, loadControl, Util.getLooper()); in newInstance() 229 public static ExoPlayer newInstance( in newInstance() method in ExoPlayerFactory 235 return newInstance( in newInstance() 246 public static ExoPlayer newInstance( in newInstance() method in ExoPlayerFactory 256 DefaultMediaSourceFactory.newInstance(context), in newInstance()
|
/external/downloader/src/test/java/com/google/android/downloader/ |
D | AndroidConnectivityHandlerTest.java | 114 ShadowNetworkInfo.newInstance( in checkConnectivity_networkNotConnected() 135 ShadowNetworkInfo.newInstance( in checkConnectivity_wrongNetworkType() 156 ShadowNetworkInfo.newInstance( in checkConnectivity_anyNetworkType() 180 ShadowNetworkInfo.newInstance( in checkConnectivity_unknownNetworkType() 205 ShadowNetworkInfo.newInstance( in checkConnectivity_requiredNetworkConnected_wifiOnly() 222 ShadowNetworkInfo.newInstance( in checkConnectivity_requiredNetworkConnected_wifiOrCellular() 243 Network network = ShadowNetwork.newInstance(0); in checkConnectivity_requiredNetworkConnected_sdk23() 246 ShadowNetworkInfo.newInstance( in checkConnectivity_requiredNetworkConnected_sdk23() 248 NetworkCapabilities networkCapabilities = ShadowNetworkCapabilities.newInstance(); in checkConnectivity_requiredNetworkConnected_sdk23() 268 ShadowNetworkInfo.newInstance( in checkConnectivity_networkChange() [all …]
|
/external/exoplayer/tree/library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/ |
D | DefaultMediaSourceFactoryTest.java | 41 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withMimeType_smoothstreamingSource() 55 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withTag_tagInSource() 71 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withIsmPath_smoothstreamingSource() 82 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withManifestPath_smoothstreamingSource() 93 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()); in createMediaSource_withNull_usesNonNullDefaults() 109 DefaultMediaSourceFactory.newInstance(ApplicationProvider.getApplicationContext()) in getSupportedTypes_smoothstreamingModule_containsTypeSS()
|
/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/robolectric-shadows/sandbox/src/test/java/org/robolectric/ |
D | SandboxClassLoaderTest.java | 19 import static org.robolectric.util.ReflectionHelpers.newInstance; 107 Object instance = defaultCtor.newInstance(); in forClassesWithNoDefaultConstructor_shouldCreateOneButItShouldNotCallShadow() 118 Object instance = ctor.newInstance("new one"); in shouldDelegateToHandlerForConstructors() 174 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in callingNormalMethodShouldInvokeClassHandler() 188 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in shouldGenerateClassSpecificDirectAccessMethod() 230 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in callingNormalMethodReturningIntegerShouldInvokeClassHandler() 243 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in callingMethodReturningDoubleShouldInvokeClassHandler() 254 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in callingNativeMethodShouldInvokeClassHandler() 265 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in directlyCallingNativeMethodShouldBeNoOp() 275 Object exampleInstance = exampleClass.getDeclaredConstructor().newInstance(); in directlyCallingNativeMethodReturningPrimitiveShouldBeNoOp() [all …]
|