Home
last modified time | relevance | path

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

12345678910>>...13

/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/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DBearerData.java244 private static String decodeUtf8(byte[] data, int offset, int numFields) in decodeUtf8() argument
246 return decodeCharset(data, offset, numFields, 1, "UTF-8"); in decodeUtf8()
249 private static String decodeUtf16(byte[] data, int offset, int numFields) in decodeUtf16() argument
252 int padding = offset % 2; in decodeUtf16()
253 numFields -= (offset + padding) / 2; in decodeUtf16()
254 return decodeCharset(data, offset, numFields, 2, "utf-16be"); in decodeUtf16()
257 private static String decodeCharset(byte[] data, int offset, int numFields, int width, in decodeCharset() argument
259 if (numFields < 0 || (numFields * width + offset) > data.length) { in decodeCharset()
261 int padding = offset % width; in decodeCharset()
262 int maxNumFields = (data.length - offset - padding) / width; in decodeCharset()
[all …]
DGsmSmsCbMessage.java227 int offset = wacOffset + 2; in parseWarningAreaCoordinates() local
229 if (offset + wacDataLength > pdu.length) { in parseWarningAreaCoordinates()
231 + "least " + offset + wacDataLength + ", actual is " + pdu.length); in parseWarningAreaCoordinates()
234 BitStreamReader bitReader = new BitStreamReader(pdu, offset); in parseWarningAreaCoordinates()
319 int offset = SmsCbHeader.PDU_HEADER_LENGTH + 1 + (PDU_BODY_PAGE_LENGTH + 1) * i; in parseUmtsBody() local
320 int length = pdu[offset + PDU_BODY_PAGE_LENGTH]; in parseUmtsBody()
327 Pair<String, String> p = unpackBody(pdu, offset, length, in parseUmtsBody()
345 int offset = SmsCbHeader.PDU_HEADER_LENGTH; in parseGsmBody() local
346 int length = pdu.length - offset; in parseGsmBody()
347 return unpackBody(pdu, offset, length, header.getDataCodingSchemeStructedData()); in parseGsmBody()
[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/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/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()
276 int offset = mTiffStream.getReadByteCount(); in next() local
278 if (offset < endOfTags) { in next()
287 } else if (offset == endOfTags) { in next()
366 int offset = mTiffStream.getReadByteCount(); in skipRemainingTagsInCurrentIfd() local
367 if (offset > endOfTags) { in skipRemainingTagsInCurrentIfd()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java177 int offset = 0; in cdmaGetParameterOffset() local
192 offset += 2 + currentLen; in cdmaGetParameterOffset()
201 return offset; in cdmaGetParameterOffset()
211 int offset = 0; in cdmaGetSubParameterOffset() local
213 offset = cdmaGetParameterOffset(BEARER_DATA) in cdmaGetSubParameterOffset()
215 pdu.skip(offset); in cdmaGetSubParameterOffset()
227 offset += 2 + currentLen; in cdmaGetSubParameterOffset()
236 return offset; in cdmaGetSubParameterOffset()
249 int offset; in cdmaChangeToDeliverPdu() local
253 offset = cdmaGetParameterOffset(DESTINATION_ADDRESS); in cdmaChangeToDeliverPdu()
[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/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/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DGsmSmsCbMessage.java182 int offset = wacOffset + 2; in parseWarningAreaCoordinates() local
184 if (offset + wacDataLength > pdu.length) { in parseWarningAreaCoordinates()
186 + "least " + offset + wacDataLength + ", actual is " + pdu.length); in parseWarningAreaCoordinates()
189 BitStreamReader bitReader = new BitStreamReader(pdu, offset); in parseWarningAreaCoordinates()
273 int offset = SmsCbHeader.PDU_HEADER_LENGTH + 1 + (PDU_BODY_PAGE_LENGTH + 1) * i; in parseUmtsBody() local
274 int length = pdu[offset + PDU_BODY_PAGE_LENGTH]; in parseUmtsBody()
281 Pair<String, String> p = unpackBody(pdu, offset, length, in parseUmtsBody()
298 int offset = SmsCbHeader.PDU_HEADER_LENGTH; in parseGsmBody() local
299 int length = pdu.length - offset; in parseGsmBody()
300 return unpackBody(pdu, offset, length, header.getDataCodingSchemeStructedData()); in parseGsmBody()
[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 …]
/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()
112 private void addPeriodicCallback(Runnable runnable, Period period, long offset) { in addPeriodicCallback() argument
113 final PeriodicRunnable periodicRunnable = new PeriodicRunnable(runnable, period, offset); in addPeriodicCallback()
141 static long getDelay(long now, Period period, long offset) { in getDelay() argument
142 final long periodStart = now - offset; in getDelay()
148 return nextMinute - now + offset; in getDelay()
153 return nextQuarterHour - now + offset; in getDelay()
158 return nextHour - now + offset; in getDelay()
168 return nextMidnight.getTimeInMillis() - now + offset; in getDelay()
[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/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleChunk.java147 private boolean equals(SampleChunk chunk, long offset) { in equals() argument
148 return chunk == mChunk && mCurrentOffset == offset; in equals()
166 private void reset(SampleChunk chunk, long offset) { in reset() argument
168 mCurrentOffset = offset; in reset()
177 void openRead(SampleChunk chunk, long offset) throws IOException { in openRead() argument
182 reset(chunk, offset); in openRead()
376 long offset = state.mCurrentOffset; in read() local
377 if (offset >= mWriteOffset) { in read()
381 if (offset != mWriteOffset) { in read()
387 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/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()

12345678910>>...13