/aosp12/frameworks/rs/ |
H A D | rsStream.h | 32 mPos = (mPos + 3) & (~3); in loadF() 38 mPos = (mPos + 3) & (~3); in loadI32() 44 mPos = (mPos + 3) & (~3); in loadU32() 50 mPos = (mPos + 1) & (~1); in loadU16() 70 mPos = 0; in reset() 78 uint64_t mPos; variable 88 mPos = (mPos + (bytes - 1)) & (~(bytes - 1)); in align() 99 mPos = (mPos + 3) & (~3); in addI32() 109 mPos = (mPos + 3) & (~3); in addU32() 119 mPos = (mPos + 1) & (~1); in addU16() [all …]
|
H A 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() 40 mPos += sizeof(uint64_t); in loadOffset() 49 mPos += len; in loadString() 57 mPos = 0; in OStream() 67 while (mPos + numBytes >= mLength) { in addByteArray() 71 mPos += numBytes; in addByteArray() 76 mPos = (mPos + 7) & (~7); in addOffset() [all …]
|
/aosp12/packages/modules/StatsD/framework/java/android/util/ |
H A D | StatsEvent.java | 399 mPos += mBuffer.putBoolean(mPos, value); in writeBoolean() 411 mPos += mBuffer.putInt(mPos, value); in writeInt() 423 mPos += mBuffer.putLong(mPos, value); in writeLong() 435 mPos += mBuffer.putFloat(mPos, value); in writeFloat() 466 mPos += mBuffer.putInt(mPos, numBytes); in writeByteArray() 467 mPos += mBuffer.putByteArray(mPos, value); in writeByteArray() 539 mPos += mBuffer.putInt(mPos, key); in writeKeyValuePairs() 547 mPos += mBuffer.putInt(mPos, key); in writeKeyValuePairs() 555 mPos += mBuffer.putInt(mPos, key); in writeKeyValuePairs() 610 mPos += mBuffer.putInt(mPos, value); in addIntAnnotation() [all …]
|
/aosp12/frameworks/minikin/include/minikin/ |
H A D | Buffer.h | 49 mPos = BufferReader::align<T>(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() 77 mPos = BufferReader::align<T>(mPos); in skipArray() 93 size_t mPos; variable 113 mPos = BufferReader::align<T>(mPos); in write() 117 mPos += sizeof(T); in write() 128 mPos = BufferReader::align<T>(mPos); in writeArray() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/EventLog/ |
H A D | EventLog.cpp | 65 mPos = 0; in log() 76 mStorage[mPos + 0] = EVENT_TYPE_LIST; in startList() 77 mStorage[mPos + 1] = count; in startList() 78 mPos += needed; in startList() 88 mStorage[mPos + 0] = '\n'; in endList() 89 mPos += needed; in endList() 99 mStorage[mPos + 0] = EVENT_TYPE_INT; in writeInt32() 101 mPos += needed; in writeInt32() 111 mStorage[mPos + 0] = EVENT_TYPE_LONG; in writeInt64() 113 mPos += needed; in writeInt64() [all …]
|
/aosp12/frameworks/base/rs/java/android/renderscript/ |
H A D | FieldPacker.java | 36 mPos = 0; in FieldPacker() 45 mPos = data.length; in FieldPacker() 59 fp.resize(fp.mPos); in createFromArray() 80 mPos--; in subalign() 83 if (mPos > 0) { in subalign() 85 mPos--; in subalign() 93 mPos = 0; in reset() 99 mPos = i; in reset() 107 mPos = res; in skip() 631 return mPos; in getPos() [all …]
|
/aosp12/frameworks/rs/support/java/src/androidx/renderscript/ |
H A D | FieldPacker.java | 37 mPos = 0; in FieldPacker() 46 mPos = data.length; in FieldPacker() 60 fp.resize(fp.mPos); in createFromArray() 81 mPos--; in subalign() 84 if (mPos > 0) { in subalign() 86 mPos--; in subalign() 94 mPos = 0; in reset() 100 mPos = i; in reset() 108 mPos = res; in skip() 632 return mPos; in getPos() [all …]
|
/aosp12/frameworks/minikin/libs/minikin/ |
H A D | FontFileParser.cpp | 41 mPos(0), in SafeFontBufferReader() 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() 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() 79 mPos += 4; in readU32() 89 mPos = pos; in seek() 95 return mSize - mPos; in remaining() [all …]
|
H A 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 …]
|
/aosp12/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
H A D | BitwiseInputStream.java | 33 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 "illegal read (pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in read() 85 mPos += bits; in read() 111 if ((mPos + bits) > mEnd) { in skip() 113 "illegal skip (pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in skip() [all …]
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A 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 …]
|
H A 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()
|
H A 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() 340 int pos = mPos; in appendLocked() 343 pos = mPos; in appendLocked() 362 if (mPos > 0) { in flushLocked() 388 final int len = sepLen < mPos ? sepLen : mPos; in flushLocked() [all …]
|
/aosp12/frameworks/native/services/sensorservice/ |
H A D | RingBuffer.h | 66 size_t mPos; variable 92 size_t mPos; variable 185 mPos = mSize; 189 mPos = ((CC_UNLIKELY(mPos == 0)) ? mSize - 1 : mPos - 1); 202 return (mPtr + mPos) == (rhs.mPtr + rhs.mPos); 207 return (mPtr + mPos) != (rhs.mPtr + rhs.mPos); 217 return mPtr + mPos; 229 mPos = mSize; 233 mPos = ((CC_UNLIKELY(mPos == 0)) ? mSize - 1 : mPos - 1); 246 return (mPtr + mPos) == (rhs.mPtr + rhs.mPos); [all …]
|
/aosp12/frameworks/av/media/libmedia/include/media/ |
H A D | RingBuffer.h | 66 size_t mPos; variable 92 size_t mPos; variable 185 mPos = mSize; 189 mPos = ((CC_UNLIKELY(mPos == 0)) ? mSize - 1 : mPos - 1); 202 return (mPtr + mPos) == (rhs.mPtr + rhs.mPos); 207 return (mPtr + mPos) != (rhs.mPtr + rhs.mPos); 217 return mPtr + mPos; 229 mPos = mSize; 233 mPos = ((CC_UNLIKELY(mPos == 0)) ? mSize - 1 : mPos - 1); 246 return (mPtr + mPos) == (rhs.mPtr + rhs.mPos); [all …]
|
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
H A D | dynamic_pt_reading_helper.h | 88 return mReadingState.mPos == NOT_A_DICT_POS; in isEnd() 94 mReadingState.mPos = NOT_A_DICT_POS; in initWithPtNodeArrayPos() 97 mReadingState.mPos = ptNodeArrayPos; in initWithPtNodeArrayPos() 110 mReadingState.mPos = NOT_A_DICT_POS; in initWithPtNodePos() 113 mReadingState.mPos = ptNodePos; in initWithPtNodePos() 181 mReadingState.mPos = NOT_A_DICT_POS; in readChildNode() 193 mReadingState.mPos = ptNodeParams.getParentPos(); in readParentNode() 197 mReadingState.mPos = NOT_A_DICT_POS; in readParentNode() 233 int mPos; variable 266 mReadingState.mPos = NOT_A_DICT_POS; in pushReadingStateToStack() [all …]
|
/aosp12/frameworks/base/tools/aapt/tests/ |
H A 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;
|
/aosp12/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A 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() 200 mOpacity[0].mPos = start; in setup() 204 mOpacity[1].mPos = end; in setup() 220 for (int i = mOpacity[k].mPos; i < mOpacity[k + 1].mPos; i++) { in buildOpacityTable() 222 float dist = mOpacity[k + 1].mPos - mOpacity[k].mPos; in buildOpacityTable() 259 for (int i = m[k].mPos; i < m[k + 1].mPos; i++) { in buildMaterialProp() [all …]
|
/aosp12/frameworks/base/core/java/android/database/ |
H A D | AbstractCursor.java | 63 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() 257 mPos = -1; in moveToPosition() 259 mPos = position; in moveToPosition() 311 return mPos == -1; in isBeforeFirst() 319 return mPos == getCount(); in isAfterLast() [all …]
|
H A D | AbstractWindowedCursor.java | 48 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()
|
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A 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()
|
H A 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()
|
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | ListSuggestionCursor.java | 41 private int mPos = 0; field in ListSuggestionCursor 75 return mPos; in getPosition() 79 mPos = pos; in moveTo() 84 if (mPos >= size) { in moveToNext() 88 mPos++; in moveToNext() 89 return mPos < size; in moveToNext() 93 mSuggestions.remove(mPos); in removeRow() 97 mSuggestions.set(mPos, new Entry(suggestion)); in replaceRow() 106 return mSuggestions.get(mPos).get(); in current() 140 return mSuggestions.get(mPos).getExtras(); in getExtras()
|
/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A 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 …]
|
/aosp12/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
H A 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() 372 mPos[0] = mPos[0] + mVel[0]*deltaT; in doPhysics() 373 mPos[1] = mPos[1] + mVel[1]*deltaT; in doPhysics() 374 mPos[2] = mPos[2] + mVel[2]*deltaT; in doPhysics() 377 Matrix.translateM(mMMatrix, 0, mPos[0], mPos[1], mPos[2]); in doPhysics() [all …]
|