/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KSSecretKeyEntryTest.java | 42 SecretKey sk = null; in testSecretKeyEntry() local 44 new KeyStore.SecretKeyEntry(sk); in testSecretKeyEntry() 50 sk = new tmpSecretKey(); in testSecretKeyEntry() 52 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testSecretKeyEntry() 65 SecretKey sk = new tmpSecretKey(); in testGetSecretKey() local 66 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testGetSecretKey() 67 assertEquals("Incorrect SecretKey", sk, ske.getSecretKey()); in testGetSecretKey() 75 SecretKey sk = new tmpSecretKey(); in testToString() local 76 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testToString()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | SourceChannelImpl.java | 117 SelectionKeyImpl sk) { in translateReadyOps() argument 118 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps() 119 int oldOps = sk.nioReadyOps(); in translateReadyOps() 128 sk.nioReadyOps(newOps); in translateReadyOps() 136 sk.nioReadyOps(newOps); in translateReadyOps() 140 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 141 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 144 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 145 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 148 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument [all …]
|
D | SinkChannelImpl.java | 116 SelectionKeyImpl sk) { in translateReadyOps() argument 117 int intOps = sk.nioInterestOps();// Do this just once, it synchronizes in translateReadyOps() 118 int oldOps = sk.nioReadyOps(); in translateReadyOps() 127 sk.nioReadyOps(newOps); in translateReadyOps() 135 sk.nioReadyOps(newOps); in translateReadyOps() 139 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 140 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 143 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 144 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 147 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument [all …]
|
D | AbstractPollSelectorImpl.java | 70 void putEventOps(SelectionKeyImpl sk, int ops) { in putEventOps() argument 74 pollWrapper.putEventOps(sk.getIndex(), ops); in putEventOps() 122 SelectionKeyImpl sk = channelArray[i]; in updateSelectedKeys() local 124 if (selectedKeys.contains(sk)) { in updateSelectedKeys() 125 if (sk.channel.translateAndSetReadyOps(rOps, sk)) { in updateSelectedKeys() 129 sk.channel.translateAndSetReadyOps(rOps, sk); in updateSelectedKeys() 130 if ((sk.nioReadyOps() & sk.nioInterestOps()) != 0) { in updateSelectedKeys() 131 selectedKeys.add(sk); in updateSelectedKeys()
|
D | ServerSocketChannelImpl.java | 307 SelectionKeyImpl sk) { in translateReadyOps() argument 308 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps() 309 int oldOps = sk.nioReadyOps(); in translateReadyOps() 322 sk.nioReadyOps(newOps); in translateReadyOps() 330 sk.nioReadyOps(newOps); in translateReadyOps() 334 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 335 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 338 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 339 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 345 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument [all …]
|
D | SelChImpl.java | 53 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk); in translateAndUpdateReadyOps() argument 63 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk); in translateAndSetReadyOps() argument 65 void translateAndSetInterestOps(int ops, SelectionKeyImpl sk); in translateAndSetInterestOps() argument
|
D | ServerSocketAdaptor.java | 107 SelectionKey sk = null; in accept() local 115 sk = ssc.register(sel, SelectionKey.OP_ACCEPT); in accept() 123 sk.isAcceptable() && ((sc = ssc.accept()) != null)) in accept() 125 sel.selectedKeys().remove(sk); in accept() 131 if (sk != null) in accept() 132 sk.cancel(); in accept()
|
D | SocketAdaptor.java | 110 SelectionKey sk = null; in connect() local 117 sk = sc.register(sel, SelectionKey.OP_CONNECT); in connect() 125 sk.isConnectable() && sc.finishConnect()) in connect() 127 sel.selectedKeys().remove(sk); in connect() 137 if (sk != null) in connect() 138 sk.cancel(); in connect() 223 SelectionKey sk = null; in read() 232 sk = sc.register(sel, SelectionKey.OP_READ); in read() 239 if (ns > 0 && sk.isReadable()) { in read() 243 sel.selectedKeys().remove(sk); in read() [all …]
|
D | SocketChannelImpl.java | 916 SelectionKeyImpl sk) { in translateReadyOps() argument 917 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps() 918 int oldOps = sk.nioReadyOps(); in translateReadyOps() 931 sk.nioReadyOps(newOps); in translateReadyOps() 955 sk.nioReadyOps(newOps); in translateReadyOps() 959 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 960 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 963 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 964 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 970 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument [all …]
|
D | DatagramSocketAdaptor.java | 180 SelectionKey sk = null; in receive() local 189 sk = dc.register(sel, SelectionKey.OP_READ); in receive() 196 if (ns > 0 && sk.isReadable()) { in receive() 200 sel.selectedKeys().remove(sk); in receive() 207 if (sk != null) in receive() 208 sk.cancel(); in receive()
|
D | DatagramChannelImpl.java | 830 SelectionKeyImpl sk) { in translateReadyOps() argument 831 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps() 832 int oldOps = sk.nioReadyOps(); in translateReadyOps() 845 sk.nioReadyOps(newOps); in translateReadyOps() 857 sk.nioReadyOps(newOps); in translateReadyOps() 861 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 862 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 865 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 866 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 872 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument [all …]
|
D | DevPollSelectorImpl.java | 183 void putEventOps(SelectionKeyImpl sk, int ops) { in putEventOps() argument 186 int fd = IOUtil.fdVal(sk.channel.getFD()); in putEventOps()
|
D | SelectorImpl.java | 122 void putEventOps(SelectionKeyImpl sk, int ops) { } in putEventOps() argument
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | SecretKeyFactorySpiTest.java | 64 SecretKey sk = null; in testSecretKeyFactorySpi01() local 65 assertNull("Not null result", skfSpi.engineTranslateKey(sk)); in testSecretKeyFactorySpi01() 70 assertNull("Not null result", skfSpi.engineGetKeySpec(sk, null)); in testSecretKeyFactorySpi01()
|
D | SecretKeyTest.java | 40 checkSecretKey sk = new checkSecretKey(); in testField() local 42 sk.getSerVerUID(), //SecretKey.serialVersionUID in testField()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | KeyGeneratorTest.java | 161 private void test_SecretKey(KeyGenerator kg, SecretKey sk) throws Exception { in test_SecretKey() argument 162 assertNotNull(sk); in test_SecretKey() 163 assertEquals(kg.getAlgorithm().toUpperCase(), sk.getAlgorithm().toUpperCase()); in test_SecretKey() 164 assertNotNull(sk.getEncoded()); in test_SecretKey() 165 assertNotNull(sk.getFormat()); in test_SecretKey()
|
D | CipherTest.java | 1463 SecretKey sk = kg.generateKey(); in test_Cipher() local 1467 byte[] cipherText = c.wrap(sk); in test_Cipher() 1471 Key decryptedKey = c.unwrap(cipherText, sk.getAlgorithm(), Cipher.SECRET_KEY); in test_Cipher() 1474 + " sk.getAlgorithm()=" + sk.getAlgorithm() in test_Cipher() 1476 + " encryptKey.getEncoded()=" + Arrays.toString(sk.getEncoded()) in test_Cipher() 1478 sk, decryptedKey); in test_Cipher() 3183 SecretKey sk = kg.generateKey(); in checkCipher() local 3188 byte[] cipherText = c.wrap(sk); in checkCipher() 3192 Key decryptedKey = c.unwrap(cipherText, sk.getAlgorithm(), Cipher.SECRET_KEY); in checkCipher() 3195 "sk.getAlgorithm()=" + sk.getAlgorithm() + " decryptedKey.getAlgorithm()=" in checkCipher() [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | KeyUtil.java | 76 SecretKey sk = (SecretKey)key; in getKeySize() local 77 String format = sk.getFormat(); in getKeySize() 78 if ("RAW".equals(format) && sk.getEncoded() != null) { in getKeySize() 79 size = (sk.getEncoded().length * 8); in getKeySize()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ConcurrentSkipListMap.java | 3303 Index<K,V> s; Node<K,V> b, n; K sk; in trySplit() local 3306 (sk = n.key) != null && cpr(cmp, sk, ek) > 0 && in trySplit() 3307 (f == null || cpr(cmp, sk, f) < 0)) { in trySplit() 3312 return new KeySpliterator<K,V>(cmp, r, e, sk, est); in trySplit() 3391 Index<K,V> s; Node<K,V> b, n; K sk; in trySplit() local 3394 (sk = n.key) != null && cpr(cmp, sk, ek) > 0 && in trySplit() 3395 (f == null || cpr(cmp, sk, f) < 0)) { in trySplit() 3400 return new ValueSpliterator<K,V>(cmp, r, e, sk, est); in trySplit() 3478 Index<K,V> s; Node<K,V> b, n; K sk; in trySplit() local 3481 (sk = n.key) != null && cpr(cmp, sk, ek) > 0 && in trySplit() [all …]
|