Home
last modified time | relevance | path

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

12345678

/cts/tests/tests/text/src/android/text/method/cts/
DTimeKeyListenerTest.java55 final TimeKeyListener emptyListener1 = TimeKeyListener.getInstance(); in testGetInstance()
56 final TimeKeyListener emptyListener2 = TimeKeyListener.getInstance(); in testGetInstance()
57 final TimeKeyListener nullListener = TimeKeyListener.getInstance(null); in testGetInstance()
65 final TimeKeyListener usListener1 = TimeKeyListener.getInstance(Locale.US); in testGetInstance()
66 final TimeKeyListener usListener2 = TimeKeyListener.getInstance(new Locale("en", "US")); in testGetInstance()
67 final TimeKeyListener irListener = TimeKeyListener.getInstance( in testGetInstance()
120 TimeKeyListener listener = TimeKeyListener.getInstance(); in testGetInputType()
124 listener = TimeKeyListener.getInstance(Locale.US); in testGetInputType()
126 listener = TimeKeyListener.getInstance(Locale.UK); in testGetInputType()
131 listener = TimeKeyListener.getInstance(Locale.forLanguageTag("fa-IR")); in testGetInputType()
[all …]
DDateTimeKeyListenerTest.java58 final DateTimeKeyListener emptyListener1 = DateTimeKeyListener.getInstance(); in testGetInstance()
59 final DateTimeKeyListener emptyListener2 = DateTimeKeyListener.getInstance(); in testGetInstance()
60 final DateTimeKeyListener nullListener = DateTimeKeyListener.getInstance(null); in testGetInstance()
68 final DateTimeKeyListener usListener1 = DateTimeKeyListener.getInstance(Locale.US); in testGetInstance()
69 final DateTimeKeyListener usListener2 = DateTimeKeyListener.getInstance( in testGetInstance()
71 final DateTimeKeyListener irListener = DateTimeKeyListener.getInstance( in testGetInstance()
124 DateTimeKeyListener listener = DateTimeKeyListener.getInstance(); in testGetInputType()
128 listener = DateTimeKeyListener.getInstance(Locale.US); in testGetInputType()
130 listener = DateTimeKeyListener.getInstance(Locale.UK); in testGetInputType()
135 listener = DateTimeKeyListener.getInstance(Locale.forLanguageTag("fa-IR")); in testGetInputType()
[all …]
DDigitsKeyListenerTest.java86 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testFilter1()
144 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, false); in testFilter2()
243 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(false, true); in testFilter3()
323 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, true); in testFilter4()
433 DigitsKeyListener.getInstance(Locale.forLanguageTag("fa-IR"), true, true); in testFilter4_internationalized()
550 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testDigitsKeyListener1()
585 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, false); in testDigitsKeyListener2()
628 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(false, true); in testDigitsKeyListener3()
673 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, true); in testDigitsKeyListener4()
715 final DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(accepted); in testDigitsKeyListener5()
[all …]
DTextKeyListenerTest.java119 TextKeyListener listener1 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1()
120 TextKeyListener listener2 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1()
121 TextKeyListener listener3 = TextKeyListener.getInstance(false, Capitalize.WORDS); in testGetInstance1()
122 TextKeyListener listener4 = TextKeyListener.getInstance(true, Capitalize.CHARACTERS); in testGetInstance1()
140 TextKeyListener listener1 = TextKeyListener.getInstance(); in testGetInstance2()
141 TextKeyListener listener2 = TextKeyListener.getInstance(); in testGetInstance2()
153 TextKeyListener textKeyListener = TextKeyListener.getInstance(); in testOnSpanChanged()
162 TextKeyListener textKeyListener = TextKeyListener.getInstance(); in testOnSpanChangedNull()
207 = TextKeyListener.getInstance(false, Capitalize.NONE); in testPressKey()
238 = TextKeyListener.getInstance(false, Capitalize.NONE); in testOnKeyOther()
[all …]
DMultiTapKeyListenerTest.java82 = MultiTapKeyListener.getInstance(true, Capitalize.CHARACTERS); in testOnSpanChanged()
96 MultiTapKeyListener keyListener = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testOnKeyDown_capitalizeNone()
118 MultiTapKeyListener keyListener = MultiTapKeyListener.getInstance(false, in testOnKeyDown_capitalizeCharacters()
141 MultiTapKeyListener keyListener = MultiTapKeyListener.getInstance(false, in testOnKeyDown_capitalizeSentences()
169 MultiTapKeyListener keyListener = MultiTapKeyListener.getInstance(false, in testOnKeyDown_capitalizeWords()
226 MultiTapKeyListener listener1 = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInstance()
227 MultiTapKeyListener listener2 = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInstance()
228 MultiTapKeyListener listener3 = MultiTapKeyListener.getInstance(false, Capitalize.WORDS); in testGetInstance()
229 MultiTapKeyListener listener4 = MultiTapKeyListener.getInstance(true, Capitalize.NONE); in testGetInstance()
250 MultiTapKeyListener listener = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInputType()
[all …]
DQwertyKeyListenerTest.java52 final QwertyKeyListener keyListener = QwertyKeyListener.getInstance(false, Capitalize.NONE); in testOnKeyDown_capitalizeNone()
74 final QwertyKeyListener keyListener = QwertyKeyListener.getInstance(false, in testOnKeyDown_capitalizeCharacters()
97 final QwertyKeyListener keyListener = QwertyKeyListener.getInstance(false, in testOnKeyDown_capitalizeSentences()
126 final QwertyKeyListener keyListener = QwertyKeyListener.getInstance(false, in testOnKeyDown_capitalizeWords()
168 final QwertyKeyListener listener1 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance()
169 final QwertyKeyListener listener2 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance()
170 final QwertyKeyListener listener3 = QwertyKeyListener.getInstance(false, Capitalize.WORDS); in testGetInstance()
171 final QwertyKeyListener listener4 = QwertyKeyListener.getInstance(true, in testGetInstance()
226 QwertyKeyListener listener = QwertyKeyListener.getInstance(false, Capitalize.NONE); in testGetInputType()
229 listener = QwertyKeyListener.getInstance(false, Capitalize.CHARACTERS); in testGetInputType()
DDateKeyListenerTest.java57 final DateKeyListener emptyListener1 = DateKeyListener.getInstance(); in testGetInstance()
58 final DateKeyListener emptyListener2 = DateKeyListener.getInstance(); in testGetInstance()
59 final DateKeyListener nullListener = DateKeyListener.getInstance(null); in testGetInstance()
67 final DateKeyListener usListener1 = DateKeyListener.getInstance(Locale.US); in testGetInstance()
68 final DateKeyListener usListener2 = DateKeyListener.getInstance(new Locale("en", "US")); in testGetInstance()
69 final DateKeyListener irListener = DateKeyListener.getInstance( in testGetInstance()
147 final DateKeyListener dateKeyListener = DateKeyListener.getInstance(); in testDateTimeKeyListener()
DDialerKeyListenerTest.java72 assertNotNull(DialerKeyListener.getInstance()); in testGetInstance()
74 DialerKeyListener listener1 = DialerKeyListener.getInstance(); in testGetInstance()
75 DialerKeyListener listener2 = DialerKeyListener.getInstance(); in testGetInstance()
92 DialerKeyListener listener = DialerKeyListener.getInstance(); in testGetInputType()
DSingleLineTransformationMethodTest.java52 SingleLineTransformationMethod method0 = SingleLineTransformationMethod.getInstance(); in testGetInstance()
55 SingleLineTransformationMethod method1 = SingleLineTransformationMethod.getInstance(); in testGetInstance()
69 SingleLineTransformationMethod method = SingleLineTransformationMethod.getInstance(); in testGetTransformation()
81 final SingleLineTransformationMethod method = SingleLineTransformationMethod.getInstance(); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
DCharacterPickerDialogTest.java56 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructor()
65 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructorNullContext()
75 Editable text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick()
100 text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick()
117 final Editable content = Editable.Factory.getInstance().newEditable(str); in testOnClick()
DBaseKeyListenerTest.java57 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in verifyBackspace()
78 content = Editable.Factory.getInstance().newEditable(testText); in verifyBackspace()
96 content = Editable.Factory.getInstance().newEditable(testText); in verifyBackspace()
120 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
128 content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
135 content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
185 Editable content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
193 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
228 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
251 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
[all …]
DMetaKeyKeyListenerTest.java55 final Editable content = Editable.Factory.getInstance().newEditable(str); in testPressKey()
81 final Editable content = Editable.Factory.getInstance().newEditable(str); in testReleaseKey()
105 Spannable content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
114 content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
123 content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
150 Spannable text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
158 text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
166 text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
312 Editable text = Editable.Factory.getInstance().newEditable(str); in testClearMetaKeyState()
320 text = Editable.Factory.getInstance().newEditable(str); in testClearMetaKeyState()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DGeolocationTest.java161 GeolocationPermissions.getInstance().clearAll(); in setUp()
453 GeolocationPermissions.getInstance().getAllowed(URL_1, trueCheck); in testSimpleGeolocationRequestAcceptAlways()
458 GeolocationPermissions.getInstance().getOrigins(originCheck); in testSimpleGeolocationRequestAcceptAlways()
469 GeolocationPermissions.getInstance().getOrigins(originCheck); in testSimpleGeolocationRequestAcceptAlways()
472 GeolocationPermissions.getInstance().clear(URL_1); in testSimpleGeolocationRequestAcceptAlways()
475 GeolocationPermissions.getInstance().getOrigins(originCheck); in testSimpleGeolocationRequestAcceptAlways()
486 GeolocationPermissions.getInstance().getAllowed(URL_2, falseCheck); in testGeolocationPermissions()
489 GeolocationPermissions.getInstance().getOrigins(originCheck); in testGeolocationPermissions()
493 GeolocationPermissions.getInstance().clear(URL_2); in testGeolocationPermissions()
496 GeolocationPermissions.getInstance().getOrigins(originCheck); in testGeolocationPermissions()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannable_FactoryTest.java39 Factory factory = Spannable.Factory.getInstance(); in testNewSpannable()
49 Factory factory = Spannable.Factory.getInstance(); in testNewSpannableNull()
55 Spannable.Factory factory = Spannable.Factory.getInstance(); in testGetInstance()
57 assertSame(factory, Spannable.Factory.getInstance()); in testGetInstance()
DBidiFormatterTest.java42 private static final BidiFormatter LTR_FMT = BidiFormatter.getInstance(false /* LTR context */);
43 private static final BidiFormatter RTL_FMT = BidiFormatter.getInstance(true /* RTL context */);
64 assertEquals(false, BidiFormatter.getInstance(Locale.ENGLISH).isRtlContext()); in testIsRtlContext()
65 assertEquals(true, BidiFormatter.getInstance(true).isRtlContext()); in testIsRtlContext()
71 BidiFormatter defaultFormatterInstance = BidiFormatter.getInstance(); in testCachedInstances()
74 assertEquals(LTR_FMT, BidiFormatter.getInstance(false)); in testCachedInstances()
75 assertEquals(RTL_FMT, BidiFormatter.getInstance(true)); in testCachedInstances()
77 assertEquals(LTR_FMT, BidiFormatter.getInstance(false)); in testCachedInstances()
78 assertEquals(RTL_FMT, BidiFormatter.getInstance(Locale.forLanguageTag("ar"))); in testCachedInstances()
89 assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); in testIsRtl()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java724 KeyStore ksTemp = KeyStore.getInstance("AndroidKeyStore"); in setUp()
733 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp()
739 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tearDown()
752 KeyFactory kf = KeyFactory.getInstance(keyType); in generatePrivateKey()
757 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in generateCertificate()
908 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificate_Single_Unencrypted_Success()
937 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_PrivateKeyEntry_Unencrypted_Success()
964 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_NonExist_Empty_Unencrypted_Failure()
1100 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals()
1103 CertificateFactory certFact = CertificateFactory.getInstance("X.509"); in assertPrivateKeyEntryEquals()
[all …]
DPutOverflowTest.java26 Method getInstance = keystoreClass.getMethod("getInstance"); in testCrash() local
29 Object keystore = getInstance.invoke(null); in testCrash()
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 …]
DRSACipherTest.java59 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
89 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
115 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
144 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
176 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
208 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", EXPECTED_PROVIDER_NAME); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
235 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", EXPECTED_PROVIDER_NAME); in testNoPaddingWithZeroMessage()
DCipherTest.java263 Cipher cipher = Cipher.getInstance(algorithm, provider); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
268 cipher = Cipher.getInstance(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
274 cipher = Cipher.getInstance(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting()
301 Cipher cipher = Cipher.getInstance(algorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
304 cipher = Cipher.getInstance(algorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting()
330 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecrypts()
343 cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecrypts()
375 Cipher cipher = Cipher.getInstance(algorithm, provider); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
388 cipher = Cipher.getInstance(algorithm, provider); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
424 cipher = Cipher.getInstance(algorithm); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DConscryptIntermediateVerificationTest.java39 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in loadCertificates()
62 KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType()); in getTrustManager()
64 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in getTrustManager()
67 TrustManagerFactory tmf = TrustManagerFactory.getInstance("PKIX"); in getTrustManager()
DPutOverflowTest.java28 Method getInstance = keystoreClass.getMethod("getInstance"); in testCrash() local
31 Object keystore = getInstance.invoke(null); in testCrash()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-nested-domains/src/android/security/net/config/cts/
DNestedDomainConfigTest.java27 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testRootDomainConfig()
33 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testNestedDomainConfig()
/cts/tests/tests/drm/src/android/drm/cts/
DConfigFactory.java35 return PassthruConfig.getInstance(); in getConfig()
37 return FwdLockConfig.getInstance(); in getConfig()
/cts/tests/tests/util/src/android/util/cts/
DTimeUtilsTest.java46 Calendar c = Calendar.getInstance(tz); in testUnitedStates()
68 Calendar c = Calendar.getInstance(tz); in testWeirdUnitedStates()
85 Calendar c = Calendar.getInstance(tz); in testOld()
106 Calendar c = Calendar.getInstance(tz); in testWorldWeird()

12345678