Home
last modified time | relevance | path

Searched refs:mPos (Results 1 – 25 of 46) 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/minikin/include/minikin/
DBuffer.h34 : mData(reinterpret_cast<const uint8_t*>(buffer)), mPos(pos) {} in BufferReader()
49 mPos = BufferReader::align<T>(mPos); in read()
50 const T* data = reinterpret_cast<const T*>(mData + mPos); in read()
51 mPos += sizeof(T); in read()
58 mPos = BufferReader::align<T>(mPos); in skip()
59 mPos += sizeof(T); in skip()
67 mPos = BufferReader::align<T>(mPos); in readArray()
68 const T* data = reinterpret_cast<const T*>(mData + mPos); in readArray()
69 mPos += size * sizeof(T); in readArray()
77 mPos = BufferReader::align<T>(mPos); in skipArray()
[all …]
DRange.h98 RangeIterator(uint32_t pos) : mPos(pos) {} in RangeIterator()
100 inline bool operator!=(const RangeIterator& o) const { return o.mPos != mPos; }
101 inline uint32_t operator*() const { return mPos; }
103 mPos++;
108 uint32_t mPos;
/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.java36 mPos = 0; in FieldPacker()
45 mPos = data.length; in FieldPacker()
59 fp.resize(fp.mPos); in createFromArray()
68 while ((mPos & (v - 1)) != 0) { in align()
69 mAlignment.flip(mPos); in align()
70 mData[mPos++] = 0; in align()
79 while ((mPos & (v - 1)) != 0) { in subalign()
80 mPos--; in subalign()
83 if (mPos > 0) { in subalign()
84 while (mAlignment.get(mPos - 1) == true) { in subalign()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DFieldPacker.java37 mPos = 0; in FieldPacker()
46 mPos = data.length; in FieldPacker()
60 fp.resize(fp.mPos); in createFromArray()
69 while ((mPos & (v - 1)) != 0) { in align()
70 mAlignment.flip(mPos); in align()
71 mData[mPos++] = 0; in align()
80 while ((mPos & (v - 1)) != 0) { in subalign()
81 mPos--; in subalign()
84 if (mPos > 0) { in subalign()
85 while (mAlignment.get(mPos - 1) == true) { in subalign()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DBitwiseInputStream.java35 private int mPos; field in BitwiseInputStream
58 mPos = 0; in BitwiseInputStream()
66 return mEnd - mPos; in available()
80 int index = mPos >>> 3; in read()
81 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in read()
82 if ((bits < 0) || (bits > 8) || ((mPos + bits) > mEnd)) { in read()
84 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in read()
90 mPos += bits; in read()
118 if ((mPos + bits) > mEnd) { in skip()
120 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in skip()
[all …]
DBitwiseOutputStream.java35 private int mPos; field in BitwiseOutputStream
58 mPos = 0; in BitwiseOutputStream()
68 int len = (mPos >>> 3) + ((mPos & 0x07) > 0 ? 1 : 0); // &7==%8 in toByteArray()
80 if ((mPos + bits) < mEnd) return; in possExpand()
81 byte[] newBuf = new byte[(mPos + bits) >>> 2]; in possExpand()
103 int index = mPos >>> 3; in write()
104 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in write()
106 mPos += bits; in write()
134 mPos += bits; in skip()
DFastPrintWriter.java57 private int mPos; field in FastPrintWriter
300 int pos = mPos; in appendLocked()
303 pos = mPos; in appendLocked()
306 mPos = pos+1; in appendLocked()
320 int pos = mPos; in appendLocked()
323 pos = mPos; in appendLocked()
326 mPos = pos + length; in appendLocked()
340 int pos = mPos; in appendLocked()
343 pos = mPos; in appendLocked()
346 mPos = pos + length; in appendLocked()
[all …]
DFastXmlSerializer.java60 private int mPos; field in FastXmlSerializer
92 int pos = mPos; in append()
95 pos = mPos; in append()
98 mPos = pos+1; in append()
111 int pos = mPos; in append()
114 pos = mPos; in append()
117 mPos = pos + length; in append()
130 int pos = mPos; in append()
133 pos = mPos; in append()
136 mPos = pos + length; in append()
[all …]
/frameworks/minikin/libs/minikin/
DFontFileParser.cpp41 mPos(0), in SafeFontBufferReader()
48 if ((mSize - mPos) < sizeof(T)) { in readBE()
52 const T* data = reinterpret_cast<const T*>(mBuffer + mPos); in readBE()
53 mPos += sizeof(T); in readBE()
60 if ((mSize - mPos) < 2) { in readU16()
64 uint16_t out = ((uint32_t)mBuffer[mPos]) << 8 | ((uint32_t)mBuffer[mPos + 1]); in readU16()
65 mPos += 2; in readU16()
72 if ((mSize - mPos) < 4) { in readU32()
77 uint32_t out = ((uint32_t)mBuffer[mPos]) << 24 | ((uint32_t)mBuffer[mPos + 1]) << 16 | in readU32()
78 ((uint32_t)mBuffer[mPos + 2]) << 8 | ((uint32_t)mBuffer[mPos + 3]); in readU32()
[all …]
DLayoutSplitter.h62 bool operator==(const iterator& o) const { return mPos == o.mPos && mParent == o.mParent; }
74 mPos = mPieceRange.getStart();
75 mContextRange.setStart(getPrevWordBreakForCache(textBuf, mPos));
76 mContextRange.setEnd(mPos);
78 mPieceRange.setEnd(mPos);
80 mPos = mPieceRange.getEnd();
81 mContextRange.setStart(mPos);
82 mContextRange.setEnd(getNextWordBreakForCache(textBuf, mPos));
83 mPieceRange.setStart(mPos);
92 iterator(const LayoutSplitter* parent, uint32_t pos) : mParent(parent), mPos(pos) { in iterator()
[all …]
/frameworks/av/media/libmedia/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/native/services/sensorservice/
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.java48 return mWindow.getBlob(mPos, columnIndex); in getBlob()
54 return mWindow.getString(mPos, columnIndex); in getString()
60 mWindow.copyStringToBuffer(mPos, columnIndex, buffer); in copyStringToBuffer()
66 return mWindow.getShort(mPos, columnIndex); in getShort()
72 return mWindow.getInt(mPos, columnIndex); in getInt()
78 return mWindow.getLong(mPos, columnIndex); in getLong()
84 return mWindow.getFloat(mPos, columnIndex); in getFloat()
90 return mWindow.getDouble(mPos, columnIndex); in getDouble()
96 return mWindow.getType(mPos, columnIndex) == Cursor.FIELD_TYPE_NULL; in isNull()
134 return mWindow.getType(mPos, columnIndex); in getType()
DAbstractCursor.java63 protected int mPos; field in AbstractCursor
226 mPos = -1; in AbstractCursor()
232 return mPos; in getPosition()
240 mPos = count; in moveToPosition()
246 mPos = -1; in moveToPosition()
251 if (position == mPos) { in moveToPosition()
255 boolean result = onMove(mPos, position); in moveToPosition()
257 mPos = -1; in moveToPosition()
259 mPos = position; in moveToPosition()
272 return moveToPosition(mPos + offset); in move()
[all …]
/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/tests/java_api/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/base/core/java/com/android/internal/os/
DKernelCpuUidBpfMapReader.java158 private int mPos; field in KernelCpuUidBpfMapReader.BpfMapIterator
164 if (mPos >= mData.size()) { in getNextUid()
167 buf[0] = mData.keyAt(mPos); in getNextUid()
168 System.arraycopy(mData.valueAt(mPos), 0, buf, 1, mData.valueAt(mPos).length); in getNextUid()
169 mPos++; in getNextUid()
DKernelCpuProcStringReader.java198 private int mPos; field in KernelCpuProcStringReader.ProcFileIterator
206 return mPos < mSize; in hasNextLine()
217 if (mPos >= mSize) { in nextLine()
220 int i = mPos; in nextLine()
225 int start = mPos; in nextLine()
226 mPos = i + 1; in nextLine()

12