Home
last modified time | relevance | path

Searched refs:mPos (Results 1 – 25 of 36) 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 s->setTo((const char *)&mData[mPos], len); in loadString()
49 mPos += len; in loadString()
56 mPos = 0; in OStream()
66 while (mPos + numBytes >= mLength) { in addByteArray()
[all …]
/frameworks/base/graphics/java/android/renderscript/
DFieldPacker.java33 mPos = 0; in FieldPacker()
40 mPos = 0; in FieldPacker()
51 while ((mPos & (v - 1)) != 0) { in align()
52 mAlignment.flip(mPos); in align()
53 mData[mPos++] = 0; in align()
62 while ((mPos & (v - 1)) != 0) { in subalign()
63 mPos--; in subalign()
66 if (mPos > 0) { in subalign()
67 while (mAlignment.get(mPos - 1) == true) { in subalign()
68 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()
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/
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.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 …]
DMatrixCursor.java69 if (mPos < 0) { in get()
72 if (mPos >= rowCount) { in get()
75 return data[mPos * columnCount + column]; in get()
DMergeCursor.java33 mPos = -1;
38 mPos = -1;
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DFieldPacker.java48 mPos = 0; in FieldPacker()
65 while ((mPos & (v - 1)) != 0) { in align()
66 mData[mPos++] = 0; in align()
75 mPos = 0; in reset()
85 mPos = i; in reset()
93 int res = mPos + i; in skip()
97 mPos = res; in skip()
105 mData[mPos++] = v; in addI8()
114 mData[mPos++] = (byte)(v & 0xff); in addI16()
115 mData[mPos++] = (byte)(v >> 8); in addI16()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
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()
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()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DSerializedFrame.java125 private int mPos = 0; field in SerializedFrame.DirectByteInputStream
135 return mSize - mPos; in available()
140 return (mPos < mSize) ? (mBuffer[mPos++] & 0xFF) : -1; in read()
145 if (mPos >= mSize) { in read()
148 if ((mPos + len) > mSize) { in read()
149 len = mSize - mPos; in read()
151 System.arraycopy(mBuffer, mPos, b, off, len); in read()
152 mPos += len; in read()
158 if ((mPos + n) > mSize) { in skip()
159 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/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()
207 wid = replacement.getSize(workPaint, mText, mTextStart + mPos, in addStyleRun()
208 mTextStart + mPos + len, fm); in addStyleRun()
210 w[mPos] = wid; in addStyleRun()
211 for (int i = mPos + 1, e = mPos + len; i < e; i++) in addStyleRun()
213 mPos += len; in addStyleRun()
/frameworks/rs/cpp/
DrsCppStructs.h406 size_t mPos; variable
411 : mPos(0), in FieldPacker()
426 while ((mPos & (v - 1)) != 0) { in align()
427 mData[mPos++] = 0; in align()
432 mPos = 0; in reset()
440 mPos = i; in reset()
444 size_t res = mPos + i; in skip()
449 mPos = res; in skip()
463 if (mPos + sizeof(t) <= mLen) { in add()
464 memcpy(&mData[mPos], &t, sizeof(t)); in add()
[all …]
/frameworks/base/tools/aapt/
DResourceTable.h296 mItemFormat(ResTable_map::TYPE_ANY), mNameIndex(-1), mPos(pos) in Entry()
348 const SourcePos& getPos() const { return mPos; } in getPos()
359 SourcePos mPos; variable
365 : mName(name), mPos(pos), mPublic(false), mEntryIndex(-1) { } in ConfigList()
369 const SourcePos& getPos() const { return mPos; } in getPos()
393 const SourcePos mPos; variable
429 : mName(name), mFirstPublicSourcePos(NULL), mPublicIndex(-1), mIndex(-1), mPos(pos) in Type()
463 const SourcePos& getPos() const { return mPos; } in getPos()
474 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/base/core/jni/android/graphics/
DTextLayoutCache.h139 inline const jfloat* getPos() const { return mPos.array(); } in getPos()
140 inline size_t getPosCount() const { return mPos.size(); } in getPosCount()
160 Vector<jfloat> mPos; variable
/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.cpp630 mPos = 0; in play()
730 if (mPos < (int)sample->size()) { in process()
731 uint8_t* p = sample->data() + mPos; in process()
732 count = sample->size() - mPos; in process()
738 } else if (mPos < mAudioBufferSize) { in process()
739 count = mAudioBufferSize - mPos; in process()
747 mPos += count; in process()
893 mState, mChannelID, mNumChannels, mPos, mPriority, mLoop); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
DTabletStatusBarView.java37 private final int[] mPos = new int[2]; field in TabletStatusBarView
122 final int[] p = mPos; in eventInside()
/frameworks/base/core/java/com/android/internal/database/
DSortCursor.java46 mPos = -1;
51 mPos = -1;

12