/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KSSecretKeyEntryTest.java | 44 SecretKey sk = null; in testSecretKeyEntry() local 46 new KeyStore.SecretKeyEntry(sk); in testSecretKeyEntry() 52 sk = new tmpSecretKey(); in testSecretKeyEntry() 54 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testSecretKeyEntry() 69 SecretKey sk = new tmpSecretKey(); in testSecretKeyEntry_nullAttributes() local 71 new KeyStore.SecretKeyEntry(sk, null /* attributes */); in testSecretKeyEntry_nullAttributes() 82 SecretKey sk = new tmpSecretKey(); in testGetSecretKey() local 83 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testGetSecretKey() 84 assertEquals("Incorrect SecretKey", sk, ske.getSecretKey()); in testGetSecretKey() 92 SecretKey sk = new tmpSecretKey(); in testGetAttributes() local [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
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() 126 sk.nioReadyOps(newOps); in translateReadyOps() 134 sk.nioReadyOps(newOps); in translateReadyOps() 138 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 139 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 142 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 143 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 146 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument [all …]
|
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() 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 | 68 public void putEventOps(SelectionKeyImpl sk, int ops) { in putEventOps() argument 72 pollWrapper.putEventOps(sk.getIndex(), ops); in putEventOps() 120 SelectionKeyImpl sk = channelArray[i]; in updateSelectedKeys() local 122 if (selectedKeys.contains(sk)) { in updateSelectedKeys() 123 if (sk.channel.translateAndSetReadyOps(rOps, sk)) { in updateSelectedKeys() 127 sk.channel.translateAndSetReadyOps(rOps, sk); in updateSelectedKeys() 128 if ((sk.nioReadyOps() & sk.nioInterestOps()) != 0) { in updateSelectedKeys() 129 selectedKeys.add(sk); in updateSelectedKeys()
|
D | ServerSocketChannelImpl.java | 317 SelectionKeyImpl sk) { in translateReadyOps() argument 318 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps() 319 int oldOps = sk.nioReadyOps(); in translateReadyOps() 331 sk.nioReadyOps(newOps); in translateReadyOps() 339 sk.nioReadyOps(newOps); in translateReadyOps() 343 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 344 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 347 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 348 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 376 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 | SocketChannelImpl.java | 944 SelectionKeyImpl sk) { in translateReadyOps() argument 945 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps() 946 int oldOps = sk.nioReadyOps(); in translateReadyOps() 958 sk.nioReadyOps(newOps); in translateReadyOps() 982 sk.nioReadyOps(newOps); in translateReadyOps() 986 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 987 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 990 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 991 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 1019 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument [all …]
|
D | DatagramChannelImpl.java | 1107 SelectionKeyImpl sk) { in translateReadyOps() argument 1108 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps() 1109 int oldOps = sk.nioReadyOps(); in translateReadyOps() 1121 sk.nioReadyOps(newOps); in translateReadyOps() 1133 sk.nioReadyOps(newOps); in translateReadyOps() 1137 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument 1138 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps() 1141 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument 1142 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps() 1170 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument [all …]
|
D | SelectorImpl.java | 121 public void putEventOps(SelectionKeyImpl sk, int ops) { } in putEventOps() argument
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | KeyUtil.java | 69 SecretKey sk = (SecretKey)key; in getKeySize() local 70 String format = sk.getFormat(); in getKeySize() 71 if ("RAW".equals(format) && sk.getEncoded() != null) { in getKeySize() 72 size = (sk.getEncoded().length * 8); in getKeySize()
|
/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 | 1545 SecretKey sk = kg.generateKey(); in test_Cipher() local 1549 byte[] cipherText = c.wrap(sk); in test_Cipher() 1553 Key decryptedKey = c.unwrap(cipherText, sk.getAlgorithm(), Cipher.SECRET_KEY); in test_Cipher() 1556 + " sk.getAlgorithm()=" + sk.getAlgorithm() in test_Cipher() 1558 + " encryptKey.getEncoded()=" + Arrays.toString(sk.getEncoded()) in test_Cipher() 1560 sk, decryptedKey); in test_Cipher() 4116 SecretKey sk = kg.generateKey(); in checkCipher() local 4121 byte[] cipherText = c.wrap(sk); in checkCipher() 4125 Key decryptedKey = c.unwrap(cipherText, sk.getAlgorithm(), Cipher.SECRET_KEY); in checkCipher() 4128 "sk.getAlgorithm()=" + sk.getAlgorithm() + " decryptedKey.getAlgorithm()=" in checkCipher() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentSkipListMap.java | 3332 Index<K,V> s; Node<K,V> b, n; K sk; in trySplit() local 3335 (sk = n.key) != null && cpr(cmp, sk, ek) > 0 && in trySplit() 3336 (f == null || cpr(cmp, sk, f) < 0)) { in trySplit() 3341 return new KeySpliterator<K,V>(cmp, r, e, sk, est); in trySplit() 3420 Index<K,V> s; Node<K,V> b, n; K sk; in trySplit() local 3423 (sk = n.key) != null && cpr(cmp, sk, ek) > 0 && in trySplit() 3424 (f == null || cpr(cmp, sk, f) < 0)) { in trySplit() 3429 return new ValueSpliterator<K,V>(cmp, r, e, sk, est); in trySplit() 3507 Index<K,V> s; Node<K,V> b, n; K sk; in trySplit() local 3510 (sk = n.key) != null && cpr(cmp, sk, ek) > 0 && in trySplit() [all …]
|