/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | SimpleEntryTest.java | 71 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); 72 assertEquals(1, entry.getKey()); 73 entry = new AbstractMap.SimpleEntry(null, null); 74 assertNull(entry.getKey()); 78 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); 79 assertEquals("test", entry.getValue()); 80 entry = new AbstractMap.SimpleEntry(null, null); 81 assertNull(entry.getValue()); 85 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); 86 assertEquals("test", entry [all...] |
H A D | SimpleImmutableEntryTest.java | 72 Entry entry = new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); 73 assertEquals(1, entry.getKey()); 74 entry = new AbstractMap.SimpleImmutableEntry(null, null); 75 assertNull(entry.getKey()); 79 Entry entry = new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); 80 assertEquals("test", entry.getValue()); 81 entry = new AbstractMap.SimpleImmutableEntry(null, null); 82 assertNull(entry.getValue()); 86 Entry entry = new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); 87 assertEquals("test", entry [all...] |
H A D | TreeMapExtendTest.java | 2174 Entry entry; 2181 entry = decendingMap.higherEntry(value.toString()); 2182 assertEquals(value - 1, entry.getValue()); 2186 entry = decendingMap.higherEntry(value.toString()); 2187 assertEquals(108, entry.getValue()); 2192 entry = decendingTailMap.higherEntry(value.toString()); 2193 assertEquals(103, entry.getValue()); 2201 entry = decendingMap.higherEntry(value.toString()); 2202 assertEquals(value - 1, entry.getValue()); 2206 entry [all...] |
/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/net/ |
H A D | AddressCache.java | 72 // Either an InetAddress[] for a positive entry, 73 // or a String detail message for a negative entry. 103 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); 104 // Do we have a valid cache entry? 105 if (entry != null && entry.expiryNanos >= System.nanoTime()) { 106 return entry.value; 123 * negative cache entry.)
|
/libcore/luni/src/main/java/java/util/jar/ |
H A D | JarFile.java | 53 // The entry for the MANIFEST.MF file before the first call to getManifest(). 61 private final JarVerifier.VerifierEntry entry; field in class:JarFile.JarFileInputStream 68 entry = e; 81 entry.write(r); 88 entry.verify(); 93 entry.verify(); 110 entry.write(buffer, byteOffset, size); 117 entry.verify(); 122 entry.verify(); 268 * 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 | StrictJarFile.java | 92 * to this entry. 108 * to this entry. 144 JarVerifier.VerifierEntry entry = verifier.initEntry(ze.getName()); 145 if (entry == null) { 149 return new JarFile.JarFileInputStream(is, ze.getSize(), entry); 220 final ZipEntry entry = entryIterator.next(); 221 metaEntries.put(entry.getName(), Streams.readFully(getInputStream(entry)));
|
H A D | JarVerifier.java | 162 * Invoked for each new JAR entry read operation from the input 164 * which contains the certificates used to sign the entry and its hash value 168 * the name of an entry in a JAR file which is <b>not</b> in the 174 // If no manifest is present by the time an entry is found, 182 // entry has no digest 190 Map.Entry<String, HashMap<String, Attributes>> entry = it.next(); 191 HashMap<String, Attributes> hm = entry.getValue(); 193 // Found an entry for entry name in .SF file 194 String signatureFile = entry 369 verify(Attributes attributes, String entry, byte[] data, int start, int end, boolean ignoreSecondEndline, boolean ignorable) argument [all...] |
H A D | JarEntry.java | 63 * Creates a new {@code JarEntry} using the values obtained from entry. 65 * @param entry 68 public JarEntry(ZipEntry entry) { argument 69 this(entry, null); 72 JarEntry(ZipEntry entry, JarFile parentJar) { argument 73 super(entry); 93 * Returns the {@code Attributes} object associated with this entry or 96 * @return the {@code Attributes} for this entry. 114 * entry or {@code null} if none exists. Make sure that the everything is 120 * private keys that made the signatures on this entry, se [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
H A D | ZipFile.java | 113 * <p>UTF-8 is used to decode all comments and entry names in the file. 125 * <p>UTF-8 is used to decode all comments and entry names in the file. 136 * <p>UTF-8 is used to decode all comments and entry names in the file. 224 * need random-access entry lookup by name, you should probably use {@link ZipInputStream} 259 * Returns the zip entry with the given name, or null if there is no such entry. 279 * @param entry 286 public InputStream getInputStream(ZipEntry entry) throws IOException { argument 288 entry = getEntry(entry 527 private final ZipEntry entry; field in class:ZipFile.ZipInflaterInputStream 530 ZipInflaterInputStream(InputStream is, Inflater inf, int bsize, ZipEntry entry) argument [all...] |
/libcore/luni/src/main/native/ |
H A D | java_util_jar_StrictJarFile.cpp | 56 static jobject newZipEntry(JNIEnv* env, const ZipEntry& entry, const jobject entryName, argument 66 static_cast<jlong>(entry.crc32), 67 static_cast<jlong>(entry.compressed_length), 68 static_cast<jlong>(entry.uncompressed_length), 69 static_cast<jint>(entry.method), 75 static_cast<jlong>(entry.offset)); 78 static jobject newZipEntry(JNIEnv* env, const ZipEntry& entry, const char* name, argument 80 return newZipEntry(env, entry, constructString(env, name, nameLength), nameLength);
|
/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/util/zip/ |
H A D | ZipInputStreamTest.java | 57 ZipEntry entry = in.getNextEntry(); 58 assertEquals(name, entry.getName()); 66 assertNull(in.getNextEntry()); // There's only one entry in the Zip files we create. 79 ZipEntry entry = in.getNextEntry(); 80 assertNull("An empty zip has no entries", 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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
H A D | JarFileTest.java | 332 assertEquals("Error in returned entry", 311, jarFile.getEntry( 369 assertEquals("Error in returned entry", 311, jarFile.getJarEntry( 405 assertEquals("Error in returned entry", 311, jarFile.getEntry( 458 JarEntry entry = e.nextElement(); 459 InputStream is = jarFile.getInputStream(entry); 462 Certificate[] certs = entry.getCertificates(); 524 ZipEntry entry = new ZipEntry("META-INF/"); 525 entry.setSize(0); 526 jarOut.putNextEntry(entry); 527 entry [all...] |
/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();
|