Home
last modified time | relevance | path

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

12345678910>>...14

/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationListenerVerifierActivity.java258 MockListener.getInstance().resetData(); in tearDown()
264 List<String> result = new ArrayList<>(MockListener.getInstance().mPosted); in test()
333 MockListener.getInstance().resetData(); in tearDown()
412 MockListener.getInstance().resetData(); in tearDown()
485 MockListener.getInstance().resetData(); in tearDown()
553 MockListener.getInstance().resetData(); in tearDown()
583 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()
641 MockListener.getInstance().resetData(); in tearDown()
662 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()
706 MockListener.getInstance().resetData(); in tearDown()
[all …]
DConditionProviderVerifierActivity.java173 if (MockConditionProvider.getInstance().isConnected() in test()
174 && MockConditionProvider.getInstance().isBound()) { in test()
206 MockConditionProvider.getInstance().requestUnbind(); in test()
209 if (MockConditionProvider.getInstance() == null || in test()
210 !MockConditionProvider.getInstance().isConnected()) { in test()
240 if (MockConditionProvider.getInstance().isConnected() in test()
241 && MockConditionProvider.getInstance().isBound()) { in test()
286 MockConditionProvider.getInstance().resetData(); in tearDown()
332 MockConditionProvider.getInstance().resetData(); in tearDown()
379 MockConditionProvider.getInstance().resetData(); in tearDown()
[all …]
DAttentionManagementVerifierActivity.java171 if (MockListener.getInstance() == null in test()
172 || !MockListener.getInstance().isConnected) { in test()
264 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()
304 MockListener.getInstance().resetData(); in tearDown()
324 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()
363 MockListener.getInstance().resetData(); in tearDown()
383 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()
422 MockListener.getInstance().resetData(); in tearDown()
442 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()
481 MockListener.getInstance().resetData(); in tearDown()
[all …]
/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/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java130 pollForSubscribe(SecondaryConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_addsNewRule()
136 SecondaryConditionProviderService.getInstance().requestUnbind(); in testUnboundCPSMaintainsCondition_addsNewRule()
162 pollForSubscribe(LegacyConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_otherConditionChanges()
165 pollForSubscribe(SecondaryConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_otherConditionChanges()
171 SecondaryConditionProviderService.getInstance().requestUnbind(); in testUnboundCPSMaintainsCondition_otherConditionChanges()
177 ((LegacyConditionProviderService) LegacyConditionProviderService.getInstance()) in testUnboundCPSMaintainsCondition_otherConditionChanges()
199 pollForSubscribe(LegacyConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_otherProviderRuleChanges()
202 pollForSubscribe(SecondaryConditionProviderService.getInstance()); in testUnboundCPSMaintainsCondition_otherProviderRuleChanges()
208 SecondaryConditionProviderService.getInstance().requestUnbind(); in testUnboundCPSMaintainsCondition_otherProviderRuleChanges()
230 LegacyConditionProviderService.getInstance().requestUnbind(); in testRequestRebindWhenLostAccess()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
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 …]
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 …]
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()
DBaseKeyListenerTest.java58 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in verifyBackspace()
79 content = Editable.Factory.getInstance().newEditable(testText); in verifyBackspace()
97 content = Editable.Factory.getInstance().newEditable(testText); in verifyBackspace()
121 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
129 content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
136 content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
186 Editable content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
194 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
229 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
252 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
[all …]
DCharacterPickerDialogTest.java57 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructor()
66 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructorNullContext()
76 Editable text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick()
101 text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick()
118 final Editable content = Editable.Factory.getInstance().newEditable(str); in testOnClick()
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()
DSingleLineTransformationMethodTest.java53 SingleLineTransformationMethod method0 = SingleLineTransformationMethod.getInstance(); in testGetInstance()
56 SingleLineTransformationMethod method1 = SingleLineTransformationMethod.getInstance(); in testGetInstance()
70 SingleLineTransformationMethod method = SingleLineTransformationMethod.getInstance(); in testGetTransformation()
82 final SingleLineTransformationMethod method = SingleLineTransformationMethod.getInstance(); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
DMetaKeyKeyListenerTest.java56 final Editable content = Editable.Factory.getInstance().newEditable(str); in testPressKey()
82 final Editable content = Editable.Factory.getInstance().newEditable(str); in testReleaseKey()
106 Spannable content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
115 content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
124 content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
151 Spannable text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
159 text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
167 text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
313 Editable text = Editable.Factory.getInstance().newEditable(str); in testClearMetaKeyState()
321 text = Editable.Factory.getInstance().newEditable(str); in testClearMetaKeyState()
[all …]
/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 …]
DSignatureTest.java371 Signature signature = Signature.getInstance(sigAlgorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenSigning()
387 Signature signature = Signature.getInstance(sigAlgorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenVerifying()
409 Signature signature = Signature.getInstance(sigAlgorithm, provider); in testValidSignatureGeneratedForEmptyMessage()
436 Signature signature = Signature.getInstance(sigAlgorithm, provider); in testEmptySignatureDoesNotVerify()
461 Signature signature = Signature.getInstance(sigAlgorithm, provider); in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
493 Signature signature = Signature.getInstance(sigAlgorithm, keystoreProvider); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
503 signature = Signature.getInstance(sigAlgorithm); in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
540 signature = Signature.getInstance(sigAlgorithm); in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
583 Signature signature = Signature.getInstance(sigAlgorithm, provider); in testEntropyConsumption()
649 Signature signature = Signature.getInstance(algorithm, provider); in testSmallMsgKat()
[all …]
DCipherTest.java345 Cipher cipher = Cipher.getInstance(algorithm, provider); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
350 cipher = Cipher.getInstance(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
356 cipher = Cipher.getInstance(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
383 Cipher cipher = Cipher.getInstance(algorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
386 cipher = Cipher.getInstance(algorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
412 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecrypts()
425 cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecrypts()
462 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEncryptsAndDecryptsInterrupted()
476 cipher = Cipher.getInstance(algorithm, provider); in testEncryptsAndDecryptsInterrupted()
565 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
[all …]
/cts/tests/tests/text/src/android/text/cts/
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 …]
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()
/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()

12345678910>>...14