Searched refs:mOffset (Results 1 - 25 of 124) sorted by relevance

12345

/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
H A DDecodeException.java6 private final int mOffset; field in class:DecodeException
10 mOffset = offset;
15 return super.toString() + " at " + mOffset;
/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java24 private long mOffset; field in class:LimitedLengthInputStream
54 mOffset = offset;
59 if (mOffset >= mEnd) {
63 mOffset++;
69 if (mOffset >= mEnd) {
76 if (mOffset > Long.MAX_VALUE - byteCount) {
77 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount);
80 if (mOffset + byteCount > mEnd) {
81 byteCount = (int) (mEnd - mOffset);
85 mOffset
[all...]
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp54 mOffset(MTP_CONTAINER_HEADER_SIZE)
63 mOffset = MTP_CONTAINER_HEADER_SIZE;
75 if (mPacketSize - mOffset < sizeof(value))
77 value = mBuffer[mOffset++];
82 if (mPacketSize - mOffset < sizeof(value))
84 int offset = mOffset;
86 mOffset += sizeof(value);
91 if (mPacketSize - mOffset < sizeof(value))
93 int offset = mOffset;
96 mOffset
[all...]
/frameworks/native/libs/binder/
H A DMemoryBase.cpp30 : mSize(size), mOffset(offset), mHeap(heap)
36 if (offset) *offset = mOffset;
/frameworks/base/core/java/android/view/inputmethod/
H A DCorrectionInfo.java28 private final int mOffset; field in class:CorrectionInfo
38 mOffset = offset;
44 mOffset = source.readInt();
54 return mOffset;
73 return "CorrectionInfo{#" + mOffset + " \"" + mOldText + "\" -> \"" + mNewText + "\"}";
83 dest.writeInt(mOffset);
/frameworks/base/core/java/android/util/
H A DMonthDisplayHelper.java38 private int mOffset; field in class:MonthDisplayHelper
106 return mOffset;
136 if (row == 0 && column < mOffset) {
137 return mNumDaysInPrevMonth + column - mOffset + 1;
140 int day = 7 * row + column - mOffset + 1;
150 return (day + mOffset - 1) / 7;
157 return (day + mOffset - 1) % 7;
185 if (row == 0 && column < mOffset) {
189 int day = 7 * row + column - mOffset + 1;
211 mOffset
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DPatternScanner.java30 private int mOffset = 0; field in class:PatternScanner
52 matcher.region(mOffset, mInput.length());
57 updateLineCount(mOffset, matcher.end());
58 mOffset = matcher.end();
86 matcher.region(mOffset, mInput.length());
94 matcher.region(mOffset, mInput.length());
96 updateLineCount(mOffset, matcher.end());
97 mOffset = matcher.end();
102 return mOffset >= mInput.length();
110 String line = mInput.substring(mStartOfLine, mOffset);
[all...]
/frameworks/av/media/libstagefright/
H A DFileSource.cpp35 mOffset(0),
59 mOffset(offset),
70 if (mOffset < 0) {
71 mOffset = 0;
76 if (mLength > INT64_MAX - mOffset) {
77 mLength = INT64_MAX - mOffset;
81 if (mOffset > s.st_size) {
82 mOffset = s.st_size;
85 if (mOffset + mLength > s.st_size) {
86 mLength = s.st_size - mOffset;
[all...]
H A DAMRExtractor.cpp58 off64_t mOffset; member in class:android::AMRSource
214 mOffset(mIsWide ? 9 : 6),
233 mOffset = mIsWide ? 9 : 6;
272 mOffset = mOffsetTable[index] + (mIsWide ? 9 : 6);
276 if ((err = getFrameSizeByOffset(mDataSource, mOffset,
280 mOffset += size;
285 ssize_t n = mDataSource->readAt(mOffset, &header, 1);
312 n = mDataSource->readAt(mOffset, buffer->data(), frameSize);
322 mOffset += n;
331 mOffset
[all...]
/frameworks/native/services/surfaceflinger/
H A DFrameTracker.cpp33 mOffset(0),
41 mFrameRecords[mOffset].desiredPresentTime = presentTime;
46 mFrameRecords[mOffset].frameReadyTime = readyTime;
52 mFrameRecords[mOffset].frameReadyFence = std::move(readyFence);
58 mFrameRecords[mOffset].actualPresentTime = presentTime;
64 mFrameRecords[mOffset].actualPresentFence = std::move(readyFence);
77 updateStatsLocked(mOffset);
80 mOffset = (mOffset+1) % NUM_FRAME_RECORDS;
81 mFrameRecords[mOffset]
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DResultStorageDescriptor.java31 private int mOffset; field in class:ResultStorageDescriptor
39 return mOffset;
55 mOffset = offset;
67 dest.writeInt(mOffset);
77 mOffset = in.readInt();
/frameworks/native/include/binder/
H A DMemoryBase.h39 ssize_t getOffset() const { return mOffset; }
44 ssize_t mOffset; member in class:android::MemoryBase
/frameworks/native/libs/binder/include/binder/
H A DMemoryBase.h39 ssize_t getOffset() const { return mOffset; }
44 ssize_t mOffset; member in class:android::MemoryBase
/frameworks/av/media/libnbaio/
H A DSourceAudioBufferProvider.cpp28 mAllocated(NULL), mSize(0), mOffset(0), mRemaining(0), mGetCount(0), mFramesReleased(0)
53 ALOG_ASSERT(mOffset + mRemaining <= mSize);
57 buffer->raw = (char *) mAllocated + (mOffset * mFrameSize);
79 mOffset = 0;
97 (buffer->raw == (char *) mAllocated + (mOffset * mFrameSize)) &&
100 (mOffset + mRemaining <= mSize));
101 mOffset += buffer->frameCount;
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DInputStreamBuffer.java66 private int mOffset = 0; field in class:InputStreamBuffer
132 final int i = index - mOffset;
161 if (index < mOffset) {
164 String.format("Index %d is before buffer %d", index, mOffset));
167 final int i = index - mOffset;
189 final int i = index - mOffset;
197 mOffset = index;
227 mOffset = index - burn;
231 mOffset = index;
263 if (index < mOffset) {
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DInputStreamBuffer.java66 private int mOffset = 0; field in class:InputStreamBuffer
132 final int i = index - mOffset;
161 if (index < mOffset) {
164 String.format("Index %d is before buffer %d", index, mOffset));
167 final int i = index - mOffset;
189 final int i = index - mOffset;
197 mOffset = index;
227 mOffset = index - burn;
231 mOffset = index;
263 if (index < mOffset) {
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DLines2Activity.java62 private float mOffset; field in class:Lines2Activity.LinesView
71 mOffset = offset;
105 drawLines(canvas, p, mOffset, yOffset);
108 drawLines(canvas, p, mOffset/2, yOffset/2);
114 drawLines(canvas, p, mOffset, yOffset);
117 drawLines(canvas, p, mOffset/2, yOffset/2);
123 drawLines(canvas, p, mOffset, yOffset);
126 drawLines(canvas, p, mOffset/2, yOffset/2);
133 drawLines(canvas, p, mOffset, yOffset);
136 drawLines(canvas, p, mOffset/
[all...]
H A DColoredRectsActivity.java62 private float mOffset; field in class:ColoredRectsActivity.RectsView
67 mOffset = offset;
80 canvas.translate(mOffset, yOffset);
95 canvas.translate(mOffset + 10, yOffset);
100 canvas.translate(mOffset + 70, yOffset);
105 canvas.translate(mOffset + 140, yOffset);
111 canvas.translate(mOffset + 210, yOffset);
117 canvas.translate(mOffset + 280, yOffset);
/frameworks/av/media/libstagefright/id3/
H A DID3.cpp424 mOffset(mParent.mFirstFrameOffset),
450 mOffset += mFrameSize;
463 id->setTo((const char *)&mParent.mData[mOffset], 3);
465 id->setTo((const char *)&mParent.mData[mOffset], 4);
469 switch (mOffset) {
521 if (mOffset == 126 || mOffset == 127) {
682 if (mOffset + 6 > mParent.mSize) {
686 if (!memcmp(&mParent.mData[mOffset], "\0\0\0", 3)) {
691 (mParent.mData[mOffset
[all...]
/frameworks/base/core/java/android/os/
H A DMemoryFile.java264 private int mOffset = 0; field in class:MemoryFile.MemoryInputStream
269 if (mOffset >= mLength) {
272 return mLength - mOffset;
282 mMark = mOffset;
287 mOffset = mMark;
313 int result = readBytes(buffer, mOffset, offset, count);
315 mOffset += result;
322 if (mOffset + n > mLength) {
323 n = mLength - mOffset;
325 mOffset
332 private int mOffset = 0; field in class:MemoryFile.MemoryOutputStream
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java110 * @param mOffset an offset into m where the input matrix is stored.
113 int mOffset) {
115 int mBase = i * 4 + mOffset;
132 * @param mOffset an offset into m where the input matrix is stored.
136 int mOffset) {
140 final float src0 = m[mOffset + 0];
141 final float src4 = m[mOffset + 1];
142 final float src8 = m[mOffset + 2];
143 final float src12 = m[mOffset + 3];
145 final float src1 = m[mOffset
112 transposeM(float[] mTrans, int mTransOffset, float[] m, int mOffset) argument
135 invertM(float[] mInv, int mInvOffset, float[] m, int mOffset) argument
269 orthoM(float[] m, int mOffset, float left, float right, float bottom, float top, float near, float far) argument
446 scaleM(float[] sm, int smOffset, float[] m, int mOffset, float x, float y, float z) argument
468 scaleM(float[] m, int mOffset, float x, float y, float z) argument
491 translateM(float[] tm, int tmOffset, float[] m, int mOffset, float x, float y, float z) argument
514 translateM( float[] m, int mOffset, float x, float y, float z) argument
537 rotateM(float[] rm, int rmOffset, float[] m, int mOffset, float a, float x, float y, float z) argument
557 rotateM(float[] m, int mOffset, float a, float x, float y, float z) argument
[all...]
/frameworks/av/media/img_utils/src/
H A DEndianUtils.cpp23 : mOffset(0), mOutput(out), mEndian(end) {}
28 mOffset = 0;
41 return mOffset;
51 mOffset += count;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DItemAlignmentFacet.java49 int mOffset = 0; field in class:ItemAlignmentFacet.ItemAlignmentDef
60 mOffset = offset;
70 return mOffset;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSerializedFrame.java59 private int mOffset = 0; field in class:SerializedFrame.DirectByteOutputStream
67 if (mOffset + bytesToWrite > mBuffer.length) {
69 mBuffer = new byte[Math.max(mOffset + bytesToWrite, mBuffer.length * 2)];
70 System.arraycopy(oldBuffer, 0, mBuffer, 0, mOffset);
76 mDataOffset = mOffset;
80 return mOffset;
95 System.arraycopy(b, off, mBuffer, mOffset, len);
96 mOffset += len;
102 mBuffer[mOffset++] = (byte)b;
106 mOffset
[all...]
/frameworks/base/wifi/java/android/net/wifi/aware/
H A DTlvBufferUtils.java502 private int mOffset = 0;
506 return mOffset < mArrayLength;
517 type = mArray[mOffset];
519 type = Memory.peekShort(mArray, mOffset, ByteOrder.BIG_ENDIAN);
521 mOffset += mTypeSize;
525 length = mArray[mOffset];
527 length = Memory.peekShort(mArray, mOffset, ByteOrder.BIG_ENDIAN);
529 mOffset += mLengthSize;
531 TlvElement tlv = new TlvElement(type, length, mArray, mOffset);
532 mOffset
[all...]

Completed in 503 milliseconds

12345