/libcore/ojluni/src/main/java/java/nio/channels/ |
FileLock.java | 61 * held, the type and validity of the lock, and the position and size of the 107 * certain position, often 2<sup>30</sup> or 2<sup>31</sup>. In general, great 119 private final long position; field in class:FileLock 129 * @param position 130 * The position within the file at which the locked region starts; 135 * <tt>position</tt> + <tt>size</tt> must be non-negative 145 long position, long size, boolean shared) 147 if (position < 0) 148 throw new IllegalArgumentException("Negative position"); 151 if (position + size < 0 193 public final long position() { method in class:FileLock [all...] |
/external/clang/test/CodeGen/ |
ext-vector-member-alignment.c | 6 float4 position; member in struct:struct1 10 float4 f(struct struct1* x) { return x->position; } 13 p->position.x = c; 14 *a = p->position.y; 15 *b = p->position[0]; 16 p->position[2] = c;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
bloom_filter.h | 38 AK_FORCE_INLINE void setInFilter(const int position) { 39 mFilter.set(getIndex(position)); 42 AK_FORCE_INLINE bool isInFilter(const int position) const { 43 return mFilter.test(getIndex(position)); 49 AK_FORCE_INLINE size_t getIndex(const int position) const { 50 return static_cast<size_t>(position) % BIGRAM_FILTER_MODULO;
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListHeterogeneous.java | 40 protected View createView(int position, ViewGroup parent, int desiredHeight) { 41 switch (position % 3) { 44 position, parent.getContext(), getValueAtPosition(position), desiredHeight); 47 position, parent.getContext(), getValueAtPosition(position), desiredHeight); 50 position, parent.getContext(), getValueAtPosition(position), desiredHeight); 57 public View convertView(int position, View convertView, ViewGroup parent) { 58 switch (position % 3) [all...] |
/external/guava/guava/src/com/google/common/collect/ |
AbstractIndexedListIterator.java | 29 * position. It does not support {@link #remove}, {@link #set}, or {@link #add}. 37 private int position; field in class:AbstractIndexedListIterator 47 * position is 0. That is, the first call to {@link #next()} will return the 59 * initial position. That is, the first call to {@link #nextIndex()} will 60 * return {@code position}, and the first call to {@link #next()} will return 62 * retrieve the preceding {@code position} elements. 64 * @throws IndexOutOfBoundsException if {@code position} is negative or is 68 protected AbstractIndexedListIterator(int size, int position) { 69 checkPositionIndex(position, size); 71 this.position = position [all...] |
/frameworks/base/core/java/android/widget/ |
ListAdapter.java | 41 * Returns true if the item at the specified position is not a separator. 44 * The result is unspecified if position is invalid. An {@link ArrayIndexOutOfBoundsException} 47 * @param position Index of the item 53 boolean isEnabled(int position);
|
/libcore/ojluni/src/main/java/java/nio/ |
Buffer.java | 36 * buffer are its capacity, limit, and position: </p> 47 * <p> A buffer's <i>position</i> is the index of the next element to be 48 * read or written. A buffer's position is never negative and is never 64 * at the current position and then increment the position by the number of 71 * affect the position. Absolute <i>get</i> and <i>put</i> operations throw 79 * current position. 84 * <p> A buffer's <i>mark</i> is the index to which its position will be reset 87 * than the position. If the mark is defined then it is discarded when the 88 * position or the limit is adjusted to a value smaller than the mark. If th 186 int position = 0; field in class:Buffer 234 public final int position() { method in class:Buffer 247 public final Buffer position(int newPosition) { method in class:Buffer [all...] |
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
TestInputEvent.java | 15 public int position = Integer.MIN_VALUE; field in class:TestInputEvent 19 public TestInputEvent(int position) { 20 this.position = position; 60 return position != Integer.MIN_VALUE && position != RecyclerView.NO_POSITION; 65 return position; 68 public static TestInputEvent tap(int position) { 69 return new TestInputEvent(position); 72 public static TestInputEvent shiftTap(int position) { [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
SectionedListAdapter.java | 64 public Object getItem(int position) { 70 // Check if position inside this section 71 if (position == 0) { 73 } else if (position < sectionSize) { 74 return section.getItem(position - 1); 78 position -= sectionSize; 80 throw new IllegalStateException("Unknown position " + position); 84 public long getItemId(int position) { 85 return position; [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
NullInputStream.java | 66 private long position; field in class:NullInputStream 101 * Return the current position. 103 * @return the current position. 106 return position; 124 long avail = size - position; 142 position = 0; 147 * Mark the current position. 149 * @param readlimit The number of bytes before this marked position 157 mark = position; 184 if (position == size) [all...] |
NullReader.java | 66 private long position; field in class:NullReader 101 * Return the current position. 103 * @return the current position. 106 return position; 126 position = 0; 131 * Mark the current position. 133 * @param readlimit The number of characters before this marked position 141 mark = position; 168 if (position == size) { 171 position++ [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
BitWriterBuffer.java | 9 int position = 0; field in class:BitWriterBuffer 13 this.initialPos = buffer.position(); 20 int left = 8 - position % 8; 22 int current = (buffer.get(initialPos + position / 8)); 25 buffer.put(initialPos + position / 8, (byte) (current > 127 ? current - 256 : current)); 26 position += numBits; 32 buffer.position(initialPos + position / 8 + ((position % 8 > 0) ? 1 : 0));
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SeparatedFolderListAdapter.java | 42 public Object getItem(int position) { 46 // check if position inside this section 47 if (position < size) 48 return adapter.getItem(position); 51 position -= size; 76 public int getItemViewType(int position) { 80 // check if position inside this section 81 if (position < size) { 82 return type + adapter.getItemViewType(position); 86 position -= size [all...] |
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/ |
ReaderException.java | 24 private final int position; field in class:ReaderException 26 public ReaderException(String name, int position, char character, String message) { 30 this.position = position; 42 return position; 49 + "\nin \"" + name + "\", position " + position;
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_cliptest_tmp.h | 54 float *position = out->data[pos]; local 61 float *clipvertex = position; 68 out->pre_clip_pos[i] = position[i]; 74 if (-0.50 * position[0] + position[3] < 0) mask |= (1<<0); 75 if ( 0.50 * position[0] + position[3] < 0) mask |= (1<<1); 76 if (-0.50 * position[1] + position[3] < 0) mask |= (1<<2); 77 if ( 0.50 * position[1] + position[3] < 0) mask |= (1<<3) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
AbstractBufferTest.java | 42 assertTrue(0 <= baseBuf.position() && baseBuf.position() <= baseBuf.limit() 48 int oldPosition = baseBuf.position(); 53 assertEquals(baseBuf.position(), 0); 64 baseBuf.position(oldPosition); 69 int oldPosition = baseBuf.position(); 74 assertEquals(baseBuf.position(), 0); 85 baseBuf.position(oldPosition); 90 int oldPosition = baseBuf.position(); 93 assertEquals(baseBuf.hasRemaining(), baseBuf.position() < baseBuf.limit()) [all...] |
/libcore/luni/src/main/java/libcore/io/ |
NioBufferIterator.java | 32 private int position; field in class:NioBufferIterator 41 position = offset; 45 position += byteCount; 49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); 50 position += byteCount; 54 byte result = Memory.peekByte(address + position); 55 ++position; 60 int result = Memory.peekInt(address + position, swap); 61 position += SizeOf.INT; 66 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap) [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/ |
MemoryDataStore.java | 26 private int position = offset; 28 growBufferIfNeeded(position); 29 buf[position++] = (byte)b; 33 growBufferIfNeeded(position + b.length); 34 System.arraycopy(b, 0, buf, position, b.length); 35 position += b.length; 39 growBufferIfNeeded(position + len); 40 System.arraycopy(b, off, buf, position, len); 41 position += len; 55 private int position = offset [all...] |
/external/icu/icu4c/source/layout/ |
GlyphIterator.cpp | 20 : direction(1), position(-1), nextLimit(-1), prevLimit(-1), 40 position = glyphCount; 51 position = that.position; 70 position = that.position; 89 position = that.position; 111 position = prevLimit; 120 return glyphStorage.insertGlyphs(position, count, success) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
DummyAdapter.java | 39 public Object getItem(int position) { 44 public long getItemId(int position) { 54 public int getItemViewType(int position) { 55 return position < mSpecialViews.length ? position : mSpecialViews.length; 59 public View getView(int position, View convertView, ViewGroup parent) { 60 if (position < mSpecialViews.length) { 61 return mSpecialViews[position];
|
/external/ceres-solver/internal/ceres/ |
block_structure.cc | 38 return (lhs.position < rhs.position);
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
ByteArrayByteInput.java | 22 private int position; field in class:ByteArrayByteInput 29 return bytes[position++];
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d10tri/ |
d3d10tri.hlsl | 29 float4 position : POSITION;
35 float4 position : SV_POSITION;
42 result.position = input.position;
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11tri/ |
d3d11tri.hlsl | 29 float4 position : POSITION;
35 float4 position : SV_POSITION;
42 result.position = input.position;
|
/libcore/dex/src/main/java/com/android/dex/util/ |
ByteArrayByteInput.java | 22 private int position; field in class:ByteArrayByteInput 29 return bytes[position++];
|