Home
last modified time | relevance | path

Searched refs:mPos (Results 1 – 25 of 41) 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/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 fp.resize(fp.mPos); in createFromArray()
64 while ((mPos & (v - 1)) != 0) { in align()
65 mAlignment.flip(mPos); in align()
66 mData[mPos++] = 0; in align()
75 while ((mPos & (v - 1)) != 0) { in subalign()
76 mPos--; in subalign()
79 if (mPos > 0) { in subalign()
80 while (mAlignment.get(mPos - 1) == true) { in subalign()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DFieldPacker.java33 mPos = 0; in FieldPacker()
42 mPos = data.length; in FieldPacker()
56 fp.resize(fp.mPos); in createFromArray()
65 while ((mPos & (v - 1)) != 0) { in align()
66 mAlignment.flip(mPos); in align()
67 mData[mPos++] = 0; in align()
76 while ((mPos & (v - 1)) != 0) { in subalign()
77 mPos--; in subalign()
80 if (mPos > 0) { in subalign()
81 while (mAlignment.get(mPos - 1) == true) { 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/av/include/media/
DRingBuffer.h66 size_t mPos; variable
92 size_t mPos; variable
178 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} in iterator()
185 mPos = mSize;
189 mPos = ((CC_UNLIKELY(mPos == 0)) ? mSize - 1 : mPos - 1);
195 iterator tmp{mPtr, mSize, mPos, mCtr};
202 return (mPtr + mPos) == (rhs.mPtr + rhs.mPos);
207 return (mPtr + mPos) != (rhs.mPtr + rhs.mPos);
212 return *(mPtr + mPos);
217 return mPtr + mPos;
[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/
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()
DAbstractCursor.java56 protected int mPos; field in AbstractCursor
208 mPos = -1; in AbstractCursor()
213 return mPos; in getPosition()
221 mPos = count; in moveToPosition()
227 mPos = -1; in moveToPosition()
232 if (position == mPos) { in moveToPosition()
236 boolean result = onMove(mPos, position); in moveToPosition()
238 mPos = -1; in moveToPosition()
240 mPos = position; in moveToPosition()
253 return moveToPosition(mPos + offset); in move()
[all …]
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/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
DMaterial.java47 int mPos; field in Material.MaterialProp
72 int mPos; field in Material.Opactiy
126 mMaterialProp[i].mPos = pos[i]; in setup()
136 mOpacity[0].mPos = start; in setup()
140 mOpacity[1].mPos = end; in setup()
165 mMaterialProp[i].mPos = material[i][0]; in setup()
171 mOpacity[i].mPos = opacity[i][0]; in setup()
191 mMaterialProp[i].mPos = pos[i]; in setup()
200 mOpacity[0].mPos = start; in setup()
204 mOpacity[1].mPos = end; in setup()
[all …]
/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/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/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/base/core/java/android/text/
DMeasuredText.java40 private int mPos; field in MeasuredText
94 mPos = pos - mTextStart; in setPos()
108 mPos = 0; in setPara()
168 int p = mPos; in addStyleRun()
169 mPos = p + len; in addStyleRun()
238 wid = replacement.getSize(workPaint, mText, mTextStart + mPos, in addStyleRun()
239 mTextStart + mPos + len, fm); in addStyleRun()
242 w[mPos] = wid; in addStyleRun()
243 for (int i = mPos + 1, e = mPos + len; i < e; i++) in addStyleRun()
246 mBuilder.addReplacementRun(mPos, mPos + len, wid); in addStyleRun()
[all …]
/frameworks/base/tools/aapt/
DResourceTable.h325 mItemFormat(ResTable_map::TYPE_ANY), mNameIndex(-1), mPos(pos) in Entry()
383 const SourcePos& getPos() const { return mPos; } in getPos()
394 SourcePos mPos; variable
400 : mName(name), mPos(pos), mPublic(false), mEntryIndex(-1) { } in ConfigList()
404 const SourcePos& getPos() const { return mPos; } in getPos()
428 const SourcePos mPos; variable
464 : mName(name), mFirstPublicSourcePos(NULL), mPublicIndex(-1), mIndex(-1), mPos(pos) in Type()
503 const SourcePos& getPos() const { return mPos; } in getPos()
514 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()

12