Searched refs:entry (Results 1 - 25 of 73) sorted by relevance

123

/libcore/luni/src/main/java/java/util/
H A DWeakHashMap.java67 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
318 Entry<?, ?> entry = getEntry(((Map.Entry<?, ?>) object)
320 if (entry != null) {
321 Object key = entry
[all...]
H A DMapEntry.java29 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 DAbstractMap.java30 * 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 DTreeMap.java107 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 DEnumMap.java71 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/libcore/io/
H A DDiskLruCache.java48 * entry has a string key and a fixed number of values. Values are byte
64 * <p>Clients call {@link #edit} to create or update the values of an entry. An
65 * entry may have only one editor at one time; if a value is not available to be
68 * <li>When an entry is being <strong>created</strong> it is necessary to
71 * <li>When an entry is being <strong>edited</strong>, it is not necessary
79 * <p>Clients call {@link #get} to read a snapshot of an entry. The read will
122 * cache entry. Each line contains space-separated values: a state, a key,
124 * o DIRTY lines track that an entry is actively being created or updated.
128 * o CLEAN lines track a cache entry that has been successfully published
153 * To differentiate between old and current snapshots, each entry i
666 private final Entry entry; field in class:DiskLruCache.Editor
670 Editor(Entry entry) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DAddressCache.java44 // 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 DAcl.java77 * 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 DJarFile.java51 // 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(buf, off, size);
119 entry.verify();
124 entry.verify();
261 * such entry exist
[all...]
H A DInitManifest.java64 Attributes entry = entries.get(entryNameValue);
65 if (entry == null) {
66 entry = new Attributes(12);
70 entry.put(name, value);
81 throw new IOException("A jar verifier does not support more than one entry with the same name");
87 entries.put(entryNameValue, entry);
H A DJarVerifier.java150 * Invoked for each new JAR entry read operation from the input
152 * which contains the certificates used to sign the entry and its hash value
156 * the name of an entry in a JAR file which is <b>not</b> in the
162 // If no manifest is present by the time an entry is found,
170 // entry has no digest
178 Map.Entry<String, HashMap<String, Attributes>> entry = it.next();
179 HashMap<String, Attributes> hm = entry.getValue();
181 // Found an entry for entry name in .SF file
182 String signatureFile = entry
379 verify(Attributes attributes, String entry, byte[] data, int start, int end, boolean ignoreSecondEndline, boolean ignorable) argument
[all...]
H A DJarInputStream.java90 * 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.
181 * @return the next extracted ZIP entry.
183 * if an error occurs while reading the entry.
211 JarEntry entry = new JarEntry(name);
213 entry.setAttributes(manifest.getAttributes(name));
215 return entry;
/libcore/luni/src/main/java/java/util/zip/
H A DZipFile.java215 * Gets the ZIP entry with the specified name from this {@code ZipFile}.
218 * the name of the entry in the ZIP file.
219 * @return a {@code ZipEntry} or {@code null} if the entry name does not
239 * @param entry
246 public InputStream getInputStream(ZipEntry entry) throws IOException { argument
248 entry = getEntry(entry.getName());
249 if (entry == null) {
256 // We don't know the entry data's start position. All we have is the
257 // position of the entry'
426 ZipEntry entry; field in class:ZipFile.ZipInflaterInputStream
429 ZipInflaterInputStream(InputStream is, Inflater inf, int bsize, ZipEntry entry) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DCertPinManager.java74 // lookup the entry
75 PinListEntry entry = lookup(hostname);
78 if (entry != null) {
79 return entry.chainIsNotPinned(chain);
90 for (String entry : getPinFileEntries(pinFileContents)) {
92 PinListEntry pin = new PinListEntry(entry, certStore);
95 log("Pinlist contains a malformed pin: " + entry, e);
141 // if we hit, return the corresponding entry
149 // we have a matching CN, return that entry
/libcore/luni/src/main/java/libcore/net/http/
H A DHttpResponseCache.java96 Entry entry;
102 entry = new Entry(snapshot.getInputStream(ENTRY_METADATA));
108 if (!entry.matches(uri, requestMethod, requestHeaders)) {
113 return entry.isHttps()
114 ? new EntrySecureCacheResponse(entry, snapshot)
115 : new EntryCacheResponse(entry, snapshot);
158 Entry entry = new Entry(uri, varyHeaders, httpConnection);
165 entry.writeTo(editor);
185 Entry entry = new Entry(uri, varyHeaders, httpConnection);
193 entry
520 private final Entry entry; field in class:HttpResponseCache.EntryCacheResponse
524 EntryCacheResponse(Entry entry, DiskLruCache.Snapshot snapshot) argument
540 private final Entry entry; field in class:HttpResponseCache.EntrySecureCacheResponse
544 EntrySecureCacheResponse(Entry entry, DiskLruCache.Snapshot snapshot) argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DZipEntryTest.java56 ZipEntry entry;
58 while ((entry = in.getNextEntry()) != null) {
59 assertTrue(entry.getName(), filenames.contains(entry.getName()));
H A DZipFileTest.java75 ZipEntry entry = new ZipEntry("random");
76 out.putNextEntry(entry);
120 ZipEntry entry = new ZipEntry(Integer.toHexString(i));
121 out.putNextEntry(entry);
H A DZipInputStreamTest.java48 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 DZipOutputStreamTest.java55 ZipEntry entry = new ZipEntry(name);
56 zippedOut.putNextEntry(entry);
/libcore/luni/src/test/java/libcore/java/security/
H A DProviderTest.java51 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/luni/src/main/java/java/lang/
H A DProcessBuilder.java192 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 DSAXParserImpl.java51 for (Map.Entry<String,Boolean> entry : initialFeatures.entrySet()) {
52 reader.setFeature(entry.getKey(), entry.getValue());
/libcore/luni/src/main/java/java/security/
H A DKeyStoreSpi.java44 * 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 DX509CRLImpl.java257 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/main/java/javax/net/ssl/
H A DDefaultHostnameVerifier.java100 List<?> entry = (List<?>) subjectAltName;
101 if (entry == null || entry.size() < 2) {
104 Integer altNameType = (Integer) entry.get(0);
109 String altName = (String) entry.get(1);

Completed in 246 milliseconds

123