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

1234567891011>>

/frameworks/base/core/java/android/alsa/
H A DLineTokenizer.java34 int offset = startIndex;
35 for (; offset < len; offset++) {
36 if (mDelimiters.indexOf(line.charAt(offset)) == -1) {
42 return offset < len ? offset : kTokenNotFound;
47 int offset = startIndex;
48 for (; offset < len; offset++) {
49 if (mDelimiters.indexOf(line.charAt(offset)) !
[all...]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglBindVertexBuffer.java1 // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride )
6 long offset,
3 glBindVertexBuffer( int bindingindex, int buffer, long offset, int stride ) argument
H A DglBindVertexBuffer.cpp1 /* void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) */
4 (JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) {
5 if (sizeof(GLintptr) != sizeof(jlong) && (offset < LONG_MIN || offset > LONG_MAX)) {
6 jniThrowException(_env, "java/lang/IllegalArgumentException", "offset too large");
12 (GLintptr)offset,
3 android_glBindVertexBuffer__IIJI(JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) argument
H A DglMapBufferRange.java1 // C function GLvoid * glMapBufferRange ( GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access )
5 int offset,
3 glMapBufferRange( int target, int offset, int length, int access ) argument
H A DglGetBooleanv.java6 int offset
H A DglGetFloatv.java6 int offset
H A DglGetIntegerv.java6 int offset
/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/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/opt/bitmap/src/com/android/bitmap/util/
H A DExif.java51 int tag = pack(jpeg, offset, 4, false);
52 count = pack(jpeg, offset - 2, 2, littleEndian);
62 has(jpeg, byteSize, offset + length - 1)
73 int offset = 0;
86 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) {
87 final int marker = jpeg.get(offset) & 0xFF;
93 offset++;
102 jpeg.advanceTo(offset - readBackwards);
107 length = pack(jpeg, offset,
187 pack(final InputStreamBuffer bytes, int offset, int length, final boolean littleEndian) argument
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DExif.java46 int tag = pack(jpeg, offset, 4, false);
47 count = pack(jpeg, offset - 2, 2, littleEndian);
57 has(jpeg, byteSize, offset + length - 1)
68 int offset = 0;
81 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) {
82 final int marker = jpeg.get(offset) & 0xFF;
88 offset++;
97 jpeg.advanceTo(offset - readBackwards);
102 length = pack(jpeg, offset,
182 pack(final InputStreamBuffer bytes, int offset, int length, final boolean littleEndian) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiParser.java91 int offset = 2;
94 if ((total_len - offset) < 2) {
101 if (0x0100 != buf.getShort(offset)) {
107 offset += 2;
111 if ((total_len - offset) < 4) {
116 offset += 4; //skip the group cipher
121 if ((total_len - offset) < 2) {
126 val = buf.getShort(offset);
127 if ((total_len - offset) < (2 + val * 4)) {
132 offset
[all...]
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreatePbufferFromClientBuffer.java9 int offset
21 int offset
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLId.java26 public void glGenBuffers(int n, int[] buffers, int offset); argument
28 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset); argument
30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); argument
32 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset); argument
/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[]);
/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...]
/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:__anon460
/frameworks/minikin/libs/minikin/
H A DGraphemeBreak.cpp26 size_t offset) {
33 if (offset <= start || offset >= start + count) {
36 if (U16_IS_TRAIL(buf[offset])) {
42 size_t offset_back = offset;
44 U16_NEXT(buf, offset, count, c2);
101 size_t offset, MoveOpt opt) {
104 if (offset < start + count) {
105 offset++;
109 while (!isGraphemeBreak(buf, start, count, offset)) {
25 isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, size_t offset) argument
100 getTextRunCursor(const uint16_t* buf, size_t start, size_t count, size_t offset, MoveOpt opt) argument
[all...]
/frameworks/base/libs/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/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DCharsets.java52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) { argument
54 cb.put(chars, offset, length);
62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) { argument
64 cb.put(chars, offset, length);
72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) { argument
74 cb.put(chars, offset, length);
82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { argument
84 int end = offset + length;
86 for (int i = offset; i < end; ++i) {
102 public static void asciiBytesToChars(byte[] bytes, int offset, in argument
121 isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars) argument
[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...]

Completed in 2245 milliseconds

1234567891011>>