Home
last modified time | relevance | path

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

12345678910>>...44

/frameworks/base/core/java/android/text/method/
DWordIterator.java71 public int preceding(int offset) { in preceding() argument
72 checkOffsetIsValid(offset); in preceding()
74 offset = mIterator.preceding(offset); in preceding()
75 if (offset == BreakIterator.DONE || isOnLetterOrDigit(offset)) { in preceding()
76 return offset; in preceding()
82 public int following(int offset) { in following() argument
83 checkOffsetIsValid(offset); in following()
85 offset = mIterator.following(offset); in following()
86 if (offset == BreakIterator.DONE || isAfterLetterOrDigit(offset)) { in following()
87 return offset; in following()
[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/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/base/core/java/android/bluetooth/
DBluetoothGattCharacteristic.java512 public Integer getIntValue(int formatType, int offset) { in getIntValue() argument
513 if ((offset + getTypeLen(formatType)) > mValue.length) return null; in getIntValue()
517 return unsignedByteToInt(mValue[offset]); in getIntValue()
520 return unsignedBytesToInt(mValue[offset], mValue[offset+1]); in getIntValue()
523 return unsignedBytesToInt(mValue[offset], mValue[offset+1], in getIntValue()
524 mValue[offset+2], mValue[offset+3]); in getIntValue()
526 return unsignedToSigned(unsignedByteToInt(mValue[offset]), 8); in getIntValue()
529 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue()
530 mValue[offset+1]), 16); in getIntValue()
533 return unsignedToSigned(unsignedBytesToInt(mValue[offset], in getIntValue()
[all …]
/frameworks/av/media/libstagefright/
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 …]
DXINGSeeker.cpp86 int offset = first_frame_pos; in CreateFromSource() local
87 if (source->readAt(offset, &buffer, 4) < 4) { // get header in CreateFromSource()
90 offset += 4; in CreateFromSource()
107 if (num_channels != 1) offset += 32; in CreateFromSource()
108 else offset += 17; in CreateFromSource()
110 if (num_channels != 1) offset += 17; in CreateFromSource()
111 else offset += 9; in CreateFromSource()
114 int xingbase = offset; in CreateFromSource()
116 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID in CreateFromSource()
119 offset += 4; in CreateFromSource()
[all …]
/frameworks/base/libs/common_time/
Dcommon_time_server_packets.cpp42 if ((offset + sizeof(field_name)) > length) \
44 *((type*)(data + offset)) = converter(field_name); \
45 offset += sizeof(field_name); \
53 if ((offset + sizeof(field_name)) > length) \
55 (field_name) = converter(*((type*)(data + offset))); \
56 offset += sizeof(field_name); \
80 ssize_t offset = 0; in serializeHeader() local
87 return offset; in serializeHeader()
92 ssize_t offset = 0; in deserializeHeader() local
100 return offset; in deserializeHeader()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java44 bcdToString(byte[] data, int offset, int length) { in bcdToString() argument
47 for (int i = offset ; i < offset + length ; i++) { in bcdToString()
69 public static String bcdPlmnToString(byte[] data, int offset) { in bcdPlmnToString() argument
70 if (offset + 3 > data.length) { in bcdPlmnToString()
74 trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF)); in bcdPlmnToString()
75 trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF)); in bcdPlmnToString()
76 trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF)); in bcdPlmnToString()
90 bchToString(byte[] data, int offset, int length) { in bchToString() argument
93 for (int i = offset ; i < offset + length ; i++) { in bchToString()
110 cdmaBcdToString(byte[] data, int offset, int length) { in cdmaBcdToString() argument
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/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/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/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/libstagefright/codecs/amrwb/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/av/media/mtp/
DMtpPacket.cpp94 uint16_t MtpPacket::getUInt16(int offset) const { in getUInt16()
95 return ((uint16_t)mBuffer[offset + 1] << 8) | (uint16_t)mBuffer[offset]; in getUInt16()
98 uint32_t MtpPacket::getUInt32(int offset) const { in getUInt32()
99 return ((uint32_t)mBuffer[offset + 3] << 24) | ((uint32_t)mBuffer[offset + 2] << 16) | in getUInt32()
100 ((uint32_t)mBuffer[offset + 1] << 8) | (uint32_t)mBuffer[offset]; in getUInt32()
103 void MtpPacket::putUInt16(int offset, uint16_t value) { in putUInt16() argument
104 mBuffer[offset++] = (uint8_t)(value & 0xFF); in putUInt16()
105 mBuffer[offset++] = (uint8_t)((value >> 8) & 0xFF); in putUInt16()
108 void MtpPacket::putUInt32(int offset, uint32_t value) { in putUInt32() argument
109 mBuffer[offset++] = (uint8_t)(value & 0xFF); in putUInt32()
[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/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 …]
DGLErrorWrapper.java207 public void glDeleteTextures(int n, int[] textures, int offset) { in glDeleteTextures() argument
209 mgl.glDeleteTextures(n, textures, offset); in glDeleteTextures()
297 public void glFogfv(int pname, float[] params, int offset) { in glFogfv() argument
299 mgl.glFogfv(pname, params, offset); in glFogfv()
315 public void glFogxv(int pname, int[] params, int offset) { in glFogxv() argument
317 mgl.glFogxv(pname, params, offset); in glFogxv()
347 public void glGenTextures(int n, int[] textures, int offset) { in glGenTextures() argument
349 mgl.glGenTextures(n, textures, offset); in glGenTextures()
365 public void glGetIntegerv(int pname, int[] params, int offset) { in glGetIntegerv() argument
367 mgl.glGetIntegerv(pname, params, offset); in glGetIntegerv()
[all …]
/frameworks/minikin/libs/minikin/
DLayoutUtils.cpp55 const uint16_t* chars, size_t offset, size_t len) { in getPrevWordBreakForCache() argument
56 if (offset == 0) return 0; in getPrevWordBreakForCache()
57 if (offset > len) offset = len; in getPrevWordBreakForCache()
58 if (isWordBreakBefore(chars[offset - 1])) { in getPrevWordBreakForCache()
59 return offset - 1; in getPrevWordBreakForCache()
61 for (size_t i = offset - 1; i > 0; i--) { in getPrevWordBreakForCache()
73 const uint16_t* chars, size_t offset, size_t len) { in getNextWordBreakForCache() argument
74 if (offset >= len) return len; in getNextWordBreakForCache()
75 if (isWordBreakAfter(chars[offset])) { in getNextWordBreakForCache()
76 return offset + 1; in getNextWordBreakForCache()
[all …]
DGraphemeBreak.cpp60 size_t count, const size_t offset) { in isGraphemeBreak() argument
67 if (offset <= start || offset >= start + count) { in isGraphemeBreak()
70 if (U16_IS_TRAIL(buf[offset])) { in isGraphemeBreak()
72 return !U16_IS_LEAD(buf[offset - 1]); in isGraphemeBreak()
76 size_t offset_back = offset; in isGraphemeBreak()
77 size_t offset_forward = offset; in isGraphemeBreak()
113 const bool c2_has_advance = (advances != nullptr && advances[offset - start] != 0.0); in isGraphemeBreak()
189 return (offset - offset_backback) % 4 == 0; in isGraphemeBreak()
206 size_t count, size_t offset, MoveOpt opt) { in getTextRunCursor() argument
209 if (offset < start + count) { in getTextRunCursor()
[all …]
/frameworks/native/opengl/libagl/
Dmipmap.cpp62 size_t offset = (y*2) * bs; in buildAPyramid() local
64 uint32_t p00 = src[offset]; in buildAPyramid()
65 uint32_t p10 = src[offset+1]; in buildAPyramid()
66 uint32_t p01 = src[offset+bs]; in buildAPyramid()
67 uint32_t p11 = src[offset+bs+1]; in buildAPyramid()
75 offset += 2; in buildAPyramid()
84 size_t offset = (y*2) * bs; in buildAPyramid() local
86 uint32_t p00 = src[offset]; in buildAPyramid()
87 uint32_t p10 = src[offset+1]; in buildAPyramid()
88 uint32_t p01 = src[offset+bs]; in buildAPyramid()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
DomxVCM4P2_MCReconBlock_s.s106 M_LOAD_X $pSrc, $srcStep, $out0, $out1, $scratch, $offset
107 IF $offset = 0
114 MOV $out0, $out0, LSR #8 * $offset
115 ORR $out0, $out0, $out1, LSL #(32 - 8 * ($offset))
116 MOV $out1, $out1, LSR #8 * $offset
117 ORR $out1, $out1, $scratch, LSL #(32 - 8 * ($offset))
169 M_LOAD_XINT $pSrc, $srcStep, $offset, $word0, $word1, $word2, $word3
170 IF $offset /= 3
217 M_EXT_XINT $offset, $word0, $word1, $word2, $word3
218 IF $offset = 0
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_getbits.cpp114 uint32 offset; in getNbits() local
127 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; in getNbits()
129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); in getNbits()
130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getNbits()
131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE)); in getNbits()
132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE)); in getNbits()
162 uint32 offset; in getUpTo9bits() local
168 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; in getUpTo9bits()
170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); in getUpTo9bits()
171 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getUpTo9bits()
[all …]
/frameworks/base/core/java/com/android/internal/midi/
DMidiFramer.java48 public static String formatMidiData(byte[] data, int offset, int count) { in formatMidiData() argument
49 String text = "MIDI+" + offset + " : "; in formatMidiData()
51 text += String.format("0x%02X, ", data[offset + i]); in formatMidiData()
60 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
62 int sysExStartOffset = (mInSysEx ? offset : -1); in onSend()
65 final byte currentByte = data[offset]; in onSend()
76 sysExStartOffset = offset; in onSend()
81 offset - sysExStartOffset + 1, timestamp); in onSend()
95 offset - sysExStartOffset, timestamp); in onSend()
96 sysExStartOffset = offset + 1; in onSend()
[all …]
/frameworks/base/core/java/android/os/
DHwBlob.java37 public native final boolean getBool(long offset); in getBool() argument
38 public native final byte getInt8(long offset); in getInt8() argument
39 public native final short getInt16(long offset); in getInt16() argument
40 public native final int getInt32(long offset); in getInt32() argument
41 public native final long getInt64(long offset); in getInt64() argument
42 public native final float getFloat(long offset); in getFloat() argument
43 public native final double getDouble(long offset); in getDouble() argument
44 public native final String getString(long offset); in getString() argument
46 public native final void putBool(long offset, boolean x); in putBool() argument
47 public native final void putInt8(long offset, byte x); in putInt8() argument
[all …]
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java292 int offset in glDeleteTextures() argument
391 int offset in glFogfv() argument
413 int offset in glFogxv() argument
456 int offset in glGenTextures() argument
476 int offset in glGetIntegerv() argument
521 int offset in glLightModelfv() argument
543 int offset in glLightModelxv() argument
567 int offset in glLightfv() argument
592 int offset in glLightxv() argument
624 int offset in glLoadMatrixf() argument
[all …]
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DCharsets.java52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) { in toAsciiBytes() argument
54 cb.put(chars, offset, length); in toAsciiBytes()
62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) { in toIsoLatin1Bytes() argument
64 cb.put(chars, offset, length); in toIsoLatin1Bytes()
72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) { in toUtf8Bytes() argument
74 cb.put(chars, offset, length); in toUtf8Bytes()
82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { in toBigEndianUtf16Bytes() argument
84 int end = offset + length; in toBigEndianUtf16Bytes()
86 for (int i = offset; i < end; ++i) { in toBigEndianUtf16Bytes()
102 public static void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) { in asciiBytesToChars() argument
[all …]

12345678910>>...44