Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 1472) sorted by relevance

12345678910>>...59

/frameworks/base/core/java/android/text/method/
DWordIterator.java86 public int preceding(int offset) { in preceding() argument
87 checkOffsetIsValid(offset); in preceding()
89 offset = mIterator.preceding(offset); in preceding()
90 if (offset == BreakIterator.DONE || isOnLetterOrDigit(offset)) { in preceding()
91 return offset; in preceding()
98 public int following(int offset) { in following() argument
99 checkOffsetIsValid(offset); in following()
101 offset = mIterator.following(offset); in following()
102 if (offset == BreakIterator.DONE || isAfterLetterOrDigit(offset)) { in following()
103 return offset; in following()
[all …]
/frameworks/base/core/java/android/os/
DHwBlob.java50 public native final boolean getBool(long offset); in getBool() argument
56 public native final byte getInt8(long offset); in getInt8() argument
62 public native final short getInt16(long offset); in getInt16() argument
68 public native final int getInt32(long offset); in getInt32() argument
74 public native final long getInt64(long offset); in getInt64() argument
80 public native final float getFloat(long offset); in getFloat() argument
86 public native final double getDouble(long offset); in getDouble() argument
92 public native final String getString(long offset); in getString() argument
100 public native final long getFieldHandle(long offset); in getFieldHandle() argument
112 public native final void copyToBoolArray(long offset, boolean[] array, int size); in copyToBoolArray() argument
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
DAsn1Decoder.java50 public Asn1Decoder(byte[] bytes, int offset, int length) { in Asn1Decoder() argument
51 if (offset < 0 || length < 0 || offset + length > bytes.length) { in Asn1Decoder()
56 + offset in Asn1Decoder()
61 mPosition = offset; in Asn1Decoder()
62 mEnd = offset + length; in Asn1Decoder()
89 int offset = mPosition; in nextNode() local
92 int tagStart = offset; in nextNode()
93 byte b = mSrc[offset++]; in nextNode()
96 while (offset < mEnd && (mSrc[offset++] & 0x80) != 0) { in nextNode()
100 if (offset >= mEnd) { in nextNode()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DExif.java73 int offset = 0; in getOrientation() local
86 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) { in getOrientation()
87 final int marker = jpeg.get(offset) & 0xFF; in getOrientation()
93 offset++; in getOrientation()
102 jpeg.advanceTo(offset - readBackwards); in getOrientation()
107 length = pack(jpeg, offset, 2, false); in getOrientation()
108 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { in getOrientation()
115 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation()
116 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation()
117 offset += 8; in getOrientation()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DExif.java68 int offset = 0; in getOrientation() local
81 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) { in getOrientation()
82 final int marker = jpeg.get(offset) & 0xFF; in getOrientation()
88 offset++; in getOrientation()
97 jpeg.advanceTo(offset - readBackwards); in getOrientation()
102 length = pack(jpeg, offset, 2, false); in getOrientation()
103 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { in getOrientation()
110 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation()
111 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation()
112 offset += 8; in getOrientation()
[all …]
/frameworks/libs/binary_translation/calling_conventions/
Dcalling_conventions_riscv64_test.cc31 EXPECT_EQ(0u, loc.offset); in TEST()
35 EXPECT_EQ(1u, loc.offset); in TEST()
39 EXPECT_EQ(2u, loc.offset); in TEST()
43 EXPECT_EQ(3u, loc.offset); in TEST()
47 EXPECT_EQ(4u, loc.offset); in TEST()
51 EXPECT_EQ(5u, loc.offset); in TEST()
55 EXPECT_EQ(6u, loc.offset); in TEST()
59 EXPECT_EQ(7u, loc.offset); in TEST()
63 EXPECT_EQ(0u, loc.offset); in TEST()
67 EXPECT_EQ(8u, loc.offset); in TEST()
[all …]
Dcalling_conventions_arm_test.cc31 EXPECT_EQ(loc.offset, 0u); in TEST()
35 EXPECT_EQ(loc.offset, 2u); in TEST()
39 EXPECT_EQ(loc.offset, 0u); in TEST()
43 EXPECT_EQ(loc.offset, 0u); in TEST()
52 EXPECT_EQ(loc.offset, 0u); in TEST()
56 EXPECT_EQ(loc.offset, 2u); in TEST()
60 EXPECT_EQ(loc.offset, 8u); in TEST()
70 EXPECT_EQ(loc.offset, 8u); in TEST()
79 EXPECT_EQ(loc.offset, 0u); in TEST()
83 EXPECT_EQ(loc.offset, 2u); in TEST()
[all …]
Dcalling_conventions_x86_64_test.cc31 EXPECT_EQ(0u, loc.offset); in TEST()
35 EXPECT_EQ(1u, loc.offset); in TEST()
39 EXPECT_EQ(3u, loc.offset); in TEST()
43 EXPECT_EQ(4u, loc.offset); in TEST()
47 EXPECT_EQ(0u, loc.offset); in TEST()
51 EXPECT_EQ(8u, loc.offset); in TEST()
55 EXPECT_EQ(0u, loc.offset); in TEST()
59 EXPECT_EQ(1u, loc.offset); in TEST()
63 EXPECT_EQ(2u, loc.offset); in TEST()
67 EXPECT_EQ(3u, loc.offset); in TEST()
[all …]
/frameworks/base/core/java/android/text/
DGraphemeClusterSegmentFinder.java67 private int previousBoundary(@IntRange(from = 0) int offset) { in previousBoundary()
68 if (offset <= 0) return DONE; in previousBoundary()
70 --offset; in previousBoundary()
71 } while (offset > 0 && !mIsGraphemeBreak[offset]); in previousBoundary()
72 return offset; in previousBoundary()
75 private int nextBoundary(@IntRange(from = 0) int offset) { in nextBoundary()
76 if (offset >= mIsGraphemeBreak.length) return DONE; in nextBoundary()
78 ++offset; in nextBoundary()
79 } while (offset < mIsGraphemeBreak.length && !mIsGraphemeBreak[offset]); in nextBoundary()
80 return offset; in nextBoundary()
[all …]
DSegmentFinder.java54 public abstract int previousStartBoundary(@IntRange(from = 0) int offset); in previousStartBoundary()
60 public abstract int previousEndBoundary(@IntRange(from = 0) int offset); in previousEndBoundary()
66 public abstract int nextStartBoundary(@IntRange(from = 0) int offset); in nextStartBoundary()
72 public abstract int nextEndBoundary(@IntRange(from = 0) int offset); in nextEndBoundary()
97 public int previousStartBoundary(@IntRange(from = 0) int offset) { in previousStartBoundary()
98 return findPrevious(offset, /* isStart = */ true); in previousStartBoundary()
103 public int previousEndBoundary(@IntRange(from = 0) int offset) { in previousEndBoundary()
104 return findPrevious(offset, /* isStart = */ false); in previousEndBoundary()
109 public int nextStartBoundary(@IntRange(from = 0) int offset) { in nextStartBoundary()
110 return findNext(offset, /* isStart = */ true); in nextStartBoundary()
[all …]
/frameworks/av/media/module/extractors/mp4/
DItemTable.cpp51 offset(0), size(0), seenClap(false), nextTileIndex(0) {} in ImageItem()
76 off64_t offset; member
92 off64_t offset; member
118 status_t parseChunk(off64_t *offset);
120 status_t parseChunks(off64_t offset, size_t size);
127 status_t Box::parseChunk(off64_t *offset) { in parseChunk() argument
128 if (*offset < 0) { in parseChunk()
133 if (mDataSource->readAt(*offset, hdr, 8) < 8) { in parseChunk()
138 off64_t data_offset = *offset + 8; in parseChunk()
141 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java67 bcdToString(byte[] data, int offset, int length) { in bcdToString() argument
70 for (int i = offset ; i < offset + length ; i++) { in bcdToString()
124 public static void bcdToBytes(String bcd, byte[] bytes, int offset) { in bcdToBytes() argument
128 int size = Math.min((bytes.length - offset) * 2, bcd.length()); in bcdToBytes()
129 for (int i = 0, j = offset; i + 1 < size; i += 2, j++) { in bcdToBytes()
139 public static String bcdPlmnToString(byte[] data, int offset) { in bcdPlmnToString() argument
140 if (offset + 3 > data.length) { in bcdPlmnToString()
144 trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF)); in bcdPlmnToString()
145 trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF)); in bcdPlmnToString()
146 trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF)); in bcdPlmnToString()
[all …]
/frameworks/av/media/module/esds/
DESDS.cpp72 size_t offset, size_t size, in skipDescriptorHeader() argument
78 *tag = mData[offset++]; in skipDescriptorHeader()
88 uint8_t x = mData[offset++]; in skipDescriptorHeader()
102 *data_offset = offset; in skipDescriptorHeader()
125 status_t ESDS::parseESDescriptor(size_t offset, size_t size) { in parseESDescriptor() argument
130 offset += 2; // skip ES_ID in parseESDescriptor()
133 unsigned streamDependenceFlag = mData[offset] & 0x80; in parseESDescriptor()
134 unsigned URL_Flag = mData[offset] & 0x40; in parseESDescriptor()
135 unsigned OCRstreamFlag = mData[offset] & 0x20; in parseESDescriptor()
137 ++offset; in parseESDescriptor()
[all …]
/frameworks/av/media/mtp/
DMtpPacket.cpp94 uint16_t MtpPacket::getUInt16(int offset) const { in getUInt16()
95 if ((unsigned long)(offset+2) <= mBufferSize) { in getUInt16()
96 return ((uint16_t)mBuffer[offset + 1] << 8) | (uint16_t)mBuffer[offset]; in getUInt16()
104 uint32_t MtpPacket::getUInt32(int offset) const { in getUInt32()
105 if ((unsigned long)(offset+4) <= mBufferSize) { in getUInt32()
106 return ((uint32_t)mBuffer[offset + 3] << 24) | ((uint32_t)mBuffer[offset + 2] << 16) | in getUInt32()
107 ((uint32_t)mBuffer[offset + 1] << 8) | (uint32_t)mBuffer[offset]; in getUInt32()
115 void MtpPacket::putUInt16(int offset, uint16_t value) { in putUInt16() argument
116 if ((unsigned long)(offset+2) <= mBufferSize) { in putUInt16()
117 mBuffer[offset++] = (uint8_t)(value & 0xFF); in putUInt16()
[all …]
/frameworks/av/media/libmedia/
DMidiIoWrapper.cpp50 MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) { in MidiIoWrapper() argument
53 mBase = offset; in MidiIoWrapper()
74 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { in readAt() argument
75 return mSource->readAt(mSource->handle, offset, data, size); in readAt()
128 int MidiIoWrapper::readAt(void *buffer, int offset, int size) { in readAt() argument
129 ALOGV("readAt(%p, %d, %d)", buffer, offset, size); in readAt()
131 if (offset < 0) { in readAt()
135 if (offset + size > mLength) { in readAt()
136 size = mLength - offset; in readAt()
155 if (mCacheBufRangeLength > 0 && mCacheBufRangeLength >= (offset + size)) { in readAt()
[all …]
/frameworks/av/media/module/extractors/mp3/
DXINGSeeker.cpp87 int offset = first_frame_pos; in CreateFromSource() local
88 if (source->readAt(offset, &buffer, 4) < 4) { // get header in CreateFromSource()
91 offset += 4; in CreateFromSource()
106 if (num_channels != 1) offset += 32; in CreateFromSource()
107 else offset += 17; in CreateFromSource()
109 if (num_channels != 1) offset += 17; in CreateFromSource()
110 else offset += 9; in CreateFromSource()
113 int xingbase = offset; in CreateFromSource()
115 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID in CreateFromSource()
118 offset += 4; in CreateFromSource()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DChildHelper.java97 final int offset; in addView() local
99 offset = mCallback.getChildCount(); in addView()
101 offset = getOffset(index); in addView()
103 mBucket.insert(offset, hidden); in addView()
107 mCallback.addView(child, offset); in addView()
118 int offset = index; in getOffset() local
119 while (offset < limit) { in getOffset()
120 final int removedBefore = mBucket.countOnesBefore(offset); in getOffset()
121 final int diff = index - (offset - removedBefore); in getOffset()
123 while (mBucket.get(offset)) { // ensure this offset is not hidden in getOffset()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DDataSourceBase.h47 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
50 bool getUInt16(off64_t offset, uint16_t *x) { in getUInt16() argument
54 if (readAt(offset, byte, 2) != 2) { in getUInt16()
63 bool getUInt24(off64_t offset, uint32_t *x) { in getUInt24() argument
67 if (readAt(offset, byte, 3) != 3) { in getUInt24()
75 bool getUInt32(off64_t offset, uint32_t *x) { in getUInt32() argument
79 if (readAt(offset, &tmp, 4) != 4) { in getUInt32()
87 bool getUInt64(off64_t offset, uint64_t *x) { in getUInt64() argument
91 if (readAt(offset, &tmp, 8) != 8) { in getUInt64()
101 bool getUInt16Var(off64_t offset, uint16_t *x, size_t size) { in getUInt16Var() argument
[all …]
/frameworks/base/core/java/com/android/internal/alsa/
DLineTokenizer.java34 int offset = startIndex; in nextToken() local
35 for (; offset < len; offset++) { in nextToken()
36 if (mDelimiters.indexOf(line.charAt(offset)) == -1) { in nextToken()
42 return offset < len ? offset : kTokenNotFound; in nextToken()
47 int offset = startIndex; in nextDelimiter() local
48 for (; offset < len; offset++) { in nextDelimiter()
49 if (mDelimiters.indexOf(line.charAt(offset)) != -1) { in nextDelimiter()
55 return offset < len ? offset : kTokenNotFound; in nextDelimiter()
/frameworks/av/media/module/codecs/mp3dec/src/
Dpvmp3_getbits.cpp114 uint32 offset; in getNbits() local
128 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; in getNbits()
138 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE)); in getNbits()
141 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE)); in getNbits()
144 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getNbits()
147 Elem = *(ptBitStream->pBuffer + module(offset, BUFSIZE)); in getNbits()
175 uint32 offset; in getUpTo9bits() local
182 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; in getUpTo9bits()
191 Elem = *(ptBitStream->pBuffer + module(offset, BUFSIZE)); in getUpTo9bits()
192 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getUpTo9bits()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/
DHardwareAuthTokenUtils.java103 private static void writeLong(long l, byte[] dest, int offset) { in writeLong() argument
104 dest[offset + 0] = (byte) l; in writeLong()
105 dest[offset + 1] = (byte) (l >> 8); in writeLong()
106 dest[offset + 2] = (byte) (l >> 16); in writeLong()
107 dest[offset + 3] = (byte) (l >> 24); in writeLong()
108 dest[offset + 4] = (byte) (l >> 32); in writeLong()
109 dest[offset + 5] = (byte) (l >> 40); in writeLong()
110 dest[offset + 6] = (byte) (l >> 48); in writeLong()
111 dest[offset + 7] = (byte) (l >> 56); in writeLong()
114 private static void writeInt(int i, byte[] dest, int offset) { in writeInt() argument
[all …]
/frameworks/av/media/module/codecs/amrwb/dec/src/
Ddec_alg_codebook.cpp118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_1p_N1() argument
127 pos1 = ((index & mask) + offset); in dec_1p_N1()
145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_2p_2N1() argument
155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset))); in dec_2p_2N1()
158 pos2 = add_int16((int16)(index & mask), offset); /* pos2 = ((index & mask) + offset); */ in dec_2p_2N1()
192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_3p_3N1() argument
205 j = offset; in dec_3p_3N1()
219 dec_1p_N1(idx, N, offset, pos + 2); in dec_3p_3N1()
229 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_4p_4N1() argument
240 j = offset; in dec_4p_4N1()
[all …]
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL11.java161 int offset, in glBufferSubData() argument
169 int offset in glClipPlanef() argument
180 int offset in glClipPlanex() argument
199 int offset in glColorPointer() argument
205 int offset in glDeleteBuffers() argument
217 int offset in glDrawElements() argument
223 int offset in glGenBuffers() argument
234 int offset in glGetBooleanv() argument
246 int offset in glGetBufferParameteriv() argument
258 int offset in glGetClipPlanef() argument
[all …]
/frameworks/minikin/libs/minikin/
DGraphemeBreak.cpp63 size_t count, const size_t offset) { in isGraphemeBreak() argument
70 if (offset <= start || offset >= start + count) { in isGraphemeBreak()
73 if (U16_IS_TRAIL(buf[offset])) { in isGraphemeBreak()
75 return !U16_IS_LEAD(buf[offset - 1]); in isGraphemeBreak()
79 size_t offset_back = offset; in isGraphemeBreak()
80 size_t offset_forward = offset; in isGraphemeBreak()
112 const bool c2_has_advance = (advances != nullptr && advances[offset - start] != 0.0); in isGraphemeBreak()
172 return (offset - offset_backback) % 4 == 0; in isGraphemeBreak()
189 size_t count, size_t offset, MoveOpt opt) { in getTextRunCursor() argument
192 if (offset < start + count) { in getTextRunCursor()
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLES11.java174 int offset, in glBufferSubData() argument
184 int offset in glClipPlanef() argument
199 int offset in glClipPlanex() argument
224 int offset in glColorPointer() argument
232 int offset in glDeleteBuffers() argument
248 int offset in glDrawElements() argument
256 int offset in glGenBuffers() argument
271 int offset in glGetBooleanv() argument
287 int offset in glGetBufferParameteriv() argument
303 int offset in glGetClipPlanef() argument
[all …]

12345678910>>...59