HomeSort by relevance Sort by last modified time
    Searched refs:position (Results 326 - 350 of 3483) sorted by null

<<11121314151617181920>>

  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/
CharBufferTest.java 90 buf.position(buf.limit());
96 assertEquals(buf.position(), readonly.position());
103 // readonly's position, mark, and limit should be independent to buf
105 assertEquals(readonly.position(), 0);
107 assertEquals(buf.position(), buf.limit());
109 assertEquals(buf.position(), 0);
112 int originalPosition = (buf.position() + buf.limit()) / 2;
113 buf.position(originalPosition);
115 buf.position(buf.limit())
    [all...]
DoubleBufferTest.java 111 buf.position(buf.limit());
117 assertEquals(buf.position(), readonly.position());
123 // readonly's position, mark, and limit should be independent to buf
125 assertEquals(readonly.position(), 0);
127 assertEquals(buf.position(), buf.limit());
129 assertEquals(buf.position(), 0);
139 assertEquals(buf.position(), buf.capacity());
150 buf.position(0);
155 assertEquals(buf.position(), 0)
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
ByteBufferBenchmark.java 72 result.position(aligned ? 0 : 1);
83 src.position(aligned ? 0 : 1);
95 src.position(aligned ? 0 : 1);
104 src.position(aligned ? 0 : 1);
114 src.position(aligned ? 0 : 1);
126 src.position(0);
135 src.position(aligned ? 0 : 1);
145 src.position(aligned ? 0 : 1);
157 src.position(0);
166 src.position(aligned ? 0 : 1)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderTextTrackCue.cpp 78 bool RenderTextTrackCue::initializeLayoutParameters(InlineFlowBox* firstLineBox, LayoutUnit& step, LayoutUnit& position)
92 // 3. Let line position be the text track cue computed line position.
95 // 4. Vertical Growing Left: Add one to line position then negate it.
99 // 5. Let position be the result of multiplying step and line position.
100 position = step * linePosition;
102 // 6. Vertical Growing Left: Decrease position by the width of the
103 // bounding box of the boxes in boxes, then increase position by step.
105 position -= width()
224 LayoutUnit position; local
    [all...]
  /external/doclava/src/com/google/doclava/
