/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)) in getUInt8() 78 value = mBuffer[mOffset++]; in getUInt8() 83 if (mPacketSize - mOffset < sizeof(value)) in getUInt16() 85 int offset = mOffset; in getUInt16() 87 mOffset += sizeof(value); in getUInt16() 92 if (mPacketSize - mOffset < sizeof(value)) 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 | 130 private int mOffset = 0; field in ProtoInputStream 206 return mOffset + mDiscardedBytes; in getOffset() 560 if (mOffset >= mEnd) { in readTag() 603 final int fragment = mEnd - mOffset; in readVarint() 611 byte b = mBuffer[(mOffset + i)]; in readVarint() 637 if (mOffset + 4 <= mEnd) { in readFixed32() 640 return (mBuffer[mOffset - 4] & 0xFF) in readFixed32() 641 | ((mBuffer[mOffset - 3] & 0xFF) << 8) in readFixed32() 642 | ((mBuffer[mOffset - 2] & 0xFF) << 16) in readFixed32() 643 | ((mBuffer[mOffset - 1] & 0xFF) << 24); in readFixed32() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | FrameTracker.cpp | 37 mOffset(0), in FrameTracker() 45 mFrameRecords[mOffset].desiredPresentTime = presentTime; in setDesiredPresentTime() 50 mFrameRecords[mOffset].frameReadyTime = readyTime; in setFrameReadyTime() 56 mFrameRecords[mOffset].frameReadyFence = std::move(readyFence); in setFrameReadyFence() 62 mFrameRecords[mOffset].actualPresentTime = presentTime; in setActualPresentTime() 68 mFrameRecords[mOffset].actualPresentFence = std::move(readyFence); in setActualPresentFence() 81 updateStatsLocked(mOffset); in advanceFrame() 84 mOffset = (mOffset+1) % NUM_FRAME_RECORDS; in advanceFrame() 85 mFrameRecords[mOffset].desiredPresentTime = INT64_MAX; in advanceFrame() 86 mFrameRecords[mOffset].frameReadyTime = INT64_MAX; in advanceFrame() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | Matrix.java | 113 int mOffset) { in transposeM() argument 115 int mBase = i * 4 + mOffset; in transposeM() 136 int mOffset) { in invertM() argument 140 final float src0 = m[mOffset + 0]; in invertM() 141 final float src4 = m[mOffset + 1]; in invertM() 142 final float src8 = m[mOffset + 2]; in invertM() 143 final float src12 = m[mOffset + 3]; in invertM() 145 final float src1 = m[mOffset + 4]; in invertM() 146 final float src5 = m[mOffset + 5]; in invertM() 147 final float src9 = m[mOffset + 6]; in invertM() [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/core/java/android/util/ |
D | MonthDisplayHelper.java | 38 private int mOffset; field in MonthDisplayHelper 106 return mOffset; in getOffset() 136 if (row == 0 && column < mOffset) { in getDayAt() 137 return mNumDaysInPrevMonth + column - mOffset + 1; in getDayAt() 140 int day = 7 * row + column - mOffset + 1; in getDayAt() 150 return (day + mOffset - 1) / 7; in getRowOf() 157 return (day + mOffset - 1) % 7; in getColumnOf() 185 if (row == 0 && column < mOffset) { in isWithinCurrentMonth() 189 int day = 7 * row + column - mOffset + 1; in isWithinCurrentMonth() 211 mOffset = offset; in recalculate()
|
/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/tests/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/libstagefright/id3/ |
D | ID3.cpp | 493 mOffset(mParent.mFirstFrameOffset), in Iterator() 519 mOffset += mFrameSize; in next() 532 id->setTo((const char *)&mParent.mData[mOffset], 3); in getID() 534 id->setTo((const char *)&mParent.mData[mOffset], 4); in getID() 538 switch (mOffset) { in getID() 590 if (mOffset == 126 || mOffset == 127) { in getstring() 754 if (mOffset + 6 > mParent.mSize) { in findFrame() 758 if (!memcmp(&mParent.mData[mOffset], "\0\0\0", 3)) { in findFrame() 763 (mParent.mData[mOffset + 3] << 16) in findFrame() 764 | (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()
|
/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 | 417 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mFd(-1), mMap(NULL), mBuf(NULL) in _FileAsset() 472 assert(mOffset == 0); in openChunk() 497 assert(mOffset == 0); in openChunk() 510 assert(mOffset >= 0 && mOffset <= mLength); in read() 524 maxLen = mLength - mOffset; in read() 534 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count); in read() 539 memcpy(buf, (char*)mBuf + mOffset, count); in read() 544 if (ftell(mFp) != mStart + mOffset) { in read() 546 ftell(mFp), (long) mStart, (long) mOffset); in read() 564 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/core/java/android/bluetooth/le/ |
D | ResultStorageDescriptor.java | 31 private int mOffset; field in ResultStorageDescriptor 39 return mOffset; in getOffset() 55 mOffset = offset; in ResultStorageDescriptor() 67 dest.writeInt(mOffset); in writeToParcel() 77 mOffset = in.readInt(); in ReadFromParcel()
|
/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/extractors/amr/ |
D | AMRExtractor.cpp | 57 off64_t mOffset; member in android::AMRSource 240 mOffset(mIsWide ? 9 : 6), in AMRSource() 259 mOffset = mIsWide ? 9 : 6; in start() 294 mOffset = mOffsetTable[index] + (mIsWide ? 9 : 6); in read() 298 if ((err = getFrameSizeByOffset(mDataSource, mOffset, in read() 302 mOffset += size; in read() 307 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read() 334 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read() 344 mOffset += n; in read() 354 mOffset += frameSize; in read()
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXUtils.cpp | 103 mPlane[ix].mOffset = image.mPlane[ix].mOffset; in initFromV1() 255 image.mPlane[image.Y].mOffset = 0; in DescribeDefaultColorFormat() 268 image.mPlane[image.V].mOffset = ystride * params.nSliceHeight; in DescribeDefaultColorFormat() 274 image.mPlane[image.U].mOffset = image.mPlane[image.V].mOffset in DescribeDefaultColorFormat() 288 image.mPlane[image.U].mOffset = params.nStride * params.nSliceHeight; in DescribeDefaultColorFormat() 294 image.mPlane[image.V].mOffset = image.mPlane[image.U].mOffset in DescribeDefaultColorFormat() 306 image.mPlane[image.U].mOffset = params.nStride * params.nSliceHeight; in DescribeDefaultColorFormat() 312 image.mPlane[image.V].mOffset = image.mPlane[image.U].mOffset + 1; in DescribeDefaultColorFormat()
|