Searched refs:offset (Results 26 - 50 of 635) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/net/
H A DSntpClient.java115 // if (false) Log.d(TAG, "clock offset: " + clockOffset + " ms");
163 * Reads an unsigned 32 bit big endian number from the given offset in the buffer.
165 private long read32(byte[] buffer, int offset) { argument
166 byte b0 = buffer[offset];
167 byte b1 = buffer[offset+1];
168 byte b2 = buffer[offset+2];
169 byte b3 = buffer[offset+3];
181 * Reads the NTP time stamp at the given offset in the buffer and returns
184 private long readTimeStamp(byte[] buffer, int offset) { argument
185 long seconds = read32(buffer, offset);
194 writeTimeStamp(byte[] buffer, int offset, long time) argument
[all...]
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp135 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument
136 fseek(mFile, offset, SEEK_SET);
159 void mark(off64_t offset, size_t size) { argument
160 int firstbit = offset / 1024;
161 int lastbit = (offset + size - 1) / 1024;
203 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument
205 mReadTracker->mark(offset, size);
207 return mDataSource->readAt(offset, data, size);
437 mBufferPos += mBuffer->offset();
584 size_t offset local
1028 enter(off64_t offset, uint32_t type, uint64_t size) argument
1045 readU16(size_t offset) argument
1052 readU32(size_t offset) argument
1059 readU64(size_t offset) argument
1127 parseTrackHeader( uint32_t type, size_t offset, uint64_t size) argument
1178 parseMediaHeader( uint32_t type, size_t offset, uint64_t size) argument
1211 parseMediaHandler( uint32_t type, size_t offset, uint64_t size) argument
1239 parseVisualSampleEntry( uint32_t type, size_t offset, uint64_t size) argument
1282 parseAudioSampleEntry( uint32_t type, size_t offset, uint64_t size) argument
1348 parseSampleSizes( uint32_t type, size_t offset, uint64_t size) argument
1354 parseCompactSampleSizes( uint32_t type, size_t offset, uint64_t size) argument
1360 parseSampleToChunk( uint32_t type, size_t offset, uint64_t size) argument
1366 parseChunkOffsets( uint32_t type, size_t offset, uint64_t size) argument
1372 parseChunkOffsets64( uint32_t type, size_t offset, uint64_t size) argument
1378 parseAVCCodecSpecificData( uint32_t type, size_t offset, uint64_t size) argument
1461 parseESDSCodecSpecificData( uint32_t type, size_t offset, uint64_t size) argument
1566 parseMediaData( uint32_t type, size_t offset, uint64_t size) argument
1587 parseSegmentIndex( uint32_t type, size_t offset, uint64_t size) argument
1674 parseTrackExtends( uint32_t type, size_t offset, uint64_t size) argument
1725 parseTrackFragmentHeader( uint32_t type, size_t offset, uint64_t size) argument
1815 parseTrackFragmentRun( uint32_t type, size_t offset, uint64_t size) argument
1973 copyBuffer( sp<ABuffer> *dst, size_t offset, uint64_t size, size_t extra) const argument
[all...]
/frameworks/av/drm/common/
H A DDrmConvertedStatus.cpp25 offset(_offset) {
/frameworks/av/media/libstagefright/
H A DFileSource.cpp46 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument
48 mOffset(offset),
55 CHECK(offset >= 0);
87 ssize_t FileSource::readAt(off64_t offset, void *data, size_t size) { argument
95 if (offset >= mLength) {
98 int64_t numAvailable = mLength - offset;
106 return readAtDRM(offset, data, size);
108 off64_t result = lseek64(mFd, offset + mOffset, SEEK_SET);
110 ALOGE("seek to %lld failed", offset + mOffset);
158 ssize_t FileSource::readAtDRM(off64_t offset, voi argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DABuffer.cpp56 void ABuffer::setRange(size_t offset, size_t size) { argument
57 CHECK_LE(offset, mCapacity);
58 CHECK_LE(offset + size, mCapacity);
60 mRangeOffset = offset;
/frameworks/av/media/mtp/
H A DMtpPacket.h64 uint16_t getUInt16(int offset) const;
65 uint32_t getUInt32(int offset) const;
66 void putUInt16(int offset, uint16_t value);
67 void putUInt32(int offset, uint32_t value);
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisCallback.java61 * @param offset The offset into {@code buffer} where the audio data starts.
66 public int audioAvailable(byte[] buffer, int offset, int length); argument
/frameworks/base/core/java/android/widget/
H A DAccessibilityIterators.java51 public int[] following(int offset) { argument
56 if (offset >= mText.length()) {
60 if (offset < 0) {
63 final int currentLine = mLayout.getLineForOffset(offset);
64 if (getLineEdgeIndex(currentLine, DIRECTION_START) == offset) {
79 public int[] preceding(int offset) { argument
84 if (offset <= 0) {
88 if (offset > mText.length()) {
91 final int currentLine = mLayout.getLineForOffset(offset);
92 if (getLineEdgeIndex(currentLine, DIRECTION_END) + 1 == offset) {
136 following(int offset) argument
165 preceding(int offset) argument
[all...]
/frameworks/base/tools/preload/
H A DRecord.java140 int offset = result.indexOf("\\u");
141 while (offset >= 0) {
142 String before = result.substring(0, offset);
143 String escaped = result.substring(offset+2, offset+6);
144 String after = result.substring(offset+6);
149 offset = result.indexOf("\\u", offset + 1);
/frameworks/base/opengl/java/android/opengl/
H A DGLES11.java170 // C function void glBufferSubData ( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data )
174 int offset,
184 int offset
199 int offset
218 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
224 int offset
232 int offset
242 // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, GLint offset )
248 int offset
256 int offset
172 glBufferSubData( int target, int offset, int size, java.nio.Buffer data ) argument
[all...]
H A DGLES11Ext.java200 int offset
213 int offset
226 int offset
249 int offset
299 int offset
337 int offset
363 int offset
378 int offset
394 int offset
411 int offset
[all...]
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
H A DGL11.java161 int offset,
169 int offset
180 int offset
199 int offset
205 int offset
217 int offset
223 int offset
234 int offset
246 int offset
258 int offset
159 glBufferSubData( int target, int offset, int size, java.nio.Buffer data ) argument
[all...]
H A DGL11Ext.java40 void glTexParameterfv(int target, int pname, float[] param, int offset); argument
56 int offset
73 int offset
90 int offset
107 int offset
136 int offset
150 int offset
/frameworks/av/media/libstagefright/include/
H A 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_
[all...]
H A DESDS.h54 size_t offset, size_t size,
58 status_t parseESDescriptor(size_t offset, size_t size);
59 status_t parseDecoderConfigDescriptor(size_t offset, size_t size);
/frameworks/wilhelm/src/android/
H A DAacBqToPcmCbRenderer.cpp30 * Note that if the returned value + offset > size, it means that a partial frame starts at that
31 * offset, but this function will still return the size of the full frame.
33 * @param offset offset in bytes relative to data of where the frame is supposed to start
35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given
38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) { argument
41 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < size)) {
47 const uint8_t *syncword = data + offset;
53 const uint8_t protectionAbsent = data[offset+1] & 0x1;
55 const uint8_t* header = data + offset
85 off64_t offset = 0; local
[all...]
H A Dandroid_AudioToCbRenderer.cpp65 size_t offset = 0; local
66 while (offset < full) {
69 + offset + mDecodeBuffer->range_offset(),
70 mDecodeBuffer->range_length() - offset,
72 offset += consumed;
73 //SL_LOGV("consumed=%u, offset=%u, full=%u", consumed, offset, full);
/frameworks/av/media/libstagefright/id3/
H A Dtestid3.cpp34 size_t offset = 0; local
35 while (offset < size) {
36 printf("0x%04x ", offset);
38 size_t n = size - offset;
48 if (offset + i < size) {
49 printf("%02x ", data[offset + i]);
58 if (isprint(data[offset + i])) {
59 printf("%c", data[offset + i]);
67 offset += 16;
/frameworks/av/media/libstagefright/chromium_http/
H A DDataUriSource.cpp47 ssize_t DataUriSource::readAt(off64_t offset, void *out, size_t size) { argument
53 if (offset >= length) {
59 offset + size >= length ? (length - offset) : size;
62 memcpy(out, dataBuf + offset, bytesToCopy);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
H A DomxVCM4P2_MCReconBlock_s.s72 ;// M_LOAD_X $pSrc, $srcStep, $out0, $out1, $scratch, $offset
79 ;// $offset Difference of source data location to the source pointer
80 ;// Use when $offset != 0 (unaligned load)
89 ;// register numbering. In case offset is 0, $scratch is not modified.
92 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))
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp154 size_t offset = 0; local
156 while (offset < size) {
157 size_t offsetLF = offset;
166 if (offsetLF > offset && data[offsetLF - 1] == '\r') {
167 line.setTo(&data[offset], offsetLF - offset - 1);
169 line.setTo(&data[offset], offsetLF - offset);
175 offset = offsetLF + 1;
227 uint64_t length, offset; local
330 size_t offset = colonPos + 1; local
379 FindNextUnquoted( const AString &line, char what, size_t offset) argument
408 size_t offset = colonPos + 1; local
469 parseByteRange( const AString &line, uint64_t curOffset, uint64_t *length, uint64_t *offset) argument
[all...]
H A DLiveDataSource.h35 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
36 ssize_t readAtNonBlocking(off64_t offset, void *data, size_t size);
57 ssize_t readAt_l(off64_t offset, void *data, size_t size);
/frameworks/base/core/java/android/content/pm/
H A DMacAuthenticatedInputStream.java71 public int read(byte[] buffer, int offset, int count) throws IOException { argument
72 int numRead = super.read(buffer, offset, count);
74 mMac.update(buffer, offset, numRead);
/frameworks/base/core/java/android/webkit/
H A DKeyStoreHandler.java62 int offset = 0;
68 System.arraycopy(c.mArray, 0, cert, offset, c.mLength);
69 offset += c.mLength;
/frameworks/base/media/mca/filterfw/native/core/
H A Dnative_frame.cpp30 bool NativeFrame::WriteData(const uint8_t* data, int offset, int size) { argument
31 if (size_ >= (offset + size)) {
32 memcpy(data_ + offset, data, size);

Completed in 214 milliseconds

1234567891011>>