/libcore/luni/src/main/java/java/util/ |
H A D | WeakHashMap.java | 67 R get(Map.Entry<K, V> entry); argument 96 Map.Entry<?, ?> entry = (Map.Entry<?, ?>) other; 98 return (key == null ? key == entry.getKey() : key.equals(entry 100 && (value == null ? value == entry.getValue() : value 101 .equals(entry.getValue())); 144 // ensure key of next entry is not gc'ed 319 Entry<?, ?> entry = getEntry(((Map.Entry<?, ?>) object) 321 if (entry != null) { 322 Object key = entry [all...] |
H A D | MapEntry.java | 29 RT get(MapEntry<KT, VT> entry); argument 56 Map.Entry<?, ?> entry = (Map.Entry<?, ?>) object; 57 return (key == null ? entry.getKey() == null : key.equals(entry 59 && (value == null ? entry.getValue() == null : value 60 .equals(entry.getValue()));
|
H A D | AbstractMap.java | 30 * performs a linear iteration of the entry set. Subclasses should override such 89 Map.Entry<?, ?> entry = (Map.Entry<?, ?>) object; 90 return (key == null ? entry.getKey() == null : key.equals(entry 92 && (value == null ? entry.getValue() == null : value 93 .equals(entry.getValue())); 152 Map.Entry<?, ?> entry = (Map.Entry<?, ?>) object; 153 return (key == null ? entry.getKey() == null : key.equals(entry 155 && (value == null ? entry [all...] |
H A D | TreeMap.java | 107 for (Map.Entry<? extends K, ? extends V> entry : copyFrom.entrySet()) { 108 putInternal(entry.getKey(), entry.getValue()); 150 for (Map.Entry<K, ? extends V> entry : copyFrom.entrySet()) { 151 putInternal(entry.getKey(), entry.getValue()); 177 Entry<K, V> entry = findByObject(key); 178 return entry != null ? entry.getValue() : null; 355 * Returns this map's entry tha 363 findByEntry(Entry<?, ?> entry) argument 583 immutableCopy(Entry<K, V> entry) argument [all...] |
H A D | EnumMap.java | 71 Map.Entry<KT, VT> entry = (Map.Entry<KT, VT>) object; 72 Object enumKey = entry.getKey(); 74 Object theValue = entry.getValue(); 215 public KT get(MapEntry<KT, VT> entry) { 216 return entry.key; 260 public VT get(MapEntry<KT, VT> entry) { 261 return entry.value; 346 public Map.Entry<KT, VT> get(MapEntry<KT, VT> entry) { 347 return entry; 384 Map.Entry<KT, VT> entry [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | AddressCache.java | 44 // Either an InetAddress[] for a positive entry, 45 // or a String detail message for a negative entry. 75 AddressCacheEntry entry = cache.get(hostname); 76 // Do we have a valid cache entry? 77 if (entry != null && entry.expiryNanos >= System.nanoTime()) { 78 return entry.value; 95 * negative cache entry.)
|
/libcore/luni/src/main/java/java/security/acl/ |
H A D | Acl.java | 77 * positive</i> or <i>negative</i>) and principal, then the new entry is not added. 81 * @param entry 82 * the ACL entry to add. 83 * @return {@code true} if the entry is added, {@code false} if there is 84 * already an entry of the same type for the same principal 89 boolean addEntry(Principal caller, AclEntry entry) throws NotOwnerException; argument 96 * @param entry 97 * the ACL entry to remove. 98 * @return {@code true} if the entry is removed, {@code false} if the entry 104 removeEntry(Principal caller, AclEntry entry) argument [all...] |
/libcore/luni/src/main/java/java/util/jar/ |
H A D | JarFile.java | 51 // The entry for the MANIFEST.MF file before it is read. 63 private JarVerifier.VerifierEntry entry; field in class:JarFile.JarFileInputStream 72 entry = e; 83 entry.write(r); 90 entry.verify(); 95 entry.verify(); 112 entry.write(buffer, byteOffset, size); 119 entry.verify(); 124 entry.verify(); 261 * such entry exist [all...] |
H A D | ManifestReader.java | 65 Attributes entry = entries.get(entryNameValue); 66 if (entry == null) { 67 entry = new Attributes(12); 71 entry.put(name, value); 82 throw new IOException("A jar verifier does not support more than one entry with the same name"); 88 entries.put(entryNameValue, entry);
|
H A D | JarVerifier.java | 160 * Invoked for each new JAR entry read operation from the input 162 * which contains the certificates used to sign the entry and its hash value 166 * the name of an entry in a JAR file which is <b>not</b> in the 172 // If no manifest is present by the time an entry is found, 180 // entry has no digest 188 Map.Entry<String, HashMap<String, Attributes>> entry = it.next(); 189 HashMap<String, Attributes> hm = entry.getValue(); 191 // Found an entry for entry name in .SF file 192 String signatureFile = entry 385 verify(Attributes attributes, String entry, byte[] data, int start, int end, boolean ignoreSecondEndline, boolean ignorable) argument [all...] |
H A D | JarInputStream.java | 90 * if not from the first entry, we will not get enough 112 * JarInputStream} or {@code null} if no manifest entry exists. 124 * @return the next JAR entry. 126 * if an error occurs while reading the entry. 174 * @return the next extracted ZIP entry. 176 * if an error occurs while reading the entry. 204 JarEntry entry = new JarEntry(name); 206 entry.setAttributes(manifest.getAttributes(name)); 208 return entry;
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | ZipFile.java | 203 * need random-access entry lookup by name, you should probably use {@link ZipInputStream} 238 * Returns the zip entry with the given name, or null if there is no such entry. 258 * @param entry 265 public InputStream getInputStream(ZipEntry entry) throws IOException { argument 267 entry = getEntry(entry.getName()); 268 if (entry == null) { 275 // We don't know the entry data's start position. All we have is the 276 // position of the entry' 495 private final ZipEntry entry; field in class:ZipFile.ZipInflaterInputStream 498 ZipInflaterInputStream(InputStream is, Inflater inf, int bsize, ZipEntry entry) argument [all...] |
/libcore/benchmarks/src/benchmarks/ |
H A D | BufferedZipFileBenchmark.java | 43 out.putNextEntry(new ZipEntry("entry.data")); 57 ZipEntry entry = zipFile.getEntry("entry.data"); 58 InputStream in = zipFile.getInputStream(entry); 70 ZipEntry entry = zipFile.getEntry("entry.data"); 71 InputStream in = new BufferedInputStream(zipFile.getInputStream(entry));
|
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | ProviderTest.java | 51 for (Entry<String,Set<String>> entry : remaining.entrySet()) { 52 entry.setValue(new HashSet<String>(entry.getValue())); 152 for (Entry<Object,Object> entry : provider.entrySet()) { 153 Object k = entry.getKey(); 154 Object v = entry.getValue(); 180 for (Entry<String,String> entry : implementations.entrySet()) { 181 String typeAndAlgorithm = entry.getKey(); 182 String className = entry.getValue(); 196 for (Entry<String,String> entry [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | CertPinManager.java | 73 // lookup the entry 74 PinListEntry entry = lookup(hostname); 77 if (entry != null) { 78 return entry.chainIsNotPinned(chain); 89 for (String entry : getPinFileEntries(pinFileContents)) { 91 PinListEntry pin = new PinListEntry(entry, certStore); 94 log("Pinlist contains a malformed pin: " + entry, e); 140 // if we hit, return the corresponding entry 148 // we have a matching CN, return that entry
|
H A D | PinListEntry.java | 31 * This class represents a single entry in the pin file. 59 public PinListEntry(String entry, TrustedCertificateStore store) throws PinEntryException { argument 60 if (entry == null) { 61 throw new NullPointerException("entry == null"); 68 String[] values = entry.split("[=,|]"); 69 // entry must have a CN, an enforcement value, and at least one pin 71 throw new PinEntryException("Received malformed pin entry"); 91 * Checks the given chain against the pin list corresponding to this entry.
|
/libcore/luni/src/main/java/java/lang/ |
H A D | ProcessBuilder.java | 192 for (Map.Entry<String, String> entry : environment.entrySet()) { 193 envArray[i++] = entry.getKey() + "=" + entry.getValue();
|
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
H A D | SAXParserImpl.java | 51 for (Map.Entry<String,Boolean> entry : initialFeatures.entrySet()) { 52 reader.setFeature(entry.getKey(), entry.getValue());
|
/libcore/luni/src/main/java/java/security/ |
H A D | KeyStoreSpi.java | 44 * the alias for the entry. 48 * specified alias is not bound to an entry. 58 * Returns the certificate chain for the entry with the given alias. 61 * the alias for the entry 62 * @return the certificate chain for the entry with the given alias, or 63 * {@code null} if the specified alias is not bound to an entry. 68 * Returns the trusted certificate for the entry with the given alias. 71 * the alias for the entry. 72 * @return the trusted certificate for the entry with the given alias, or 73 * {@code null} if the specified alias is not bound to an entry 400 engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
H A D | X509CRLImpl.java | 257 X509CRLEntry entry = (X509CRLEntry) entries.get(i); 259 if (serialN.equals(entry.getSerialNumber())) { 261 X500Principal iss = entry.getCertificateIssuer(); 267 return entry; 271 return entry; 278 X509CRLEntry entry = (X509CRLEntry) entries.get(i); 279 if (serialN.equals(entry.getSerialNumber())) { 280 return entry; 288 * Method searches for CRL entry with specified serial number. 301 X509CRLEntry entry [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | ZipInputStreamTest.java | 48 ZipEntry entry = in.getNextEntry(); 49 assertEquals(name, entry.getName()); 57 assertNull(in.getNextEntry()); // There's only one entry in the Zip files we create.
|
H A D | ZipOutputStreamTest.java | 55 ZipEntry entry = new ZipEntry(name); 56 zippedOut.putNextEntry(entry);
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DefaultHostnameVerifier.java | 101 List<?> entry = (List<?>) subjectAltName; 102 if (entry == null || entry.size() < 2) { 105 Integer altNameType = (Integer) entry.get(0); 110 String altName = (String) entry.get(1);
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
H A D | ASN1Choice.java | 271 Map.Entry<BigInteger, BigInteger> entry = it.next(); 272 BigInteger identifier = entry.getKey(); 275 identifiers[1][i] = entry.getValue().intValue();
|
/libcore/crypto/src/test/java/org/conscrypt/ |
H A D | CertPinManagerTest.java | 70 // we'll use the root as the pin for the short entry and the server as the pin for the long 112 // set up the pinEntry with a bogus entry 113 String entry = "*.google.com="; 115 new PinListEntry(entry, new TrustedCertificateStore()); 116 fail("Accepted an empty pin list entry."); 122 // set up the pinEntry with a bogus entry 123 String entry = null; 125 new PinListEntry(entry, new TrustedCertificateStore()); 126 fail("Accepted a basically wholly bogus entry."); 132 // set up the pinEntry with a bogus entry [all...] |