Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/tests/text/src/android/text/cts/
DSpannable_FactoryTest.java40 Factory factory = Spannable.Factory.getInstance(); in testNewSpannable() local
42 Spannable spannable = factory.newSpannable(text); in testNewSpannable()
50 Factory factory = Spannable.Factory.getInstance(); in testNewSpannableNull() local
51 factory.newSpannable(null); in testNewSpannableNull()
56 Spannable.Factory factory = Spannable.Factory.getInstance(); in testGetInstance() local
57 assertNotNull(factory); in testGetInstance()
58 assertSame(factory, Spannable.Factory.getInstance()); in testGetInstance()
/cts/tests/tests/effect/src/android/effect/cts/
DEffectTest.java65 EffectFactory factory = getEffectContext().getFactory(); in test2_getFactory() local
66 assertNotNull("EffectFactory retrieval", factory); in test2_getFactory()
71 EffectFactory factory = getEffectContext().getFactory(); in test3_availableEffects() local
75 factory.isEffectSupported(effectName)); in test3_availableEffects()
81 EffectFactory factory = getEffectContext().getFactory(); in test4_effectCreate() local
82 assertFalse("Empty effect name unsupported", factory.isEffectSupported("")); in test4_effectCreate()
83 assertFalse("Bogus effect name unsupported", factory.isEffectSupported("!BOGUS!")); in test4_effectCreate()
89 EffectFactory factory = getEffectContext().getFactory(); in test5_effectCreate() local
91 Effect effect = factory.createEffect(effectName); in test5_effectCreate()
99 EffectFactory factory = getEffectContext().getFactory(); in test6_effectApply() local
[all …]
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualInputDeviceGenericTest.java100 public void close_multipleCallsSucceed(VirtualInputDeviceFactory factory) throws Exception { in close_multipleCallsSucceed() argument
106 factory.create(mVirtualDevice, DEVICE_NAME, display.getDisplay()).getDevice(); in close_multipleCallsSucceed()
114 public void close_removesInputDevice(VirtualInputDeviceFactory factory) throws Exception { in close_removesInputDevice() argument
119 var deviceHolder = factory.create(mVirtualDevice, DEVICE_NAME, display.getDisplay()); in close_removesInputDevice()
129 public void closeVirtualDevice_removesInputDevice(VirtualInputDeviceFactory factory) in closeVirtualDevice_removesInputDevice() argument
135 var deviceHolder = factory.create(mVirtualDevice, DEVICE_NAME, display.getDisplay()); in closeVirtualDevice_removesInputDevice()
146 VirtualInputDeviceFactory factory) { in createVirtualInputDevice_duplicateName_throwsException() argument
151 factory.create(mVirtualDevice, DEVICE_NAME, display.getDisplay()); in createVirtualInputDevice_duplicateName_throwsException()
153 () -> factory.create(mVirtualDevice, DEVICE_NAME, display.getDisplay())); in createVirtualInputDevice_duplicateName_throwsException()
159 VirtualInputDeviceFactory factory) { in createVirtualInputDevice_defaultDisplay_throwsException() argument
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/Bug-137878930/
Dpoc.cpp72 auto factory = IDrmFactory::getService(instance); in makeDrmFactories() local
73 if (factory != NULL) { in makeDrmFactories()
75 drmFactories.push_back(factory); in makeDrmFactories()
84 auto factory = in makeDrmFactories() local
86 if (factory != NULL) { in makeDrmFactories()
88 drmFactories.push_back(factory); in makeDrmFactories()
96 static sp<IDrmPlugin> makeDrmPlugin(const sp<IDrmFactory> &factory, in makeDrmPlugin() argument
100 factory->createPlugin(uuid, appPackageName.c_str(), in makeDrmPlugin()
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DPresubmitSetupValidation.java37 IConfigurationFactory factory = ConfigurationFactory.getInstance(); in testCtsPresubmit_unit_tests() local
40 factory.createConfigurationFromArgs(presubmitCommand); in testCtsPresubmit_unit_tests()
/cts/tests/tests/appwidget/src/android/appwidget/cts/service/
DMyAppWidgetService.java28 public static void setFactory(RemoteViewsFactory factory) { in setFactory() argument
30 sFactory = factory; in setFactory()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DHtmlWriter.java64 TransformerFactory factory = TransformerFactory.newInstance(); in printHtmlReport() local
65 Transformer transformer = factory.newTransformer(xslSource); in printHtmlReport()
/cts/tests/tests/widget/src/android/widget/cts/
DViewSwitcherTest.java71 MockViewFactory factory = new MockViewFactory(); in testSetFactory() local
72 viewSwitcher.setFactory(factory); in testSetFactory()
73 assertTrue(factory.hasMakeViewCalled()); in testSetFactory()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DHtmlReport.java66 TransformerFactory factory = TransformerFactory.newInstance(); in printHtmlReport() local
67 Transformer transformer = factory.newTransformer(xslSource); in printHtmlReport()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DDarkTextThemeTest.java204 RemoteViewsService.RemoteViewsFactory factory = in setupAndAwaitCollectionWidget() local
206 when(factory.getCount()).thenReturn(3); in setupAndAwaitCollectionWidget()
212 }).when(factory).getViewAt(any(int.class)); in setupAndAwaitCollectionWidget()
213 when(factory.getViewTypeCount()).thenReturn(1); in setupAndAwaitCollectionWidget()
214 MyAppWidgetService.setFactory(factory); in setupAndAwaitCollectionWidget()
DWidgetTransitionTest.java210 RemoteViewsService.RemoteViewsFactory factory = in testCollection_sendBroadcast() local
212 when(factory.getCount()).thenReturn(3); in testCollection_sendBroadcast()
219 }).when(factory).getViewAt(any(int.class)); in testCollection_sendBroadcast()
220 when(factory.getViewTypeCount()).thenReturn(1); in testCollection_sendBroadcast()
221 MyAppWidgetService.setFactory(factory); in testCollection_sendBroadcast()
DCollectionAppWidgetTest.java155 RemoteViewsService.RemoteViewsFactory factory = in setup() local
157 when(factory.getCount()).thenReturn(COUNTRY_LIST.length); in setup()
181 }).when(factory).getViewAt(any(int.class)); in setup()
182 when(factory.getViewTypeCount()).thenReturn(1); in setup()
183 MyAppWidgetService.setFactory(factory); in setup()
DAppWidgetTest.java1367 RemoteViewsFactory factory = mock(RemoteViewsFactory.class); in testCollectionWidgets() local
1373 }).when(factory).getCount(); in testCollectionWidgets()
1385 }).when(factory).getViewAt(any(int.class)); in testCollectionWidgets()
1391 }).when(factory).getViewTypeCount(); in testCollectionWidgets()
1392 MyAppWidgetService.setFactory(factory); in testCollectionWidgets()
1405 verify(factory, atLeastOnce()).hasStableIds(); in testCollectionWidgets()
1406 verify(factory, atLeastOnce()).getViewTypeCount(); in testCollectionWidgets()
1407 verify(factory, atLeastOnce()).getCount(); in testCollectionWidgets()
1408 verify(factory, atLeastOnce()).getLoadingView(); in testCollectionWidgets()
1409 verify(factory, atLeastOnce()).getViewAt(same(0)); in testCollectionWidgets()
/cts/tests/tests/security/src/android/security/cts/
DCertBlocklistTest.java100 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in loadCertificates() local
102 Collection<? extends Certificate> collection = factory.generateCertificates(is); in loadCertificates()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/
DResourceSourceTest.java89 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in loadCertificates() local
93 for (Certificate cert : factory.generateCertificates(is)) { in loadCertificates()
/cts/tests/tests/car/src/android/car/cts/
DApiVersionTest.java42 public ApiVersionTest(ApiVersionFactory<?> factory) { in ApiVersionTest() argument
43 mFactory = factory; in ApiVersionTest()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DAdaptivePlaybackTest.java93 public static Iterable<Codec> H264(CodecFactory factory) { in H264() argument
94 return factory.createCodecList( in H264()
101 public static Iterable<Codec> HEVC(CodecFactory factory) { in HEVC() argument
102 return factory.createCodecList( in HEVC()
109 public static Iterable<Codec> Mpeg2(CodecFactory factory) { in Mpeg2() argument
110 return factory.createCodecList( in Mpeg2()
116 public static Iterable<Codec> H263(CodecFactory factory) { in H263() argument
117 return factory.createCodecList( in H263()
123 public static Iterable<Codec> Mpeg4(CodecFactory factory) { in Mpeg4() argument
124 return factory.createCodecList( in Mpeg4()
[all …]
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
DTestUtils.java84 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in loadCertificates() local
86 for (Certificate c : factory.generateCertificates(is)) { in loadCertificates()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DIntentDrivenTestActivity.java106 final IntentFactory factory; in onClick() local
108 factory = (IntentFactory) factoryClass.newInstance(); in onClick()
115 for (Intent intent : factory.createIntents(mTestId, buttonInfo.getButtonText())) { in onClick()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiEnterpriseConfigTest.java720 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testSettersAndGetters() local
721 X509Certificate cert1 = (X509Certificate) factory.generateCertificate( in testSettersAndGetters()
723 X509Certificate cert2 = (X509Certificate) factory.generateCertificate( in testSettersAndGetters()
732 X509Certificate clientCert = (X509Certificate) factory.generateCertificate( in testSettersAndGetters()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteDatabaseTest.java151 CursorFactory factory = MockSQLiteCursor::new; in testOpenDatabase() local
153 factory, SQLiteDatabase.CREATE_IF_NECESSARY); in testOpenDatabase()
160 db = SQLiteDatabase.openOrCreateDatabase(dbFile.getPath(), factory); in testOpenDatabase()
166 db = SQLiteDatabase.openOrCreateDatabase(dbFile, factory); in testOpenDatabase()
171 db = SQLiteDatabase.create(factory); in testOpenDatabase()
178 CursorFactory factory = MockSQLiteCursor::new; in testOpenDatabase_fail_no_path() local
182 factory, SQLiteDatabase.CREATE_IF_NECESSARY); in testOpenDatabase_fail_no_path()
199 CursorFactory factory = MockSQLiteCursor::new; in testOpenDatabase_fail_root_path_create_if_necessary() local
203 factory, SQLiteDatabase.CREATE_IF_NECESSARY); in testOpenDatabase_fail_root_path_create_if_necessary()
221 CursorFactory factory = MockSQLiteCursor::new; in testOpenDatabase_fail_root_path_no_create() local
[all …]
DSQLiteOpenHelperTest.java363 MockOpenHelper(Context context, String name, CursorFactory factory, int version) { in MockOpenHelper() argument
364 super(context, name, factory, version); in MockOpenHelper()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAgreementTest.java272 KeyFactory factory = KeyFactory.getInstance(kp.getPrivate().getAlgorithm(), in generateEphemeralAndroidKeyPair() local
276 keyInfo = factory.getKeySpec(kp.getPrivate(), KeyInfo.class); in generateEphemeralAndroidKeyPair()
/cts/tests/signature/lib/android/src/android/signature/cts/
DXmlApiParser.java116 private final XmlPullParserFactory factory; field in XmlApiParser
122 factory = XmlPullParserFactory.newInstance(); in XmlApiParser()
365 parser = factory.newPullParser(); in parseAsStream()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java376 public void setEGLContextFactory(EGLContextFactory factory) { in setEGLContextFactory() argument
378 mEGLContextFactory = factory; in setEGLContextFactory()
390 public void setEGLWindowSurfaceFactory(EGLWindowSurfaceFactory factory) { in setEGLWindowSurfaceFactory() argument
392 mEGLWindowSurfaceFactory = factory; in setEGLWindowSurfaceFactory()

12