Home
last modified time | relevance | path

Searched refs:mPos (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/rs/
DrsStream.h32 mPos = (mPos + 3) & (~3); in loadF()
33 float tmp = reinterpret_cast<const float *>(&mData[mPos])[0]; in loadF()
34 mPos += sizeof(float); in loadF()
38 mPos = (mPos + 3) & (~3); in loadI32()
39 int32_t tmp = reinterpret_cast<const int32_t *>(&mData[mPos])[0]; in loadI32()
40 mPos += sizeof(int32_t); in loadI32()
44 mPos = (mPos + 3) & (~3); in loadU32()
45 uint32_t tmp = reinterpret_cast<const uint32_t *>(&mData[mPos])[0]; in loadU32()
46 mPos += sizeof(uint32_t); in loadU32()
50 mPos = (mPos + 1) & (~1); in loadU16()
[all …]
DrsStream.cpp26 mPos = 0; in IStream()
31 memcpy(dest, mData + mPos, numBytes); in loadByteArray()
32 mPos += numBytes; in loadByteArray()
38 mPos = (mPos + 7) & (~7); in loadOffset()
39 tmp = reinterpret_cast<const uint64_t *>(&mData[mPos])[0]; in loadOffset()
40 mPos += sizeof(uint64_t); in loadOffset()
48 const char *s = rsuCopyString((const char *)&mData[mPos], len); in loadString()
49 mPos += len; in loadString()
57 mPos = 0; in OStream()
67 while (mPos + numBytes >= mLength) { in addByteArray()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DFieldPackerThunker.java32 private int mPos; field in FieldPackerThunker
36 mPos = 0; in FieldPackerThunker()
41 while ((mPos & (v - 1)) != 0) { in align()
42 mPos++; in align()
48 mPos = 0; in reset()
53 mPos = i; in reset()
58 mPos += i; in skip()
63 mPos++; in addI8()
68 mPos += 2; in addI16()
73 mPos += 4; in addI32()
[all …]
DFieldPacker.java34 mPos = 0; in FieldPacker()
51 while ((mPos & (v - 1)) != 0) { in align()
52 mData[mPos++] = 0; in align()
61 mPos = 0; in reset()
71 mPos = i; in reset()
79 int res = mPos + i; in skip()
83 mPos = res; in skip()
91 mData[mPos++] = v; in addI8()
100 mData[mPos++] = (byte)(v & 0xff); in addI16()
101 mData[mPos++] = (byte)(v >> 8); in addI16()
[all …]
/frameworks/native/services/surfaceflinger/EventLog/
DEventLog.cpp55 : mPos(0), mTag(tag), mOverflow(false) { in TagBuffer()
61 } else if (android_bWriteLog(mTag, mStorage, mPos) < 0) { in log()
65 mPos = 0; in log()
72 if (mPos + needed > STORAGE_MAX_SIZE) { in startList()
76 mStorage[mPos + 0] = EVENT_TYPE_LIST; in startList()
77 mStorage[mPos + 1] = count; in startList()
78 mPos += needed; in startList()
84 if (mPos + needed > STORAGE_MAX_SIZE) { in endList()
88 mStorage[mPos + 0] = '\n'; in endList()
89 mPos += needed; in endList()
[all …]
/frameworks/base/rs/java/android/renderscript/
DFieldPacker.java32 mPos = 0; in FieldPacker()
41 mPos = data.length; in FieldPacker()
55 while ((mPos & (v - 1)) != 0) { in align()
56 mAlignment.flip(mPos); in align()
57 mData[mPos++] = 0; in align()
66 while ((mPos & (v - 1)) != 0) { in subalign()
67 mPos--; in subalign()
70 if (mPos > 0) { in subalign()
71 while (mAlignment.get(mPos - 1) == true) { in subalign()
72 mPos--; in subalign()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DBitwiseInputStream.java33 private int mPos; field in BitwiseInputStream
55 mPos = 0; in BitwiseInputStream()
62 return mEnd - mPos; in available()
75 int index = mPos >>> 3; in read()
76 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in read()
77 if ((bits < 0) || (bits > 8) || ((mPos + bits) > mEnd)) { in read()
79 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in read()
85 mPos += bits; in read()
111 if ((mPos + bits) > mEnd) { in skip()
113 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in skip()
[all …]
DBitwiseOutputStream.java33 private int mPos; field in BitwiseOutputStream
55 mPos = 0; in BitwiseOutputStream()
64 int len = (mPos >>> 3) + ((mPos & 0x07) > 0 ? 1 : 0); // &7==%8 in toByteArray()
76 if ((mPos + bits) < mEnd) return; in possExpand()
77 byte[] newBuf = new byte[(mPos + bits) >>> 2]; in possExpand()
98 int index = mPos >>> 3; in write()
99 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in write()
101 mPos += bits; in write()
128 mPos += bits; in skip()
DFastPrintWriter.java39 private int mPos; field in FastPrintWriter
281 int pos = mPos; in appendLocked()
284 pos = mPos; in appendLocked()
287 mPos = pos+1; in appendLocked()
301 int pos = mPos; in appendLocked()
304 pos = mPos; in appendLocked()
307 mPos = pos + length; in appendLocked()
321 int pos = mPos; in appendLocked()
324 pos = mPos; in appendLocked()
327 mPos = pos + length; in appendLocked()
[all …]
DFastXmlSerializer.java56 private int mPos; field in FastXmlSerializer
71 int pos = mPos; in append()
74 pos = mPos; in append()
77 mPos = pos+1; in append()
90 int pos = mPos; in append()
93 pos = mPos; in append()
96 mPos = pos + length; in append()
109 int pos = mPos; in append()
112 pos = mPos; in append()
115 mPos = pos + length; in append()
[all …]
/frameworks/base/tools/aapt/tests/
DMockDirectoryWalker.h25 : mPos(0), mBasePath(path), mData(data) { in StringDirectoryWalker()
44 if (mPos >= mData.size()) in nextEntry()
49 mEntry.d_ino = mPos; in nextEntry()
52 for (i; i < mData[mPos].first.size(); ++i) in nextEntry()
53 mEntry.d_name[i] = mData[mPos].first[i]; in nextEntry()
57 mStats.st_ino = mPos; in nextEntry()
58 mStats.st_mtime = mData[mPos].second; in nextEntry()
61 mPos++; in nextEntry()
78 size_t mPos;
/frameworks/base/core/java/android/database/
DAbstractCursor.java43 protected int mPos; field in AbstractCursor
185 mPos = -1; in AbstractCursor()
192 return mPos; in getPosition()
199 mPos = count; in moveToPosition()
205 mPos = -1; in moveToPosition()
210 if (position == mPos) { in moveToPosition()
214 boolean result = onMove(mPos, position); in moveToPosition()
216 mPos = -1; in moveToPosition()
218 mPos = position; in moveToPosition()
233 return moveToPosition(mPos + offset); in move()
[all …]
DAbstractWindowedCursor.java45 return mWindow.getBlob(mPos, columnIndex); in getBlob()
51 return mWindow.getString(mPos, columnIndex); in getString()
57 mWindow.copyStringToBuffer(mPos, columnIndex, buffer); in copyStringToBuffer()
63 return mWindow.getShort(mPos, columnIndex); in getShort()
69 return mWindow.getInt(mPos, columnIndex); in getInt()
75 return mWindow.getLong(mPos, columnIndex); in getLong()
81 return mWindow.getFloat(mPos, columnIndex); in getFloat()
87 return mWindow.getDouble(mPos, columnIndex); in getDouble()
93 return mWindow.getType(mPos, columnIndex) == Cursor.FIELD_TYPE_NULL; in isNull()
131 return mWindow.getType(mPos, columnIndex); in getType()
DMatrixCursor.java69 if (mPos < 0) { in get()
72 if (mPos >= rowCount) { in get()
75 return data[mPos * columnCount + column]; in get()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTextOnPathActivity.java77 private final float[] mPos; field in TextOnPathActivity.TextOnPathView
102 mPos = new float[2]; in TextOnPathView()
119 mMeasure.getPosTan(i * mLength / 100.0f, mPos, mTan); in onDraw()
120 mLines[i * 4 ] = mPos[0]; in onDraw()
121 mLines[i * 4 + 1] = mPos[1]; in onDraw()
122 mLines[i * 4 + 2] = mPos[0] + mTan[1] * 15; in onDraw()
123 mLines[i * 4 + 3] = mPos[1] - mTan[0] * 15; in onDraw()
136 mMeasure.getPosTan(5.0f, mPos, mTan); in onDraw()
137 canvas.drawLine(mPos[0], mPos[1], mPos[0] + mTan[1] * 10, mPos[1] - mTan[0] * 10, in onDraw()
DPosTextActivity.java38 private final float[] mPos; field in PosTextActivity.CustomTextView
44 mPos = new float[mText.length() * 2]; in CustomTextView()
45 for (int i = 0; i < mPos.length; i += 2) { in CustomTextView()
46 mPos[i] = i * 30.0f; in CustomTextView()
47 mPos[i + 1] = i * 10.0f; in CustomTextView()
66 canvas.drawPosText(mText, mPos, mLargePaint); in onDraw()
70 canvas.drawPosText(mText, mPos, mLargePaint); in onDraw()
74 canvas.drawPosText(mText, mPos, mLargePaint); in onDraw()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DSerializedFrame.java121 private int mPos = 0; field in SerializedFrame.DirectByteInputStream
131 return mSize - mPos; in available()
136 return (mPos < mSize) ? (mBuffer[mPos++] & 0xFF) : -1; in read()
141 if (mPos >= mSize) { in read()
144 if ((mPos + len) > mSize) { in read()
145 len = mSize - mPos; in read()
147 System.arraycopy(mBuffer, mPos, b, off, len); in read()
148 mPos += len; in read()
154 if ((mPos + n) > mSize) { in skip()
155 n = mSize - mPos; in skip()
[all …]
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java151 mPos[0] = 0.f; in CamRenderer()
152 mPos[1] = 0.f; in CamRenderer()
153 mPos[2] = 0.f; in CamRenderer()
165 mPos[0] = (x*2-1)*mRatio; in setPosition()
166 mPos[1] = (-y)*2+1; in setPosition()
167 mPos[2] = 0.f; in setPosition()
358 … totalForce[0] = -mPos[0] * springStrength - mVel[0]*frictionCoeff + gMultiplier*mGForce[0]*mass; in doPhysics()
359 … totalForce[1] = -mPos[1] * springStrength - mVel[1]*frictionCoeff + gMultiplier*mGForce[1]*mass; in doPhysics()
360 … totalForce[2] = -mPos[2] * springStrength - mVel[2]*frictionCoeff + gMultiplier*mGForce[2]*mass; in doPhysics()
372 mPos[0] = mPos[0] + mVel[0]*deltaT; in doPhysics()
[all …]
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/utils/
DBmsgTokenizer.java31 private int mPos = 0; field in BmsgTokenizer
70 mPos = mMatcher.regionStart(); in BmsgTokenizer()
77 mMatcher.region(mPos, mMatcher.regionEnd()); in next()
87 mPos = mMatcher.end(); in next()
102 return mStr.substring(mPos); in remaining()
106 return mPos + mOffset; in pos()
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
DBmsgTokenizer.java31 private int mPos = 0; field in BmsgTokenizer
70 mPos = mMatcher.regionStart(); in BmsgTokenizer()
77 mMatcher.region(mPos, mMatcher.regionEnd()); in next()
87 mPos = mMatcher.end(); in next()
102 return mStr.substring(mPos); in remaining()
106 return mPos + mOffset; in pos()
/frameworks/base/core/java/android/text/
DMeasuredText.java41 private int mPos; field in MeasuredText
86 mPos = pos - mTextStart; in setPos()
98 mPos = 0; in setPara()
158 int p = mPos; in addStyleRun()
159 mPos = p + len; in addStyleRun()
206 wid = replacement.getSize(workPaint, mText, mTextStart + mPos, in addStyleRun()
207 mTextStart + mPos + len, fm); in addStyleRun()
209 w[mPos] = wid; in addStyleRun()
210 for (int i = mPos + 1, e = mPos + len; i < e; i++) in addStyleRun()
212 mPos += len; in addStyleRun()
/frameworks/base/tools/aapt/
DResourceTable.h316 mItemFormat(ResTable_map::TYPE_ANY), mNameIndex(-1), mPos(pos) in Entry()
374 const SourcePos& getPos() const { return mPos; } in getPos()
385 SourcePos mPos; variable
391 : mName(name), mPos(pos), mPublic(false), mEntryIndex(-1) { } in ConfigList()
395 const SourcePos& getPos() const { return mPos; } in getPos()
419 const SourcePos mPos; variable
455 : mName(name), mFirstPublicSourcePos(NULL), mPublicIndex(-1), mIndex(-1), mPos(pos) in Type()
494 const SourcePos& getPos() const { return mPos; } in getPos()
505 SourcePos mPos; variable
/frameworks/wilhelm/src/
Dhandler_bodies.c65 (void) android_audioPlayer_seek(ap, ap->mSeek.mPos); in handler_AudioPlayer_position()
163 (void) android_Player_seek(mp, mp->mSeek.mPos); in handler_MediaPlayer_position()
/frameworks/wilhelm/src/itf/
DISeek.c36 thiz->mPos = pos; in ISeek_SetPosition()
142 thiz->mPos = (SLmillisecond) SL_TIME_UNKNOWN; in ISeek_init()
/frameworks/av/media/libmedia/
DSoundPool.cpp639 mPos = 0; in play()
737 if (mPos < (int)sample->size()) { in process()
738 uint8_t* p = sample->data() + mPos; in process()
739 count = sample->size() - mPos; in process()
746 } else if (mPos < mAudioBufferSize) { in process()
747 count = mAudioBufferSize - mPos; in process()
755 mPos += count; in process()
906 mState, mChannelID, mNumChannels, mPos, mPriority, mLoop); in dump()

12