HomeSort by relevance Sort by last modified time
    Searched refs:position (Results 1 - 25 of 5905) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/ojluni/src/main/java/java/nio/channels/
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>&nbsp;+&nbsp;<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 + size < 0
234 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...]
  /packages/apps/DocumentsUI/src/com/android/documentsui/selection/
Range.java 42 void extendSelection(int position, @RangeType int type) {
43 checkArgument(position != NO_POSITION, "Position cannot be NO_POSITION.");
48 establishRange(position, type);
50 reviseRange(position, type);
54 private void establishRange(int position, @RangeType int type) {
57 if (position == mBegin) {
58 mEnd = position;
61 if (position > mBegin) {
62 updateRange(mBegin + 1, position, true, type)
    [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...]
  /external/annotation-tools/asmx/src/org/objectweb/asm/
PrecompiledMethodVisitor.java 13 * Informs the visitor of the current bytecode position in the method's
14 * code. This position applies to all labels and instructions visited
17 void visitCurrentPosition(int position);
  /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);
  /frameworks/support/car/src/main/java/androidx/car/drawer/
DrawerItemClickListener.java 26 * @param position Adapter position of the clicked item.
28 void onItemClick(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
188 int position = 0; field in class:Buffer
239 public final int position() { method in class:Buffer
256 public final Buffer position(int newPosition) { method in class:Buffer
    [all...]
  /external/boringssl/src/util/fipstools/
delocate.peg.go 301 position, tokenIndex uint32
306 position, tokenIndex = 0, 0
333 tree.Add(rule, begin, position, tokenIndex)
335 if begin != position && position > max.end {
336 max = token32{rule, begin, position}
341 if buffer[position] != endSymbol {
342 position++
349 if buffer[position] == c {
350 position+
    [all...]
  /external/mesa3d/src/gallium/auxiliary/draw/
draw_cliptest_tmp.h 69 float *position = out->data[pos]; local
88 float *clipvertex = position;
96 out->clip_pos[i] = position[i];
103 if (!(-0.50 * position[0] + position[3] >= 0)) mask |= (1<<0);
104 if (!( 0.50 * position[0] + position[3] >= 0)) mask |= (1<<1);
105 if (!(-0.50 * position[1] + position[3] >= 0)) mask |= (1<<2);
106 if (!( 0.50 * position[1] + position[3] >= 0)) mask |= (1<<3)
    [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...]
  /frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
Range.java 71 * Creates a new range anchored at {@code position}.
73 * @param position
76 Range(int position, @NonNull Callbacks callbacks) {
77 mBegin = position;
79 if (DEBUG) Log.d(TAG, "Creating new Range anchored @ " + position);
82 void extendRange(int position, @RangeType int type) {
83 checkArgument(position != NO_POSITION, "Position cannot be NO_POSITION.");
88 establishRange(position, type);
90 reviseRange(position, type)
    [all...]
  /cts/tests/tests/location/src/android/location/cts/asn1/base/
BitStreamReader.java 29 private int position = 0; field in class:BitStreamReader
43 position++;
46 return ((buffer[position] >> (BITS_IN_BYTE - bitsRead)) & 1) == 1;
53 return position + 1 < buffer.length
54 || (bitsRead < BITS_IN_BYTE && position < buffer.length);
62 position++;
71 byte result = (byte) ((buffer[position] & mask) << bitsRead);
72 position++;
74 result = (byte) (result | (buffer[position] & 0xFF) >>> (8 - bitsRead));
  /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;
  /frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
AdapterListUpdateCallback.java 41 public void onInserted(int position, int count) {
42 mAdapter.notifyItemRangeInserted(position, count);
47 public void onRemoved(int position, int count) {
48 mAdapter.notifyItemRangeRemoved(position, count);
59 public void onChanged(int position, int count, Object payload) {
60 mAdapter.notifyItemRangeChanged(position, count, payload);
  /libcore/luni/src/main/java/libcore/io/
NioBufferIterator.java 32 private int position; field in class:NioBufferIterator
54 position = offset;
58 position += byteCount;
63 return position;
69 checkReadBounds(position, length, byteCount);
70 Memory.peekByteArray(address + position, dst, dstOffset, byteCount);
71 position += byteCount;
76 checkReadBounds(position, length, 1);
77 byte result = Memory.peekByte(address + position);
78 ++position;
    [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...]
  /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...]
  /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];
  /dalvik/dx/src/com/android/dex/util/
ByteArrayByteInput.java 22 private int position; field in class:ByteArrayByteInput
30 return bytes[position++];

Completed in 1613 milliseconds

1 2 3 4 5 6 7 8 91011>>