Home
last modified time | relevance | path

Searched refs:getInstance (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DUtils.java41 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createBiometricBoundKey()
43 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createBiometricBoundKey()
61 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey_deprecated()
63 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createTimeBoundSecretKey_deprecated()
80 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in initCipher()
84 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in initCipher()
92 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in initSignature()
102 Signature signature = Signature.getInstance("SHA256withECDSA"); in initSignature()
108 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in initMac()
113 Mac mac = Mac.getInstance("HmacSHA256"); in initMac()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_mmap.cpp54 bool mmapAllowed = AAudioExtensions::getInstance().isMMapSupported(); in TEST()
63 aaudio_policy_t originalPolicy = AAudioExtensions::getInstance().getMMapPolicy(); in TEST()
64 AAudioExtensions::getInstance().setMMapPolicy(AAUDIO_POLICY_ALWAYS); // try to enable MMAP mode in TEST()
66 AAudioExtensions::getInstance().setMMapPolicy(originalPolicy); in TEST()
83 bool mmapAllowed = AAudioExtensions::getInstance().isMMapSupported(); in TEST()
96 ASSERT_TRUE(AAudioExtensions::getInstance().isMMapUsed(stream)); // MMAP? in TEST()
/cts/tests/tests/text/src/android/text/method/cts/
DDateTimeKeyListenerTest.java59 final DateTimeKeyListener emptyListener1 = DateTimeKeyListener.getInstance(); in testGetInstance()
60 final DateTimeKeyListener emptyListener2 = DateTimeKeyListener.getInstance(); in testGetInstance()
61 final DateTimeKeyListener nullListener = DateTimeKeyListener.getInstance(null); in testGetInstance()
69 final DateTimeKeyListener usListener1 = DateTimeKeyListener.getInstance(Locale.US); in testGetInstance()
70 final DateTimeKeyListener usListener2 = DateTimeKeyListener.getInstance( in testGetInstance()
72 final DateTimeKeyListener irListener = DateTimeKeyListener.getInstance( in testGetInstance()
125 DateTimeKeyListener listener = DateTimeKeyListener.getInstance(); in testGetInputType()
129 listener = DateTimeKeyListener.getInstance(Locale.US); in testGetInputType()
131 listener = DateTimeKeyListener.getInstance(Locale.UK); in testGetInputType()
136 listener = DateTimeKeyListener.getInstance(Locale.forLanguageTag("fa-IR")); in testGetInputType()
[all …]
DTimeKeyListenerTest.java56 final TimeKeyListener emptyListener1 = TimeKeyListener.getInstance(); in testGetInstance()
57 final TimeKeyListener emptyListener2 = TimeKeyListener.getInstance(); in testGetInstance()
58 final TimeKeyListener nullListener = TimeKeyListener.getInstance(null); in testGetInstance()
66 final TimeKeyListener usListener1 = TimeKeyListener.getInstance(Locale.US); in testGetInstance()
67 final TimeKeyListener usListener2 = TimeKeyListener.getInstance(new Locale("en", "US")); in testGetInstance()
68 final TimeKeyListener irListener = TimeKeyListener.getInstance( in testGetInstance()
121 TimeKeyListener listener = TimeKeyListener.getInstance(); in testGetInputType()
125 listener = TimeKeyListener.getInstance(Locale.US); in testGetInputType()
127 listener = TimeKeyListener.getInstance(Locale.UK); in testGetInputType()
132 listener = TimeKeyListener.getInstance(Locale.forLanguageTag("fa-IR")); in testGetInputType()
[all …]
DDigitsKeyListenerTest.java87 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testFilter1()
145 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, false); in testFilter2()
244 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(false, true); in testFilter3()
324 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, true); in testFilter4()
434 DigitsKeyListener.getInstance(Locale.forLanguageTag("fa-IR"), true, true); in testFilter4_internationalized()
551 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testDigitsKeyListener1()
586 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, false); in testDigitsKeyListener2()
629 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(false, true); in testDigitsKeyListener3()
674 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, true); in testDigitsKeyListener4()
716 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(accepted); in testDigitsKeyListener5()
[all …]
DTextKeyListenerTest.java120 TextKeyListener listener1 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1()
121 TextKeyListener listener2 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1()
122 TextKeyListener listener3 = TextKeyListener.getInstance(false, Capitalize.WORDS); in testGetInstance1()
123 TextKeyListener listener4 = TextKeyListener.getInstance(true, Capitalize.CHARACTERS); in testGetInstance1()
141 TextKeyListener listener1 = TextKeyListener.getInstance(); in testGetInstance2()
142 TextKeyListener listener2 = TextKeyListener.getInstance(); in testGetInstance2()
154 TextKeyListener textKeyListener = TextKeyListener.getInstance(); in testOnSpanChanged()
163 TextKeyListener textKeyListener = TextKeyListener.getInstance(); in testOnSpanChangedNull()
208 = TextKeyListener.getInstance(false, Capitalize.NONE); in testPressKey()
239 = TextKeyListener.getInstance(false, Capitalize.NONE); in testOnKeyOther()
[all …]
DMultiTapKeyListenerTest.java98 = MultiTapKeyListener.getInstance(true, Capitalize.CHARACTERS); in testOnSpanChanged()
112 MultiTapKeyListener keyListener = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testOnKeyDown_capitalizeNone()
134 MultiTapKeyListener keyListener = MultiTapKeyListener.getInstance(false, in testOnKeyDown_capitalizeCharacters()
157 MultiTapKeyListener keyListener = MultiTapKeyListener.getInstance(false, in testOnKeyDown_capitalizeSentences()
185 MultiTapKeyListener keyListener = MultiTapKeyListener.getInstance(false, in testOnKeyDown_capitalizeWords()
242 MultiTapKeyListener listener1 = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInstance()
243 MultiTapKeyListener listener2 = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInstance()
244 MultiTapKeyListener listener3 = MultiTapKeyListener.getInstance(false, Capitalize.WORDS); in testGetInstance()
245 MultiTapKeyListener listener4 = MultiTapKeyListener.getInstance(true, Capitalize.NONE); in testGetInstance()
266 MultiTapKeyListener listener = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInputType()
[all …]
DQwertyKeyListenerTest.java69 final QwertyKeyListener keyListener = QwertyKeyListener.getInstance(false, Capitalize.NONE); in testOnKeyDown_capitalizeNone()
91 final QwertyKeyListener keyListener = QwertyKeyListener.getInstance(false, in testOnKeyDown_capitalizeCharacters()
114 final QwertyKeyListener keyListener = QwertyKeyListener.getInstance(false, in testOnKeyDown_capitalizeSentences()
143 final QwertyKeyListener keyListener = QwertyKeyListener.getInstance(false, in testOnKeyDown_capitalizeWords()
185 final QwertyKeyListener listener1 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance()
186 final QwertyKeyListener listener2 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance()
187 final QwertyKeyListener listener3 = QwertyKeyListener.getInstance(false, Capitalize.WORDS); in testGetInstance()
188 final QwertyKeyListener listener4 = QwertyKeyListener.getInstance(true, in testGetInstance()
243 QwertyKeyListener listener = QwertyKeyListener.getInstance(false, Capitalize.NONE); in testGetInputType()
246 listener = QwertyKeyListener.getInstance(false, Capitalize.CHARACTERS); in testGetInputType()
DDateKeyListenerTest.java58 final DateKeyListener emptyListener1 = DateKeyListener.getInstance(); in testGetInstance()
59 final DateKeyListener emptyListener2 = DateKeyListener.getInstance(); in testGetInstance()
60 final DateKeyListener nullListener = DateKeyListener.getInstance(null); in testGetInstance()
68 final DateKeyListener usListener1 = DateKeyListener.getInstance(Locale.US); in testGetInstance()
69 final DateKeyListener usListener2 = DateKeyListener.getInstance(new Locale("en", "US")); in testGetInstance()
70 final DateKeyListener irListener = DateKeyListener.getInstance( in testGetInstance()
148 final DateKeyListener dateKeyListener = DateKeyListener.getInstance(); in testDateTimeKeyListener()
DDialerKeyListenerTest.java73 assertNotNull(DialerKeyListener.getInstance()); in testGetInstance()
75 DialerKeyListener listener1 = DialerKeyListener.getInstance(); in testGetInstance()
76 DialerKeyListener listener2 = DialerKeyListener.getInstance(); in testGetInstance()
93 DialerKeyListener listener = DialerKeyListener.getInstance(); in testGetInputType()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java119 pollForSubscribe(SecondaryConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_addsNewRule()
125 SecondaryConditionProviderService.getInstance().requestUnbind(); in testUnboundCPSMaintainsCondition_addsNewRule()
147 pollForSubscribe(LegacyConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_otherConditionChanges()
150 pollForSubscribe(SecondaryConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_otherConditionChanges()
156 SecondaryConditionProviderService.getInstance().requestUnbind(); in testUnboundCPSMaintainsCondition_otherConditionChanges()
162 ((LegacyConditionProviderService) LegacyConditionProviderService.getInstance()) in testUnboundCPSMaintainsCondition_otherConditionChanges()
180 pollForSubscribe(LegacyConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_otherProviderRuleChanges()
183 pollForSubscribe(SecondaryConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_otherProviderRuleChanges()
189 SecondaryConditionProviderService.getInstance().requestUnbind(); in testUnboundCPSMaintainsCondition_otherProviderRuleChanges()
207 LegacyConditionProviderService.getInstance().requestUnbind(); in testRequestRebindWhenLostAccess()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DToggleableTestTileService.java30 return getInstance() != null && getInstance().isConnected.get(); in isConnected()
34 return getInstance().isListening.get(); in isListening()
37 public static TestTileService getInstance() { in getInstance() method in ToggleableTestTileService
58 Tile tile = getInstance().getQsTile(); in toggleState()
DTestTileService.java50 public static TestTileService getInstance() { in getInstance() method in TestTileService
59 return getInstance() != null && getInstance().isConnected.get(); in isConnected()
63 return getInstance().isListening.get(); in isListening()
67 return getInstance().hasBeenClicked.get(); in hasBeenClicked()
/cts/tests/tests/webkit/src/android/webkit/cts/
DGeolocationTest.java164 GeolocationPermissions.getInstance().clearAll(); in setUp()
462 GeolocationPermissions.getInstance().getAllowed(URL_1, trueCheck); in testSimpleGeolocationRequestAcceptAlways()
467 GeolocationPermissions.getInstance().getOrigins(originCheck); in testSimpleGeolocationRequestAcceptAlways()
478 GeolocationPermissions.getInstance().getOrigins(originCheck); in testSimpleGeolocationRequestAcceptAlways()
481 GeolocationPermissions.getInstance().clear(URL_1); in testSimpleGeolocationRequestAcceptAlways()
484 GeolocationPermissions.getInstance().getOrigins(originCheck); in testSimpleGeolocationRequestAcceptAlways()
495 GeolocationPermissions.getInstance().getAllowed(URL_2, falseCheck); in testGeolocationPermissions()
498 GeolocationPermissions.getInstance().getOrigins(originCheck); in testGeolocationPermissions()
502 GeolocationPermissions.getInstance().clear(URL_2); in testGeolocationPermissions()
505 GeolocationPermissions.getInstance().getOrigins(originCheck); in testGeolocationPermissions()
[all …]
DTracingControllerTest.java145 TracingController.getInstance().stop(null, singleThreadExecutor);
149 return !TracingController.getInstance().isTracing();
206 TracingController tracingController = TracingController.getInstance();
217 TracingController tracingController = TracingController.getInstance();
238 TracingController tracingController = TracingController.getInstance();
259 TracingController tracingController = TracingController.getInstance();
280 TracingController tracingController = TracingController.getInstance();
293 TracingController tracingController = TracingController.getInstance();
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationListenerVerifierActivity.java282 MockListener.getInstance().resetData(); in tearDown()
288 if (MockListener.getInstance().getPosted(mTag1) != null) { in test()
334 MockListener.getInstance().resetData(); in tearDown()
340 StatusBarNotification sbn = MockListener.getInstance().getPosted(mTag1); in test()
354 if (MockListener.getInstance().getPosted(mTag1) != null) { in test()
422 MockListener.getInstance().resetData(); in tearDown()
501 MockListener.getInstance().resetData(); in tearDown()
556 StatusBarNotification sbn = MockListener.getInstance().getPosted(mTag1); in test()
558 MockListener.getInstance().getCurrentRanking().getRanking(sbn.getKey(), rank); in test()
584 MockListener.getInstance().resetData(); in tearDown()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestImsConfig.java30 TestAcsClient.getInstance().setImsConfigImpl(this); in TestImsConfig()
58 TestAcsClient.getInstance().onConfigChanged(content, isCompressed); in notifyRcsAutoConfigurationReceived()
64 TestAcsClient.getInstance().onConfigRemoved(); in notifyRcsAutoConfigurationRemoved()
70 TestAcsClient.getInstance().onSetRcsClientConfiguration(rcc); in setRcsClientConfiguration()
76 TestAcsClient.getInstance().onTriggerAutoConfiguration(); in triggerAutoConfiguration()
/cts/tests/tests/keystore/src/android/keystore/cts/
DImportWrappedKeyTest.java112 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey()
119 Cipher c = Cipher.getInstance("AES/ECB/PKCS7Padding"); in testKeyStore_ImportWrappedKey()
123 c = Cipher.getInstance("AES/ECB/PKCS7Padding"); in testKeyStore_ImportWrappedKey()
151 KeyGenerator kg = KeyGenerator.getInstance("DESEDE"); in testKeyStore_ImportWrappedKey_3DES()
175 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_3DES()
182 Cipher c = Cipher.getInstance("DESede/CBC/PKCS7Padding"); in testKeyStore_ImportWrappedKey_3DES()
187 c = Cipher.getInstance("DESede/CBC/PKCS7Padding"); in testKeyStore_ImportWrappedKey_3DES()
199 KeyGenerator kg = KeyGenerator.getInstance("DESEDE"); in testKeyStore_ImportWrappedKey_3DES_StrongBox()
212 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_3DES_StrongBox()
219 Cipher c = Cipher.getInstance("DESede/CBC/PKCS7Padding"); in testKeyStore_ImportWrappedKey_3DES_StrongBox()
[all …]
DAndroidKeyStoreTest.java728 KeyStore ksTemp = KeyStore.getInstance("AndroidKeyStore"); in setUp()
737 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp()
749 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tearDown()
762 KeyFactory kf = KeyFactory.getInstance(keyType); in generatePrivateKey()
767 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in generateCertificate()
918 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificate_Single_Unencrypted_Success()
947 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_PrivateKeyEntry_Unencrypted_Success()
974 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_NonExist_Empty_Unencrypted_Failure()
1110 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals()
1113 CertificateFactory certFact = CertificateFactory.getInstance("X.509"); in assertPrivateKeyEntryEquals()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannable_FactoryTest.java40 Factory factory = Spannable.Factory.getInstance(); in testNewSpannable()
50 Factory factory = Spannable.Factory.getInstance(); in testNewSpannableNull()
56 Spannable.Factory factory = Spannable.Factory.getInstance(); in testGetInstance()
58 assertSame(factory, Spannable.Factory.getInstance()); in testGetInstance()
DBidiFormatterTest.java43 private static final BidiFormatter LTR_FMT = BidiFormatter.getInstance(false /* LTR context */);
44 private static final BidiFormatter RTL_FMT = BidiFormatter.getInstance(true /* RTL context */);
65 assertEquals(false, BidiFormatter.getInstance(Locale.ENGLISH).isRtlContext()); in testIsRtlContext()
66 assertEquals(true, BidiFormatter.getInstance(true).isRtlContext()); in testIsRtlContext()
72 BidiFormatter defaultFormatterInstance = BidiFormatter.getInstance(); in testCachedInstances()
75 assertEquals(LTR_FMT, BidiFormatter.getInstance(false)); in testCachedInstances()
76 assertEquals(RTL_FMT, BidiFormatter.getInstance(true)); in testCachedInstances()
78 assertEquals(LTR_FMT, BidiFormatter.getInstance(false)); in testCachedInstances()
79 assertEquals(RTL_FMT, BidiFormatter.getInstance(Locale.forLanguageTag("ar"))); in testCachedInstances()
90 assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); in testIsRtl()
[all …]
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumpOnFailureRule.java52 AccessibilityDumper.getInstance().dump(flag); in dump()
57 AccessibilityDumper.getInstance().setName(getTestNameFrom(description)); in starting()
62 AccessibilityDumper.getInstance().dump(); in failed()
/cts/tests/security/src/android/keystore/cts/
DCertificateUtils.java51 X500Name.getInstance(issuer.getEncoded()), in createCertificate()
55 X500Name.getInstance(subject.getEncoded()), in createCertificate()
56 SubjectPublicKeyInfo.getInstance(keyPair.getPublic().getEncoded())); in createCertificate()
74 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in createCertificate()
/cts/tests/tests/telecom/src/android/telecom/cts/carmodetestapp/
DCtsCarModeInCallServiceControl.java58 if (CtsCarModeInCallService.getInstance() != null) {
59 CtsCarModeInCallService.getInstance().disconnectCalls();
65 if (CtsCarModeInCallService.getInstance() != null) {
66 return CtsCarModeInCallService.getInstance().getCallCount();
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DUtils.java168 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey_deprecated()
170 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createTimeBoundSecretKey_deprecated()
188 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey()
190 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createTimeBoundSecretKey()
208 final KeyStore keystore = KeyStore.getInstance(KEYSTORE_PROVIDER); in generateBiometricBoundKey()
221 .getInstance(KeyProperties.KEY_ALGORITHM_AES, KEYSTORE_PROVIDER); in generateBiometricBoundKey()
231 final KeyStore keystore = KeyStore.getInstance(KEYSTORE_PROVIDER); in initializeCryptoObject()
235 final Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in initializeCryptoObject()

12345678910>>...18