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

12345

/libcore/ojluni/src/main/java/java/io/
H A DExpiringCache.java77 Entry entry = entryFor(key);
78 if (entry != null) {
79 return entry.val();
88 Entry entry = entryFor(key);
89 if (entry != null) {
90 entry.setTimestamp(System.currentTimeMillis());
91 entry.setVal(val);
102 Entry entry = (Entry) map.get(key);
103 if (entry != null) {
104 long delta = System.currentTimeMillis() - entry
[all...]
H A DObjectStreamClass.java313 Object entry = null;
315 entry = ref.get();
318 if (entry == null) {
327 entry = ref.get();
329 } while (ref != null && entry == null);
330 if (entry == null) {
335 if (entry instanceof ObjectStreamClass) { // check common case first
336 return (ObjectStreamClass) entry;
338 if (entry instanceof EntryFuture) {
339 future = (EntryFuture) entry;
389 private Object entry = unset; field in class:ObjectStreamClass.EntryFuture
398 set(Object entry) argument
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DMergeCollation.java45 * Patterns are strings of the form <entry>*, where <entry> has the
47 * <pattern> := <entry>*
48 * <entry> := <separator><chars>{"/"<extension>}
94 PatternEntry entry = (PatternEntry) patterns.get(i);
95 if (entry.extension.length() != 0) {
98 extList.add(entry);
108 entry.addToBuffer(result, false, withWhiteSpace, null);
124 PatternEntry entry = (PatternEntry) patterns.get(i);
125 if (entry
302 findLastEntry(PatternEntry entry, StringBuffer excessChars) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DSimpleEntryTest.java71 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 DSimpleImmutableEntryTest.java72 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...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DLocaleObjectCache.java55 CacheEntry<K, V> entry = map.get(key);
56 if (entry != null) {
57 value = entry.get();
69 entry = map.putIfAbsent(key, newEntry);
70 if (entry == null) {
73 value = entry.get();
84 CacheEntry<K, V> entry = new CacheEntry<>(key, value, queue);
85 CacheEntry<K, V> oldEntry = map.put(key, entry);
91 CacheEntry<K, V> entry;
92 while ((entry
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DMimeTable.java117 MimeEntry entry = findByFileName(fileName);
118 if (entry != null) {
119 return entry.getType();
139 MimeEntry entry = entries.get(type);
140 return remove(entry);
143 public synchronized MimeEntry remove(MimeEntry entry) { argument
144 String[] extensionKeys = entry.getExtensions();
151 return entries.remove(entry.getType());
155 MimeEntry entry = entries.get(type);
156 if (entry
326 parse(String pair, MimeEntry entry) argument
346 fill(MimeEntry entry, String name, String value) argument
[all...]
/libcore/ojluni/src/main/java/java/security/acl/
H A DAcl.java37 * entries. Each ACL entry, of interface type AclEntry, contains a
40 * group). Additionally, each ACL entry is specified as being either
47 * <ul> <li>Each principal can have at most one positive ACL entry and
48 * one negative entry; that is, multiple positive or negative ACL
49 * entries are not allowed for any principal. Each entry specifies
53 * <li>If there is no entry for a particular principal, then the
56 * <li>If there is a positive entry that grants a principal a
57 * particular permission, and a negative entry that denies the
81 * call the ACL's <code>addEntry</code> method to add a new ACL entry
119 * Adds an ACL entry t
139 addEntry(Principal caller, AclEntry entry) argument
155 removeEntry(Principal caller, AclEntry entry) argument
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DReduceByOpTest.java54 for (Map.Entry<Boolean, Integer> entry : result.entrySet()) {
55 setContext("entry", entry);
56 Boolean key = entry.getKey();
57 assertEquals(entry.getValue(), data.stream().filter(e -> pEven.test(e) == key).reduce(0, rPlus));
64 for (Map.Entry<Integer, Integer> entry : miResult.entrySet()) {
65 setContext("entry", entry);
66 assertEquals((int) entry.getValue(), mgResult.get(entry
[all...]
/libcore/luni/src/main/java/java/net/
H A DAddressCache.java72 // 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/ojluni/src/main/java/sun/net/www/protocol/http/
H A DAuthCache.java39 * Put an entry in the cache. pkey is a string specified as follows:
59 * Get an entry from the cache based on pkey as described above, but also
60 * using a pathname (skey) and the cache must return an entry
66 * remove the entry from the cache whose pkey is specified and
67 * whose path is equal to entry.path. If entry is null then
70 public void remove (String pkey, AuthCacheValue entry); argument
H A DAuthCacheImpl.java95 public synchronized void remove (String pkey, AuthCacheValue entry) { argument
100 if (entry == null) {
107 if (entry.equals(inf)) {
/libcore/ojluni/src/main/java/sun/security/util/
H A DCache.java89 * Add an entry to the cache.
99 * Remove an entry from the cache.
290 CacheEntry<K,V> entry = (CacheEntry<K,V>)queue.poll();
291 if (entry == null) {
294 K key = entry.getKey();
296 // key is null, entry has already been removed
300 // check if the entry in the map corresponds to the expired
301 // entry. If not, readd the entry
302 if ((currentEntry != null) && (entry !
[all...]
H A DManifestEntryVerifier.java39 * This class is used to verify each entry in a jar file with its
60 /** the digests in use for a given entry*/
72 private JarEntry entry; field in class:ManifestEntryVerifier
90 * manifest for this entry, save them, and set the MessageDigest
92 * null it signifies that update/verify should ignore this entry.
94 public void setEntry(String name, JarEntry entry) argument
100 this.entry = entry;
109 /* get the headers from the manifest for this entry */
110 /* if there aren't any, we can't verify any digests for this entry */
[all...]
/libcore/benchmarks/src/benchmarks/
H A DBufferedZipFileBenchmark.java45 out.putNextEntry(new ZipEntry("entry.data"));
59 ZipEntry entry = zipFile.getEntry("entry.data");
60 InputStream in = zipFile.getInputStream(entry);
72 ZipEntry entry = zipFile.getEntry("entry.data");
73 InputStream in = new BufferedInputStream(zipFile.getInputStream(entry));
H A DZipFileBenchmark.java63 for (int entry = 0; entry < entryCount; ++entry) {
64 ZipEntry ze = new ZipEntry(Integer.toHexString(entry));
/libcore/tzdata/update/src/main/libcore/tzdata/update/
H A DConfigBundle.java70 ZipEntry entry;
71 while ((entry = zipInputStream.getNextEntry()) != null) {
72 // Validate the entry name: make sure the unpacked file will exist beneath the
74 String name = entry.getName();
79 if (entry.isDirectory()) {
82 // Create the path if there was no directory entry.
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipInputStream.java46 private ZipEntry entry; field in class:ZipInputStream
57 // one entry
75 * decode the entry names.
90 * used to decode the ZIP entry name (ignored if the
92 * encoding bit</a> of the ZIP entry's general purpose bit
108 * Reads the next ZIP file entry and positions the stream at the
109 * beginning of the entry data.
110 * @return the next ZIP file entry, or null if there are no more entries
116 if (entry != null) {
121 if ((entry
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DClassPathURLStreamHandler.java57 * entry cannot be found under the exact name presented.
67 throw new RuntimeException("Invalid entry name", e);
74 * Returns true if an entry with the specified name exists and is stored (not compressed),
78 ZipEntry entry = jarFile.getEntry(entryName);
79 return entry != null && entry.getMethod() == ZipEntry.STORED;
93 * Finds an entry with the specified name in the {@code jarFile}. If an exact match isn't found it
98 ZipEntry entry = jarFile.getEntry(entryName);
99 if (entry == null && !entryName.endsWith("/") ) {
100 entry
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DHashtable.java56 * increase the time cost to look up an entry (which is reflected in most
467 // Creates the new entry.
559 * entry is rendered as the key, an equals sign <tt>=</tt>, and the
661 * <tt>setValue</tt> operation on a map entry returned by the
689 Map.Entry entry = (Map.Entry)o;
690 Object key = entry.getKey();
696 if (e.hash==hash && e.equals(entry))
704 Map.Entry<K,V> entry = (Map.Entry<K,V>) o;
705 K key = entry.getKey();
712 if (e.hash==hash && e.equals(entry)) {
1127 HashtableEntry<K,V> entry = null; field in class:Hashtable.Enumerator
[all...]
/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/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
H A DMapTest.java90 for (final Map.Entry<Integer, String> entry : map.entrySet()) {
91 assertEquals(entry.getValue(), EXPECTED.get(entry.getKey()).toUpperCase());
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DZipInputStreamTest.java61 ZipEntry entry = in.getNextEntry();
62 assertEquals(name, entry.getName());
70 assertNull(in.getNextEntry()); // There's only one entry in the Zip files we create.
83 ZipEntry entry = in.getNextEntry();
84 assertNull("An empty zip has no entries", entry);
/libcore/ojluni/src/main/java/java/security/
H A DKeyStoreSpi.java67 * or does not identify a key-related entry.
95 * <p> If the given alias name identifies an entry
99 * then the trusted certificate contained in that entry is returned.
101 * <p> If the given alias name identifies an entry
105 * then the first element of the certificate chain in that entry
116 * Returns the creation date of the entry identified by the given alias.
120 * @return the creation date of this entry, or null if the given alias does
180 * <p> If the given alias identifies an existing entry
184 * the trusted certificate in the existing entry
191 * not identify an entry containin
503 engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DIndexedCollectionCertStore.java274 Object entry = certSubjects.get(subject);
275 if (entry == null) {
278 if (entry instanceof X509Certificate) {
279 X509Certificate x509Entry = (X509Certificate)entry;
288 List<X509Certificate> list = (List<X509Certificate>)entry;
373 Object entry = crlIssuers.get(issuer);
374 if (entry == null) {
376 } else if (entry instanceof X509CRL) {
377 X509CRL crl = (X509CRL)entry;
384 List<X509CRL> list = (List<X509CRL>)entry;
[all...]

Completed in 573 milliseconds

12345