AttrTagInfo.java 44 AttrTagInfo(String name, String kind, String text, ContainerInfo base, SourcePositionInfo position) {
45 super(name, kind, text, position);
48 parse(text, base, position);
51 void parse(String text, ContainerInfo base, SourcePositionInfo position) {
56 Errors.error(Errors.BAD_ATTR_TAG, position, "Bad @attr tag: " + text);
65 LinkReference linkRef = LinkReference.parse(ref, mBase, position, false);
67 Errors.error(Errors.BAD_ATTR_TAG, position, "Unresolved @attr ref: " + ref);
71 Errors.error(Errors.BAD_ATTR_TAG, position, "@attr must be a field: " + ref);
79 Errors.error(Errors.BAD_ATTR_TAG, position, "Bad @attr name tag: " + more);
86 mDescrComment = new Comment(more, base, position);
    [all...]
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
ImageBasedHeightMap.java 144 protected float getHeightAtPostion(ByteBuffer buf, Image image, int position, ColorRGBA store) {
147 buf.position( position * 4 );
151 buf.position( position * 4 );
159 buf.position( position * 3 );
163 buf.position( position );
167 sbuf.position( position );
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
BaseFragmentPagerAdapter.java 62 * Return the Fragment associated with a specified position.
64 public abstract Fragment getItem(int position);
71 public Object instantiateItem(View container, int position) {
77 String name = makeFragmentName(container.getId(), position);
84 if (DEBUG) Log.v(TAG, "Attaching item #" + position + ": f=" + fragment);
87 fragment = getItem(position);
92 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
94 makeFragmentName(container.getId(), position)); local
104 public void destroyItem(View container, int position, Object object) {
108 if (DEBUG) Log.v(TAG, "Detaching item #" + position + ": f=" + objec
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/list/
PostalAddressListAdapter.java 97 public String getContactDisplayName(int position) {
98 return ((Cursor) getItem(position)).getString(PostalQuery.POSTAL_DISPLAY_NAME);
103 * position.
105 public Uri getDataUri(int position) {
106 long id = ((Cursor)getItem(position)).getLong(PostalQuery.POSTAL_ID);
111 protected View newView(Context context, int partition, Cursor cursor, int position,
120 protected void bindView(View itemView, int partition, Cursor cursor, int position) {
122 bindSectionHeaderAndDivider(view, position);
141 protected void bindSectionHeaderAndDivider(final ContactListItemView view, int position) {
142 final int section = getSectionForPosition(position);
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/list/
DialerPhoneNumberListAdapter.java 64 public int getItemViewType(int position) {
65 final int shortcut = getShortcutTypeFromPosition(position);
70 return super.getItemViewType(position);
81 public View getView(int position, View convertView, ViewGroup parent) {
82 final int shortcutType = getShortcutTypeFromPosition(position);
93 return super.getView(position, convertView, parent);
98 * @param position The position of the item
99 * @return The enabled shortcut type matching the given position if the item is a
102 public int getShortcutTypeFromPosition(int position) {
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
SVGTextLayoutAttributesBuilder.cpp 126 // Update text position, after we're back from recursion.
127 TextPosition& position = m_textPositions[atPosition]; local
128 ASSERT(!position.length);
129 position.length = m_textLength - position.start;
179 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& position)
181 const SVGLengthList& xList = position.element->xCurrentValue();
182 const SVGLengthList& yList = position.element->yCurrentValue();
183 const SVGLengthList& dxList = position.element->dxCurrentValue();
184 const SVGLengthList& dyList = position.element->dyCurrentValue()
    [all...]
  /external/chromium_org/third_party/icu/source/common/
uchriter.cpp 34 int32_t position)
35 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, position),
44 int32_t position)
45 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, textBegin, textEnd, position),
125 UCharCharacterIterator::setIndex(int32_t position) {
126 if(position < begin) {
128 } else if(position > end) {
131 pos = position;
226 UCharCharacterIterator::setIndex32(int32_t position) {
227 if(position < begin)
    [all...]
  /external/icu4c/common/
uchriter.cpp 35 int32_t position)
36 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, position),
45 int32_t position)
46 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, textBegin, textEnd, position),
126 UCharCharacterIterator::setIndex(int32_t position) {
127 if(position < begin) {
129 } else if(position > end) {
132 pos = position;
227 UCharCharacterIterator::setIndex32(int32_t position) {
228 if(position < begin)
    [all...]
  /external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/
MapModel2D.java 33 private Position centre;
56 this.centre = new Position(0, 0);
111 public void setCentre(Position centre) {
133 * Converts a latitude/longitude position into a pixel co-ordinate
134 * @param position the position to convert
138 public Point toPixel(Position position) {
139 // Get the distance between position and the centre for calculating
140 // the position's longitude translatio
    [all...]
MapModel3D.java 33 private Position centre;
56 this.centre = new Position(0, 0);
132 * @param centre The <code>Position</code> denoting the map's
136 public void setCentre(Position centre) {
161 * Converts a latitude/longitude position into a WU coordinate.
163 * @param position The <code>Position</code> to convert.
167 public Vector3f toWorldUnit(Position position) {
168 // Get the difference between position and the centre for calculatin
    [all...]
  /frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
EffectsTest.java 121 public Object getItem(int position) {
122 Log.d(TAG, "EffectListAdapter getItem() at: "+position+" name: "
123 +mDescriptors[position].name);
124 return mDescriptors[position];
127 public long getItemId(int position) {
128 return position;
131 public View getView(int position, View convertView, ViewGroup parent) {
134 Log.d(TAG, "getView() new EffectView position: " + position);
137 Log.d(TAG, "getView() convertView position: " + position)
    [all...]
  /frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
Transport.java 128 int contentPosition = content.position();
136 final int outputAvailable = capacity - mOutputBuffer.position();
150 ioWrite(outputArray, 0, mOutputBuffer.position());
256 while (buffer.position() < limit) {
263 final int end = buffer.position() + contentSize;
267 buffer.position(end);
303 int position = buffer.position(); local
306 count = ioRead(buffer.array(), position, buffer.capacity() - position);
    [all...]
  /packages/apps/Browser/src/com/android/browser/util/
ThreadedCursorAdapter.java 53 int position; field in class:ThreadedCursorAdapter.LoadContainer
117 || container.position != msg.what
134 public Cursor getItem(int position) {
135 return (Cursor) mCursorAdapter.getItem(position);
139 public long getItemId(int position) {
141 return getItemId(getItem(position));
145 private void loadRowObject(int position, LoadContainer container) {
147 || container.position != position
153 Cursor c = (Cursor) mCursorAdapter.getItem(position);
    [all...]
  /external/qemu/distrib/sdl-1.2.15/test/
testalpha.c 155 SDL_Rect position; local
160 position.x = x-(light->w/2);
161 position.y = y-(light->h/2);
162 position.w = light->w;
163 position.h = light->h;
165 SDL_BlitSurface(light, NULL, screen, &position);
167 SDL_UpdateRects(screen, 1, &position);
177 static SDL_Rect position; variable
229 /* Set the initial position of the sprite */
230 position.x = (screen->w-sprite->w)/2
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/
MtpDeviceIndex.java 57 * - get/getAscending/getDescending: get an item at a specified list position
199 * @param position Index of item to fetch, where 0 is the first item in the
202 * @return the bucket label or MtpObjectInfo at the specified position and
205 public Object get(int position, SortOrder order) {
208 DateBucket bucket = mBuckets[mUnifiedLookupIndex[position]];
209 if (bucket.unifiedStartIndex == position) {
212 return mMtpObjects[bucket.itemsStartIndex + position - 1
216 int zeroIndex = mUnifiedLookupIndex.length - 1 - position;
228 * @param position Index of item to fetch from a view of the data that doesn't
230 * @return position-th item in specified order, when not including label
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/selectcalendars/
SelectCalendarsSyncAdapter.java 147 public View getView(final int position, View convertView, ViewGroup parent) {
148 if (position >= mRowCount) {
151 String name = mData[position].displayName;
152 boolean selected = mData[position].synced;
153 int color = Utils.getDisplayColorFromColor(mData[position].color);
176 view.setTag(mData[position]);
188 colorView.setEnabled(hasMoreColors(position));
195 if (!hasMoreColors(position)) {
200 mColorPickerDialog = CalendarColorPickerDialog.newInstance(mData[position].id,
203 mColorPickerDialog.setCalendarId(mData[position].id)
    [all...]
  /libcore/luni/src/main/java/java/text/
MessageFormat.java 388 ParsePosition position = new ParsePosition(0); local
394 while (position.getIndex() < length) {
395 if (Format.upTo(template, position, buffer, '{')) {
397 int offset = position.getIndex();
415 position.setIndex(offset);
416 localFormats.add(parseVariable(template, position));
536 * this field position is set to the location of the first occurrence of a
554 FieldPosition position, List<FieldContainer> fields) {
566 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields);
577 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields)
824 ParsePosition position = new ParsePosition(0); local
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/page/
ContentSecurityPolicy.cpp 168 static bool skipExactly(const UChar*& position, const UChar* end, UChar delimiter)
170 if (position < end && *position == delimiter) {
171 ++position;
178 static bool skipExactly(const UChar*& position, const UChar* end)
180 if (position < end && characterPredicate(*position)) {
181 ++position;
187 static void skipUntil(const UChar*& position, const UChar* end, UChar delimiter)
189 while (position < end && *position != delimiter
204 const UChar* position = begin; local
370 const UChar* position = begin; local
445 const UChar* position = begin; local
529 const UChar* position = begin + noncePrefix.length(); local
553 const UChar* position = begin; local
580 const UChar* position = begin; local
614 const UChar* position = begin; local
648 const UChar* position = begin; local
722 const UChar* position = begin; local
1196 const UChar* position = begin; local
1221 const UChar* position = begin; local
1277 const UChar* position = characters.data(); local
1334 const UChar* position = characters.data(); local
1460 const UChar* position = begin; local
    [all...]
  /development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
StableArrayAdapter.java 42 public long getItemId(int position) {
43 String item = getItem(position);
53 public View getView(int position, View convertView, ViewGroup parent) {
54 View view = super.getView(position, convertView, parent);
  /development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
StableArrayAdapter.java 42 public long getItemId(int position) {
43 String item = getItem(position);
53 public View getView(int position, View convertView, ViewGroup parent) {
54 View view = super.getView(position, convertView, parent);
  /development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
TabHelperHoneycomb.java 73 int position = mActionBar.getSelectedTab().getPosition(); local
74 outState.putInt("tab_position", position);
79 int position = savedInstanceState.getInt("tab_position"); local
80 mActionBar.setSelectedNavigationItem(position);

Completed in 2910 milliseconds

<<11121314151617181920>>