Searched refs:offset (Results 1 - 25 of 511) sorted by relevance

1234567891011>>

/frameworks/base/libs/binder/
H A DMemoryBase.cpp29 ssize_t offset, size_t size)
30 : mSize(size), mOffset(offset), mHeap(heap)
34 sp<IMemoryHeap> MemoryBase::getMemory(ssize_t* offset, size_t* size) const argument
36 if (offset) *offset = mOffset;
28 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument
/frameworks/base/libs/gui/
H A DSensor.cpp115 size_t write(void* buffer, size_t offset, const String8& value) { argument
116 memcpy(static_cast<char*>(buffer) + offset, value.string(), value.length());
121 size_t write(void* buffer, size_t offset, float value) { argument
122 *reinterpret_cast<float*>(static_cast<char*>(buffer) + offset) = value;
127 size_t write(void* buffer, size_t offset, int32_t value) { argument
128 *reinterpret_cast<int32_t*>(static_cast<char*>(buffer) + offset) = value;
138 size_t offset = 0;
139 offset += write(buffer, offset, int32_t(mName.length()));
140 offset
155 read(void const* buffer, size_t offset, String8* value, int32_t len) argument
161 read(void const* buffer, size_t offset, float* value) argument
167 read(void const* buffer, size_t offset, int32_t* value) argument
176 size_t offset = 0; local
[all...]
/frameworks/base/media/libstagefright/foundation/
H A Dhexdump.cpp35 size_t offset = 0; local
36 while (offset < size) {
40 sprintf(tmp, "%08lx: ", (unsigned long)offset);
48 if (offset + i >= size) {
51 sprintf(tmp, "%02x ", data[offset + i]);
59 if (offset + i >= size) {
63 if (isprint(data[offset + i])) {
64 line.append((char)data[offset + i]);
72 offset += 16;
/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dsbr_decode_envelope.cpp110 Int32 offset,
114 Int32 indexLow2High(Int32 offset,
148 Int32 offset = hFrameData->offset; local
164 offset,
175 offset,
185 *iEnvelope += sfb_nrg_prev[ indexLow2High(offset, band, freqRes)];
189 offset,
203 Int32 offset,
211 if (offset >
200 mapLowResEnergyVal( Int32 currVal, Int32 *prevData, Int32 offset, Int32 index, Int32 res) argument
249 indexLow2High(Int32 offset, Int32 index, Int32 res) argument
[all...]
H A Dcalc_gsfb_table.cpp115 offset = 0;
119 pFrameInfo->group_len[group_idx] = group[group_idx] - offset;
120 offset = group[group_idx];
123 WHILE (offset < NUM_SHORT_WINDOWS);
129 offset = 0;
137 offset += pFrameInfo->sfb_width_128[sfb] * len;
138 *pFrameSfbTop++ = offset;
217 Int offset; local
232 offset = 0;
236 pFrameInfo->group_len[ngroups] = group[ngroups] - offset;
[all...]
H A Dgetbits.h103 UInt offset; local
107 offset = (pInputStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
109 pElem = pInputStream->pBuffer + offset;
113 offset = pInputStream->inputBufferCurrentLength - offset;
115 if (offset > 3)
132 switch (offset)
175 UInt offset; local
179 offset = (pInputStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
181 pElem = pInputStream->pBuffer + offset;
210 UInt offset; local
274 UInt offset; local
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmConvertedStatus.java21 * offset for appending the header and body signature to the converted data. An instance of this
23 * {@link DrmManagerClient#closeConvertSession closeConvertSession()} methods. The offset is provided only when a
38 public final int offset; field in class:DrmConvertedStatus
50 offset = _offset;
/frameworks/base/include/utils/
H A DCompat.h30 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument
31 return lseek(fd, offset, whence);
35 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument
36 return pread(fd, buf, nbytes, offset);
/frameworks/base/media/libstagefright/codecs/amrwb/src/
H A Dq_pulse.h66 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]);
67 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]);
68 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]);
69 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]);
70 void dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]);
71 void dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]);
72 void dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]);
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...]
H A Disp_isf.cpp154 int16 i, ind, offset; local
166 offset = (isp[i] & 0x007f); /* offset = b0-b6 of isf[i] */
168 /* isp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 128 */
170 L_tmp = mul_16by16_to_int32(table[ind + 1] - table[ind], offset);
/frameworks/base/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 DXINGSeeker.cpp116 int offset = first_frame_pos; local
117 if (source->readAt(offset, &buffer, 4) < 4) { // get header
120 offset += 4;
136 // determine offset of XING header
138 if (mode != 3) offset += 32;
139 else offset += 17;
141 if (mode != 3) offset += 17;
142 else offset += 9;
145 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID
148 offset
[all...]
/frameworks/base/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_getbits.cpp114 uint32 offset; local
127 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE));
130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE));
131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE));
132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE));
162 uint32 offset; local
168 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE));
171 Elem1 = *(ptBitStream->pBuffer + module(offset
198 uint32 offset; local
236 uint32 offset; local
[all...]
H A Ds_mp3bits.h94 uint32 offset; member in struct:__anon731
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java70 * the byte array {@code b} starting at {@code offset}.
74 * @param offset
82 * if {@code offset < 0} or {@code length < 0}, or if
83 * {@code offset + length} is greater than the length of
89 public int read(byte[] b, int offset, int length) throws IOException { argument
93 if ((offset | length) < 0 || length > b.length - offset) {
94 throw new ArrayIndexOutOfBoundsException("invalid offset or length");
96 return mSocket.read(b, offset, length);
H A DBluetoothOutputStream.java61 * at position {@code offset} to this stream.
65 * @param offset
73 * if {@code offset < 0} or {@code count < 0}, or if
74 * {@code offset + count} is bigger than the length of
78 public void write(byte[] b, int offset, int count) throws IOException { argument
82 if ((offset | count) < 0 || count > b.length - offset) {
83 throw new IndexOutOfBoundsException("invalid offset or length");
85 mSocket.write(b, offset, count);
/frameworks/media/libvideoeditor/vss/src/
H A DM4VD_Tools.c59 M4OSA_UInt8 offset, M4OSA_UInt8 nb_bits)
64 input = (input << (32 - nb_bits - offset));
71 if((j*8)+i >= offset && (j*8)+i < nb_bits + offset)
85 if((j*8)+i >= offset && (j*8)+i < nb_bits + offset)
87 temp = ((input & (0x80000000 >> offset)) >> (31-offset));
57 M4VD_Tools_WriteBitsToMemory(M4OSA_UInt32 bitsToWrite, M4OSA_MemAddr32 dest_bits, M4OSA_UInt8 offset, M4OSA_UInt8 nb_bits) argument
/frameworks/base/media/mtp/
H A DMtpPacket.cpp94 uint16_t MtpPacket::getUInt16(int offset) const {
95 return ((uint16_t)mBuffer[offset + 1] << 8) | (uint16_t)mBuffer[offset];
98 uint32_t MtpPacket::getUInt32(int offset) const {
99 return ((uint32_t)mBuffer[offset + 3] << 24) | ((uint32_t)mBuffer[offset + 2] << 16) |
100 ((uint32_t)mBuffer[offset + 1] << 8) | (uint32_t)mBuffer[offset];
103 void MtpPacket::putUInt16(int offset, uint16_t value) { argument
104 mBuffer[offset
108 putUInt32(int offset, uint32_t value) argument
148 int offset = MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t); local
[all...]
/frameworks/base/opengl/libagl/
H A Dmipmap.cpp62 size_t offset = (y*2) * bs; local
64 uint32_t p00 = src[offset];
65 uint32_t p10 = src[offset+1];
66 uint32_t p01 = src[offset+bs];
67 uint32_t p11 = src[offset+bs+1];
75 offset += 2;
84 size_t offset = (y*2) * bs; local
86 uint32_t p00 = src[offset];
87 uint32_t p10 = src[offset+1];
88 uint32_t p01 = src[offset
104 size_t offset = (y*2) * bs; local
142 size_t offset = (y*2) * bs; local
160 size_t offset = (y*2) * bs; local
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DIccUtils.java45 bcdToString(byte[] data, int offset, int length) { argument
48 for (int i = offset ; i < offset + length ; i++) {
70 cdmaBcdToString(byte[] data, int offset, int length) { argument
74 for (int i = offset; count < length; i++) {
169 * remaining seven bits are an offset value added to the
178 adnStringFieldToString(byte[] data, int offset, int length) { argument
183 if (data[offset] == (byte) 0x80) {
188 ret = new String(data, offset + 1, ucslen * 2, "utf-16be");
210 if (length >= 3 && data[offset]
341 networkNameToString(byte[] data, int offset, int length) argument
512 getCLUT(byte[] rawData, int offset, int number) argument
[all...]
/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/media/libstagefright/timedtext/
H A DTimedTextParser.cpp54 // offset of each piece of text content
60 off64_t offset = 0; local
66 status_t err = getNextInSrtFileFormat(&offset, &startTimeUs, &info);
85 // read one line started from *offset and store it into data.
86 status_t TimedTextParser::readNextLine(off64_t *offset, AString *data) { argument
93 if ((err = mDataSource->readAt(*offset, &character, 1)) < 1) {
100 (*offset) ++;
106 if ((err = mDataSource->readAt(*offset, &character, 1)) < 1) {
113 (*offset) ++;
116 (*offset)
142 getNextInSrtFileFormat( off64_t *offset, int64_t *startTimeUs, TextInfo *info) argument
[all...]
/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/drm/common/
H A DDrmConvertedStatus.cpp25 offset(_offset) {

Completed in 277 milliseconds

1234567891011>>