Lines Matching refs:getInstance

88         CipherFactory.getInstance().setRandomNumberProviderForTests(mNumberProvider);  in setUp()
98 Cipher aEncrypt = CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testCipherUse()
99 Cipher bEncrypt = CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testCipherUse()
103 Cipher aDecrypt = CipherFactory.getInstance().getCipher(Cipher.DECRYPT_MODE); in testCipherUse()
104 Cipher bDecrypt = CipherFactory.getInstance().getCipher(Cipher.DECRYPT_MODE); in testCipherUse()
129 Assert.assertTrue(CipherFactory.getInstance().restoreFromBundle(aBundle)); in testSameBundleRestoration()
130 Cipher aCipher = CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testSameBundleRestoration()
131 Assert.assertTrue(CipherFactory.getInstance().restoreFromBundle(bBundle)); in testSameBundleRestoration()
132 Cipher bCipher = CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testSameBundleRestoration()
152 Assert.assertTrue(CipherFactory.getInstance().restoreFromBundle(aBundle)); in testDifferentBundleRestoration()
153 Cipher aCipher = CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testDifferentBundleRestoration()
161 Assert.assertFalse(CipherFactory.getInstance().restoreFromBundle(bBundle)); in testDifferentBundleRestoration()
162 Cipher bCipher = CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testDifferentBundleRestoration()
175 Assert.assertFalse(CipherFactory.getInstance().restoreFromBundle(null)); in testIncompleteBundleRestoration()
181 Assert.assertFalse(CipherFactory.getInstance().restoreFromBundle(aBundle)); in testIncompleteBundleRestoration()
187 Assert.assertFalse(CipherFactory.getInstance().restoreFromBundle(bBundle)); in testIncompleteBundleRestoration()
205 Assert.assertNull(CipherFactory.getInstance().getCipherData(false)); in testRestorationSucceedsBeforeCipherCreated()
206 Assert.assertTrue(CipherFactory.getInstance().restoreFromBundle(bundle)); in testRestorationSucceedsBeforeCipherCreated()
207 Assert.assertNotNull(CipherFactory.getInstance().getCipherData(false)); in testRestorationSucceedsBeforeCipherCreated()
224 Cipher aCipher = CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testRestorationDiscardsAfterOtherCipherAlreadyCreated()
225 Assert.assertFalse(CipherFactory.getInstance().restoreFromBundle(bundle)); in testRestorationDiscardsAfterOtherCipherAlreadyCreated()
226 Cipher bCipher = CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testRestorationDiscardsAfterOtherCipherAlreadyCreated()
240 CipherFactory.getInstance().saveToBundle(initialBundle); in testSavingToBundle()
245 CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testSavingToBundle()
247 CipherFactory.getInstance().saveToBundle(afterBundle); in testSavingToBundle()
252 Assert.assertTrue(CipherFactory.getInstance().restoreFromBundle(afterBundle)); in testSavingToBundle()
262 CipherFactory.getInstance().addCipherDataObserver(observer); in testCipherFactoryObserver()
264 CipherFactory.getInstance().getCipher(Cipher.DECRYPT_MODE); in testCipherFactoryObserver()
267 CipherFactory.getInstance().getCipher(Cipher.DECRYPT_MODE); in testCipherFactoryObserver()
270 CipherFactory.getInstance().getCipher(Cipher.ENCRYPT_MODE); in testCipherFactoryObserver()
273 CipherFactory.getInstance().removeCipherDataObserver(observer); in testCipherFactoryObserver()
283 CipherFactory.getInstance().getCipher(Cipher.DECRYPT_MODE); in testCipherFactoryObserverTooLate()
287 CipherFactory.getInstance().addCipherDataObserver(observer); in testCipherFactoryObserverTooLate()
290 CipherFactory.getInstance().getCipher(Cipher.DECRYPT_MODE); in testCipherFactoryObserverTooLate()