/libcore/ojluni/src/main/java/java/text/ |
D | MergeCollation.java | 94 PatternEntry entry = patterns.get(i); in getPattern() local 95 if (entry.extension.length() != 0) { in getPattern() 98 extList.add(entry); in getPattern() 108 entry.addToBuffer(result, false, withWhiteSpace, null); in getPattern() 124 PatternEntry entry = patterns.get(i); in findLastWithNoExtension() local 125 if (entry.extension.length() == 0) { in findLastWithNoExtension() 126 return entry; in findLastWithNoExtension() 152 PatternEntry entry = patterns.get(i); in emitPattern() local 153 if (entry != null) { in emitPattern() 154 entry.addToBuffer(result, true, withWhiteSpace, null); in emitPattern() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | SimpleEntryTest.java | 71 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); in test_SimpleEntry_getKey() local 72 assertEquals(1, entry.getKey()); in test_SimpleEntry_getKey() 73 entry = new AbstractMap.SimpleEntry(null, null); in test_SimpleEntry_getKey() 74 assertNull(entry.getKey()); in test_SimpleEntry_getKey() 78 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); in test_SimpleEntry_getValue() local 79 assertEquals("test", entry.getValue()); in test_SimpleEntry_getValue() 80 entry = new AbstractMap.SimpleEntry(null, null); in test_SimpleEntry_getValue() 81 assertNull(entry.getValue()); in test_SimpleEntry_getValue() 85 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); in test_SimpleEntry_setValue() local 86 assertEquals("test", entry.getValue()); in test_SimpleEntry_setValue() [all …]
|
D | SimpleImmutableEntryTest.java | 72 Entry entry = new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); in test_SimpleImmutableEntry_getKey() local 73 assertEquals(1, entry.getKey()); in test_SimpleImmutableEntry_getKey() 74 entry = new AbstractMap.SimpleImmutableEntry(null, null); in test_SimpleImmutableEntry_getKey() 75 assertNull(entry.getKey()); in test_SimpleImmutableEntry_getKey() 79 Entry entry = new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); in test_SimpleImmutableEntry_getValue() local 80 assertEquals("test", entry.getValue()); in test_SimpleImmutableEntry_getValue() 81 entry = new AbstractMap.SimpleImmutableEntry(null, null); in test_SimpleImmutableEntry_getValue() 82 assertNull(entry.getValue()); in test_SimpleImmutableEntry_getValue() 86 Entry entry = new AbstractMap.SimpleImmutableEntry<Integer, String>(1, "test"); in test_SimpleImmutableEntry_setValue() local 87 assertEquals("test", entry.getValue()); in test_SimpleImmutableEntry_setValue() [all …]
|
D | TreeMapExtendTest.java | 2174 Entry entry; in test_DescendingSubMap_higherEntry() local 2181 entry = decendingMap.higherEntry(value.toString()); in test_DescendingSubMap_higherEntry() 2182 assertEquals(value - 1, entry.getValue()); in test_DescendingSubMap_higherEntry() 2186 entry = decendingMap.higherEntry(value.toString()); in test_DescendingSubMap_higherEntry() 2187 assertEquals(108, entry.getValue()); in test_DescendingSubMap_higherEntry() 2192 entry = decendingTailMap.higherEntry(value.toString()); in test_DescendingSubMap_higherEntry() 2193 assertEquals(103, entry.getValue()); in test_DescendingSubMap_higherEntry() 2201 entry = decendingMap.higherEntry(value.toString()); in test_DescendingSubMap_higherEntry() 2202 assertEquals(value - 1, entry.getValue()); in test_DescendingSubMap_higherEntry() 2206 entry = decendingMap.higherEntry(value.toString()); in test_DescendingSubMap_higherEntry() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileStore.java | 50 private final UnixMountEntry entry; field in UnixFileStore 65 this.entry = findMountEntry(); in UnixFileStore() 68 UnixFileStore(UnixFileSystem fs, UnixMountEntry entry) throws IOException { in UnixFileStore() argument 69 this.file = new UnixPath(fs, entry.dir()); in UnixFileStore() 70 this.dev = (entry.dev() == 0L) ? devFor(this.file) : entry.dev(); in UnixFileStore() 71 this.entry = entry; in UnixFileStore() 87 UnixMountEntry entry() { in entry() method in UnixFileStore 88 return entry; in entry() 93 return entry.name(); in name() 98 return entry.fstype(); in type() [all …]
|
D | LinuxFileStore.java | 47 LinuxFileStore(UnixFileSystem fs, UnixMountEntry entry) throws IOException { in LinuxFileStore() argument 48 super(fs, entry); in LinuxFileStore() 86 for (UnixMountEntry entry: fs.getMountEntries("/proc/mounts")) { in findMountEntry() 87 if (Arrays.equals(dir, entry.dir())) in findMountEntry() 88 return entry; in findMountEntry() 133 if ((entry().hasOption("user_xattr"))) in supportsFileAttributeView() 138 if (entry().fstype().equals("ext3") || entry().fstype().equals("ext4")) in supportsFileAttributeView() 143 UnixPath dir = new UnixPath(file().getFileSystem(), entry().dir()); in supportsFileAttributeView() 150 if (type == PosixFileAttributeView.class && entry().fstype().equals("vfat")) in supportsFileAttributeView()
|
D | PollingWatchService.java | 181 for (Map.Entry<Object,PollingWatchKey> entry: map.entrySet()) { 182 PollingWatchKey watchKey = entry.getValue(); 257 for (Path entry: stream) { 260 Files.getLastModifiedTime(entry, LinkOption.NOFOLLOW_LINKS).toMillis(); 261 entries.put(entry.getFileName(), new CacheEntry(lastModified, tickCount)); 336 for (Path entry: stream) { 340 Files.getLastModifiedTime(entry, LinkOption.NOFOLLOW_LINKS).toMillis(); 349 CacheEntry e = entries.get(entry.getFileName()); 352 entries.put(entry.getFileName(), 357 signalEvent(StandardWatchEventKinds.ENTRY_CREATE, entry.getFileName()); [all …]
|
D | LinuxFileSystem.java | 84 UnixMountEntry entry = new UnixMountEntry(); in getMountEntries() local 85 int res = getmntent(fp, entry); in getMountEntries() 88 entries.add(entry); in getMountEntries() 113 FileStore getFileStore(UnixMountEntry entry) throws IOException { in getFileStore() argument 114 return new LinuxFileStore(this, entry); in getFileStore()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ExpiringCache.java | 83 Entry entry = entryFor(key); in get() local 84 if (entry != null) { in get() 85 return entry.val(); in get() 94 Entry entry = entryFor(key); in put() local 95 if (entry != null) { in put() 96 entry.setTimestamp(System.currentTimeMillis()); in put() 97 entry.setVal(val); in put() 108 Entry entry = map.get(key); in entryFor() local 109 if (entry != null) { in entryFor() 110 long delta = System.currentTimeMillis() - entry.timestamp(); in entryFor() [all …]
|
D | ObjectStreamClass.java | 336 Object entry = null; in lookup() local 338 entry = ref.get(); in lookup() 341 if (entry == null) { in lookup() 350 entry = ref.get(); in lookup() 352 } while (ref != null && entry == null); in lookup() 353 if (entry == null) { in lookup() 358 if (entry instanceof ObjectStreamClass) { // check common case first in lookup() 359 return (ObjectStreamClass) entry; in lookup() 361 if (entry instanceof EntryFuture) { in lookup() 362 future = (EntryFuture) entry; in lookup() [all …]
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleObjectCache.java | 55 CacheEntry<K, V> entry = map.get(key); in get() local 56 if (entry != null) { in get() 57 value = entry.get(); in get() 71 entry = map.putIfAbsent(key, newEntry); in get() 72 if (entry == null) { in get() 75 value = entry.get(); in get() 86 CacheEntry<K, V> entry = new CacheEntry<>(key, value, queue); in put() local 87 CacheEntry<K, V> oldEntry = map.put(key, entry); in put() 93 CacheEntry<K, V> entry; in cleanStaleEntries() local 94 while ((entry = (CacheEntry<K, V>)queue.poll()) != null) { in cleanStaleEntries() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | FileTreeWalker.java | 272 private Event visit(Path entry, boolean ignoreSecurityException, boolean canUseCached) { in visit() argument 276 attrs = getAttributes(entry, canUseCached); in visit() 278 return new Event(EventType.ENTRY, entry, ioe); in visit() 288 return new Event(EventType.ENTRY, entry, attrs); in visit() 292 if (followLinks && wouldLoop(entry, attrs.fileKey())) { in visit() 293 return new Event(EventType.ENTRY, entry, in visit() 294 new FileSystemLoopException(entry.toString())); in visit() 300 stream = Files.newDirectoryStream(entry); in visit() 302 return new Event(EventType.ENTRY, entry, ioe); in visit() 310 stack.push(new DirectoryNode(entry, attrs.fileKey(), stream)); in visit() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 278 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator() 279 int era = entry.getValue(); in getTextIterator() 287 list.add(createEntry(entry.getKey(), (long)era)); in getTextIterator() 291 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator() 292 list.add(createEntry(entry.getKey(), (long)(entry.getValue() + 1))); in getTextIterator() 296 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator() 297 list.add(createEntry(entry.getKey(), (long)toWeekDay(entry.getValue()))); in getTextIterator() 301 for (Map.Entry<String, Integer> entry : map.entrySet()) { in getTextIterator() 302 list.add(createEntry(entry.getKey(), (long)entry.getValue())); in getTextIterator() 340 for (Entry<String, Integer> entry : displayNames.entrySet()) { in createStore() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Hashtable.java | 469 HashtableEntry<K,V> entry = (HashtableEntry<K,V>)tab[index]; in put() local 470 for(; entry != null ; entry = entry.next) { in put() 471 if ((entry.hash == hash) && entry.key.equals(key)) { in put() 472 V old = entry.value; in put() 473 entry.value = value; in put() 699 Map.Entry<?,?> entry = (Map.Entry<?,?>)o; in contains() 700 Object key = entry.getKey(); in contains() 706 if (e.hash==hash && e.equals(entry)) in contains() 714 Map.Entry<?,?> entry = (Map.Entry<?,?>) o; in remove() 715 Object key = entry.getKey(); in remove() [all …]
|
D | XMLUtils.java | 122 Element entry = (Element)entries.item(i); in importProperties() local 123 if (entry.hasAttribute("key")) { in importProperties() 124 Node n = entry.getFirstChild(); in importProperties() 126 props.setProperty(entry.getAttribute("key"), val); in importProperties() 154 Element entry = (Element)properties.appendChild( in save() local 156 entry.setAttribute("key", key); in save() 157 entry.appendChild(doc.createTextNode(props.getProperty(key))); in save()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ReduceByOpTest.java | 54 for (Map.Entry<Boolean, Integer> entry : result.entrySet()) { in testOps() 55 setContext("entry", entry); in testOps() 56 Boolean key = entry.getKey(); in testOps() 57 … assertEquals(entry.getValue(), data.stream().filter(e -> pEven.test(e) == key).reduce(0, rPlus)); in testOps() 64 for (Map.Entry<Integer, Integer> entry : miResult.entrySet()) { in testOps() 65 setContext("entry", entry); in testOps() 66 assertEquals((int) entry.getValue(), mgResult.get(entry.getKey()).size()); in testOps()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | Cache.java | 290 CacheEntry<K,V> entry = (CacheEntry<K,V>)queue.poll(); in emptyQueue() local 291 if (entry == null) { in emptyQueue() 294 K key = entry.getKey(); in emptyQueue() 302 if ((currentEntry != null) && (entry != currentEntry)) { in emptyQueue() 327 CacheEntry<K,V> entry = t.next(); in expungeExpiredEntries() local 328 if (entry.isValid(time) == false) { in expungeExpiredEntries() 350 for (CacheEntry<K,V> entry : cacheMap.values()) { in clear() 351 entry.invalidate(); in clear() 387 CacheEntry<K,V> entry = cacheMap.get(key); in get() local 388 if (entry == null) { in get() [all …]
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipInputStream.java | 47 private ZipEntry entry; field in ZipInputStream 119 if (entry != null) { in getNextEntry() 124 if ((entry = readLOC()) == null) { in getNextEntry() 132 if (entry.method == STORED || entry.method == DEFLATED) { in getNextEntry() 133 remaining = entry.size; in getNextEntry() 136 return entry; in getNextEntry() 171 if (entryEOF || (entry != null && remaining == 0)) { in available() 203 if (entry == null) { in read() 206 switch (entry.method) { in read() 210 readEnd(entry); in read() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyStoreSpi.java | 513 public void engineSetEntry(String alias, KeyStore.Entry entry, in engineSetEntry() argument 530 if (entry instanceof KeyStore.TrustedCertificateEntry) { in engineSetEntry() 532 (KeyStore.TrustedCertificateEntry)entry; in engineSetEntry() 535 } else if (entry instanceof KeyStore.PrivateKeyEntry) { in engineSetEntry() 538 ((KeyStore.PrivateKeyEntry)entry).getPrivateKey(), in engineSetEntry() 540 ((KeyStore.PrivateKeyEntry)entry).getCertificateChain()); in engineSetEntry() 542 } else if (entry instanceof KeyStore.SecretKeyEntry) { in engineSetEntry() 545 ((KeyStore.SecretKeyEntry)entry).getSecretKey(), in engineSetEntry() 553 ("unsupported entry type: " + entry.getClass().getName()); in engineSetEntry()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipOutputStreamTest.java | 67 ZipEntry entry = new ZipEntry(name); in zip() local 68 zippedOut.putNextEntry(entry); in zip() 128 ZipEntry entry = zis.getNextEntry(); in testPutNextEntryUsingCurrentTime() local 129 assertEquals("name", entry.getName()); in testPutNextEntryUsingCurrentTime() 130 assertTrue(timeBeforeZip <= entry.getTime()); in testPutNextEntryUsingCurrentTime() 131 assertTrue(timeAfterZip >= entry.getTime()); in testPutNextEntryUsingCurrentTime()
|
D | ZipInputStreamTest.java | 56 ZipEntry entry = in.getNextEntry(); in unzip() local 57 assertEquals(name, entry.getName()); in unzip() 78 ZipEntry entry = in.getNextEntry(); in testReadEmpty() local 79 assertNull("An empty zip has no entries", entry); in testReadEmpty() 151 ZipEntry entry = new ZipEntry(name); in zip() local 152 zippedOut.putNextEntry(entry); in zip()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarFileTest.java | 427 ZipEntry entry = new ZipEntry("META-INF/"); in test_getManifest() local 428 entry.setSize(0); in test_getManifest() 429 jarOut.putNextEntry(entry); in test_getManifest() 430 entry = new ZipEntry(JarFile.MANIFEST_NAME); in test_getManifest() 431 entry.setSize(manBytes.length); in test_getManifest() 432 jarOut.putNextEntry(entry); in test_getManifest() 434 entry = new ZipEntry("myfile"); in test_getManifest() 435 entry.setSize(1); in test_getManifest() 436 jarOut.putNextEntry(entry); in test_getManifest() 487 JarEntry entry = new JarEntry(entryName3); in test_getInputStreamLjava_util_jar_JarEntry_subtest0() local [all …]
|
/libcore/luni/src/main/java/java/net/ |
D | AddressCache.java | 109 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); in get() local 111 if (entry != null && entry.expiryNanos >= System.nanoTime()) { in get() 112 return entry.value; in get()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipOutputStreamTest.java | 310 for (ZipEntry entry : entries) { in test_timeSerializationRounding() 311 zos.putNextEntry(entry); in test_timeSerializationRounding() 387 for (ZipEntry entry : entries) { in test_exttSupport() 388 zos.putNextEntry(entry); in test_exttSupport() 395 for (ZipEntry entry : entries) { in test_exttSupport() 397 assertEquals(entry.getName(), readEntry.getName()); in test_exttSupport() 398 assertEquals(entry.getName(), entry.getTime(), readEntry.getTime()); in test_exttSupport() 399 … assertEquals(entry.getName(), entry.getLastModifiedTime(), readEntry.getLastModifiedTime()); in test_exttSupport() 400 assertEquals(entry.getLastAccessTime(), readEntry.getLastAccessTime()); in test_exttSupport() 401 assertEquals(entry.getCreationTime(), readEntry.getCreationTime()); in test_exttSupport()
|
/libcore/benchmarks/src/benchmarks/ |
D | ZipFileBenchmark.java | 63 for (int entry = 0; entry < entryCount; ++entry) { in writeEntries() 64 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries()
|