Home
last modified time | relevance | path

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

1234

/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()
DScriptYuvMeans1d.java41 return AllocationInfo.newInstance(Element.U8_3(getRS()), UNIT_SQUARE); in createOutputInfo()
/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()
DServReqDnsPtrTestCase.java45 reqList.add(WifiP2pDnsSdServiceRequest.newInstance("_ipp._tcp")); in executeTest()
DServReqDnsTxtTestCase.java45 reqList.add(WifiP2pDnsSdServiceRequest.newInstance("MyPrinter", in executeTest()
DServReqUpnpAllTestCase.java45 reqList.add(WifiP2pUpnpServiceRequest.newInstance("ssdp:all")); in executeTest()
DServReqUpnpRootDeviceTestCase.java45 reqList.add(WifiP2pUpnpServiceRequest.newInstance("upnp:rootdevice")); in executeTest()
DServReqAllTestCase01.java47 reqList.add(WifiP2pServiceRequest.newInstance( in executeTest()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java148 BitmapRegionDecoder.newInstance(is, false); in testNewInstanceInputStream()
168 .newInstance(imageData, 0, imageData.length, false); in testNewInstanceByteArray()
186 BitmapRegionDecoder.newInstance(filepath, false); in testNewInstanceStringAndFileDescriptor()
191 BitmapRegionDecoder.newInstance(fd, false); in testNewInstanceStringAndFileDescriptor()
212 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false); in testDecodeRegionInputStream()
240 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false); in testDecodeRegionInputStreamInBitmap()
272 .newInstance(imageData, 0, imageData.length, false); in testDecodeRegionByteArray()
300 BitmapRegionDecoder.newInstance(filepath, false); in testDecodeRegionStringAndFileDescriptor()
311 decoder = BitmapRegionDecoder.newInstance(fd1, false); in testDecodeRegionStringAndFileDescriptor()
329 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false); in testRecycle()
[all …]
/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/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java114 ImageReader reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions()
116 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions()
133 reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions()
135 writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions()
175 mWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES); in readerWriterFormatTestByCamera()
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Dialogs/
DAccuracyResultDialog.java32 public static AccuracyResultDialog newInstance(ResultObject resultObject) { in newInstance() method in AccuracyResultDialog
DComplexMovementResultDialog.java32 public static ComplexMovementResultDialog newInstance(ResultObject resultObject) { in newInstance() method in ComplexMovementResultDialog
DLap2Dialog.java33 public static Lap2Dialog newInstance() { in newInstance() method in Lap2Dialog
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DSmallStructsTest.java156 .newInstance(mRS, sAllocationElements); in testSmallStructsOfCharArray()
216 .newInstance(mRS, sAllocationElements); in testSmallStructsOfHeterogeneousTypes()

1234