Home
last modified time | relevance | path

Searched refs:Key (Results 1 – 25 of 84) sorted by relevance

1234

/libcore/ojluni/src/test/java/util/HashMap/
DTreeBinAssert.java120 Map<Key,Integer> map = new HashMap<>(size); in testMap()
123 (c,k) -> { ((Map<Key,Integer>)c).put(k,0); }, in testMap()
124 (c) -> { return ((Map<Key,Integer>)c).keySet().iterator(); } in testMap()
130 Set<Key> set = new LinkedHashSet<>(size); in testSet()
133 (c,k) -> { ((Set<Key>)c).add(k); }, in testSet()
134 (c) -> { return ((Set<Key>)c).iterator(); } in testSet()
139 BiConsumer<Object,Key> addKey, in doTest()
140 Function<Object,Iterator<Key>> mkItr) { in doTest()
141 Iterator<Key> itr = null; // saved iterator, used for removals in doTest()
151 addKey.accept(collection, new Key(h)); in doTest()
[all …]
/libcore/luni/src/test/java/libcore/javax/crypto/
DMockCipherSpi.java22 import java.security.Key;
40 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
49 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
104 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
110 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit()
116 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
124 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
130 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit()
136 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
144 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
[all …]
DMockKeyAgreementSpi.java21 import java.security.Key;
35 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
44 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
55 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
59 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase()
82 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
87 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
DMockMacSpi.java22 import java.security.Key;
38 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
47 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
58 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
67 protected void engineInit(Key key, AlgorithmParameterSpec params) in engineInit()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DMockKeyAgreementSpi.java21 import java.security.Key;
34 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
43 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
53 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
57 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase()
80 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
85 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
DMockMacSpi.java21 import java.security.Key;
30 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
39 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
49 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
58 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, in engineInit()
DKeyAgreementSpiTest.java27 import java.security.Key;
48 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase()
71 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
76 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
107 Key key = null; in testKeyAgreementSpi01()
DExemptionMechanismTest.java24 import java.security.Key;
129 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in testIsCryptoAllowed()
139 Key key1 = new MyExemptionMechanismSpi().new tmpKey("Proba", in testIsCryptoAllowed()
161 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in testGenExemptionBlob()
203 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_genExemptionBlob()
241 Key key = new Mock_ExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_genExemptionBlob$B()
281 Key key = new Mock_ExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_genExemptionBlob$BI()
378 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_getName()
393 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_getOutputSizeI()
416 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_getProvider()
[all …]
DExemptionMechanismSpiTest.java29 import java.security.Key;
66 protected void engineInit(Key key) throws InvalidKeyException, ExemptionMechanismException { in engineInit()
72 …protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, Inva… in engineInit()
78 …protected void engineInit(Key key, AlgorithmParameters params) throws InvalidKeyException, Invalid… in engineInit()
98 Key key = null; in testExemptionMechanismSpi01()
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java195 Key key = new Key(language, script, region, variant, false); in getInstance()
296 public static final class Key { class
315 public Key(String language, String script, String region, in Key() method in Key
375 if (obj instanceof Key && this.hash == ((Key)obj).hash) { in equals()
376 BaseLocale other = ((Key) obj).getBaseLocale(); in equals()
390 public static Key normalize(Key key) { in normalize()
398 return new Key(locale.getLanguage(), locale.getScript(), in normalize()
412 public static class Cache extends LocaleObjectCache<Key, BaseLocale> {
420 protected Key normalizeKey(Key key) { in normalizeKey()
421 return Key.normalize(key); in normalizeKey()
[all …]
/libcore/tools/non-cts-json-generator/src/libcore/tools/generator/noncts/
DMain.java229 private final TreeMap<NonCtsCluster.Key, NonCtsCluster> clusterMap;
231 private ExpectationWriter(TreeMap<NonCtsCluster.Key, NonCtsCluster> clusterMap) { in ExpectationWriter() argument
237 TreeMap<NonCtsCluster.Key, NonCtsCluster> clusterMap = new TreeMap<>(); in from()
239 NonCtsCluster.Key key = new NonCtsCluster.Key(entry); in from()
249 NonCtsCluster.Key key = new NonCtsCluster.Key(entry.getValue()); in from()
305 public final Key key;
309 public record Key(long bug, String description) implements Comparable<Key> {
311 private static final Comparator<Key> COMPARATOR = Comparator.comparing(Key::bug)
312 .thenComparing(Key::description);
313 public Key(NonCtsEntry entry) { in Key() method
[all …]
/libcore/luni/src/test/java/libcore/sun/util/locale/
DBaseLocaleTest.java45 ConcurrentMap<BaseLocale.Key, BaseLocale> map = in testCache_holdingNoStrongReferences()
46 (ConcurrentMap<BaseLocale.Key, BaseLocale>) mapField.get(cache); in testCache_holdingNoStrongReferences()
49 Field holderField = BaseLocale.Key.class.getDeclaredField("holder"); in testCache_holdingNoStrongReferences()
52 for (BaseLocale.Key key : map.keySet()) { in testCache_holdingNoStrongReferences()
61 protected BaseLocale createObject(BaseLocale.Key key) { in createObject()
82 BaseLocale.Key key = new BaseLocale.Key(lang, "", region, "", false); in testCacheCreateObject_notNull()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyExemptionMechanismSpi.java28 import java.security.Key;
66 protected void engineInit(Key key) throws InvalidKeyException, in engineInit()
77 protected void engineInit(Key key, AlgorithmParameters params) in engineInit()
92 protected void engineInit(Key key, AlgorithmParameterSpec params) in engineInit()
107 public class tmpKey implements Key {
125 public class tmp1Key implements Key {
DMyKeyAgreementSpi.java27 import java.security.Key;
45 protected Key engineDoPhase(Key key, boolean lastPhase) in engineDoPhase()
75 protected void engineInit(Key key, SecureRandom random) in engineInit()
81 protected void engineInit(Key key, AlgorithmParameterSpec params, in engineInit()
/libcore/ojluni/src/main/java/javax/crypto/
DKeyAgreementSpi.java85 protected abstract void engineInit(Key key, SecureRandom random) in engineInit()
104 protected abstract void engineInit(Key key, AlgorithmParameterSpec params, in engineInit()
127 protected abstract Key engineDoPhase(Key key, boolean lastPhase) in engineDoPhase()
DExemptionMechanismSpi.java28 import java.security.Key;
81 protected abstract void engineInit(Key key) in engineInit()
105 protected abstract void engineInit(Key key, AlgorithmParameterSpec params) in engineInit()
130 protected abstract void engineInit(Key key, AlgorithmParameters params) in engineInit()
DNullCipherSpi.java69 protected void engineInit(int mode, Key key, SecureRandom random) {} in engineInit()
71 protected void engineInit(int mode, Key key, in engineInit()
75 protected void engineInit(int mode, Key key, in engineInit()
109 protected int engineGetKeySize(Key key) in engineGetKeySize()
DExemptionMechanism.java30 import java.security.Key;
70 private Key keyStored = null;
257 public final boolean isCryptoAllowed(Key key) in isCryptoAllowed()
314 public final void init(Key key) in init()
345 public final void init(Key key, AlgorithmParameterSpec params) in init()
377 public final void init(Key key, AlgorithmParameters params) in init()
DKeyAgreement.java376 private void implInit(KeyAgreementSpi spi, int type, Key key, in implInit()
386 private void chooseProvider(int initType, Key key, in chooseProvider()
473 public final void init(Key key) throws InvalidKeyException { in init()
497 public final void init(Key key, SecureRandom random) in init()
544 public final void init(Key key, AlgorithmParameterSpec params) in init()
570 public final void init(Key key, AlgorithmParameterSpec params, in init()
608 public final Key doPhase(Key key, boolean lastPhase) in doPhase()
/libcore/ojluni/annotations/flagged_api/javax/crypto/
DKeyAgreement.annotated.java45 public final void init(java.security.Key key) throws java.security.InvalidKeyException { throw new … in init()
47 public final void init(java.security.Key key, java.security.SecureRandom random) throws java.securi… in init()
49 public final void init(java.security.Key key, java.security.spec.AlgorithmParameterSpec params) thr… in init()
51 public final void init(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, jav… in init()
53 public final java.security.Key doPhase(java.security.Key key, boolean lastPhase) throws java.lang.I… in doPhase()
/libcore/ojluni/annotations/mmodule/javax/crypto/
DKeyAgreement.annotated.java53 public final void init(java.security.Key key) throws java.security.InvalidKeyException { throw new … in init()
55 public final void init(java.security.Key key, java.security.SecureRandom random) throws java.securi… in init()
57 public final void init(java.security.Key key, java.security.spec.AlgorithmParameterSpec params) thr… in init()
59 public final void init(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, jav… in init()
61 public final java.security.Key doPhase(java.security.Key key, boolean lastPhase) throws java.lang.I… in doPhase()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactorySpiTest.java24 import java.security.Key;
62 protected KeySpec engineGetKeySpec(Key key, Class keySpec){ in engineGetKeySpec()
65 protected Key engineTranslateKey(Key key){ in engineTranslateKey()
DKeyFactoryTest.java11 import java.security.Key;
290 Key[] keys = { in testGetKeySpec()
305 Key key = keys[i]; in testGetKeySpec()
319 Key[] keys = { in testGetKeySpec()
341 Key key = keys[i]; in testGetKeySpec()
372 Key[] keys = { in testTranslateKey()
383 Key key = keys[i]; in testTranslateKey()
386 Key translateKey = factory.translateKey(key); in testTranslateKey()
396 Key[] keys = { in testTranslateKey()
407 Key key = keys[i]; in testTranslateKey()
[all …]
/libcore/luni/src/test/java/libcore/java/security/
DMockSignatureSpi.java21 import java.security.Key;
33 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
42 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
52 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
/libcore/ojluni/src/main/java/java/security/
DKeyFactorySpi.java124 T engineGetKeySpec(Key key, Class<T> keySpec) in engineGetKeySpec()
139 protected abstract Key engineTranslateKey(Key key) in engineTranslateKey()

1234