/frameworks/av/media/mtp/ |
D | MtpDataPacket.cpp | 55 mOffset(MTP_CONTAINER_HEADER_SIZE) in MtpDataPacket() 64 mOffset = MTP_CONTAINER_HEADER_SIZE; in reset() 76 if ((mPacketSize - mOffset < sizeof(value)) || (mOffset >= mBufferSize)) in getUInt8() 78 value = mBuffer[mOffset++]; in getUInt8() 83 if ((mPacketSize - mOffset < sizeof(value)) || ((mOffset+1) >= mBufferSize)) in getUInt16() 85 int offset = mOffset; in getUInt16() 87 mOffset += sizeof(value); in getUInt16() 92 if ((mPacketSize - mOffset < sizeof(value)) || ((mOffset+3) >= mBufferSize)) in getUInt32() 94 int offset = mOffset; in getUInt32() 97 mOffset += sizeof(value); in getUInt32() [all …]
|
/frameworks/av/media/libdatasource/ |
D | FileSource.cpp | 34 mOffset(0), in FileSource() 53 mOffset(offset), in FileSource() 59 if (mOffset < 0) { in FileSource() 60 mOffset = 0; in FileSource() 65 if (mLength > INT64_MAX - mOffset) { in FileSource() 66 mLength = INT64_MAX - mOffset; in FileSource() 70 if (mOffset > s.st_size) { in FileSource() 71 mOffset = s.st_size; in FileSource() 74 if (mOffset + mLength > s.st_size) { in FileSource() 75 mLength = s.st_size - mOffset; in FileSource() [all …]
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoInputStream.java | 134 private int mOffset = 0; field in ProtoInputStream 210 return mOffset + mDiscardedBytes; in getOffset() 564 if (mOffset >= mEnd) { in readTag() 607 final int fragment = mEnd - mOffset; in readVarint() 615 byte b = mBuffer[(mOffset + i)]; in readVarint() 641 if (mOffset + 4 <= mEnd) { in readFixed32() 644 return (mBuffer[mOffset - 4] & 0xFF) in readFixed32() 645 | ((mBuffer[mOffset - 3] & 0xFF) << 8) in readFixed32() 646 | ((mBuffer[mOffset - 2] & 0xFF) << 16) in readFixed32() 647 | ((mBuffer[mOffset - 1] & 0xFF) << 24); in readFixed32() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | FrameTracker.cpp | 34 mOffset(0), in FrameTracker() 42 mFrameRecords[mOffset].desiredPresentTime = presentTime; in setDesiredPresentTime() 47 mFrameRecords[mOffset].frameReadyTime = readyTime; in setFrameReadyTime() 53 mFrameRecords[mOffset].frameReadyFence = std::move(readyFence); in setFrameReadyFence() 59 mFrameRecords[mOffset].actualPresentTime = presentTime; in setActualPresentTime() 64 mFrameRecords[mOffset].actualPresentFence = readyFence; in setActualPresentFence() 77 updateStatsLocked(mOffset); in advanceFrame() 80 mOffset = (mOffset+1) % NUM_FRAME_RECORDS; in advanceFrame() 81 mFrameRecords[mOffset].desiredPresentTime = INT64_MAX; in advanceFrame() 82 mFrameRecords[mOffset].frameReadyTime = INT64_MAX; in advanceFrame() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | LimitedLengthInputStream.java | 25 private long mOffset; field in LimitedLengthInputStream 55 mOffset = offset; in LimitedLengthInputStream() 60 if (mOffset >= mEnd) { in read() 64 mOffset++; in read() 70 if (mOffset >= mEnd) { in read() 77 if (mOffset > Long.MAX_VALUE - byteCount) { in read() 78 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount); in read() 81 if (mOffset + byteCount > mEnd) { in read() 82 byteCount = (int) (mEnd - mOffset); in read() 86 mOffset += numRead; in read()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | InputStreamBuffer.java | 66 private int mOffset = 0; field in InputStreamBuffer 132 final int i = index - mOffset; in get() 161 if (index < mOffset) { in has() 164 String.format("Index %d is before buffer %d", index, mOffset)); in has() 167 final int i = index - mOffset; in has() 189 final int i = index - mOffset; in advanceTo() 197 mOffset = index; in advanceTo() 227 mOffset = index - burn; in advanceTo() 231 mOffset = index; in advanceTo() 263 if (index < mOffset) { in fill() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | InputStreamBuffer.java | 66 private int mOffset = 0; field in InputStreamBuffer 132 final int i = index - mOffset; in get() 161 if (index < mOffset) { in has() 164 String.format("Index %d is before buffer %d", index, mOffset)); in has() 167 final int i = index - mOffset; in has() 189 final int i = index - mOffset; in advanceTo() 197 mOffset = index; in advanceTo() 227 mOffset = index - burn; in advanceTo() 231 mOffset = index; in advanceTo() 263 if (index < mOffset) { in fill() [all …]
|
/frameworks/base/core/java/android/os/ |
D | MemoryFile.java | 250 private int mOffset = 0; field in MemoryFile.MemoryInputStream 255 if (mOffset >= mSharedMemory.getSize()) { in available() 258 return mSharedMemory.getSize() - mOffset; in available() 268 mMark = mOffset; in mark() 273 mOffset = mMark; in reset() 299 int result = readBytes(buffer, mOffset, offset, count); in read() 301 mOffset += result; in read() 308 if (mOffset + n > mSharedMemory.getSize()) { in skip() 309 n = mSharedMemory.getSize() - mOffset; in skip() 311 mOffset += n; in skip() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
D | PatternScanner.java | 30 private int mOffset = 0; field in PatternScanner 52 matcher.region(mOffset, mInput.length()); in tryEat() 57 updateLineCount(mOffset, matcher.end()); in tryEat() 58 mOffset = matcher.end(); in tryEat() 86 matcher.region(mOffset, mInput.length()); in peek() 94 matcher.region(mOffset, mInput.length()); in skip() 96 updateLineCount(mOffset, matcher.end()); in skip() 97 mOffset = matcher.end(); in skip() 102 return mOffset >= mInput.length(); in atEnd() 110 String line = mInput.substring(mStartOfLine, mOffset); in unexpectedTokenMessage()
|
/frameworks/base/libs/protoutil/src/ |
D | ProtoFileReader.cpp | 57 mOffset(0), in ProtoFileReader() 80 return hasNext() ? mBuffer + mOffset : NULL; in readBuffer() 86 return mMaxOffset - mOffset; in currentToRead() 102 return mBuffer[mOffset++]; in next() 131 mMaxOffset - mOffset > amt ? amt : mMaxOffset - mOffset; in move() 132 mOffset += chunk; in move() 147 if (mOffset < mMaxOffset) { in ensure_data() 157 mOffset = 0; in ensure_data()
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 39 private int mOffset; field in MonthDisplayHelper 107 return mOffset; in getOffset() 137 if (row == 0 && column < mOffset) { in getDayAt() 138 return mNumDaysInPrevMonth + column - mOffset + 1; in getDayAt() 141 int day = 7 * row + column - mOffset + 1; in getDayAt() 151 return (day + mOffset - 1) / 7; in getRowOf() 158 return (day + mOffset - 1) % 7; in getColumnOf() 186 if (row == 0 && column < mOffset) { in isWithinCurrentMonth() 190 int day = 7 * row + column - mOffset + 1; in isWithinCurrentMonth() 212 mOffset = offset; in recalculate()
|
/frameworks/base/opengl/java/android/opengl/ |
D | Matrix.java | 287 int mOffset) { in transposeM() argument 289 int mBase = i * 4 + mOffset; in transposeM() 310 int mOffset) { in invertM() argument 314 final float src0 = m[mOffset + 0]; in invertM() 315 final float src4 = m[mOffset + 1]; in invertM() 316 final float src8 = m[mOffset + 2]; in invertM() 317 final float src12 = m[mOffset + 3]; in invertM() 319 final float src1 = m[mOffset + 4]; in invertM() 320 final float src5 = m[mOffset + 5]; in invertM() 321 final float src9 = m[mOffset + 6]; in invertM() [all …]
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | Lines2Activity.java | 62 private float mOffset; field in Lines2Activity.LinesView 71 mOffset = offset; in LinesView() 105 drawLines(canvas, p, mOffset, yOffset); in onDraw() 108 drawLines(canvas, p, mOffset/2, yOffset/2); in onDraw() 114 drawLines(canvas, p, mOffset, yOffset); in onDraw() 117 drawLines(canvas, p, mOffset/2, yOffset/2); in onDraw() 123 drawLines(canvas, p, mOffset, yOffset); in onDraw() 126 drawLines(canvas, p, mOffset/2, yOffset/2); in onDraw() 133 drawLines(canvas, p, mOffset, yOffset); in onDraw() 136 drawLines(canvas, p, mOffset/2, yOffset/2); in onDraw() [all …]
|
D | ColoredRectsActivity.java | 62 private float mOffset; field in ColoredRectsActivity.RectsView 67 mOffset = offset; in RectsView() 80 canvas.translate(mOffset, yOffset); in onDraw() 95 canvas.translate(mOffset + 10, yOffset); in onDraw() 100 canvas.translate(mOffset + 70, yOffset); in onDraw() 105 canvas.translate(mOffset + 140, yOffset); in onDraw() 111 canvas.translate(mOffset + 210, yOffset); in onDraw() 117 canvas.translate(mOffset + 280, yOffset); in onDraw()
|
D | PathsActivity.java | 50 private final float mOffset; field in PathsActivity.PathsView 97 mOffset = mMediumPaint.getStrokeWidth(); in PathsView() 98 final int width = (int) (mPathBounds.width() + mOffset * 3.0f + 0.5f); in PathsView() 99 final int height = (int) (mPathBounds.height() + mOffset * 3.0f + 0.5f); in PathsView() 102 canvas.translate(-mPathBounds.left + mOffset * 1.5f, -mPathBounds.top + mOffset * 1.5f); in PathsView() 132 canvas.drawBitmap(mBitmap, mPathBounds.left - mOffset * 1.5f, in onDraw() 133 mPathBounds.top - mOffset * 1.5f, null); in onDraw()
|
/frameworks/av/media/module/id3/ |
D | ID3.cpp | 506 mOffset(mParent.mFirstFrameOffset), in Iterator() 532 mOffset += mFrameSize; in next() 545 *id = String8((const char *)&mParent.mData[mOffset], 3); in getID() 547 *id = String8((const char *)&mParent.mData[mOffset], 4); in getID() 551 switch (mOffset) { in getID() 603 if (mOffset == 126 || mOffset == 127) { in getstring() 767 if (mOffset + 6 > mParent.mSize) { in findFrame() 771 if (!memcmp(&mParent.mData[mOffset], "\0\0\0", 3)) { in findFrame() 776 (mParent.mData[mOffset + 3] << 16) in findFrame() 777 | (mParent.mData[mOffset + 4] << 8) in findFrame() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | CorrectionInfo.java | 28 private final int mOffset; field in CorrectionInfo 38 mOffset = offset; in CorrectionInfo() 44 mOffset = source.readInt(); in CorrectionInfo() 54 return mOffset; in getOffset() 73 return "CorrectionInfo{#" + mOffset + " \"" + mOldText + "\" -> \"" + mNewText + "\"}"; in toString() 83 dest.writeInt(mOffset); in writeToParcel()
|
D | SurroundingText.java | 62 private final int mOffset; field in SurroundingText 81 mOffset = offset; in SurroundingText() 124 return mOffset; in getOffset() 132 out.writeInt(mOffset); in writeToParcel() 191 && mOffset == that.mOffset in isEqualTo()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | SerializedFrame.java | 59 private int mOffset = 0; field in SerializedFrame.DirectByteOutputStream 67 if (mOffset + bytesToWrite > mBuffer.length) { in ensureFit() 69 mBuffer = new byte[Math.max(mOffset + bytesToWrite, mBuffer.length * 2)]; in ensureFit() 70 System.arraycopy(oldBuffer, 0, mBuffer, 0, mOffset); in ensureFit() 76 mDataOffset = mOffset; in markHeaderEnd() 80 return mOffset; in getSize() 95 System.arraycopy(b, off, mBuffer, mOffset, len); in write() 96 mOffset += len; in write() 102 mBuffer[mOffset++] = (byte)b; in write() 106 mOffset = mDataOffset; in reset() [all …]
|
/frameworks/base/libs/androidfw/ |
D | Asset.cpp | 384 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mFd(-1), mBuf(NULL) in _FileAsset() 439 assert(mOffset == 0); in openChunk() 464 assert(mOffset == 0); in openChunk() 477 assert(mOffset >= 0 && mOffset <= mLength); in read() 491 maxLen = mLength - mOffset; in read() 501 const auto readPos = mMap->data().offset(mOffset).convert<char>(); in read() 511 memcpy(buf, (char*)mBuf + mOffset, count); in read() 516 if (ftell(mFp) != mStart + mOffset) { in read() 518 ftell(mFp), (long) mStart, (long) mOffset); in read() 536 mOffset += actual; in read() [all …]
|
/frameworks/av/media/libnbaio/ |
D | SourceAudioBufferProvider.cpp | 28 mAllocated(NULL), mSize(0), mOffset(0), mRemaining(0), mGetCount(0), mFramesReleased(0) in SourceAudioBufferProvider() 53 ALOG_ASSERT(mOffset + mRemaining <= mSize); in getNextBuffer() 57 buffer->raw = (char *) mAllocated + (mOffset * mFrameSize); in getNextBuffer() 79 mOffset = 0; in getNextBuffer() 97 (buffer->raw == (char *) mAllocated + (mOffset * mFrameSize)) && in releaseBuffer() 100 (mOffset + mRemaining <= mSize)); in releaseBuffer() 101 mOffset += buffer->frameCount; in releaseBuffer()
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | OffsettableClock.java | 35 private long mOffset = 0L; field in OffsettableClock 41 return realNow() + mOffset; in now() 53 mOffset += timeMs; in fastForward() 59 mOffset = 0; in reset()
|
/frameworks/av/media/libmediaplayerservice/datasource/ |
D | PlayerServiceFileSource.cpp | 108 mFd, mOffset, mLength, mime); in DrmInitialization() 125 if (mDrmBuf != NULL && mDrmBufSize > 0 && (offset + mOffset) >= mDrmBufOffset in readAtDRM_l() 126 && (offset + mOffset + size) <= static_cast<size_t>(mDrmBufOffset + mDrmBufSize)) { in readAtDRM_l() 128 memcpy(data, (void*)(mDrmBuf+(offset+mOffset-mDrmBufOffset)), size); in readAtDRM_l() 132 mDrmBufOffset = offset + mOffset; in readAtDRM_l() 134 DRM_CACHE_SIZE, offset + mOffset); in readAtDRM_l() 145 return mDrmManagerClient->pread(mDecryptHandle, data, size, offset + mOffset); in readAtDRM_l()
|
/frameworks/av/media/module/extractors/amr/ |
D | AMRExtractor.cpp | 59 off64_t mOffset; member in android::AMRSource 242 mOffset(mIsWide ? 9 : 6), in AMRSource() 261 mOffset = mIsWide ? 9 : 6; in start() 310 mOffset = mOffsetTable[index] + (mIsWide ? 9 : 6); in read() 314 if ((err = getFrameSizeByOffset(mDataSource, mOffset, in read() 318 mOffset += size; in read() 323 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read() 350 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read() 360 mOffset += n; in read() 370 mOffset += frameSize; in read()
|
/frameworks/base/media/java/android/media/tv/ |
D | AdBuffer.java | 36 private final int mOffset; field in AdBuffer 56 this.mOffset = offset; in AdBuffer() 68 SharedMemory.fromFileDescriptor(buffer.mBuffer.getFdDup()), buffer.mOffset, in dupAdBuffer() 116 return mOffset; in getOffset() 153 dest.writeInt(mOffset); in writeToParcel() 180 this.mOffset = offset; in AdBuffer()
|