/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicFileChooserUI.java | 193 public void installComponents(JFileChooser fc) { argument 196 public void uninstallComponents(JFileChooser fc) { argument 199 protected void installListeners(JFileChooser fc) { argument 200 propertyChangeListener = createPropertyChangeListener(fc); 202 fc.addPropertyChangeListener(propertyChangeListener); 204 fc.addPropertyChangeListener(getModel()); 208 SwingUtilities.replaceUIInputMap(fc, JComponent. 211 SwingUtilities.replaceUIActionMap(fc, actionMap); 244 protected void uninstallListeners(JFileChooser fc) { argument 246 fc 255 installDefaults(JFileChooser fc) argument 267 installIcons(JFileChooser fc) argument 282 installStrings(JFileChooser fc) argument 318 uninstallDefaults(JFileChooser fc) argument 326 uninstallIcons(JFileChooser fc) argument 341 uninstallStrings(JFileChooser fc) argument 368 createPropertyChangeListener(JFileChooser fc) argument 386 rescanCurrentDirectory(JFileChooser fc) argument 389 ensureFileIsVisible(JFileChooser fc, File f) argument 400 getApproveButton(JFileChooser fc) argument 404 getDefaultButton(JFileChooser fc) argument 408 getApproveButtonToolTipText(JFileChooser fc) argument 438 createDoubleClickListener(JFileChooser fc, JList list) argument 443 createListSelectionListener(JFileChooser fc) argument 661 getAcceptAllFileFilter(JFileChooser fc) argument 666 getFileView(JFileChooser fc) argument 674 getDialogTitle(JFileChooser fc) argument 688 getApproveButtonMnemonic(JFileChooser fc) argument 701 getApproveButtonText(JFileChooser fc) argument [all...] |
/openjdk7/langtools/test/tools/javac/versions/ |
H A D | CheckClassFileVersion.java | 33 FileChannel fc = new FileInputStream(fn).getChannel(); 36 if (fc.read(bb) < 0) 43 fc.close();
|
/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | Size.java | 77 FileChannel fc = raf.getChannel(); 78 fc.size(); 79 fc.map(FileChannel.MapMode.READ_WRITE, testSize, 10); 80 if (fc.size() != testSize + 10) 81 throw new RuntimeException("Size failed " + fc.size()); 82 fc.close();
|
H A D | AtomicAppend.java | 64 static void write(FileChannel fc, int b) throws IOException { argument 71 fc.write(bufs); 73 fc.write(buf); 88 try (FileChannel fc = newFileChannel(file)) { 89 for (int j=0; j<writes; j++) write(fc, 'x');
|
H A D | ReadToLimit.java | 44 FileChannel fc = fis.getChannel(); 45 long bytesRead = fc.read(dstBuffers); 49 fc.close();
|
H A D | ReleaseOnCloseDeadlock.java | 54 FileChannel fc = FileChannel.open(file, READ, WRITE); 56 locks[i] = fc.lock(i, 1, true); 58 tryToDeadlock(fc, locks);
|
H A D | ExpandingMap.java | 54 FileChannel fc = f.getChannel(); 59 buffers[0] = fc.map(FileChannel.MapMode.READ_WRITE, 0, initialSize); 77 buffers[currentBuffer] = fc.map(FileChannel.MapMode.READ_WRITE, 94 buffers[currentBuffer] = fc.map(FileChannel.MapMode.READ_WRITE, 107 fc.close();
|
H A D | Transfer.java | 131 FileChannel fc = raf.getChannel(); 132 long oldPosition = fc.position(); 134 long bytesWritten = fc.transferFrom(source, 0, size); 135 fc.force(true); 139 if (fc.position() != oldPosition) 142 if (fc.size() != size) 143 throw new RuntimeException("Unexpected sink size "+ fc.size()); 145 fc.close(); 238 FileChannel fc = raf.getChannel(); 239 fc [all...] |
/openjdk7/jdk/test/sun/nio/ch/ |
H A D | TempBuffer.java | 57 FileChannel fc = raf.getChannel(); 59 fc.transferTo(0, SIZE, Channels.newChannel(out)); 61 fc.close(); 76 FileChannel fc = raf.getChannel(); 79 fc.transferFrom(Channels.newChannel(in), 0, SIZE); 81 fc.close();
|
/openjdk7/langtools/test/tools/javac/6330997/ |
H A D | T6330997.java | 73 FileChannel fc = cls.getChannel(); 75 fc.read(rbuf, 6); 78 fc.write(wbuf, 6); 79 fc.force(false);
|
/openjdk7/jdk/test/sun/misc/IoTrace/ |
H A D | IoTraceFileChannelReadWrite.java | 40 try (FileChannel fc = FileChannel.open(f.toPath(), 45 fc.write(bb); 52 try (FileChannel fc = FileChannel.open(f.toPath(), 55 fc.read(bb);
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/ |
H A D | PerfDataBuffer.java | 76 FileChannel fc = new RandomAccessFile(f, "r").getChannel(); 77 ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0L, 78 (int)fc.size()); 79 fc.close();
|
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | VectorParams.java | 113 FileChannel fc = raf.getChannel(); 114 tryBadWrite(fc, bufs, 0, -1); 115 tryBadWrite(fc, bufs, -1, 0); 116 tryBadWrite(fc, bufs, 0, 1000); 117 tryBadWrite(fc, bufs, 1000, 1); 118 tryBadRead(fc, bufs, 0, -1); 119 tryBadRead(fc, bufs, -1, 0); 120 tryBadRead(fc, bufs, 0, 1000); 121 tryBadRead(fc, bufs, 1000, 1); 122 fc [all...] |
/openjdk7/jdk/test/java/util/concurrent/forkjoin/ |
H A D | Integrate.java | 157 double fc = (c * c + 1.0) * c; 159 double al = (fl + fc) * hh; 160 double ar = (fr + fc) * hh; 165 return recEval(c, r, fc, fr, ar) + recEval(l, c, fl, fc, al); 198 double fc = (c * c + 1.0) * c; 200 double al = (fl + fc) * hh; 201 double ar = (fr + fc) * hh; 207 ar = recEval(c, r, fc, fr, ar); 212 return ar + recEval(l, c, fl, fc, a [all...] |
/openjdk7/hotspot/src/share/vm/memory/ |
H A D | freeList.cpp | 57 FreeList<Chunk>::FreeList(Chunk* fc) : argument 58 _head(fc), _tail(fc) 63 _size = fc->size(); 90 Chunk* fc = head(); local 91 if (fc != NULL) { 92 Chunk* nextFC = fc->next(); 94 // The chunk fc being removed has a "next". Set the "next" to the 95 // "prev" of fc. 105 return fc; [all...] |
/openjdk7/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/ |
H A D | compactibleFreeListSpace.cpp | 125 FreeChunk* fc = _dictionary->get_chunk(mr.word_size()); local 128 HeapWord* addr = (HeapWord*) fc; 129 _smallLinearAllocBlock.set(addr, fc->size() , 130 1024*SmallForLinearAlloc, fc->size()); 280 FreeChunk* fc = (FreeChunk*) mr.start(); local 281 fc->set_size(mr.word_size()); 283 returnChunkToDictionary(fc); 285 _bt.verify_not_unallocated((HeapWord*)fc, fc->size()); 286 _indexedFreeList[mr.word_size()].return_chunk_at_head(fc); 305 FreeChunk* fc = dictionary()->find_largest_dict(); local 372 FreeChunk* fc = (FreeChunk*) p; local 823 FreeChunk* fc = (FreeChunk*)obj_addr; local 919 FreeChunk* fc = (FreeChunk*)addr; local 961 FreeChunk* fc = (FreeChunk*)addr; local 1000 volatile FreeChunk* fc = (volatile FreeChunk*)p; local 1043 volatile FreeChunk* fc = (volatile FreeChunk*)p; local 1077 FreeChunk* fc = (FreeChunk*)p; local 1093 FreeChunk* fc = (FreeChunk*)p; local 1166 FreeChunk* fc = (FreeChunk*)p; local 1229 FreeChunk* fc = (FreeChunk*)res; local 1410 FreeChunk* fc; local 1579 FreeChunk* fc = NULL; local 1669 FreeChunk* fc = _dictionary->get_chunk(size); local 1686 FreeChunk* fc = _dictionary->get_chunk(size); local 1729 returnChunkToFreeList(FreeChunk* fc) argument 1798 FreeChunk* fc = (FreeChunk*) chunk; local 1823 removeFreeChunkFromFreeLists(FreeChunk* fc) argument 1837 removeChunkFromDictionary(FreeChunk* fc) argument 1848 removeChunkFromIndexedFreeList(FreeChunk* fc) argument 2054 FreeChunk* fc = (FreeChunk*)(blk->_ptr); local 2095 FreeChunk* fc; local 2368 FreeChunk* fc = (FreeChunk*)addr; local 2519 FreeChunk* fc = _indexedFreeList[size].head(); local [all...] |
/openjdk7/jdk/src/share/classes/sun/swing/plaf/synth/ |
H A D | SynthFileChooserUIImpl.java | 189 protected void installDefaults(JFileChooser fc) { argument 190 super.installDefaults(fc); 194 public void installComponents(JFileChooser fc) { argument 195 super.installComponents(fc); 197 SynthContext context = getContext(fc, ENABLED); 199 fc.setLayout(new BorderLayout(0, 11)); 212 fc.add(topPanel, BorderLayout.NORTH); 224 directoryComboBoxModel = createDirectoryComboBoxModel(fc); 227 directoryComboBox.setRenderer(createDirectoryComboBoxRenderer(fc)); 234 fc 418 installListeners(JFileChooser fc) argument 423 uninstallListeners(JFileChooser fc) argument 471 installStrings(JFileChooser fc) argument 523 rescanCurrentDirectory(JFileChooser fc) argument 661 createDirectoryComboBoxRenderer(JFileChooser fc) argument 732 createDirectoryComboBoxModel(JFileChooser fc) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/ |
H A D | WindowsFileChooserUI.java | 153 public void uninstallComponents(JFileChooser fc) { argument 154 fc.removeAll(); 204 public void installComponents(JFileChooser fc) { argument 206 fc.addPropertyChangeListener(filePane); 208 FileSystemView fsv = fc.getFileSystemView(); 210 fc.setBorder(new EmptyBorder(4, 10, 10, 10)); 211 fc.setLayout(new BorderLayout(8, 8)); 225 fc.add(topPanel, BorderLayout.NORTH); 264 directoryComboBoxModel = createDirectoryComboBoxModel(fc); 267 directoryComboBox.setRenderer(createDirectoryComboBoxRenderer(fc)); 526 installStrings(JFileChooser fc) argument 557 installListeners(JFileChooser fc) argument 573 createList(JFileChooser fc) argument 577 createDetailsView(JFileChooser fc) argument 587 createListSelectionListener(JFileChooser fc) argument 810 createPropertyChangeListener(JFileChooser fc) argument 864 ensureFileIsVisible(JFileChooser fc, File f) argument 868 rescanCurrentDirectory(JFileChooser fc) argument 916 createDirectoryComboBoxRenderer(JFileChooser fc) argument 1032 createDirectoryComboBoxModel(JFileChooser fc) argument 1284 getApproveButton(JFileChooser fc) argument 1288 getFileView(JFileChooser fc) argument [all...] |
/openjdk7/jdk/test/java/nio/MappedByteBuffer/ |
H A D | Force.java | 44 FileChannel fc = raf.getChannel(); 45 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_WRITE, cut, filesize-cut);
|
H A D | ZeroMap.java | 44 FileChannel fc = raf.getChannel(); 45 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_WRITE, cut, 0);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalFileChooserUI.java | 156 public void uninstallComponents(JFileChooser fc) { argument 157 fc.removeAll(); 209 public void installComponents(JFileChooser fc) { argument 210 FileSystemView fsv = fc.getFileSystemView(); 212 fc.setBorder(new EmptyBorder(12, 12, 11, 11)); 213 fc.setLayout(new BorderLayout(0, 11)); 216 fc.addPropertyChangeListener(filePane); 229 fc.add(topPanel, BorderLayout.NORTH); 249 directoryComboBoxModel = createDirectoryComboBoxModel(fc); 252 directoryComboBox.setRenderer(createDirectoryComboBoxRenderer(fc)); 459 installStrings(JFileChooser fc) argument 496 installListeners(JFileChooser fc) argument 512 createList(JFileChooser fc) argument 516 createDetailsView(JFileChooser fc) argument 526 createListSelectionListener(JFileChooser fc) argument 742 createPropertyChangeListener(JFileChooser fc) argument 795 ensureFileIsVisible(JFileChooser fc, File f) argument 799 rescanCurrentDirectory(JFileChooser fc) argument 849 createDirectoryComboBoxRenderer(JFileChooser fc) argument 906 createDirectoryComboBoxModel(JFileChooser fc) argument 1161 getApproveButton(JFileChooser fc) argument [all...] |
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/ |
H A D | SaveAsAction.java | 62 JFileChooser fc = new JFileChooser(); 63 fc.setFileFilter(ImportAction.getFileFilter()); 64 fc.setCurrentDirectory(new File(Settings.get().get(Settings.DIRECTORY, Settings.DIRECTORY_DEFAULT))); 66 if (fc.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) { 67 File file = fc.getSelectedFile();
|
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ |
H A D | ExportAction.java | 67 JFileChooser fc = new JFileChooser(); 68 fc.setFileFilter(new FileFilter() { 78 fc.setCurrentDirectory(new File(Settings.get().get(Settings.DIRECTORY, Settings.DIRECTORY_DEFAULT))); 81 if (fc.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) { 82 File file = fc.getSelectedFile();
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/ |
H A D | GTKFileChooserUI.java | 147 JFileChooser fc = getFileChooser(); 151 if (!fc.isMultiSelectionEnabled()) { 155 int mode = fc.getFileSelectionMode(); 205 public void ensureFileIsVisible(JFileChooser fc, File f) { argument 209 public void rescanCurrentDirectory(JFileChooser fc) { argument 221 public FileView getFileView(JFileChooser fc) { argument 367 public ListSelectionListener createListSelectionListener(JFileChooser fc) { argument 416 protected MouseListener createDoubleClickListener(JFileChooser fc, JList list) { argument 502 public void installComponents(JFileChooser fc) { argument 503 super.installComponents(fc); 740 installListeners(JFileChooser fc) argument 751 uninstallListeners(JFileChooser fc) argument 770 installDefaults(JFileChooser fc) argument 779 installIcons(JFileChooser fc) argument 784 installStrings(JFileChooser fc) argument 823 uninstallStrings(JFileChooser fc) argument 1080 createDirectoryComboBoxModel(JFileChooser fc) argument [all...] |
/openjdk7/jdk/src/windows/classes/sun/nio/fs/ |
H A D | WindowsUserDefinedFileAttributeView.java | 217 FileChannel fc = null; 223 fc = WindowsChannelFactory 229 long size = fc.size(); 234 fc.close(); 244 FileChannel fc = null; 250 fc = WindowsChannelFactory 258 if (fc.size() > dst.remaining()) 262 int n = fc.read(dst); 269 fc.close();
|