/openjdk7/jdk/src/share/classes/java/nio/channels/ |
H A D | FileLock.java | 64 * held, the type and validity of the lock, and the position and size of the 110 * certain position, often 2<sup>30</sup> or 2<sup>31</sup>. In general, great 122 private final long position; field in class:FileLock 132 * @param position 133 * The position within the file at which the locked region starts; 138 * <tt>position</tt> + <tt>size</tt> must be non-negative 148 long position, long size, boolean shared) 150 if (position < 0) 151 throw new IllegalArgumentException("Negative position"); 154 if (position 147 FileLock(FileChannel channel, long position, long size, boolean shared) argument 185 FileLock(AsynchronousFileChannel channel, long position, long size, boolean shared) argument 234 public final long position() { method in class:FileLock 267 overlaps(long position, long size) argument [all...] |
/openjdk7/jdk/src/share/classes/java/nio/ |
H A D | Buffer.java | 34 * buffer are its capacity, limit, and position: </p> 45 * <p> A buffer's <i>position</i> is the index of the next element to be 46 * read or written. A buffer's position is never negative and is never 62 * at the current position and then increment the position by the number of 69 * affect the position. Absolute <i>get</i> and <i>put</i> operations throw 77 * current position. 82 * <p> A buffer's <i>mark</i> is the index to which its position will be reset 85 * than the position. If the mark is defined then it is discarded when the 86 * position o 178 private int position = 0; field in class:Buffer 217 public final int position() { method in class:Buffer 234 public final Buffer position(int newPosition) { method in class:Buffer [all...] |
/openjdk7/jdk/test/javax/swing/text/WrappedPlainView/6857057/ |
H A D | StubLeafElement.java | 30 int position; field in class:StubLeafElement 32 public StubLeafElement(String context, Element parent, int position) { argument 35 this.position = position; 59 return position; 63 return position + document.getLength();
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/ |
H A D | AbstractPerfDataBufferPrologue.java | 118 byteBuffer.position(PERFDATA_PROLOG_MAGIC_OFFSET); 133 byteBuffer.position(PERFDATA_PROLOG_BYTEORDER_OFFSET); 151 byteBuffer.position(PERFDATA_PROLOG_MAJOR_OFFSET); 162 byteBuffer.position(PERFDATA_PROLOG_MINOR_OFFSET); 231 int position = bb.position(); 236 bb.position(PERFDATA_PROLOG_MAGIC_OFFSET); 241 bb.position(position); 253 int position [all...] |
/openjdk7/jdk/src/share/native/sun/font/layout/ |
H A D | GlyphIterator.cpp | 45 : direction(1), position(-1), nextLimit(-1), prevLimit(-1), 65 position = glyphCount; 75 position = that.position; 93 position = that.position; 111 position = that.position; 132 position = prevLimit; 140 return glyphStorage.insertGlyphs(position, coun [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/code/ |
H A D | CompressedStream.java | 38 protected int position; field in class:CompressedStream 45 public CompressedStream(Address buffer, int position) { argument 47 this.position = position; 65 return position; 67 public void setPosition(int position) { argument 68 this.position = position;
|
H A D | CompressedWriteStream.java | 39 public CompressedWriteStream(Address buffer, int position) { argument 40 super(buffer, position);
|
/openjdk7/jdk/test/java/nio/Buffer/ |
H A D | AllocateDirectInit.java | 37 for (bb.position(0); bb.position() < bb.limit(); ) { 39 throw new RuntimeException("uninitialized buffer, position = " 40 + bb.position()); 47 for (bb.position(0); bb.position() < bb.limit(); )
|
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/ |
H A D | XML11EntityScanner.java | 110 if (fCurrentEntity.position == fCurrentEntity.count) { 115 int c = fCurrentEntity.ch[fCurrentEntity.position]; 138 if (fCurrentEntity.position == fCurrentEntity.count) { 143 int c = fCurrentEntity.ch[fCurrentEntity.position++]; 149 if (fCurrentEntity.position == fCurrentEntity.count) { 154 int cc = fCurrentEntity.ch[fCurrentEntity.position++]; 156 fCurrentEntity.position--; 185 if (fCurrentEntity.position == fCurrentEntity.count) { 190 int offset = fCurrentEntity.position; 193 char ch = fCurrentEntity.ch[fCurrentEntity.position]; [all...] |
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/parser/ |
H A D | PositionInputStream.java | 41 * 'position' in stream) from the input stream. 45 private long position = 0L; field in class:PositionInputStream 53 if (res != -1) position++; 59 if (res != -1) position += res; 65 position += res; 81 public long position() { method in class:PositionInputStream 82 return position;
|
H A D | PositionDataInputStream.java | 40 * (in effect 'position' in stream) so far. 61 public long position() { method in class:PositionDataInputStream 62 return ((PositionInputStream)in).position();
|
/openjdk7/jdk/src/share/classes/sun/swing/ |
H A D | DefaultLayoutStyle.java | 50 ComponentPlacement type, int position, Container parent) { 55 checkPosition(position); 58 (position == SwingConstants.EAST || 59 position == SwingConstants.WEST)) { 60 int indent = getIndent(component1, position); 69 public int getContainerGap(JComponent component, int position, argument 74 checkPosition(position); 83 int position) { 84 if (position == SwingConstants.EAST || 85 position 49 getPreferredGap(JComponent component1, JComponent component2, ComponentPlacement type, int position, Container parent) argument 82 isLabelAndNonlabel(JComponent c1, JComponent c2, int position) argument 106 getButtonGap(JComponent source, JComponent target, int position, int offset) argument 130 getButtonGap(JComponent source, int position, int offset) argument 139 getButtonGap(JComponent c, int position) argument 151 checkPosition(int position) argument 160 flipDirection(int position) argument 180 getIndent(JComponent c, int position) argument 216 isLeftAligned(AbstractButton button, int position) argument 227 isRightAligned(AbstractButton button, int position) argument 238 getInset(JComponent c, int position) argument 242 getInset(Insets insets, int position) argument [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/encoding/ |
H A D | CDRInputStream_1_1.java | 48 return bbwi.position() + fragmentOffset; 57 // checkBlockLength since it may move the position 58 int alignment = computeAlignment(bbwi.position(), align); 60 if (bbwi.position() + n + alignment > bbwi.buflen) { 65 if (bbwi.position() + alignment == bbwi.buflen) 67 bbwi.position(bbwi.position() + alignment); 73 // fragmentation since the new bbwi.position() (after the header) 76 alignment = computeAlignment(bbwi.position(), align); 79 bbwi.position(bbw [all...] |
/openjdk7/jdk/src/share/sample/nio/server/ |
H A D | FileContent.java | 82 private long position = -1; // NB only; >= 0 if transferring field in class:FileContent 92 position = 0; // NB only 98 if (position < 0) // NB only 104 if (position >= length) { 108 position += cio.transferTo(fc, position, length - position); 109 return (position < length);
|
/openjdk7/jdk/src/share/classes/javax/sound/sampled/ |
H A D | LineEvent.java | 61 * The media position when the event occurred, expressed in sample frames. 65 * other events for which this value is not known, the position value 70 private final long position; field in class:LineEvent 77 * @param position the number of sample frames that the line had already processed when the event occurred, 83 public LineEvent(Line line, Type type, long position) { argument 87 this.position = position; 111 * Obtains the position in the line's audio data when the event occurred, expressed in sample frames. 113 * paused, the pause event would report the line's position as 14. The next frame to be processed 119 * other events for which this value is not known, the position valu [all...] |
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/v2_0/ |
H A D | PerfDataBufferPrologue.java | 111 byteBuffer.position(PERFDATA_PROLOG_ACCESSIBLE_OFFSET); 122 byteBuffer.position(PERFDATA_PROLOG_USED_OFFSET); 144 byteBuffer.position(PERFDATA_PROLOG_OVERFLOW_OFFSET); 157 byteBuffer.position(PERFDATA_PROLOG_MODTIMESTAMP_OFFSET); 165 byteBuffer.position(PERFDATA_PROLOG_ENTRYOFFSET_OFFSET); 173 byteBuffer.position(PERFDATA_PROLOG_NUMENTRIES_OFFSET); 193 byteBuffer.position(PERFDATA_PROLOG_USED_OFFSET); 222 byteBuffer.position(PERFDATA_PROLOG_OVERFLOW_OFFSET); 237 byteBuffer.position(PERFDATA_PROLOG_MODTIMESTAMP_OFFSET); 252 byteBuffer.position(PERFDATA_PROLOG_NUMENTRIES_OFFSE [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/dtm/ref/ |
H A D | ChunkedIntArray.java | 107 * the record, both 0-based (though position 0 is reserved for special 109 * @param position int Record number 112 int readEntry(int position, int offset) throws ArrayIndexOutOfBoundsException argument 117 return fastArray[(position*slotsize)+offset]; 125 position*=slotsize; 126 int chunkpos = position >> lowbits; 127 int slotpos = position & lowmask; 133 // Check that the node at index "position" is not an ancestor 135 // RETURN -1. If position is NOT an ancestor, return position 139 specialFind(int startPos, int position) argument 194 writeEntry(int position, int offset, int value) argument 223 writeSlot(int position, int w0, int w1, int w2, int w3) argument 247 readSlot(int position, int[] buffer) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | StringTokenizer.java | 55 * position within the string to be tokenized. Some operations advance this 56 * current position past the characters processed.<p> 240 * Skips delimiters starting from the specified position. If retDelims 248 int position = startPos; 249 while (!retDelims && position < maxPosition) { 251 char c = str.charAt(position); 254 position++; 256 int c = str.codePointAt(position); 260 position += Character.charCount(c); 263 return position; [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | TabStop.java | 78 private float position; field in class:TabStop 82 * Creates a tab at position <code>pos</code> with a default alignment 90 * Creates a tab with the specified position <code>pos</code>, 96 position = pos; 100 * Returns the position, as a float, of the tab. 101 * @return the position of the tab 104 return position; 136 (position == o.position) ); /* TODO: epsilon */ 148 return alignment ^ leader ^ Math.round(position); [all...] |
H A D | GapVector.java | 120 * Replace the given logical position in the storage with 125 * @param position the location to make the replacement. This 131 protected void replace(int position, int rmSize, Object addItems, int addSize) { argument 134 close(position, rmSize); 138 close(position+addSize, rmSize-addSize); 142 int end = open(position + rmSize, endSize); 146 System.arraycopy(addItems, addOffset, array, position, addSize); 150 * Delete nItems at position. Squeezes any marks 151 * within the deleted area to position. This moves 156 void close(int position, in argument 189 open(int position, int nItems) argument [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javadoc/ |
H A D | SourcePositionImpl.java | 35 * A source position: filename, line number, and column number. 39 * @author Michael Van De Vanter (position representation changed to char offsets) 43 int position; field in class:SourcePositionImpl 64 return lineMap.getLineNumber(position); 77 return lineMap.getColumnNumber(position); 81 private SourcePositionImpl(FileObject file, int position, argument 85 this.position = position; 107 if (position == Position.NOPOS)
|
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/Graph/src/com/sun/hotspot/igv/graph/ |
H A D | OutputSlot.java | 42 public void setPosition(int position) { argument 43 OutputSlot s = getFigure().outputSlots.remove(position); 44 getFigure().outputSlots.add(position, s); 53 return "OutputSlot[figure=" + this.getFigure().toString() + ", position=" + getPosition() + "]";
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | AsynchronousFileChannelImpl.java | 106 abstract <A> Future<FileLock> implLock(long position, argument 113 public final Future<FileLock> lock(long position, argument 118 return implLock(position, size, shared, null, null); 122 public final <A> void lock(long position, argument 130 implLock(position, size, shared, attachment, handler); 162 protected final FileLockImpl addToFileLockTable(long position, long size, boolean shared) { argument 176 fli = new FileLockImpl(this, position, size, shared); 212 long position, 217 public final Future<Integer> read(ByteBuffer dst, long position) { argument 218 return implRead(dst, position, nul 211 implRead(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument 222 read(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument 232 implWrite(ByteBuffer src, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument 239 write(ByteBuffer src, long position) argument 244 write(ByteBuffer src, long position, A attachment, CompletionHandler<Integer,? super A> handler) argument [all...] |
/openjdk7/jdk/src/share/classes/java/text/ |
H A D | CharacterIterator.java | 82 * Traverse both forward and backward from a given position in the text. 116 * Sets the position to getBeginIndex() and returns the character at that 117 * position. 124 * Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) 125 * and returns the character at that position. 132 * Gets the character at the current position (as returned by getIndex()). 133 * @return the character at the current position or DONE if the current 134 * position is off the end of the text. 144 * @return the character at the new position or DONE if the new 145 * position i 166 setIndex(int position) argument [all...] |
/openjdk7/jdk/test/javax/swing/GroupLayout/7071166/ |
H A D | bug7071166.java | 52 int position = POSITIONS[i]; 56 LayoutStyle.ComponentPlacement.RELATED, position, new Container()); 59 throw new RuntimeException("IllegalArgumentException is not thrown for position " + 60 position); 64 throw new RuntimeException("IllegalArgumentException is thrown for position " + 65 position);
|