Searched defs:offset (Results 51 - 75 of 448) sorted by relevance

1234567891011>>

/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmSmsAddress.java35 * @param offset the offset of the Address-Length byte
41 public GsmSmsAddress(byte[] data, int offset, int length) throws ParseException { argument
43 System.arraycopy(data, offset, origBytes, 0, length);
54 offset + OFFSET_TOA);
H A DSimTlv.java38 public SimTlv(byte[] record, int offset, int length) { argument
41 this.tlvOffset = offset;
43 curOffset = offset;
/frameworks/rs/driver/
H A DrsdVertexArray.h37 uint32_t offset; member in class:RsdVertexArray::Attrib
46 void set(uint32_t type, uint32_t size, uint32_t stride, bool normalized, uint32_t offset, const char *name);
/frameworks/support/volley/src/com/android/volley/toolbox/
H A DPoolingByteArrayOutputStream.java83 public synchronized void write(byte[] buffer, int offset, int len) { argument
85 super.write(buffer, offset, len);
/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/include/media/stagefright/
H A DDataSource.h53 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
56 bool getUInt16(off64_t offset, uint16_t *x);
65 virtual status_t reconnectAtOffset(off64_t offset) { argument
/frameworks/av/media/libmediaplayerservice/nuplayer/mp4/
H A DMP4Source.cpp36 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument
37 if (offset < mPosition) {
41 while (offset > mPosition) {
43 off64_t skipBytes = offset - mPosition;
61 ALOGV("skipped %ld bytes at offset %lld", n, mPosition);
89 ALOGV("read %ld bytes at offset %lld", n, mPosition);
/frameworks/av/media/libstagefright/
H A DESDS.cpp70 size_t offset, size_t size,
76 *tag = mData[offset++];
86 uint8_t x = mData[offset++];
100 *data_offset = offset;
123 status_t ESDS::parseESDescriptor(size_t offset, size_t size) { argument
128 offset += 2; // skip ES_ID
131 unsigned streamDependenceFlag = mData[offset] & 0x80;
132 unsigned URL_Flag = mData[offset] & 0x40;
133 unsigned OCRstreamFlag = mData[offset] & 0x20;
135 ++offset;
69 skipDescriptorHeader( size_t offset, size_t size, uint8_t *tag, size_t *data_offset, size_t *data_size) const argument
191 parseDecoderConfigDescriptor(size_t offset, size_t size) argument
[all...]
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...]
H A DMediaBuffer.cpp136 void MediaBuffer::set_range(size_t offset, size_t length) { argument
137 if ((mGraphicBuffer == NULL) && (offset + length > mSize)) {
138 ALOGE("offset = %d, length = %d, mSize = %d", offset, length, mSize);
140 CHECK((mGraphicBuffer != NULL) || (offset + length <= mSize));
142 mRangeOffset = offset;
H A DSkipCutBuffer.cpp42 int32_t offset = buffer->range_offset(); local
49 offset += to_drop;
51 buffer->set_range(offset, buflen);
57 char *src = ((char*) buffer->data()) + offset;
69 int32_t offset = buffer->offset(); local
76 offset += to_drop;
78 buffer->setRange(offset, buflen);
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dgrp_data.c55 Word32 offset; local
82 offset = 0;
85 groupedSfbOffset[i] = offset + sfbOffset[sfb] * groupLen[grp];
88 offset += groupLen[grp] * FRAME_LEN_SHORT;
95 offset = 0;
101 offset += groupLen[grp] * FRAME_LEN_SHORT;
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddec_alg_codebook.cpp118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) argument
127 pos1 = ((index & mask) + offset);
145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) argument
154 /* pos1 = (((index >> N) & mask) + offset); */
155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset)));
158 pos2 = add_int16((int16)(index & mask), offset); /* pos2 = ((index & mask) + offset); */
192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) argument
205 j = offset;
219 dec_1p_N1(idx, N, offset, po
229 dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]) argument
265 dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]) argument
316 dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]) argument
350 dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Didct.cpp133 int offset = width - 8; local
264 comp += offset;
332 comp += offset;
/frameworks/av/media/libstagefright/httplive/
H A DLiveDataSource.cpp58 off64_t offset, void *data, size_t size) {
61 if (offset != mOffset) {
82 return readAt_l(offset, data, size);
85 ssize_t LiveDataSource::readAt(off64_t offset, void *data, size_t size) { argument
87 return readAt_l(offset, data, size);
90 ssize_t LiveDataSource::readAt_l(off64_t offset, void *data, size_t size) { argument
91 if (offset != mOffset) {
124 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
57 readAtNonBlocking( off64_t offset, void *data, size_t size) argument
/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/rtsp/
H A DAH263Assembler.cpp111 buffer->setRange(buffer->offset() + skip, buffer->size() - skip);
143 size_t offset = 0; local
148 memcpy((uint8_t *)accessUnit->data() + offset,
151 offset += unit->size();
H A DARTPAssembler.cpp85 size_t offset = 0; local
89 uint8_t *dst = accessUnit->data() + offset;
113 offset += nal->size() + 7;
131 size_t offset = 0; local
135 memcpy(accessUnit->data() + offset, nal->data(), nal->size());
136 offset += nal->size();
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInput.java152 * @param offset Offset within the 'data' array at which the data will be placed
159 public int readEntityData(byte[] data, int offset, int size) throws IOException { argument
161 int result = readEntityData_native(mBackupReader, data, offset, size);
192 private native int readEntityData_native(int mBackupReader, byte[] data, int offset, int size); argument
/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/base/core/java/android/speech/srec/
H A DMicrophoneInputStream.java70 public int read(byte[] b, int offset, int length) throws IOException { argument
73 return AudioRecordRead(mAudioRecord, b, offset, length);
107 private static native int AudioRecordRead(int audioRecord, byte[] b, int offset, int length) throws IOException; argument
H A DUlawEncoderInputStream.java116 * @param offset offset of start of 16 bit pcm data.
120 public static int maxAbsPcm(byte[] pcmBuf, int offset, int length) { argument
123 int pcm = (0xff & pcmBuf[offset++]) + (pcmBuf[offset++] << 8);
141 public int read(byte[] buf, int offset, int length) throws IOException { argument
153 encode(mBuf, 0, buf, offset, n, mMax);
/frameworks/base/core/java/android/text/
H A DGraphicsOperations.java71 int getTextRunCursor(int contextStart, int contextEnd, int flags, int offset, argument
/frameworks/base/core/java/android/text/method/
H A DWordIterator.java71 public int preceding(int offset) { argument
72 int shiftedOffset = offset - mOffsetShift;
85 public int following(int offset) { argument
86 int shiftedOffset = offset - mOffsetShift;
98 /** If <code>offset</code> is within a word, returns the index of the first character of that
103 * If offset is the index of a low surrogate character, BreakIterator.DONE will be returned.
105 * Valid range for offset is [0..textLength] (note the inclusive upper bound).
106 * The returned value is within [0..offset] or BreakIterator.DONE.
108 * @throws IllegalArgumentException is offset is not valid.
110 public int getBeginning(int offset) { argument
140 getEnd(int offset) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DByteArrayBuilder.java46 public synchronized void append(byte[] array, int offset, int length) { argument
60 System.arraycopy(array, offset, c.mArray, c.mLength, amount);
63 offset += amount;

Completed in 546 milliseconds

1234567891011>>