Home
last modified time | relevance | path

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

1234567

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DParcelTest.java38 T newInstance = parcelAndUnparcel(cls, obj); in assertParcelsCorrectly() local
39 assertThat(newInstance).isEqualTo(obj); in assertParcelsCorrectly()
56 T newInstance = parcel.readParcelable(ParcelTest.class.getClassLoader()); in parcelAndUnparcel() local
58 return newInstance; in parcelAndUnparcel()
/cts/tests/tests/content/src/android/content/om/cts/
DOverlayManagerTransactionTest.java80 assertThat(OverlayManagerTransaction.newInstance()).isNotNull(); in newInstance_shouldSucceed()
86 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in registerFabricatedOverlay_withNull_shouldFail()
94 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in unregisterFabricatedOverlay_withNull_shouldFail()
103 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in commit_withNullOverlayable_shouldFail()
113 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in commit_withEmptyOverlayable_shouldFail()
122 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in commit_withNonExistOverlayable_shouldFail()
131 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in commit_withValidOverlayable_shouldSucceed()
144 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in commit_multipleRequests_shouldSucceed()
157 OverlayManagerTransaction.newInstance(); in commit_multipleRequests_shouldSucceed()
180 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in commit_notSelfTargetOverlay_isSelfTargetingTransaction_shouldSucceed()
[all …]
/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/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()
DServReqUpnpAllTestCase.java45 reqList.add(WifiP2pUpnpServiceRequest.newInstance("ssdp:all")); in executeTest()
DServReqDnsPtrTestCase.java45 reqList.add(WifiP2pDnsSdServiceRequest.newInstance("_ipp._tcp")); in executeTest()
/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/hostsidetests/securitybulletin/test-apps/CVE-2023-21272/test-app/src/android/security/cts/CVE_2023_21272_test/
DDeviceTest.java68 Object authority = partConstructor.newInstance(testAuthority, testAuthority); in testCVE_2023_21272()
70 Object path = pathPartConstructor.newInstance(testPath, testPath); in testCVE_2023_21272()
73 hierarchicalUriConstructor.newInstance( in testCVE_2023_21272()
/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/content/src/android/content/res/loader/cts/
DResourcesProviderTest.java81 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in loaderOverlay_withRegisteredOverlay_shouldSucceed()
209 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in loaderOverlay_withNotExistedOverlay_shouldFail()
216 OverlayManagerTransaction.newInstance(); in loaderOverlay_withNotExistedOverlay_shouldFail()
231 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in loaderOverlay_applyOnResources_shouldSucceed()
260 final OverlayManagerTransaction transaction = OverlayManagerTransaction.newInstance(); in loaderOverlay_applyMultipleOverlays_shouldHaveUnionResult()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java156 ImageReader reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions()
158 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions()
175 reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions()
177 writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions()
199 ImageReader reader = ImageReader.newInstance(640, 480, format, 1 /*maxImages*/); in testWriterReaderBlobFormats()
200 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), 1 /*maxImages*/); in testWriterReaderBlobFormats()
214 ImageWriter defaultWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES); in testWriterFormatOverride()
220 ImageWriter writer = ImageWriter.newInstance(surface, MAX_NUM_IMAGES, format); in testWriterFormatOverride()
465 mWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES, format); in readerWriterFormatTestByCamera()
467 mWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES); in readerWriterFormatTestByCamera()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DBedsteadServiceLocator.kt79 return clazz.getDeclaredConstructor().newInstance() in <lambda>()
84 .newInstance(this) in <lambda>()
/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/hostsidetests/incrementalinstall/app/v1/src/android/incrementalinstall/incrementaltestapp/dynamiccode/
DDynamicCodeShim.java35 mImpl = (IDynamicCode) clazz.newInstance(); in getString()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/powermanager/
DPowerManagerStatsTests.java112 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testThermalHeadroomCalledIsPushed()
141 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testThermalStatusCalledIsPushed()
167 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testThermalHeadroomThresholdsCalledIsPushed()
186 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testThermalHeadroomThresholdsIsPulled()
/cts/hostsidetests/grammaticalinflection/src/android/grammaticalinflection/cts/
DGrammaticalGenderAtomTests.java76 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testAtomLogging_genderSpecified_logsAtomSuccessfully()
94 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testAtomLogging_genderNotSpecified_logsAtomSuccessfully()
/cts/tests/tests/car/src/android/car/cts/utils/
DDisplayUtils.java62 mReader = ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, in createDisplay()
99 mReader = ImageReader.newInstance(metrics.widthPixels, metrics.heightPixels, in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/express/
DExpresslogAtomsTests.java116 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogCounterAtom()
145 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogCounterWithUidAtom()
180 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogSampleAtomUniform()
219 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogSampleAtomScaled()
259 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogSampleWihtUidAtomUniform()
301 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testExpressLogSampleWithUidAtomScaled()
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DComponentStateChangedReportedStatsTests.java104 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedForWholeApp()
139 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedForLauncherActivity()
174 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedForNoLauncherActivity()
209 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedEnabledThenDisabled()
255 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedEnabledThenDisabledWholeApp()
302 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testComponentStateChangedReportedForTwoDifferentStateLauncherActivities()

1234567