Home
last modified time | relevance | path

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

12345

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java155 BitmapRegionDecoder.newInstance(is); in testNewInstanceInputStream()
175 .newInstance(imageData, 0, imageData.length); in testNewInstanceByteArray()
192 BitmapRegionDecoder.newInstance(filepath); in testNewInstanceStringAndFileDescriptor()
197 BitmapRegionDecoder.newInstance(pfd); in testNewInstanceStringAndFileDescriptor()
218 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1); in testDecodeRegionInputStream()
246 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1); in testDecodeRegionInputStreamInBitmap()
278 .newInstance(imageData, 0, imageData.length); in testDecodeRegionByteArray()
305 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(filepath); in testDecodeRegionStringAndFileDescriptor()
315 decoder = BitmapRegionDecoder.newInstance(pfd1); in testDecodeRegionStringAndFileDescriptor()
331 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is); in testRecycle()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationInfo.java62 public static AllocationInfo newInstance(Allocation allocation) { in newInstance() method in AllocationInfo
89 public static AllocationInfo newInstance(Size size, int format, int usage) { in newInstance() method in AllocationInfo
127 public static AllocationInfo newInstance(Size size, int format) { in newInstance() method in AllocationInfo
128 return newInstance(size, format, Allocation.USAGE_SCRIPT); in newInstance()
145 public static AllocationInfo newInstance(Element element, Size size) { in newInstance() method in AllocationInfo
164 public static AllocationInfo newInstance(Element element, Size size, int usage) { in newInstance() method in AllocationInfo
193 return newInstance(getSize(), format, usage); in changeFormatAndUsage()
208 return newInstance(element, getSize()); in changeElementWithDefaultUsage()
223 return newInstance(getSize(), format, Allocation.USAGE_SCRIPT); in changeFormatWithDefaultUsage()
DScript.java228 checkEquals("allocation info", AllocationInfo.newInstance(allocation), in setInput()
252 checkEquals("allocation info", AllocationInfo.newInstance(allocation), in setOutput()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DLocalServices.java38 return WifiP2pUpnpServiceInfo.newInstance( in createRendererService()
52 return WifiP2pDnsSdServiceInfo.newInstance("MyPrinter", in createIppService()
61 return WifiP2pDnsSdServiceInfo.newInstance("Example", in createAfpService()
DServReqClearRequestTestCase.java44 WifiP2pUpnpServiceRequest.newInstance(); in executeTest()
46 WifiP2pUpnpServiceRequest.newInstance("ssdp:all"); in executeTest()
48 WifiP2pDnsSdServiceRequest.newInstance(); in executeTest()
50 WifiP2pDnsSdServiceRequest.newInstance("_ipp._tcp"); in executeTest()
DServReqRemoveRequestTestCase.java44 WifiP2pUpnpServiceRequest.newInstance(); in executeTest()
46 WifiP2pUpnpServiceRequest.newInstance("ssdp:all"); in executeTest()
48 WifiP2pDnsSdServiceRequest.newInstance(); in executeTest()
50 WifiP2pDnsSdServiceRequest.newInstance("_ipp._tcp"); in executeTest()
DServReqAllTestCase02.java48 reqList.add(WifiP2pServiceRequest.newInstance( in executeTest()
50 reqList.add(WifiP2pServiceRequest.newInstance( in executeTest()
DServReqAllTestCase03.java49 reqList.add(WifiP2pDnsSdServiceRequest.newInstance()); in executeTest()
50 reqList.add(WifiP2pUpnpServiceRequest.newInstance()); in executeTest()
DServReqMultiClientTestCase02.java44 WifiP2pDnsSdServiceRequest.newInstance("_ipp._tcp"); in executeTest()
46 WifiP2pDnsSdServiceRequest.newInstance("Example", "_afpovertcp._tcp"); in executeTest()
DServReqMultiClientTestCase01.java44 WifiP2pUpnpServiceRequest upnpReq = WifiP2pUpnpServiceRequest.newInstance(); in executeTest()
46 WifiP2pDnsSdServiceRequest.newInstance(); in executeTest()
DServReqDnsTxtTestCase.java45 reqList.add(WifiP2pDnsSdServiceRequest.newInstance("MyPrinter", in executeTest()
DServReqUpnpAllTestCase.java45 reqList.add(WifiP2pUpnpServiceRequest.newInstance("ssdp:all")); in executeTest()
DServReqDnsPtrTestCase.java45 reqList.add(WifiP2pDnsSdServiceRequest.newInstance("_ipp._tcp")); in executeTest()
DServReqUpnpRootDeviceTestCase.java45 reqList.add(WifiP2pUpnpServiceRequest.newInstance("upnp:rootdevice")); in executeTest()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java146 ImageReader reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions()
148 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions()
165 reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions()
167 writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions()
189 ImageReader reader = ImageReader.newInstance(640, 480, format, 1 /*maxImages*/); in testWriterReaderBlobFormats()
190 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), 1 /*maxImages*/); in testWriterReaderBlobFormats()
204 ImageWriter defaultWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES); in testWriterFormatOverride()
210 ImageWriter writer = ImageWriter.newInstance(surface, MAX_NUM_IMAGES, format); in testWriterFormatOverride()
259 mWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES, format); in readerWriterFormatTestByCamera()
261 mWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES); in readerWriterFormatTestByCamera()
/cts/tests/tests/wifi/src/android/net/wifi/p2p/cts/
DWifiP2pServiceRequestTest.java49 WifiP2pServiceRequest.newInstance( in testValidRawRequest()
54 WifiP2pUpnpServiceRequest.newInstance( in testValidRawRequest()
68 WifiP2pServiceRequest.newInstance( in testInvalidRawRequest()
/cts/tests/tests/permission/src/android/permission/cts/
DNoCaptureVideoPermissionTest.java48 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreatePublicVirtualDisplay()
71 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreateSecureVirtualDisplay()
92 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreatePrivateVirtualDisplay()
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/
DEventProvider.java72 final UriHelper uriHelper = mUriFactory.newInstance(uri); in query()
94 final UriHelper uriHelper = mUriFactory.newInstance(uri); in insert()
110 final UriHelper uriHelper = mUriFactory.newInstance(uri); in delete()
130 final UriHelper uriHelper = mUriFactory.newInstance(uri); in update()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareRendererTests.kt70 val reader = ImageReader.newInstance( in <lambda>()
149 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testBasicDrawCpuConsumer()
198 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testBasicDrawGpuConsumer()
257 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testSetStopped()
282 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testNoSurface()
308 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testClearContent()
351 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testDestroy()
420 val reader = ImageReader.newInstance( in testLotsOfBuffers()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/
DTestActivity.java113 Fragment fragment = PhaseStartFragment.newInstance(CTSTest.ACCURACY); in onCreate()
395 fragment = AccuracyFragment.newInstance(); in switchToTestFragment()
398 fragment = RobustnessFragment.newInstance(); in switchToTestFragment()
401 fragment = ComplexMovementFragment.newInstance(); //Complex Motion in switchToTestFragment()
426 Fragment fragment = PhaseStartFragment.newInstance(phase); in switchToStartFragment()
/cts/hostsidetests/incrementalinstall/app/v1/src/android/incrementalinstall/incrementaltestapp/dynamiccode/
DDynamicCodeShim.java35 mImpl = (IDynamicCode) clazz.newInstance(); in getString()
/cts/tests/tests/security/src/android/security/cts/
DAssetManagerTest.java31 final AssetManager[] assetManager = {AssetManager.class.newInstance()}; in testCloseThenFinalize()
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
DTestUtils.java128 AndroidHttpClient httpClient = AndroidHttpClient.newInstance(null); in assertHttpClientSucceeds()
139 AndroidHttpClient httpClient = AndroidHttpClient.newInstance(null); in assertHttpClientFails()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSessionService.java39 return (VoiceInteractionSession) constructor.newInstance(this); in onNewSession()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DNdkApiXmlReport.java134 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); in main()
158 Transformer tr = TransformerFactory.newInstance().newTransformer(); in main()
235 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); in saveToXML()
264 Transformer tr = TransformerFactory.newInstance().newTransformer(); in saveToXML()

12345