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

1234567891011>>

/packages/apps/LegacyCamera/src/com/android/camera/
H A DExif.java29 int offset = 0;
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) {
34 int marker = jpeg[offset] & 0xFF;
40 offset++;
52 length = pack(jpeg, offset, 2, false);
53 if (length < 2 || offset + length > jpeg.length) {
60 pack(jpeg, offset + 2, 4, false) == 0x45786966 &&
61 pack(jpeg, offset + 6, 2, false) == 0) {
62 offset
121 pack(byte[] bytes, int offset, int length, boolean littleEndian) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11IdImpl.java38 public void glGenBuffers(int n, int[] buffers, int offset) { argument
41 buffers[offset + n] = sNextId++;
47 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { argument
49 gl.glDeleteTextures(n, textures, offset);
54 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { argument
56 gl.glDeleteBuffers(n, buffers, offset);
61 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { argument
63 gl11ep.glDeleteFramebuffersOES(n, buffers, offset);
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
H A DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { argument
20 GLES20.glGenBuffers(n, buffers, offset);
25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { argument
26 GLES20.glDeleteTextures(n, textures, offset);
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { argument
33 GLES20.glDeleteBuffers(n, buffers, offset);
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DEndianUtils.java112 * Writes a "short" value to a byte array at a given offset. The value is
115 * @param offset starting offset in the byte array
118 public static void writeSwappedShort(byte[] data, int offset, short value) { argument
119 data[ offset + 0 ] = (byte)( ( value >> 0 ) & 0xff );
120 data[ offset + 1 ] = (byte)( ( value >> 8 ) & 0xff );
124 * Reads a "short" value from a byte array at a given offset. The value is
127 * @param offset starting offset in the byte array
130 public static short readSwappedShort(byte[] data, int offset) { argument
143 readSwappedUnsignedShort(byte[] data, int offset) argument
155 writeSwappedInteger(byte[] data, int offset, int value) argument
169 readSwappedInteger(byte[] data, int offset) argument
184 readSwappedUnsignedInteger(byte[] data, int offset) argument
201 writeSwappedLong(byte[] data, int offset, long value) argument
219 readSwappedLong(byte[] data, int offset) argument
240 writeSwappedFloat(byte[] data, int offset, float value) argument
251 readSwappedFloat(byte[] data, int offset) argument
262 writeSwappedDouble(byte[] data, int offset, double value) argument
273 readSwappedDouble(byte[] data, int offset) argument
[all...]
/packages/apps/WallpaperPicker/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
H A DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { argument
20 GLES20.glGenBuffers(n, buffers, offset);
25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { argument
26 GLES20.glDeleteTextures(n, textures, offset);
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { argument
33 GLES20.glDeleteBuffers(n, buffers, offset);
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLookupKey.java121 int offset = 0;
129 while (offset < length) {
134 while (offset < length) {
135 c = string.charAt(offset++);
165 while (offset < length) {
166 c = string.charAt(offset++);
169 if (offset == length) {
173 c = string.charAt(offset);
177 offset++;
187 int start = offset;
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DInterruptableOutputStream.java43 public void write(byte[] buffer, int offset, int count) throws IOException { argument
44 int end = offset + count;
45 while (offset < end) {
47 int bytesCount = Math.min(MAX_WRITE_BYTES, end - offset);
48 mOutputStream.write(buffer, offset, bytesCount);
49 offset += bytesCount;
/packages/apps/Camera2/src/com/android/camera/util/
H A DFileUtil.java62 int offset = 0;
63 while (offset < length) {
64 offset += stream.read(data, offset, length - offset);
/packages/apps/Gallery2/jni_jpegstream/src/
H A Doutputstream_wrapper.cpp22 int32_t OutputStreamWrapper::write(int32_t length, int32_t offset) { argument
23 if (offset < 0 || length < 0 || (offset + length) > getBufferSize()) {
36 mEnv->CallVoidMethod(mStream, sWriteID, mByteArray, offset, length);
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
H A DTsDataSource.java34 * Returns the offset position where the last {@link DataSource#read} read.
43 * Shifts start position by the specified offset. Do not call this method when the class already
46 * @param offset 0 <= offset <= buffered position
48 public void shiftStartPosition(long offset) {} argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DAssetFileAddress.java25 * also the offset in the file and the length of this data. This class encapsulates these three.
32 public AssetFileAddress(final String filename, final long offset, final long length) { argument
34 mOffset = offset;
55 * @param offset the offset.
60 final long offset, final long length) {
64 return new AssetFileAddress(filename, offset, length);
59 makeFromFileNameAndOffset(final String filename, final long offset, final long length) argument
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DFakeInputStream.java44 public int read(byte[] buffer, int offset, int length) { argument
45 Arrays.checkOffsetAndCount(buffer.length, offset, length);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/bigram/
H A Dbigram_list_read_write_utils.cpp75 int offset = 0; local
79 offset = ByteArrayUtils::readUint8AndAdvancePosition(buffer.data(), pos);
82 offset = ByteArrayUtils::readUint16AndAdvancePosition(buffer.data(), pos);
85 offset = ByteArrayUtils::readUint24AndAdvancePosition(buffer.data(), pos);
89 return origin - offset;
91 return origin + offset;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
H A Ddynamic_pt_writing_utils.cpp82 // Note that parentOffset is offset from node's head position.
112 int offset = targetPos - basePos; local
114 offset = DynamicPtReadingUtils::DICT_OFFSET_INVALID;
115 } else if (offset == 0) {
116 offset = DynamicPtReadingUtils::DICT_OFFSET_ZERO_OFFSET;
118 if (offset > MAX_DICT_OFFSET_VALUE || offset < MIN_DICT_OFFSET_VALUE) {
119 AKLOGI("offset cannot be written because the offset is too large or too small: %d",
120 offset);
[all...]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
H A DPeekableInputStream.java55 public int read(byte[] b, int offset, int length) throws IOException { argument
57 return in.read(b, offset, length);
61 int r = in.read(b, offset + 1, length - 1);
/packages/apps/Email/provider_src/com/android/email/
H A DPeekableInputStream.java55 public int read(byte[] b, int offset, int length) throws IOException { argument
57 return mIn.read(b, offset, length);
61 int r = mIn.read(b, offset + 1, length - 1);
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
H A DPartialInputStream.java29 public PartialInputStream(InputStream inputStream, long offset, long length) throws IOException { argument
31 inputStream.skip(offset);
32 this.limit = offset + length;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
H A DJPEGOutputStream.java80 public void write(byte[] buffer, int offset, int length) throws IOException { argument
81 if (offset < 0 || length < 0 || (offset + length) > buffer.length) {
83 " buffer length %d, offset %d, length %d",
84 buffer.length, offset, length));
104 returnCode = writeInputBytes(buffer, offset, length);
139 native private int writeInputBytes(byte[] inBuffer, int offset, int inCount); argument
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
H A DPeriodicCallbackModel.java76 * @param offset an offset applied to the minute to control when the callback occurs
78 void addMinuteCallback(Runnable runnable, long offset) { argument
79 addPeriodicCallback(runnable, Period.MINUTE, offset);
84 * @param offset an offset applied to the quarter-hour to control when the callback occurs
86 void addQuarterHourCallback(Runnable runnable, long offset) { argument
87 addPeriodicCallback(runnable, Period.QUARTER_HOUR, offset);
92 * @param offset an offset applie
94 addHourCallback(Runnable runnable, long offset) argument
102 addMidnightCallback(Runnable runnable, long offset) argument
109 addPeriodicCallback(Runnable runnable, Period period, long offset) argument
138 getDelay(long now, Period period, long offset) argument
189 PeriodicRunnable(Runnable delegate, Period period, long offset) argument
[all...]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utility/
H A DCountingOutputStream.java38 public void write(byte[] buffer, int offset, int count) throws IOException { argument
39 outputStream.write(buffer, offset, count);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DCountingOutputStream.java39 public void write(byte[] buffer, int offset, int count) throws IOException { argument
40 mOutputStream.write(buffer, offset, count);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DCompositeAdapter.java149 int offset = position - start;
152 offset--;
154 if (offset == -1) {
200 final int offset = position - start;
202 if (partition.hasHeader() && offset == 0 &&
207 return mPartitions[i].getAdapter().getItem(offset);
222 final int offset = position - start;
224 if (partition.hasHeader() && offset == 0 &&
229 return mPartitions[i].getAdapter().getItemId(offset);
244 final int offset
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
H A DProxy.java52 public int onRead(long offset, int size, byte[] data) throws ErrnoException { argument
54 if (offset < mOffset) {
62 while (mOffset < offset) {
64 mOffset += mInputStream.skip(offset - mOffset);

Completed in 719 milliseconds

1234567891011>>