Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DEndianUtils.java118 public static void writeSwappedShort(byte[] data, int offset, short value) { in writeSwappedShort() argument
119 data[ offset + 0 ] = (byte)( ( value >> 0 ) & 0xff ); in writeSwappedShort()
120 data[ offset + 1 ] = (byte)( ( value >> 8 ) & 0xff ); in writeSwappedShort()
130 public static short readSwappedShort(byte[] data, int offset) { in readSwappedShort() argument
131 return (short)( ( ( data[ offset + 0 ] & 0xff ) << 0 ) + in readSwappedShort()
132 ( ( data[ offset + 1 ] & 0xff ) << 8 ) ); in readSwappedShort()
143 public static int readSwappedUnsignedShort(byte[] data, int offset) { in readSwappedUnsignedShort() argument
144 return ( ( ( data[ offset + 0 ] & 0xff ) << 0 ) + in readSwappedUnsignedShort()
145 ( ( data[ offset + 1 ] & 0xff ) << 8 ) ); in readSwappedUnsignedShort()
155 public static void writeSwappedInteger(byte[] data, int offset, int value) { in writeSwappedInteger() argument
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DExif.java29 int offset = 0; in getOrientation() local
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation()
34 int marker = jpeg[offset] & 0xFF; in getOrientation()
40 offset++; in getOrientation()
52 length = pack(jpeg, offset, 2, false); in getOrientation()
53 if (length < 2 || offset + length > jpeg.length) { in getOrientation()
60 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation()
61 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation()
62 offset += 8; in getOrientation()
68 offset += length; in getOrientation()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java121 int offset = 0; in parse() local
129 while (offset < length) { in parse()
134 while (offset < length) { in parse()
135 c = string.charAt(offset++); in parse()
165 while (offset < length) { in parse()
166 c = string.charAt(offset++); in parse()
169 if (offset == length) { in parse()
173 c = string.charAt(offset); in parse()
177 offset++; in parse()
187 int start = offset; in parse()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifOutputStream.java106 , int offset, int length) { in requestByteToBuffer() argument
109 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer()
118 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument
125 offset += byteToProcess; in write()
129 out.write(buffer, offset, byteToProcess); in write()
132 offset += byteToProcess; in write()
139 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write()
140 offset += byteRead; in write()
157 byteRead = requestByteToBuffer(4, buffer, offset, length); in write()
158 offset += byteRead; in write()
[all …]
DExifParser.java218 long offset = mTiffStream.readUnsignedInt(); in ExifParser() local
219 if (offset > Integer.MAX_VALUE) { in ExifParser()
220 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser()
222 mIfd0Position = (int) offset; in ExifParser()
225 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser()
226 if (offset != DEFAULT_IFD0_OFFSET) { in ExifParser()
227 mDataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; in ExifParser()
275 int offset = mTiffStream.getReadByteCount(); in next() local
277 if (offset < endOfTags) { in next()
286 } else if (offset == endOfTags) { in next()
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DExifOutputStream.java106 , int offset, int length) { in requestByteToBuffer() argument
109 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer()
118 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument
125 offset += byteToProcess; in write()
129 out.write(buffer, offset, byteToProcess); in write()
132 offset += byteToProcess; in write()
139 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write()
140 offset += byteRead; in write()
157 byteRead = requestByteToBuffer(4, buffer, offset, length); in write()
158 offset += byteRead; in write()
[all …]
DExifParser.java218 long offset = mTiffStream.readUnsignedInt(); in ExifParser() local
219 if (offset > Integer.MAX_VALUE) { in ExifParser()
220 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser()
222 mIfd0Position = (int) offset; in ExifParser()
225 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser()
226 if (offset != DEFAULT_IFD0_OFFSET) { in ExifParser()
227 mDataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; in ExifParser()
275 int offset = mTiffStream.getReadByteCount(); in next() local
277 if (offset < endOfTags) { in next()
286 } else if (offset == endOfTags) { in next()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifOutputStream.java107 , int offset, int length) { in requestByteToBuffer() argument
110 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer()
119 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument
126 offset += byteToProcess; in write()
130 out.write(buffer, offset, byteToProcess); in write()
133 offset += byteToProcess; in write()
140 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write()
141 offset += byteRead; in write()
158 byteRead = requestByteToBuffer(4, buffer, offset, length); in write()
159 offset += byteRead; in write()
[all …]
DExifParser.java219 long offset = mTiffStream.readUnsignedInt(); in ExifParser() local
220 if (offset > Integer.MAX_VALUE) { in ExifParser()
221 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser()
223 mIfd0Position = (int) offset; in ExifParser()
226 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser()
227 if (offset != DEFAULT_IFD0_OFFSET) { in ExifParser()
228 mDataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; in ExifParser()
276 int offset = mTiffStream.getReadByteCount(); in next() local
278 if (offset < endOfTags) { in next()
287 } else if (offset == endOfTags) { in next()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java78 void addMinuteCallback(Runnable runnable, long offset) { in addMinuteCallback() argument
79 addPeriodicCallback(runnable, Period.MINUTE, offset); in addMinuteCallback()
86 void addQuarterHourCallback(Runnable runnable, long offset) { in addQuarterHourCallback() argument
87 addPeriodicCallback(runnable, Period.QUARTER_HOUR, offset); in addQuarterHourCallback()
94 void addHourCallback(Runnable runnable, long offset) { in addHourCallback() argument
95 addPeriodicCallback(runnable, Period.HOUR, offset); in addHourCallback()
102 void addMidnightCallback(Runnable runnable, long offset) { in addMidnightCallback() argument
103 addPeriodicCallback(runnable, Period.MIDNIGHT, offset); in addMidnightCallback()
109 private void addPeriodicCallback(Runnable runnable, Period period, long offset) { in addPeriodicCallback() argument
110 final PeriodicRunnable periodicRunnable = new PeriodicRunnable(runnable, period, offset); in addPeriodicCallback()
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifParser.java190 long offset = tiffStream.readUnsignedInt(); in ExifParser() local
191 if (offset > Integer.MAX_VALUE) { in ExifParser()
192 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser()
194 ifd0Position = (int) offset; in ExifParser()
197 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser()
198 if (offset != DEFAULT_IFD0_OFFSET) { in ExifParser()
199 dataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; in ExifParser()
253 int offset = tiffStream.getReadByteCount(); in next() local
255 if (offset < endOfTags) { in next()
264 } else if (offset == endOfTags) { in next()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java488 private boolean getBlob(RandomAccessFile file, int offset, in getBlob() argument
493 file.seek(offset); in getBlob()
508 if (blobOffset != offset) { in getBlob()
513 if (length < 0 || length > mMaxBytes - offset - BLOB_HEADER_SIZE) { in getBlob()
555 int offset = hashStart + slot * 12; in lookupInternal() local
556 long candidateKey = mIndexBuffer.getLong(offset); in lookupInternal()
557 int candidateOffset = mIndexBuffer.getInt(offset + 8); in lookupInternal()
559 mSlotOffset = offset; in lookupInternal()
562 mSlotOffset = offset; in lookupInternal()
606 int offset = mActiveHashStart + i * 12; in getActiveCount() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java166 int offset = 0; in cdmaGetParameterOffset() local
181 offset += 2 + currentLen; in cdmaGetParameterOffset()
190 return offset; in cdmaGetParameterOffset()
200 int offset = 0; in cdmaGetSubParameterOffset() local
202 offset = cdmaGetParameterOffset(BEARER_DATA) in cdmaGetSubParameterOffset()
204 pdu.skip(offset); in cdmaGetSubParameterOffset()
216 offset += 2 + currentLen; in cdmaGetSubParameterOffset()
225 return offset; in cdmaGetSubParameterOffset()
238 int offset; in cdmaChangeToDeliverPdu() local
242 offset = cdmaGetParameterOffset(DESTINATION_ADDRESS); in cdmaChangeToDeliverPdu()
[all …]
/packages/modules/NetworkStack/src/android/net/apf/
DApfGenerator.java112 int offset; field in ApfGenerator.Instruction
239 int writingOffset = offset; in generate()
251 if ((writingOffset - offset) != size()) { in generate()
252 throw new IllegalStateException("wrote " + (writingOffset - offset) + in generate()
282 final int targetLabelOffset = targetLabelInstruction.offset - (offset + size()); in calculateTargetLabelOffset()
436 public ApfGenerator addLoad8(Register register, int offset) { in addLoad8() argument
438 instruction.setUnsignedImm(offset); in addLoad8()
447 public ApfGenerator addLoad16(Register register, int offset) { in addLoad16() argument
449 instruction.setUnsignedImm(offset); in addLoad16()
458 public ApfGenerator addLoad32(Register register, int offset) { in addLoad32() argument
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java149 int offset = position - start; in getPartitionAtPosition() local
152 offset--; in getPartitionAtPosition()
154 if (offset == -1) { in getPartitionAtPosition()
200 final int offset = position - start; in getItem() local
202 if (partition.hasHeader() && offset == 0 && in getItem()
207 return mPartitions[i].getAdapter().getItem(offset); in getItem()
222 final int offset = position - start; in getItemId() local
224 if (partition.hasHeader() && offset == 0 && in getItemId()
229 return mPartitions[i].getAdapter().getItemId(offset); in getItemId()
244 final int offset = position - start; in isEnabled() local
[all …]
/packages/apps/Gallery/src/com/android/camera/
DImageGetter.java53 public void imageLoaded(int pos, int offset, RotateBitmap bitmap, in imageLoaded() argument
55 public boolean wantsThumbnail(int pos, int offset); in wantsThumbnail() argument
56 public boolean wantsFullImage(int pos, int offset); in wantsFullImage() argument
57 public int fullImageSizeToUse(int pos, int offset); in fullImageSizeToUse() argument
102 private Runnable callback(final int position, final int offset, in callback() argument
111 mCB.imageLoaded(position, offset, bitmap, isThumb); in callback()
162 int offset = order[i];
163 int imageNumber = mCurrentPosition + offset;
165 if (!mCB.wantsThumbnail(mCurrentPosition, offset)) {
180 Runnable cb = callback(mCurrentPosition, offset,
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSinglePhotoDataAdapter.java184 public void getImageSize(int offset, PhotoView.Size size) { in getImageSize() argument
185 if (offset == 0) { in getImageSize()
195 public int getImageRotation(int offset) { in getImageRotation() argument
196 return (offset == 0) ? mItem.getFullImageRotation() : 0; in getImageRotation()
200 public ScreenNail getScreenNail(int offset) { in getScreenNail() argument
201 return (offset == 0) ? getScreenNail() : null; in getScreenNail()
210 public boolean isCamera(int offset) { in isCamera() argument
215 public boolean isPanorama(int offset) { in isPanorama() argument
220 public boolean isStaticCamera(int offset) { in isStaticCamera() argument
225 public boolean isVideo(int offset) { in isVideo() argument
[all …]
DPhotoDataAdapter.java80 public ImageFetch(int offset, int bit) { in ImageFetch() argument
81 indexOffset = offset; in ImageFetch()
414 private void uploadScreenNail(int offset) { in uploadScreenNail() argument
415 int index = mCurrentIndex + offset; in uploadScreenNail()
446 public ScreenNail getScreenNail(int offset) { in getScreenNail() argument
447 int index = mCurrentIndex + offset; in getScreenNail()
459 if (entry.screenNail == null && !isCamera(offset)) { in getScreenNail()
461 if (offset == 0) updateTileProvider(entry); in getScreenNail()
468 public void getImageSize(int offset, PhotoView.Size size) { in getImageSize() argument
469 MediaItem item = getItem(mCurrentIndex + offset); in getImageSize()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_writing_utils.cpp112 int offset = targetPos - basePos; in writeDictOffset() local
114 offset = DynamicPtReadingUtils::DICT_OFFSET_INVALID; in writeDictOffset()
115 } else if (offset == 0) { in writeDictOffset()
116 offset = DynamicPtReadingUtils::DICT_OFFSET_ZERO_OFFSET; in writeDictOffset()
118 if (offset > MAX_DICT_OFFSET_VALUE || offset < MIN_DICT_OFFSET_VALUE) { in writeDictOffset()
120 offset); in writeDictOffset()
125 if (offset >= 0) { in writeDictOffset()
126 data = offset; in writeDictOffset()
128 data = abs(offset) | DICT_OFFSET_NEGATIVE_FLAG; in writeDictOffset()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunk.java130 private boolean equals(SampleChunk chunk, long offset) { in equals() argument
131 return chunk == mChunk && mCurrentOffset == offset; in equals()
149 private void reset(SampleChunk chunk, long offset) { in reset() argument
151 mCurrentOffset = offset; in reset()
160 void openRead(SampleChunk chunk, long offset) throws IOException { in openRead() argument
165 reset(chunk, offset); in openRead()
357 long offset = state.mCurrentOffset; in read() local
358 if (offset >= mWriteOffset) { in read()
362 if (offset != mWriteOffset) { in read()
368 mAccessFile.seek(offset); in read()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11IdImpl.java38 public void glGenBuffers(int n, int[] buffers, int offset) { in glGenBuffers() argument
41 buffers[offset + n] = sNextId++; in glGenBuffers()
47 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { in glDeleteTextures() argument
49 gl.glDeleteTextures(n, textures, offset); in glDeleteTextures()
54 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument
56 gl.glDeleteBuffers(n, buffers, offset); in glDeleteBuffers()
61 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { in glDeleteFramebuffers() argument
63 gl11ep.glDeleteFramebuffersOES(n, buffers, offset); in glDeleteFramebuffers()
DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { in glGenBuffers() argument
20 GLES20.glGenBuffers(n, buffers, offset); in glGenBuffers()
25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { in glDeleteTextures() argument
26 GLES20.glDeleteTextures(n, textures, offset); in glDeleteTextures()
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument
33 GLES20.glDeleteBuffers(n, buffers, offset); in glDeleteBuffers()
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { in glDeleteFramebuffers() argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset); in glDeleteFramebuffers()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java81 public static Bitmap decode(JobContext jc, byte[] bytes, int offset, in decode() argument
87 BitmapFactory.decodeByteArray(bytes, offset, length, options)); in decode()
90 public static void decodeBounds(JobContext jc, byte[] bytes, int offset, in decodeBounds() argument
95 BitmapFactory.decodeByteArray(bytes, offset, length, options); in decodeBounds()
199 JobContext jc, byte[] bytes, int offset, int length, in createBitmapRegionDecoder() argument
201 if (offset < 0 || length <= 0 || offset + length > bytes.length) { in createBitmapRegionDecoder()
204 offset, length, bytes.length)); in createBitmapRegionDecoder()
209 bytes, offset, length, shareable); in createBitmapRegionDecoder()
249 public static Bitmap decodeUsingPool(JobContext jc, byte[] data, int offset, in decodeUsingPool() argument
255 ? findCachedBitmap(jc, data, offset, length, options) : null; in decodeUsingPool()
[all …]
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { in glGenBuffers() argument
20 GLES20.glGenBuffers(n, buffers, offset); in glGenBuffers()
25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { in glDeleteTextures() argument
26 GLES20.glDeleteTextures(n, textures, offset); in glDeleteTextures()
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument
33 GLES20.glDeleteBuffers(n, buffers, offset); in glDeleteBuffers()
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { in glDeleteFramebuffers() argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset); in glDeleteFramebuffers()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java180 for (int offset = offsetStart; offset < offsetEnd; ++offset) { in extractFromTextViewInternal()
181 final float charWidth = widths[offset - offsetStart]; in extractFromTextViewInternal()
182 final boolean isRtl = layout.isRtlCharAt(offset); in extractFromTextViewInternal()
183 final float primary = layout.getPrimaryHorizontal(offset); in extractFromTextViewInternal()
184 final float secondary = layout.getSecondaryHorizontal(offset); in extractFromTextViewInternal()
226 builder.addCharacterBounds(offset, localLeft, localTop, localRight, in extractFromTextViewInternal()
235 final int offset = selectionStart; in extractFromTextViewInternal() local
236 final int line = layout.getLineForOffset(offset); in extractFromTextViewInternal()
237 final float insertionMarkerX = layout.getPrimaryHorizontal(offset) in extractFromTextViewInternal()
256 if (layout.isRtlCharAt(offset)) { in extractFromTextViewInternal()

12345678910>>...13