/frameworks/base/wifi/tests/src/android/net/wifi/p2p/nsd/ |
D | WifiP2pDnsSdServiceRequestTest.java | 39 request = WifiP2pDnsSdServiceRequest.newInstance(); in testNewInstance() 42 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_TYPE); in testNewInstance() 45 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_NAME, SERVICE_TYPE); in testNewInstance() 49 request = WifiP2pDnsSdServiceRequest.newInstance(null); in testNewInstance() 57 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_NAME, null); in testNewInstance() 65 request = WifiP2pDnsSdServiceRequest.newInstance(null, SERVICE_TYPE); in testNewInstance()
|
D | WifiP2pUpnpServiceInfoTest.java | 53 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance() 57 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance() 62 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance() 71 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
|
D | WifiP2pDnsSdServiceInfoTest.java | 55 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance() 61 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance() 68 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance() 79 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
|
D | WifiP2pUpnpServiceRequestTest.java | 36 request = WifiP2pUpnpServiceRequest.newInstance(); in testNewInstance() 39 request = WifiP2pUpnpServiceRequest.newInstance("ssdp:all"); in testNewInstance() 43 request = WifiP2pUpnpServiceRequest.newInstance(null); in testNewInstance()
|
/frameworks/base/core/java/android/content/res/ |
D | ConstantState.java | 44 public abstract T newInstance(); in newInstance() method in ConstantState 52 public T newInstance(Resources res) { in newInstance() method in ConstantState 53 return newInstance(); in newInstance() 60 public T newInstance(Resources res, Resources.Theme theme) { in newInstance() method in ConstantState 61 return newInstance(res); in newInstance()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
|
D | ExtensionRegistryFactoryTest.java | 101 ExtensionRegistryLite registry1 = ExtensionRegistryLite.newInstance(); in testAdd() 105 ExtensionRegistryLite registry2 = ExtensionRegistryLite.newInstance(); in testAdd() 158 ExtensionRegistryLite registry = ExtensionRegistryLite.newInstance(); in testAdd() 203 test.getMethod(testName).invoke(test.newInstance()); in runTestMethod()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
|
D | ParserTest.java | 81 CodedInputStream.newInstance(data), registry)); in assertRoundTripEquals() 98 CodedInputStream.newInstance(data))); in assertRoundTripEquals() 137 CodedInputStream.newInstance(data))); in testParsePartial() 165 parser.parseFrom(CodedInputStream.newInstance( in testParsePartial() 202 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testOptimizeForSize() 258 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testParsingMerge()
|
/frameworks/base/core/java/android/app/ |
D | AppComponentFactory.java | 76 return (Application) cl.loadClass(className).newInstance(); in instantiateApplication() 95 return (Activity) cl.loadClass(className).newInstance(); in instantiateActivity() 110 return (BroadcastReceiver) cl.loadClass(className).newInstance(); in instantiateReceiver() 129 return (Service) cl.loadClass(className).newInstance(); in instantiateService() 147 return (ContentProvider) cl.loadClass(className).newInstance(); in instantiateProvider()
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapRegionDecoder.java | 62 public static BitmapRegionDecoder newInstance(byte[] data, in newInstance() method in BitmapRegionDecoder 87 public static BitmapRegionDecoder newInstance( in newInstance() method in BitmapRegionDecoder 115 public static BitmapRegionDecoder newInstance(InputStream is, in newInstance() method in BitmapRegionDecoder 145 public static BitmapRegionDecoder newInstance(String pathName, in newInstance() method in BitmapRegionDecoder 152 decoder = newInstance(stream, isShareable); in newInstance()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pDnsSdServiceRequest.java | 61 public static WifiP2pDnsSdServiceRequest newInstance() { in newInstance() method in WifiP2pDnsSdServiceRequest 75 public static WifiP2pDnsSdServiceRequest newInstance(String serviceType) { in newInstance() method in WifiP2pDnsSdServiceRequest 96 public static WifiP2pDnsSdServiceRequest newInstance(String instanceName, in newInstance() method in WifiP2pDnsSdServiceRequest
|
D | WifiP2pUpnpServiceRequest.java | 56 public static WifiP2pUpnpServiceRequest newInstance() { in newInstance() method in WifiP2pUpnpServiceRequest 73 public static WifiP2pUpnpServiceRequest newInstance(String st) { in newInstance() method in WifiP2pUpnpServiceRequest
|
D | WifiP2pServiceResponse.java | 194 public static List<WifiP2pServiceResponse> newInstance(String srcAddr, byte[] tlvsBin) { in newInstance() method in WifiP2pServiceResponse 241 resp = WifiP2pDnsSdServiceResponse.newInstance(status, in newInstance() 244 resp = WifiP2pUpnpServiceResponse.newInstance(status, in newInstance() 368 return WifiP2pDnsSdServiceResponse.newInstance(status, 371 return WifiP2pUpnpServiceResponse.newInstance(status,
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageInstallerActivity.java | 168 return SimpleErrorDialog.newInstance(R.string.Parse_error_dlg_text); in createDialog() 170 return OutOfSpaceDialog.newInstance( in createDialog() 173 return InstallErrorDialog.newInstance( in createDialog() 176 return NotSupportedOnWearDialog.newInstance(); in createDialog() 178 return SimpleErrorDialog.newInstance( in createDialog() 181 return SimpleErrorDialog.newInstance( in createDialog() 184 return ExternalSourcesBlockedDialog.newInstance(mOriginatingPackage); in createDialog() 186 return AnonymousSourceDialog.newInstance(); in createDialog() 593 static SimpleErrorDialog newInstance(@StringRes int message) { in newInstance() method in PackageInstallerActivity.SimpleErrorDialog 616 static AnonymousSourceDialog newInstance() { in newInstance() method in PackageInstallerActivity.AnonymousSourceDialog [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 57 public static SimpleBitmapRegionDecoderWrapper newInstance( in newInstance() method in SimpleBitmapRegionDecoderWrapper 60 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(pathName, isShareable); in newInstance() 70 public static SimpleBitmapRegionDecoderWrapper newInstance( in newInstance() method in SimpleBitmapRegionDecoderWrapper 73 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(is, isShareable); in newInstance() 101 public static DumbBitmapRegionDecoder newInstance(String pathName) { in newInstance() method in DumbBitmapRegionDecoder 108 public static DumbBitmapRegionDecoder newInstance(InputStream is) { in newInstance() method in DumbBitmapRegionDecoder 233 d = SimpleBitmapRegionDecoderWrapper.newInstance(mPath, true); in loadBitmapRegionDecoder() 235 d = DumbBitmapRegionDecoder.newInstance(mPath); in loadBitmapRegionDecoder() 275 SimpleBitmapRegionDecoderWrapper.newInstance(is, false); in loadBitmapRegionDecoder() 279 regionDecoder = DumbBitmapRegionDecoder.newInstance(is); in loadBitmapRegionDecoder() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/ |
D | AbstractMessageLite.java | 68 final CodedOutputStream output = CodedOutputStream.newInstance(result); in toByteArray() 82 CodedOutputStream.newInstance(output, bufferSize); in writeTo() 93 CodedOutputStream.newInstance(output, bufferSize); in writeDelimitedTo() 190 CodedInputStream.newInstance(data, off, len); in mergeFrom() 216 CodedInputStream.newInstance(data, off, len); in mergeFrom() 229 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom() 238 final CodedInputStream codedInput = CodedInputStream.newInstance(input); in mergeFrom()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationTrackerTest.java | 41 mTertiaryKeyRotationTracker = newInstance(); in setUp() 98 boolean keyRotationDueForNewInstance = newInstance().isKeyRotationDue(PACKAGE_1); in isKeyRotationDue_forNewInstance_readsStateFromDisk() 134 private static TertiaryKeyRotationTracker newInstance() { in newInstance() method in TertiaryKeyRotationTrackerTest
|
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
D | DelegateClassAdapterTest.java | 77 ClassWithNative instance1 = clazz1.newInstance(); in testNoOp() 105 Object i2 = clazz2.newInstance(); in testNoOp() 160 Object i2 = clazz2.newInstance(); in testConstructorAfterDelegate() 192 Object o2 = outerClazz2.newInstance(); in testInnerConstructorAfterDelegate() 195 Object i2 = clazz2.getConstructor(outerClazz2).newInstance(o2); in testInnerConstructorAfterDelegate() 227 Object i2 = clazz2.newInstance(); in testStaticInnerConstructorAfterDelegate() 259 Object i2 = clazz2.newInstance(); in testDelegateNative() 324 Object o2 = outerClazz2.newInstance(); in testDelegateInner() 358 Object i2 = innerCons.newInstance(o2); in testDelegateInner() 406 Object o2 = outerClazz2.newInstance(); in testDelegateStaticInner() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyBuilder.java | 90 RubyDescriptor msgdef = (RubyDescriptor) cDescriptor.newInstance(context, Block.NULL_BLOCK); in addMessage() 91 … IRubyObject ctx = cMessageBuilderContext.newInstance(context, msgdef, this, Block.NULL_BLOCK); in addMessage() 118 …RubyEnumDescriptor enumDef = (RubyEnumDescriptor) cEnumDescriptor.newInstance(context, Block.NULL_… in addEnum() 119 IRubyObject ctx = cEnumBuilderContext.newInstance(context, enumDef, Block.NULL_BLOCK); in addEnum()
|
D | RubyMessageBuilderContext.java | 161 … RubyDescriptor mapentryDesc = (RubyDescriptor) cDescriptor.newInstance(context, Block.NULL_BLOCK); in map() 167 …RubyFieldDescriptor keyField = (RubyFieldDescriptor) cFieldDescriptor.newInstance(context, Block.N… in map() 175 …RubyFieldDescriptor valueField = (RubyFieldDescriptor) cFieldDescriptor.newInstance(context, Block… in map() 194 cOneofDescriptor.newInstance(context, Block.NULL_BLOCK); in oneof() 196 cOneofBuilderContext.newInstance(context, oneofdef, Block.NULL_BLOCK); in oneof()
|