/frameworks/rs/ |
D | rsStream.h | 32 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 …]
|
D | rsStream.cpp | 26 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/base/core/java/android/util/ |
D | StatsEvent.java | 331 private int mPos; field in StatsEvent.Builder 346 mPos = 0; in Builder() 351 mPos = POS_ATOM_ID + Byte.BYTES + Integer.BYTES; in Builder() 382 mPos += mBuffer.putBoolean(mPos, value); in writeBoolean() 394 mPos += mBuffer.putInt(mPos, value); in writeInt() 406 mPos += mBuffer.putLong(mPos, value); in writeLong() 418 mPos += mBuffer.putFloat(mPos, value); in writeFloat() 449 mPos += mBuffer.putInt(mPos, numBytes); in writeByteArray() 450 mPos += mBuffer.putByteArray(mPos, value); in writeByteArray() 477 mPos += mBuffer.putByte(mPos, numUids); in writeAttributionChain() [all …]
|
/frameworks/native/services/surfaceflinger/EventLog/ |
D | EventLog.cpp | 55 : 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/ |
D | FieldPacker.java | 32 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/rs/support/java/src/androidx/renderscript/ |
D | FieldPacker.java | 33 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/ |
D | BitwiseInputStream.java | 35 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 …]
|
D | BitwiseOutputStream.java | 35 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()
|
D | FastPrintWriter.java | 57 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 …]
|
D | FastXmlSerializer.java | 60 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/native/services/sensorservice/ |
D | RingBuffer.h | 66 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/av/media/libmedia/include/media/ |
D | RingBuffer.h | 66 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 …]
|
D | LinearMap.h | 139 mPos(0), // a circular buffer, so could start anywhere. the first sample is at 1. in LinearMap() 170 mStepValid = checkedDiff(&xdiff, x, mX[mPos], "x") in push() 172 checkedDiff(&ydiff, y, mY[mPos], "y"); in push() 189 mX[mPos] = x; in push() 190 mY[mPos] = y; in push() 195 if (++mPos >= mSize) { in push() 196 mPos = 0; in push() 207 mX[mPos] = x; in push() 208 mY[mPos] = y; in push() 278 ssize_t position = mPos - back; [all …]
|
/frameworks/minikin/libs/minikin/ |
D | LayoutSplitter.h | 62 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/base/tools/aapt/tests/ |
D | MockDirectoryWalker.h | 25 : 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/ |
D | AbstractWindowedCursor.java | 47 return mWindow.getBlob(mPos, columnIndex); in getBlob() 53 return mWindow.getString(mPos, columnIndex); in getString() 59 mWindow.copyStringToBuffer(mPos, columnIndex, buffer); in copyStringToBuffer() 65 return mWindow.getShort(mPos, columnIndex); in getShort() 71 return mWindow.getInt(mPos, columnIndex); in getInt() 77 return mWindow.getLong(mPos, columnIndex); in getLong() 83 return mWindow.getFloat(mPos, columnIndex); in getFloat() 89 return mWindow.getDouble(mPos, columnIndex); in getDouble() 95 return mWindow.getType(mPos, columnIndex) == Cursor.FIELD_TYPE_NULL; in isNull() 133 return mWindow.getType(mPos, columnIndex); in getType()
|
D | AbstractCursor.java | 62 protected int mPos; field in AbstractCursor 221 mPos = -1; in AbstractCursor() 226 return mPos; in getPosition() 234 mPos = count; in moveToPosition() 240 mPos = -1; in moveToPosition() 245 if (position == mPos) { in moveToPosition() 249 boolean result = onMove(mPos, position); in moveToPosition() 251 mPos = -1; in moveToPosition() 253 mPos = position; in moveToPosition() 266 return moveToPosition(mPos + offset); in move() [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Material.java | 47 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/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextOnPathActivity.java | 77 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()
|
D | PosTextActivity.java | 38 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/ |
D | SerializedFrame.java | 121 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/ |
D | GL2CameraEye.java | 151 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/ |
D | KernelCpuUidBpfMapReader.java | 157 private int mPos; field in KernelCpuUidBpfMapReader.BpfMapIterator 163 if (mPos >= mData.size()) { in getNextUid() 166 buf[0] = mData.keyAt(mPos); in getNextUid() 167 System.arraycopy(mData.valueAt(mPos), 0, buf, 1, mData.valueAt(mPos).length); in getNextUid() 168 mPos++; in getNextUid()
|
D | KernelCpuProcStringReader.java | 198 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()
|
/frameworks/minikin/include/minikin/ |
D | Range.h | 98 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;
|