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

1234567891011>>

/frameworks/ex/photoviewer/src/com/android/ex/photo/util/
H A DExif.java30 int offset = 0;
34 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) {
35 int marker = jpeg[offset] & 0xFF;
41 offset++;
53 length = pack(jpeg, offset, 2, false);
54 if (length < 2 || offset + length > jpeg.length) {
61 pack(jpeg, offset + 2, 4, false) == 0x45786966 &&
62 pack(jpeg, offset + 6, 2, false) == 0) {
63 offset
122 pack(byte[] bytes, int offset, int length, boolean littleEndian) argument
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DExif.java30 int offset = 0;
34 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) {
35 int marker = jpeg[offset] & 0xFF;
41 offset++;
53 length = pack(jpeg, offset, 2, false);
54 if (length < 2 || offset + length > jpeg.length) {
61 pack(jpeg, offset + 2, 4, false) == 0x45786966 &&
62 pack(jpeg, offset + 6, 2, false) == 0) {
63 offset
122 pack(byte[] bytes, int offset, int length, boolean littleEndian) argument
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmConvertedStatus.java21 * offset for appending the header and body signature to the converted data.
25 * An valid offset value is provided only from a success call to
58 public final int offset; field in class:DrmConvertedStatus
66 * @param offset Offset value for appending the header and body signature.
68 public DrmConvertedStatus(int statusCode, byte[] convertedData, int offset) { argument
75 this.offset = offset;
/frameworks/native/libs/gui/
H A DSensor.cpp111 size_t write(void* buffer, size_t offset, const String8& value) { argument
112 memcpy(static_cast<char*>(buffer) + offset, value.string(), value.length());
117 size_t write(void* buffer, size_t offset, float value) { argument
118 *reinterpret_cast<float*>(static_cast<char*>(buffer) + offset) = value;
123 size_t write(void* buffer, size_t offset, int32_t value) { argument
124 *reinterpret_cast<int32_t*>(static_cast<char*>(buffer) + offset) = value;
130 size_t offset = 0; local
131 offset += write(buffer, offset, int32_t(mName.length()));
132 offset
147 read(void const* buffer, size_t offset, String8* value, int32_t len) argument
153 read(void const* buffer, size_t offset, float* value) argument
159 read(void const* buffer, size_t offset, int32_t* value) argument
167 size_t offset = 0; local
[all...]
/frameworks/native/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/native/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/av/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 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);
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/
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.cpp86 int offset = first_frame_pos; local
87 if (source->readAt(offset, &buffer, 4) < 4) { // get header
90 offset += 4;
105 // determine offset of XING header
107 if (num_channels != 1) offset += 32;
108 else offset += 17;
110 if (num_channels != 1) offset += 17;
111 else offset += 9;
114 int xingbase = offset;
116 if (source->readAt(offset,
[all...]
/frameworks/av/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:__anon674
/frameworks/base/services/common_time/
H A 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; local
87 return offset;
92 ssize_t offset = 0; local
100 return offset;
186 ssize_t offset = serializeHeader(data, length); local
196 ssize_t offset = deserializeHeader(data, length); local
208 ssize_t offset = serializeHeader(data, length); local
218 ssize_t offset = deserializeHeader(data, length); local
230 ssize_t offset = serializeHeader(data, length); local
239 ssize_t offset = deserializeHeader(data, length); local
248 ssize_t offset = serializeHeader(data, length); local
260 ssize_t offset = deserializeHeader(data, length); local
272 ssize_t offset = serializeHeader(data, length); local
282 ssize_t offset = deserializeHeader(data, length); local
[all...]
/frameworks/av/media/libstagefright/foundation/
H A Dhexdump.cpp45 size_t offset = 0; local
46 while (offset < size) {
52 sprintf(tmp, "%08lx: ", (unsigned long)offset);
60 if (offset + i >= size) {
63 sprintf(tmp, "%02x ", data[offset + i]);
71 if (offset + i >= size) {
75 if (isprint(data[offset + i])) {
76 line.append((char)data[offset + i]);
89 offset += 16;
/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/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java22 * Current offset in the stream.
28 * @param offset offset into stream where data starts
29 * @param length length of data at offset
32 public LimitedLengthInputStream(InputStream in, long offset, long length) throws IOException { argument
39 if (offset < 0) {
40 throw new IOException("offset < 0");
47 if (length > Long.MAX_VALUE - offset) {
48 throw new IOException("offset + length > Long.MAX_VALUE");
51 mEnd = offset
68 read(byte[] buffer, int offset, int byteCount) argument
[all...]
/frameworks/base/media/java/android/media/
H A DDataSource.java30 * @param offset where in the source to read
35 public int readAt(long offset, byte[] buffer, int size); argument
/frameworks/av/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/av/media/libstagefright/mp4/
H A DTrackFragment.cpp244 FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) {
245 if (offset + 12 > size) {
249 if (parser->readU32(offset) != 0) {
253 uint32_t sampleSize = parser->readU32(offset + 4);
254 uint32_t sampleCount = parser->readU32(offset + 8);
256 if (sampleSize == 0 && offset + 12 + sampleCount * 4 != size) {
260 parser->copyBuffer(&mSampleSizes, offset, size);
268 FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) {
269 if (offset + 12 > size) {
273 if (parser->readU32(offset) !
243 parseSampleSizes( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
267 parseCompactSampleSizes( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
296 parseSampleToChunk( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
321 parseChunkOffsets( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
342 parseChunkOffsets64( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
[all...]
/frameworks/av/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/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.java8 int offset
16 int offset
23 int offset
36 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
39 win, attrib_list, offset);
/frameworks/native/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/opt/telephony/src/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...]

Completed in 770 milliseconds

1234567891011>>