/frameworks/av/media/mtp/ |
D | MtpDataPacket.cpp | 34 mOffset(MTP_CONTAINER_HEADER_SIZE) in MtpDataPacket() 43 mOffset = MTP_CONTAINER_HEADER_SIZE; in reset() 55 int offset = mOffset; in getUInt16() 57 mOffset += 2; in getUInt16() 62 int offset = mOffset; in getUInt32() 65 mOffset += 4; in getUInt32() 70 int offset = mOffset; in getUInt64() 75 mOffset += 8; in getUInt64() 156 allocate(mOffset + 1); in putInt8() 157 mBuffer[mOffset++] = (uint8_t)value; in putInt8() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | Matrix.java | 108 int mOffset) { in transposeM() argument 110 int mBase = i * 4 + mOffset; in transposeM() 129 int mOffset) { in invertM() argument 133 final float src0 = m[mOffset + 0]; in invertM() 134 final float src4 = m[mOffset + 1]; in invertM() 135 final float src8 = m[mOffset + 2]; in invertM() 136 final float src12 = m[mOffset + 3]; in invertM() 138 final float src1 = m[mOffset + 4]; in invertM() 139 final float src5 = m[mOffset + 5]; in invertM() 140 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/av/media/libstagefright/id3/ |
D | ID3.cpp | 348 mOffset(mParent.mFirstFrameOffset), in Iterator() 374 mOffset += mFrameSize; in next() 387 id->setTo((const char *)&mParent.mData[mOffset], 3); in getID() 389 id->setTo((const char *)&mParent.mData[mOffset], 4); in getID() 393 switch (mOffset) { in getID() 488 if (mOffset == 126 || mOffset == 127) { in getstring() 592 if (mOffset + 6 > mParent.mSize) { in findFrame() 596 if (!memcmp(&mParent.mData[mOffset], "\0\0\0", 3)) { in findFrame() 601 (mParent.mData[mOffset + 3] << 16) in findFrame() 602 | (mParent.mData[mOffset + 4] << 8) in findFrame() [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/base/core/java/android/os/ |
D | MemoryFile.java | 259 private int mOffset = 0; field in MemoryFile.MemoryInputStream 264 if (mOffset >= mLength) { in available() 267 return mLength - mOffset; in available() 277 mMark = mOffset; in mark() 282 mOffset = mMark; in reset() 308 int result = readBytes(buffer, mOffset, offset, count); in read() 310 mOffset += result; in read() 317 if (mOffset + n > mLength) { in skip() 318 n = mLength - mOffset; in skip() 320 mOffset += n; in skip() [all …]
|
/frameworks/av/media/libstagefright/ |
D | FileSource.cpp | 29 mOffset(0), in FileSource() 48 mOffset(offset), in FileSource() 108 off64_t result = lseek64(mFd, offset + mOffset, SEEK_SET); in readAt() 110 ALOGE("seek to %lld failed", offset + mOffset); in readAt() 141 mFd, mOffset, mLength, mime); in DrmInitialization() 164 if (mDrmBuf != NULL && mDrmBufSize > 0 && (offset + mOffset) >= mDrmBufOffset in readAtDRM() 165 && (offset + mOffset + size) <= (mDrmBufOffset + mDrmBufSize)) { in readAtDRM() 167 memcpy(data, (void*)(mDrmBuf+(offset+mOffset-mDrmBufOffset)), size); in readAtDRM() 171 mDrmBufOffset = offset + mOffset; in readAtDRM() 173 DRM_CACHE_SIZE, offset + mOffset); in readAtDRM() [all …]
|
D | AMRExtractor.cpp | 58 off64_t mOffset; member in android::AMRSource 208 mOffset(mIsWide ? 9 : 6), in AMRSource() 227 mOffset = mIsWide ? 9 : 6; in start() 266 mOffset = mOffsetTable[index] + (mIsWide ? 9 : 6); in read() 270 if ((err = getFrameSizeByOffset(mDataSource, mOffset, in read() 274 mOffset += size; in read() 279 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read() 306 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read() 319 mOffset += frameSize; in read()
|
D | AACExtractor.cpp | 60 off64_t mOffset; member in android::AACSource 241 mOffset(0), in AACSource() 259 mOffset = 0; in start() 261 mOffset = mOffsetVector.itemAt(0); in start() 297 mOffset = mOffsetVector.itemAt(seekFrame); in read() 302 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read() 313 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read() 325 mOffset += frameSize; in read()
|
D | JPEGSource.cpp | 61 mOffset(0) { in JPEGSource() 80 mOffset = 0; in start() 123 ssize_t n = mSource->readAt(mOffset, buffer->data(), mSize - mOffset); in read() 134 mOffset += n; in read()
|
/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()
|
D | LinesActivity.java | 67 private float mOffset; field in LinesActivity.LinesView 110 mOffset = offset; in setOffset() 129 canvas.drawPoint(500.0f + x * (15.0f + mOffset), in onDraw() 130 y * (15.0f + mOffset), mLargePaint); in onDraw()
|
/frameworks/base/libs/androidfw/ |
D | Asset.cpp | 356 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset() 404 assert(mOffset == 0); in openChunk() 428 assert(mOffset == 0); in openChunk() 441 assert(mOffset >= 0 && mOffset <= mLength); in read() 455 maxLen = mLength - mOffset; in read() 465 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count); in read() 470 memcpy(buf, (char*)mBuf + mOffset, count); in read() 475 if (ftell(mFp) != mStart + mOffset) { in read() 477 ftell(mFp), (long) mStart, (long) mOffset); in read() 495 mOffset += actual; in read() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | SerializedFrame.java | 63 private int mOffset = 0; field in SerializedFrame.DirectByteOutputStream 71 if (mOffset + bytesToWrite > mBuffer.length) { in ensureFit() 73 mBuffer = new byte[Math.max(mOffset + bytesToWrite, mBuffer.length * 2)]; in ensureFit() 74 System.arraycopy(oldBuffer, 0, mBuffer, 0, mOffset); in ensureFit() 80 mDataOffset = mOffset; in markHeaderEnd() 84 return mOffset; in getSize() 99 System.arraycopy(b, off, mBuffer, mOffset, len); in write() 100 mOffset += len; in write() 106 mBuffer[mOffset++] = (byte)b; in write() 110 mOffset = mDataOffset; in reset() [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/av/media/libnbaio/ |
D | SourceAudioBufferProvider.cpp | 28 mAllocated(NULL), mSize(0), mOffset(0), mRemaining(0), mGetCount(0) in SourceAudioBufferProvider() 53 ALOG_ASSERT(mOffset + mRemaining <= mSize); in getNextBuffer() 57 buffer->raw = (char *) mAllocated + (mOffset << mFrameBitShift); in getNextBuffer() 71 mOffset = 0; in getNextBuffer() 87 (buffer->raw == (char *) mAllocated + (mOffset << mFrameBitShift)) && in releaseBuffer() 90 (mOffset + mRemaining <= mSize)); in releaseBuffer() 91 mOffset += buffer->frameCount; in releaseBuffer()
|
/frameworks/native/libs/binder/ |
D | MemoryHeapBase.cpp | 45 mDevice(NULL), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 51 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 68 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 87 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 144 mOffset = offset; in mapfd() 188 return mOffset; in getOffset()
|
D | IMemory.cpp | 111 mutable uint32_t mOffset; member in android::BpMemoryHeap 131 mutable ssize_t mOffset; member in android::BpMemory 170 : BpInterface<IMemory>(impl), mOffset(0), mSize(0) in BpMemory() 190 mOffset = o; in getMemory() 196 if (offset) *offset = mOffset; in getMemory() 234 mHeapId(-1), mBase(MAP_FAILED), mSize(0), mFlags(0), mOffset(0), mRealHeap(false) in BpMemoryHeap() 275 mOffset = heap->mOffset; in assertMapped() 324 mOffset = offset; in assertReallyMapped() 353 return mOffset; in getOffset()
|
/frameworks/base/core/java/android/widget/ |
D | TableRow.java | 227 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth; in measureChildBeforeLayout() 236 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT]; in measureChildBeforeLayout() 239 … lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] / 2; in measureChildBeforeLayout() 243 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] = 0; in measureChildBeforeLayout() 268 return ((TableRow.LayoutParams) child.getLayoutParams()).mOffset[LayoutParams.LOCATION]; in getLocationOffset() 276 … return ((TableRow.LayoutParams) child.getLayoutParams()).mOffset[LayoutParams.LOCATION_NEXT]; in getNextLocationOffset() 418 private int[] mOffset = new int[2]; field in TableRow.LayoutParams
|
D | ScrollBarDrawable.java | 37 private int mOffset; field in ScrollBarDrawable 90 if (mRange != range || mOffset != offset || mExtent != extent) { in setParameters() 95 mOffset = offset; in setParameters() 125 int offset = Math.round((float) (size - length) * mOffset / (range - extent)); in draw() 247 return "ScrollBarDrawable: range=" + mRange + " offset=" + mOffset + in toString()
|
/frameworks/av/media/libstagefright/httplive/ |
D | LiveDataSource.cpp | 31 : mOffset(0), in LiveDataSource() 61 if (offset != mOffset) { in readAtNonBlocking() 91 if (offset != mOffset) { in readAt_l() 105 mOffset += sizeDone; in readAt_l() 131 mOffset += sizeDone; in readAt_l()
|
/frameworks/wilhelm/src/android/util/ |
D | AacAdtsExtractor.cpp | 214 mOffset(0), in AacAdtsSource() 232 mOffset = 0; in start() 270 SL_LOGV("AacAdtsSource::read() offset=%lld", mOffset); in read() 271 if ((frameSize = getFrameSize(mDataSource, mOffset)) == 0) { in read() 284 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(), in read() 298 mOffset += frameSize; in read()
|