Searched refs:offset (Results 1 - 25 of 269) 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/Mms/src/org/w3c/dom/smil/
H A DElementTimeControl.java42 * constraints), at the passed offset from the current time when the
43 * method is called. If the offset is &gt;= 0, the semantics are
44 * equivalent to an event-base begin with the specified offset. If the
45 * offset is &lt; 0, the semantics are equivalent to beginElement(), but
47 * begun at the passed (negative) offset from the current time when the
49 * @param offset The offset in seconds at which to begin the element.
64 public boolean beginElementAt(float offset) argument
85 * constraints) at the specified offset from the current time when the
87 * @param offset Th
99 endElementAt(float offset) argument
[all...]
/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/Launcher3/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.java123 int offset = 0;
131 while (offset < length) {
136 while (offset < length) {
137 c = string.charAt(offset++);
164 while (offset < length) {
165 c = string.charAt(offset++);
168 if (offset == length) {
172 c = string.charAt(offset);
176 offset++;
186 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/DeskClock/src/com/android/deskclock/worldclock/
H A DCityGmtOffsetComparator.java28 int offset = TimeZone.getTimeZone(c1.mTimeZone).getOffset(currentTime);
30 return (offset < offset2) ? -1 : (offset > offset2) ? 1 :
/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/OMA-DM/engine/dmlib/dmengine/dm_ua/hdr/
H A DdmMetaDataBuffer.h78 * Sets offset in a buffer
79 * \param offset [in] - position in the buffer to be set
81 inline void SetOffset(UINT32 offset) argument
83 m_nOffset = offset;
95 * \param offset [in] - number of bytes to move pistion in the buffer
97 inline void IncOffset(UINT32 offset) argument
99 m_nOffset += offset;
110 * Retrieves current offset in a buffer
158 /* Buffer offset */
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAssetFileAddress.java27 * also the offset in the file and the length of this data. This class encapsulates these three.
34 public AssetFileAddress(final String filename, final long offset, final long length) { argument
36 mOffset = offset;
51 final long offset, final long length) {
55 return new AssetFileAddress(filename, offset, length);
50 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/suggest/policyimpl/dictionary/structure/pt_common/bigram/
H A Dbigram_list_read_write_utils.cpp76 int offset = 0; local
80 offset = ByteArrayUtils::readUint8AndAdvancePosition(bigramsBuf, pos);
83 offset = ByteArrayUtils::readUint16AndAdvancePosition(bigramsBuf, pos);
86 offset = ByteArrayUtils::readUint24AndAdvancePosition(bigramsBuf, pos);
90 return origin - offset;
92 return origin + offset;
/packages/apps/OMA-DM/engine/dmlib/tool-src/db_wizard_tool/com/mot/dm/dbtool/
H A DOMACP.java32 int offset;
34 offset = 0x05;
37 result.encVal = new Byte( (byte) ((offset + i) | shift));
42 offset = 0x06;
45 result.encVal = new Byte( (byte) ((offset + i) | shift));
55 int offset;
57 offset = 0x85;
60 result.encVal = new Byte( (byte) (offset + i));
65 offset = 0x85;
68 result.encVal = new Byte( (byte) (offset
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/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/Email/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/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapMessageListing.java116 public void segment(int count, int offset) { argument
117 count = Math.min(count, list.size() - offset);
119 list = list.subList(offset, offset + count);
124 if(offset > list.size()) {
126 Log.d(TAG, "offset greater than list size. Returning empty list");
128 list = list.subList(offset, list.size());
/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/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);

Completed in 769 milliseconds

1234567891011