Home
last modified time | relevance | path

Searched refs:newInstance (Results 1 – 25 of 221) sorted by relevance

123456789

/frameworks/base/wifi/tests/src/android/net/wifi/p2p/nsd/
DWifiP2pDnsSdServiceRequestTest.java39 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()
DWifiP2pUpnpServiceInfoTest.java53 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
57 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
62 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
71 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
DWifiP2pDnsSdServiceInfoTest.java55 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
61 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
68 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
79 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
DWifiP2pUpnpServiceRequestTest.java36 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/
DConstantState.java44 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/base/core/java/android/app/
DAppComponentFactory.java76 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/
DBitmapRegionDecoder.java62 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/
DWifiP2pDnsSdServiceRequest.java61 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
DWifiP2pServiceResponse.java194 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,
DWifiP2pUpnpServiceRequest.java56 public static WifiP2pUpnpServiceRequest newInstance() { in newInstance() method in WifiP2pUpnpServiceRequest
73 public static WifiP2pUpnpServiceRequest newInstance(String st) { in newInstance() method in WifiP2pUpnpServiceRequest
DWifiP2pServiceRequest.java198 public static WifiP2pServiceRequest newInstance(int protocolType, String queryData) { in newInstance() method in WifiP2pServiceRequest
213 public static WifiP2pServiceRequest newInstance(int protocolType ) { in newInstance() method in WifiP2pServiceRequest
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java168 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/
DBitmapRegionTileSource.java57 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/layoutlib/create/tests/com/android/tools/layoutlib/create/
DDelegateClassAdapterTest.java77 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/base/services/robotests/backup/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationTrackerTest.java41 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/base/telephony/common/com/android/internal/telephony/util/
DArrayUtils.java62 result = (T[]) Array.newInstance(kind, end + 1); in appendElement()
66 result = (T[]) Array.newInstance(kind, 1); in appendElement()
101 final T[] all = (T[]) Array.newInstance(kind, totalLength); in concatElements()
120 return (T[]) Array.newInstance(kind, 0); in createEmptyArray()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDex.java443 Object[] combined = (Object[]) Array.newInstance( in expandFieldArray()
589 Object newInstance(File file, DexFile dex) in newInstance() method
608 public Object newInstance(File file, DexFile dex) in newInstance() method in MultiDex.V14.ICSElementConstructor
611 return elementConstructor.newInstance(file, new ZipFile(file), dex); in newInstance()
631 public Object newInstance(File file, DexFile dex) in newInstance() method in MultiDex.V14.JBMR11ElementConstructor
634 return elementConstructor.newInstance(file, file, dex); in newInstance()
654 public Object newInstance(File file, DexFile dex) in newInstance() method in MultiDex.V14.JBMR2ElementConstructor
657 return elementConstructor.newInstance(file, Boolean.FALSE, file, dex); in newInstance()
716 elements[i] = elementConstructor.newInstance( in makeDexElements()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DTestUtils.java33 final SensorEvent event = constructor.newInstance(1); in createSensorEvent()
55 Sensor sensor = constr.newInstance(); in createSensor()
/frameworks/base/core/java/com/android/internal/util/
DRingBuffer.java41 mBuffer = (T[]) Array.newInstance(c, capacity); in RingBuffer()
81 return (T) mBuffer.getClass().getComponentType().newInstance(); in createNewItem()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceFullAccessListTest.java88 XmlSerializer out = XmlPullParserFactory.newInstance().newSerializer(); in testSerialization()
99 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); in testDeSerialization()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java91 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance(); in instantiateTest()
98 .newInstance(testName); in instantiateTest()
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java141 SoundTriggerDetector newInstance = new SoundTriggerDetector(mSoundTriggerService, in createSoundTriggerDetector() local
143 mReceiverInstanceMap.put(soundModelId, newInstance); in createSoundTriggerDetector()
144 return newInstance; in createSoundTriggerDetector()
/frameworks/base/core/java/android/util/
DIconDrawableFactory.java114 public static IconDrawableFactory newInstance(Context context) { in newInstance() method in IconDrawableFactory
118 public static IconDrawableFactory newInstance(Context context, boolean embedShadow) { in newInstance() method in IconDrawableFactory
/frameworks/base/core/tests/coretests/src/android/net/http/
DAndroidHttpClientProxyTest.java24 return AndroidHttpClient.newInstance(AbstractProxyTest.class.getName()); in newHttpClient()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMoSerializer.java55 mDbBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); in MoSerializer()
67 TransformerFactory tf = TransformerFactory.newInstance(); in serialize()

123456789