Home
last modified time | relevance | path

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

12345678910>>...28

/frameworks/native/libs/gui/
DSensor.cpp111 size_t write(void* buffer, size_t offset, const String8& value) { in write() argument
112 memcpy(static_cast<char*>(buffer) + offset, value.string(), value.length()); in write()
117 size_t write(void* buffer, size_t offset, float value) { in write() argument
118 *reinterpret_cast<float*>(static_cast<char*>(buffer) + offset) = value; in write()
123 size_t write(void* buffer, size_t offset, int32_t value) { in write() argument
124 *reinterpret_cast<int32_t*>(static_cast<char*>(buffer) + offset) = value; in write()
130 size_t offset = 0; in flatten() local
131 offset += write(buffer, offset, int32_t(mName.length())); in flatten()
132 offset += write(buffer, offset, mName); in flatten()
133 offset += write(buffer, offset, int32_t(mVendor.length())); in flatten()
[all …]
/frameworks/ex/photoviewer/src/com/android/ex/photo/util/
DExif.java30 int offset = 0; in getOrientation() local
34 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation()
35 int marker = jpeg[offset] & 0xFF; in getOrientation()
41 offset++; in getOrientation()
53 length = pack(jpeg, offset, 2, false); in getOrientation()
54 if (length < 2 || offset + length > jpeg.length) { in getOrientation()
61 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation()
62 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation()
63 offset += 8; in getOrientation()
69 offset += length; in getOrientation()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DExif.java30 int offset = 0; in getOrientation() local
34 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation()
35 int marker = jpeg[offset] & 0xFF; in getOrientation()
41 offset++; in getOrientation()
53 length = pack(jpeg, offset, 2, false); in getOrientation()
54 if (length < 2 || offset + length > jpeg.length) { in getOrientation()
61 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation()
62 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation()
63 offset += 8; in getOrientation()
69 offset += length; in getOrientation()
[all …]
/frameworks/av/media/libstagefright/
DESDS.cpp70 size_t offset, size_t size, in skipDescriptorHeader() argument
76 *tag = mData[offset++]; in skipDescriptorHeader()
86 uint8_t x = mData[offset++]; in skipDescriptorHeader()
100 *data_offset = offset; in skipDescriptorHeader()
123 status_t ESDS::parseESDescriptor(size_t offset, size_t size) { in parseESDescriptor() argument
128 offset += 2; // skip ES_ID in parseESDescriptor()
131 unsigned streamDependenceFlag = mData[offset] & 0x80; in parseESDescriptor()
132 unsigned URL_Flag = mData[offset] & 0x40; in parseESDescriptor()
133 unsigned OCRstreamFlag = mData[offset] & 0x20; in parseESDescriptor()
135 ++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 …]
DFileSource.cpp46 FileSource::FileSource(int fd, int64_t offset, int64_t length) in FileSource() argument
48 mOffset(offset), in FileSource()
55 CHECK(offset >= 0); in FileSource()
87 ssize_t FileSource::readAt(off64_t offset, void *data, size_t size) { in readAt() argument
95 if (offset >= mLength) { in readAt()
98 int64_t numAvailable = mLength - offset; in readAt()
106 return readAtDRM(offset, data, size); in readAt()
108 off64_t result = lseek64(mFd, offset + mOffset, SEEK_SET); in readAt()
110 ALOGE("seek to %lld failed", offset + mOffset); in readAt()
158 ssize_t FileSource::readAtDRM(off64_t offset, void *data, size_t size) { in readAtDRM() argument
[all …]
/frameworks/base/services/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/av/media/libstagefright/mp4/
DFragmentedMP4Parser.cpp135 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { in readAt()
136 fseek(mFile, offset, SEEK_SET); in readAt()
159 void mark(off64_t offset, size_t size) { in mark()
160 int firstbit = offset / 1024; in mark()
161 int lastbit = (offset + size - 1) / 1024; in mark()
203 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { in readAt()
205 mReadTracker->mark(offset, size); in readAt()
207 return mDataSource->readAt(offset, data, size); in readAt()
437 mBufferPos += mBuffer->offset(); in onMessageReceived()
584 size_t offset = 8; in onProceed() local
[all …]
DTrackFragment.cpp244 FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) { in parseSampleSizes() argument
245 if (offset + 12 > size) { in parseSampleSizes()
249 if (parser->readU32(offset) != 0) { in parseSampleSizes()
253 uint32_t sampleSize = parser->readU32(offset + 4); in parseSampleSizes()
254 uint32_t sampleCount = parser->readU32(offset + 8); in parseSampleSizes()
256 if (sampleSize == 0 && offset + 12 + sampleCount * 4 != size) { in parseSampleSizes()
260 parser->copyBuffer(&mSampleSizes, offset, size); in parseSampleSizes()
268 FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) { in parseCompactSampleSizes() argument
269 if (offset + 12 > size) { in parseCompactSampleSizes()
273 if (parser->readU32(offset) != 0) { in parseCompactSampleSizes()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccUtils.java45 bcdToString(byte[] data, int offset, int length) { in bcdToString() argument
48 for (int i = offset ; i < offset + length ; i++) { in bcdToString()
70 cdmaBcdToString(byte[] data, int offset, int length) { in cdmaBcdToString() argument
74 for (int i = offset; count < length; i++) { in cdmaBcdToString()
178 adnStringFieldToString(byte[] data, int offset, int length) { in adnStringFieldToString() argument
183 if (data[offset] == (byte) 0x80) { in adnStringFieldToString()
188 ret = new String(data, offset + 1, ucslen * 2, "utf-16be"); in adnStringFieldToString()
210 if (length >= 3 && data[offset] == (byte) 0x81) { in adnStringFieldToString()
211 len = data[offset + 1] & 0xFF; in adnStringFieldToString()
215 base = (char) ((data[offset + 2] & 0xFF) << 7); in adnStringFieldToString()
[all …]
/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 …]
DGLLogWrapper.java118 private void arg(String name, int n, int[] arr, int offset) { in arg() argument
119 arg(name, toString(n, FORMAT_INT, arr, offset)); in arg()
122 private void arg(String name, int n, short[] arr, int offset) { in arg() argument
123 arg(name, toString(n, arr, offset)); in arg()
126 private void arg(String name, int n, float[] arr, int offset) { in arg() argument
127 arg(name, toString(n, arr, offset)); in arg()
144 private String toString(int n, int format, int[] arr, int offset) { in toString() argument
149 int index = offset + i; in toString()
162 private String toString(int n, short[] arr, int offset) { in toString() argument
167 int index = offset + i; in toString()
[all …]
DGLES11Ext.java200 int offset in glDrawTexsvOES() argument
213 int offset in glDrawTexivOES() argument
226 int offset in glDrawTexxvOES() argument
249 int offset in glDrawTexfvOES() argument
299 int offset in glClipPlanexOES() argument
337 int offset in glFogxvOES() argument
363 int offset in glGetClipPlanexOES() argument
378 int offset in glGetFixedvOES() argument
394 int offset in glGetLightxvOES() argument
411 int offset in glGetMaterialxvOES() argument
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
DomxVCM4P2_MCReconBlock_s.s92 M_LOAD_X $pSrc, $srcStep, $out0, $out1, $scratch, $offset
93 IF $offset = 0
100 MOV $out0, $out0, LSR #8 * $offset
101 ORR $out0, $out0, $out1, LSL #(32 - 8 * ($offset))
102 MOV $out1, $out1, LSR #8 * $offset
103 ORR $out1, $out1, $scratch, LSL #(32 - 8 * ($offset))
155 M_LOAD_XINT $pSrc, $srcStep, $offset, $word0, $word1, $word2, $word3
156 IF $offset /= 3
203 M_EXT_XINT $offset, $word0, $word1, $word2, $word3
204 IF $offset = 0
[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/mpeg2ts/
DESQueue.cpp399 size_t offset = 0; in dequeueAccessUnitAAC() local
400 while (offset + 7 <= mBuffer->size()) { in dequeueAccessUnitAAC()
401 ABitReader bits(mBuffer->data() + offset, mBuffer->size() - offset); in dequeueAccessUnitAAC()
452 if (offset + aac_frame_length > mBuffer->size()) { in dequeueAccessUnitAAC()
461 if (offset == 0) { in dequeueAccessUnitAAC()
465 offset += aac_frame_length; in dequeueAccessUnitAAC()
468 if (offset == 0) { in dequeueAccessUnitAAC()
472 sp<ABuffer> accessUnit = new ABuffer(offset); in dequeueAccessUnitAAC()
473 memcpy(accessUnit->data(), mBuffer->data(), offset); in dequeueAccessUnitAAC()
475 memmove(mBuffer->data(), mBuffer->data() + offset, in dequeueAccessUnitAAC()
[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/android/net/
DSntpClient.java165 private long read32(byte[] buffer, int offset) { in read32() argument
166 byte b0 = buffer[offset]; in read32()
167 byte b1 = buffer[offset+1]; in read32()
168 byte b2 = buffer[offset+2]; in read32()
169 byte b3 = buffer[offset+3]; in read32()
184 private long readTimeStamp(byte[] buffer, int offset) { in readTimeStamp() argument
185 long seconds = read32(buffer, offset); in readTimeStamp()
186 long fraction = read32(buffer, offset + 4); in readTimeStamp()
194 private void writeTimeStamp(byte[] buffer, int offset, long time) { in writeTimeStamp() argument
200 buffer[offset++] = (byte)(seconds >> 24); in writeTimeStamp()
[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/av/media/libstagefright/httplive/
DM3UParser.cpp159 size_t offset = 0; in parse() local
161 while (offset < size) { in parse()
162 size_t offsetLF = offset; in parse()
171 if (offsetLF > offset && data[offsetLF - 1] == '\r') { in parse()
172 line.setTo(&data[offset], offsetLF - offset - 1); in parse()
174 line.setTo(&data[offset], offsetLF - offset); in parse()
180 offset = offsetLF + 1; in parse()
234 uint64_t length, offset; in parse() local
235 err = parseByteRange(line, segmentRangeOffset, &length, &offset); in parse()
242 itemMeta->setInt64("range-offset", offset); in parse()
[all …]
/frameworks/av/media/libstagefright/include/
DFragmentedMP4Parser.h33 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
184 void enter(off64_t offset, uint32_t type, uint64_t size);
186 uint16_t readU16(size_t offset);
187 uint32_t readU32(size_t offset);
188 uint64_t readU64(size_t offset);
194 uint32_t type, size_t offset, uint64_t size);
197 uint32_t type, size_t offset, uint64_t size);
200 uint32_t type, size_t offset, uint64_t size);
203 uint32_t type, size_t offset, uint64_t size);
206 uint32_t type, size_t offset, uint64_t size);
[all …]

12345678910>>...28