Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKSSecretKeyEntryTest.java44 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/
DSinkChannelImpl.java116 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 …]
DSourceChannelImpl.java117 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 …]
DAbstractPollSelectorImpl.java70 public 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()
DServerSocketChannelImpl.java316 SelectionKeyImpl sk) { in translateReadyOps() argument
317 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps()
318 int oldOps = sk.nioReadyOps(); in translateReadyOps()
330 sk.nioReadyOps(newOps); in translateReadyOps()
338 sk.nioReadyOps(newOps); in translateReadyOps()
342 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument
343 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps()
346 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument
347 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps()
375 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument
[all …]
DSelChImpl.java53 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
DSocketChannelImpl.java953 SelectionKeyImpl sk) { in translateReadyOps() argument
954 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps()
955 int oldOps = sk.nioReadyOps(); in translateReadyOps()
967 sk.nioReadyOps(newOps); in translateReadyOps()
991 sk.nioReadyOps(newOps); in translateReadyOps()
995 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument
996 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps()
999 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument
1000 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps()
1028 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument
[all …]
DDatagramChannelImpl.java1110 SelectionKeyImpl sk) { in translateReadyOps() argument
1111 int intOps = sk.nioInterestOps(); // Do this just once, it synchronizes in translateReadyOps()
1112 int oldOps = sk.nioReadyOps(); in translateReadyOps()
1124 sk.nioReadyOps(newOps); in translateReadyOps()
1136 sk.nioReadyOps(newOps); in translateReadyOps()
1140 public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk) { in translateAndUpdateReadyOps() argument
1141 return translateReadyOps(ops, sk.nioReadyOps(), sk); in translateAndUpdateReadyOps()
1144 public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk) { in translateAndSetReadyOps() argument
1145 return translateReadyOps(ops, 0, sk); in translateAndSetReadyOps()
1173 public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { in translateAndSetInterestOps() argument
[all …]
DSelectorImpl.java121 public void putEventOps(SelectionKeyImpl sk, int ops) { } in putEventOps() argument
/libcore/ojluni/src/main/java/sun/security/util/
DKeyUtil.java69 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/
DSecretKeyFactorySpiTest.java64 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()
DSecretKeyTest.java40 checkSecretKey sk = new checkSecretKey(); in testField() local
42 sk.getSerVerUID(), //SecretKey.serialVersionUID in testField()
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DSelectorImpl.java72 public void putEventOps(sun.nio.ch.SelectionKeyImpl sk, int ops) { in putEventOps() argument
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java3332 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 …]