/frameworks/av/media/mtp/ |
D | MtpDataPacket.cpp | 54 mOffset(MTP_CONTAINER_HEADER_SIZE) in MtpDataPacket() 63 mOffset = MTP_CONTAINER_HEADER_SIZE; in reset() 75 if (mPacketSize - mOffset < sizeof(value)) in getUInt8() 77 value = mBuffer[mOffset++]; in getUInt8() 82 if (mPacketSize - mOffset < sizeof(value)) in getUInt16() 84 int offset = mOffset; in getUInt16() 86 mOffset += sizeof(value); in getUInt16() 91 if (mPacketSize - mOffset < sizeof(value)) in getUInt32() 93 int offset = mOffset; in getUInt32() 96 mOffset += sizeof(value); in getUInt32() [all …]
|
/frameworks/av/media/libstagefright/ |
D | FileSource.cpp | 35 mOffset(0), in FileSource() 59 mOffset(offset), in FileSource() 70 if (mOffset < 0) { in FileSource() 71 mOffset = 0; in FileSource() 76 if (mLength > INT64_MAX - mOffset) { in FileSource() 77 mLength = INT64_MAX - mOffset; in FileSource() 81 if (mOffset > s.st_size) { in FileSource() 82 mOffset = s.st_size; in FileSource() 85 if (mOffset + mLength > s.st_size) { in FileSource() 86 mLength = s.st_size - mOffset; in FileSource() [all …]
|
D | AMRExtractor.cpp | 58 off64_t mOffset; member in android::AMRSource 214 mOffset(mIsWide ? 9 : 6), in AMRSource() 233 mOffset = mIsWide ? 9 : 6; in start() 272 mOffset = mOffsetTable[index] + (mIsWide ? 9 : 6); in read() 276 if ((err = getFrameSizeByOffset(mDataSource, mOffset, in read() 280 mOffset += size; in read() 285 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read() 312 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read() 322 mOffset += n; in read() 331 mOffset += frameSize; in read()
|
/frameworks/native/services/surfaceflinger/ |
D | FrameTracker.cpp | 33 mOffset(0), in FrameTracker() 41 mFrameRecords[mOffset].desiredPresentTime = presentTime; in setDesiredPresentTime() 46 mFrameRecords[mOffset].frameReadyTime = readyTime; in setFrameReadyTime() 52 mFrameRecords[mOffset].frameReadyFence = std::move(readyFence); in setFrameReadyFence() 58 mFrameRecords[mOffset].actualPresentTime = presentTime; in setActualPresentTime() 64 mFrameRecords[mOffset].actualPresentFence = std::move(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/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 | 24 private long mOffset; field in LimitedLengthInputStream 54 mOffset = offset; in LimitedLengthInputStream() 59 if (mOffset >= mEnd) { in read() 63 mOffset++; in read() 69 if (mOffset >= mEnd) { in read() 76 if (mOffset > Long.MAX_VALUE - byteCount) { in read() 77 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount); in read() 80 if (mOffset + byteCount > mEnd) { in read() 81 byteCount = (int) (mEnd - mOffset); in read() 85 mOffset += numRead; in read()
|
/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/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/base/core/java/android/os/ |
D | MemoryFile.java | 244 private int mOffset = 0; field in MemoryFile.MemoryInputStream 249 if (mOffset >= mSharedMemory.getSize()) { in available() 252 return mSharedMemory.getSize() - mOffset; in available() 262 mMark = mOffset; in mark() 267 mOffset = mMark; in reset() 293 int result = readBytes(buffer, mOffset, offset, count); in read() 295 mOffset += result; in read() 302 if (mOffset + n > mSharedMemory.getSize()) { in skip() 303 n = mSharedMemory.getSize() - mOffset; in skip() 305 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/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/av/media/libstagefright/id3/ |
D | ID3.cpp | 442 mOffset(mParent.mFirstFrameOffset), in Iterator() 468 mOffset += mFrameSize; in next() 481 id->setTo((const char *)&mParent.mData[mOffset], 3); in getID() 483 id->setTo((const char *)&mParent.mData[mOffset], 4); in getID() 487 switch (mOffset) { in getID() 539 if (mOffset == 126 || mOffset == 127) { in getstring() 703 if (mOffset + 6 > mParent.mSize) { in findFrame() 707 if (!memcmp(&mParent.mData[mOffset], "\0\0\0", 3)) { in findFrame() 712 (mParent.mData[mOffset + 3] << 16) in findFrame() 713 | (mParent.mData[mOffset + 4] << 8) in findFrame() [all …]
|
/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/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 | 400 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset() 455 assert(mOffset == 0); in openChunk() 479 assert(mOffset == 0); in openChunk() 492 assert(mOffset >= 0 && mOffset <= mLength); in read() 506 maxLen = mLength - mOffset; in read() 516 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count); in read() 521 memcpy(buf, (char*)mBuf + mOffset, count); in read() 526 if (ftell(mFp) != mStart + mOffset) { in read() 528 ftell(mFp), (long) mStart, (long) mOffset); in read() 546 mOffset += actual; in read() [all …]
|
/frameworks/support/content/src/android/support/content/ |
D | Query.java | 48 private final int mOffset; field in Query 72 this.mOffset = args.getInt(ContentPager.QUERY_ARG_OFFSET, -1); in Query() 78 this.mId = uri.hashCode() << 16 | (mOffset | (mLimit << 8)); in Query() 80 checkArgument(mOffset >= 0); // mOffset must be set, mLimit is optional. in Query() 101 return mOffset; in getOffset() 173 && mOffset == other.mOffset in equals() 188 + " offset:" + mOffset in toString()
|
/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/support/paging/runtime/src/main/java/android/arch/paging/ |
D | ContiguousDiffHelper.java | 95 private final int mOffset; 99 mOffset = offset; 105 mCallback.onInserted(position + mOffset, count); 110 mCallback.onRemoved(position + mOffset, count); 115 mCallback.onRemoved(fromPosition + mOffset, toPosition + mOffset); 120 mCallback.onChanged(position + mOffset, count, payload);
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | TlvBufferUtils.java | 502 private int mOffset = 0; in iterator() 506 return mOffset < mArrayLength; in iterator() 517 type = mArray[mOffset]; in iterator() 519 type = Memory.peekShort(mArray, mOffset, ByteOrder.BIG_ENDIAN); in iterator() 521 mOffset += mTypeSize; in iterator() 525 length = mArray[mOffset]; in iterator() 527 length = Memory.peekShort(mArray, mOffset, ByteOrder.BIG_ENDIAN); in iterator() 529 mOffset += mLengthSize; in iterator() 531 TlvElement tlv = new TlvElement(type, length, mArray, mOffset); in iterator() 532 mOffset += length; in iterator()
|
/frameworks/native/libs/binder/ |
D | MemoryHeapBase.cpp | 39 mDevice(NULL), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 45 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 62 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 81 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 129 mOffset = offset; in mapfd() 173 return mOffset; in getOffset()
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXUtils.cpp | 102 mPlane[ix].mOffset = image.mPlane[ix].mOffset; in initFromV1() 243 image.mPlane[image.Y].mOffset = 0; in DescribeDefaultColorFormat() 256 image.mPlane[image.V].mOffset = ystride * params.nSliceHeight; in DescribeDefaultColorFormat() 262 image.mPlane[image.U].mOffset = image.mPlane[image.V].mOffset in DescribeDefaultColorFormat() 275 image.mPlane[image.U].mOffset = params.nStride * params.nSliceHeight; in DescribeDefaultColorFormat() 281 image.mPlane[image.V].mOffset = image.mPlane[image.U].mOffset in DescribeDefaultColorFormat() 293 image.mPlane[image.U].mOffset = params.nStride * params.nSliceHeight; in DescribeDefaultColorFormat() 299 image.mPlane[image.V].mOffset = image.mPlane[image.U].mOffset + 1; in DescribeDefaultColorFormat()
|