/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | StringReaderTest.java | 27 StringReader sr; field in StringReaderTest 43 sr = new StringReader(testString); in test_close() 44 sr.close(); in test_close() 46 sr.read(buf, 0, 2); in test_close() 58 sr = new StringReader(testString); in test_markI() 59 sr.skip(5); in test_markI() 60 sr.mark(0); in test_markI() 61 sr.skip(5); in test_markI() 62 sr.reset(); in test_markI() 64 sr.read(buf, 0, 2); in test_markI() [all …]
|
/libcore/luni/src/test/java/tests/java/security/ |
D | SecureRandomTest.java | 62 MySecureRandom sr = new MySecureRandom(); in testNext() local 63 if (sr.nextElement(1) != 1 || sr.nextElement(2) != 3 || sr.nextElement(3) != 7) { in testNext() 72 SecureRandom sr = new SecureRandom(); in testSetSeedlong() local 73 sr.setSeed(12345); in testSetSeedlong() 81 SecureRandom sr = new SecureRandom(); in testNextBytes() local 82 sr.nextBytes(b); in testNextBytes() 90 sr.nextBytes(null); in testNextBytes() 101 SecureRandom sr = new SecureRandom(); in testSecureRandom() local 102 if (!sr.getAlgorithm().equals("someRandom") || in testSecureRandom() 103 sr.getProvider()!= p) { in testSecureRandom() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldStringReaderTest.java | 27 StringReader sr; field in OldStringReaderTest 30 sr = new StringReader(testString); in test_markI() 32 sr.mark(-1); in test_markI() 40 sr = new StringReader(testString); in test_read$CII() 42 sr.read(buf, 0, -1); in test_read$CII() 48 sr.read(buf, -1, 1); in test_read$CII() 54 sr.read(buf, 1, testString.length()); in test_read$CII() 64 sr.close(); in tearDown()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SecureRandomTest.java | 74 private void test_SecureRandom(SecureRandom sr) throws Exception { in test_SecureRandom() argument 78 sr.nextBytes(out1); in test_SecureRandom() 79 sr.nextBytes(out2); in test_SecureRandom() 82 byte[] seed1 = sr.generateSeed(20); in test_SecureRandom() 83 byte[] seed2 = sr.generateSeed(20); in test_SecureRandom() 86 sr.setSeed(STATIC_SEED_BYTES); in test_SecureRandom() 87 sr.nextBytes(out1); in test_SecureRandom() 88 sr.nextBytes(out2); in test_SecureRandom() 91 sr.setSeed(STATIC_SEED_LONG); in test_SecureRandom() 92 sr.nextBytes(out1); in test_SecureRandom() [all …]
|
D | ProviderTest.java | 589 SecureRandom sr = new SecureRandom(); in testSecureRandomImplementationOrder() local 590 if (!sr.getAlgorithm().equals("SecureRandom1")) { in testSecureRandomImplementationOrder() 591 throw new IllegalStateException("Expected SecureRandom1 was " + sr.getAlgorithm()); in testSecureRandomImplementationOrder()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/provider/crypto/ |
D | SHA1PRNG_SecureRandomTest.java | 42 private static SecureRandom sr; // fields used by tests field in SHA1PRNG_SecureRandomTest 51 sr = SecureRandom.getInstance(algorithm, provider); in setUp() 61 sr.generateSeed(-1); in testGenerateSeedint01() 74 byte[] myBytes = sr.generateSeed(i); in testGenerateSeedint02() 91 myBytes1 = sr.generateSeed(i); in testGenerateSeedint03() 92 myBytes2 = sr.generateSeed(i); in testGenerateSeedint03() 109 sr.nextBytes(null); in testNextBytesbyteArray01() 133 sr.setSeed(myBytes); in testNextBytesbyteArray02() 139 sr.nextBytes(myBytes1); in testNextBytesbyteArray02() 159 sr.nextBytes(bytes1[k]); in testNextBytesbyteArray02() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | ReferenceQueueTest.java | 51 SoftReference sr = new SoftReference(integer, rq); in run() local 52 sr.enqueue(); in run() 70 SoftReference sr = new SoftReference(b, rq); in test_poll() local 74 sr.enqueue(); in test_poll() 99 sr.enqueue(); in test_poll() 115 SoftReference sr = new SoftReference(b, rq); in test_remove() local 116 sr.enqueue(); in test_remove() 126 sr.enqueue(); in test_remove() 176 SoftReference sr = new SoftReference(b, rq); in test_removeJ() local 182 sr.enqueue(); in test_removeJ()
|
D | SoftReferenceTest.java | 41 SoftReference sr = new SoftReference(bool, rq); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() local 42 assertTrue("Initialization failed.", ((Boolean) sr.get()) in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() 63 SoftReference sr = new SoftReference(bool); in test_ConstructorLjava_lang_Object() local 64 assertTrue("Initialization failed.", ((Boolean) sr.get()) in test_ConstructorLjava_lang_Object() 76 SoftReference sr = new SoftReference(bool); in test_get() local 77 assertTrue("Same object not returned.", bool == sr.get()); in test_get()
|
D | ReferenceTest.java | 92 SoftReference sr = new SoftReference(tmpA, new ReferenceQueue()); in test_clear() local 95 assertTrue("Start: Object not cleared.", (sr.get() != null) in test_clear() 98 sr.clear(); in test_clear() 101 assertTrue("End: Object cleared.", (sr.get() == null) in test_clear() 105 assertTrue("should always pass", tmpA != sr.get() && tmpB != wr.get()); in test_clear()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ |
D | InputSourceTest.java | 73 StringReader sr = new StringReader("Hello, world."); in testInputSourceReader() local 76 InputSource i = new InputSource(sr); in testInputSourceReader() 79 assertEquals(sr, i.getCharacterStream()); in testInputSourceReader() 145 StringReader sr = new StringReader("Hello, world."); in testSetCharacterStreamGetCharacterStream() local 150 i.setCharacterStream(sr); in testSetCharacterStreamGetCharacterStream() 153 assertEquals(sr, i.getCharacterStream()); in testSetCharacterStreamGetCharacterStream()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SecureRandom2Test.java | 99 MySecureRandom sr = new MySecureRandom(new MySecureRandomSpi(), p); in test_ConstructorLjava_security_SecureRandomSpi_java_security_Provider() local 100 assertEquals("unknown", sr.getAlgorithm()); in test_ConstructorLjava_security_SecureRandomSpi_java_security_Provider() 101 assertEquals(p, sr.getProvider()); in test_ConstructorLjava_security_SecureRandomSpi_java_security_Provider() 103 sr = new MySecureRandom(new MySecureRandomSpi(), null); in test_ConstructorLjava_security_SecureRandomSpi_java_security_Provider() 104 sr = new MySecureRandom(null, p); in test_ConstructorLjava_security_SecureRandomSpi_java_security_Provider() 264 SecureRandom sr = new SecureRandom(spi, null) { in test_getAlgorithm() local 267 assertEquals("unknown", sr.getAlgorithm()); in test_getAlgorithm()
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | SSLContextSpiImpl.java | 22 SecureRandom sr) throws KeyManagementException { in engineInit() argument 23 if (sr == null) { in engineInit()
|
D | MySSLContextSpi.java | 44 SecureRandom sr) throws KeyManagementException { in engineInit() argument 45 if (sr == null) { in engineInit()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherPBEThread.java | 40 SecureRandom sr = new SecureRandom(); in crypt() local 49 sr.nextBytes(salt); in crypt()
|
D | CipherSymmetricKeyThread.java | 38 SecureRandom sr = new SecureRandom(); in crypt() local 53 sr.nextBytes(iv); in crypt()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLContextSpiTest.java | 169 SecureRandom sr = SecureRandom.getInstance("SHA1PRNG"); in test_engineInit() local 171 ssl.engineInit(km, tm, sr); in test_engineInit() 208 SecureRandom sr = SecureRandom.getInstance("SHA1PRNG"); in test_commonTest_02() local 209 ssl.engineInit(km, tm, sr); in test_commonTest_02()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MySSLContextSpi.java | 46 SecureRandom sr) throws KeyManagementException { in engineInit() argument 47 if (sr == null) { in engineInit()
|
/libcore/luni/src/main/java/javax/net/ssl/ |
D | SSLContext.java | 347 public final void init(KeyManager[] km, TrustManager[] tm, SecureRandom sr) in init() argument 349 spiImpl.engineInit(km, tm, sr); in init()
|
D | SSLContextSpi.java | 49 protected abstract void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr) in engineInit() argument
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 2146 TreeNode<K,V> sr = s.right; in removeTreeNode() local 2164 if ((p.right = sr) != null) in removeTreeNode() 2165 sr.parent = p; in removeTreeNode() 2174 if (sr != null) in removeTreeNode() 2175 replacement = sr; in removeTreeNode() 2332 TreeNode<K,V> sl = xpr.left, sr = xpr.right; in balanceDeletion() local 2333 if ((sr == null || !sr.red) && in balanceDeletion() 2339 if (sr == null || !sr.red) { in balanceDeletion() 2349 if ((sr = xpr.right) != null) in balanceDeletion() 2350 sr.red = false; in balanceDeletion() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyGeneratorTest.java | 506 SecureRandom sr = new SecureRandom(); in test_initLjava_security_spec_AlgorithmParameterSpec() local 510 sr.nextBytes(iv); in test_initLjava_security_spec_AlgorithmParameterSpec()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | PropertiesTest.java | 893 InputStream sr = new ByteArrayInputStream("hello".getBytes()); in testLoadSingleLine() local 894 props.load(sr); in testLoadSingleLine()
|
/libcore/support/src/test/java/tests/resources/ |
D | junit4-4.3.1.jar | META-INF/
META-INF/MANIFEST.MF
junit/
junit/extensions/
junit/ ... |