Searched refs:pos (Results 51 - 75 of 323) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/os/
H A DPooledStringWriter.java75 final int pos = mOut.dataPosition();
78 mOut.setDataPosition(pos);
H A DParcelableParcel.java42 int pos = src.dataPosition();
43 src.setDataPosition(MathUtils.addOrThrow(pos, size));
44 mParcel.appendFrom(src, pos, size);
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dfile_wrapper_input.cpp62 bool FileWrapperInput::Seek(uint32_t pos) { argument
63 return fseek(_file, (long) pos, SEEK_SET) == 0;
/frameworks/av/media/libstagefright/include/
H A DVBRISeeker.h34 virtual bool getOffsetForTime(int64_t *timeUs, off64_t *pos);
H A DXINGSeeker.h32 virtual bool getOffsetForTime(int64_t *timeUs, off64_t *pos);
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DRefactorClassAdapter.java49 int pos = oldClassName.indexOf('$');
50 if (pos > 0) {
51 newName = mRefactorClasses.get(oldClassName.substring(0, pos));
53 return newName + oldClassName.substring(pos);
/frameworks/compile/libbcc/include/bcinfo/Wrap/
H A Dfile_wrapper_input.h42 virtual bool Seek(uint32_t pos);
H A Din_memory_wrapper_input.h42 virtual bool Seek(uint32_t pos);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
H A Dcor_h_vec_opt.s44 @r0 --- h[], r1 --- vec[], r2 --- pos
49 ADD r9, r1, r2, LSL #1 @p2 = &vec[pos]
51 RSB r11, r2, #62 @j=62-pos
71 ADD r9, r3, r2, LSL #1 @address of sign[pos]
73 LDRSH r10, [r9], #2 @sign[pos]
74 LDRSH r11, [r9] @sign[pos + 1]
94 ADD r9, r1, r2, LSL #1 @p2 = &vec[pos]
96 RSB r11, r2, #62 @j=62-pos
118 ADD r9, r3, r2, LSL #1 @address of sign[pos]
120 LDRSH r10, [r9], #2 @sign[pos]
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
H A Dcor_h_vec_neon.s44 @r0 --- h[], r1 --- vec[], r2 --- pos
50 ADD r9, r1, r2, LSL #1 @p2 = &vec[pos]
52 RSB r11, r2, #62 @j=62-pos
72 ADD r9, r3, r2, LSL #1 @address of sign[pos]
74 LDRSH r10, [r9], #2 @sign[pos]
75 LDRSH r11, [r9] @sign[pos + 1]
95 ADD r9, r1, r2, LSL #1 @p2 = &vec[pos]
97 RSB r11, r2, #62 @j=62-pos
119 ADD r9, r3, r2, LSL #1 @address of sign[pos]
121 LDRSH r10, [r9], #2 @sign[pos]
[all...]
/frameworks/base/core/jni/
H A Dcom_android_internal_net_NetworkStatsFactory.cpp131 char* pos = buffer; local
134 idx = (int)strtol(pos, &endPos, 10);
136 if (pos == endPos) {
147 pos = endPos;
149 while (*pos == ' ') {
150 pos++;
154 while (*pos != ' ' && *pos != 0 && ifaceIdx < (int)(sizeof(s.iface)-1)) {
155 s.iface[ifaceIdx] = *pos;
157 pos
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DFastPrintWriter.java282 int pos = mPos;
283 if (pos >= (mBufferLen-1)) {
285 pos = mPos;
287 mText[pos] = c;
288 mPos = pos+1;
302 int pos = mPos;
303 if ((pos+length) > BUFFER_LEN) {
305 pos = mPos;
307 str.getChars(i, i + length, mText, pos);
308 mPos = pos
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Ddecim54.c96 Word32 i, j, frac, pos; local
100 pos = 0; /* position is in Q2 -> 1/4 resolution */
103 i = (pos >> 2); /* integer part */
104 frac = pos & 3; /* fractional part */
141 pos += FAC5; /* pos + 5/4 */
/frameworks/base/tools/aapt/
H A Dpseudolocalize.cpp43 size_t lastpos, pos; local
47 for (lastpos = pos = 0; pos < length; pos++) {
48 char16_t c = str[pos];
64 if (mLastDepth != depth || pos == length - 1) {
66 size_t nextpos = pos;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerBaseConfigSetTest.java75 final int pos = mRecyclerView.getChildLayoutPosition(child);
76 if (globalPositions[pos] != Integer.MIN_VALUE) {
83 globalPositions[pos] = globalScrollPosition +
86 globalPositions[pos] = globalScrollPosition +
90 mGlm.getSpanSizeLookup().getSpanIndex(pos, mGlm.getSpanCount()),
134 + " global pos must match when scrolling in reverse for position ";
139 int pos = mRecyclerView.getChildLayoutPosition(child);
140 if (!shouldTest.get(pos)) {
145 shouldTest.clear(pos);
154 assertEquals(assertPrefix + pos,
[all...]
/frameworks/compile/mclinker/lib/Support/
H A DPath.cpp166 size_t pos = m_PathName.find_last_of(separator); local
167 if (pos != StringType::npos) {
168 ++pos;
169 return Path(m_PathName.substr(pos));
182 size_t pos = m_PathName.find_last_of('.'); local
183 if (pos == StringType::npos)
185 return Path(m_PathName.substr(pos));
/frameworks/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp113 char* pos = reasonline; local
117 int irq = (int)strtol(pos, &endPos, 10);
118 if (pos != endPos) {
124 if (strncmp(pos, "Abort:", abortPrefixLen) != 0) {
132 endPos = pos + abortPrefixLen;
134 pos = endPos;
142 while (*pos == ' ') {
143 pos++;
147 char* endpos = pos;
156 len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos);
[all...]
/frameworks/base/libs/hwui/hwui/
H A DCanvas.cpp82 DrawTextFunctor(const Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, argument
87 , pos(pos)
99 pos[2 * i] = x + layout.getX(i);
100 pos[2 * i + 1] = y + layout.getY(i);
105 pos[2 * i] = layout.getX(i);
106 pos[2 * i + 1] = layout.getY(i);
122 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, outlinePaint, x, y,
129 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, innerPaint, x, y,
133 canvas->drawGlyphs(glyphs + start, pos
141 float* pos; member in class:android::DrawTextFunctor
[all...]
/frameworks/base/core/java/android/widget/
H A DExpandableListView.java375 PositionMetadata pos;
408 pos = mConnector.getUnflattenedPos(childFlPos);
415 if (pos.position.type != lastItemType) {
416 if (pos.position.type == ExpandableListPosition.CHILD) {
438 lastItemType = pos.position.type;
453 indicator = getIndicator(pos);
460 pos.recycle();
472 * @param pos The flat list position of the item whose indicator
476 private Drawable getIndicator(PositionMetadata pos) { argument
479 if (pos
[all...]
/frameworks/minikin/sample/
H A Dexample_skia.cpp83 SkPoint *pos = new SkPoint[nGlyphs]; local
93 pos[i].fX = x + layout->getX(i);
94 pos[i].fY = y + layout->getY(i);
97 canvas->drawPosText(glyphs + start, (i - start) << 1, pos + start, *paint);
103 canvas->drawPosText(glyphs + start, (nGlyphs - start) << 1, pos + start, *paint);
105 delete[] pos;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DFocusManager.java266 * @param pos
268 private void focusItem(final int pos) { argument
269 focusItem(pos, null);
276 * @param pos
279 private void focusItem(final int pos, @Nullable final FocusCallback callback) { argument
281 RecyclerView.ViewHolder vh = mView.findViewHolderForAdapterPosition(pos);
295 view.findViewHolderForAdapterPosition(pos);
304 Log.w(TAG, "Unable to focus position " + pos + " after scroll");
310 mView.smoothScrollToPosition(pos);
436 for (int pos
[all...]
H A DModel.java151 for (int pos = 0; pos < mCursorCount; ++pos) {
153 Log.e(TAG, "Fail to move cursor to next pos: " + pos);
156 positions[pos] = pos;
163 mIds[pos] = getCursorString(mCursor, RootCursorWrapper.COLUMN_AUTHORITY) + "|" +
166 mIds[pos] = getCursorString(mCursor, Document.COLUMN_DOCUMENT_ID);
170 isDirs[pos]
[all...]
/frameworks/wilhelm/src/itf/
H A DISeek.c22 static SLresult ISeek_SetPosition(SLSeekItf self, SLmillisecond pos, SLuint32 seekMode) argument
31 if (SL_TIME_UNKNOWN == pos) {
32 pos = SL_TIME_UNKNOWN - 1;
36 thiz->mPos = pos;
/frameworks/base/media/java/android/media/
H A DMiniThumbFile.java154 long pos = id * BYTES_PER_MINTHUMB;
160 lock = mChannel.lock(pos, 1 + 8, true);
163 if (mChannel.read(mBuffer, pos) == 9) {
192 long pos = id * BYTES_PER_MINTHUMB;
207 lock = mChannel.lock(pos, BYTES_PER_MINTHUMB, false);
208 mChannel.write(mBuffer, pos);
239 long pos = id * BYTES_PER_MINTHUMB;
243 lock = mChannel.lock(pos, BYTES_PER_MINTHUMB, true);
244 int size = mChannel.read(mBuffer, pos);
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageSignatures.java89 int pos = 0;
103 if (pos < count) {
113 mSignatures[pos] = pastSignatures.get(idx);
114 pos++;
133 mSignatures[pos] = sig;
134 pos++;
167 if (pos < count) {
171 Signature[] newSigs = new Signature[pos];
172 System.arraycopy(mSignatures, 0, newSigs, 0, pos);

Completed in 526 milliseconds

1234567891011>>