/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | EndianUtils.java | 118 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/Mms/src/com/android/mms/exif/ |
D | ExifOutputStream.java | 108 , int offset, int length) { in requestByteToBuffer() argument 111 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer() 120 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument 127 offset += byteToProcess; in write() 131 out.write(buffer, offset, byteToProcess); in write() 134 offset += byteToProcess; in write() 141 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write() 142 offset += byteRead; in write() 159 byteRead = requestByteToBuffer(4, buffer, offset, length); in write() 160 offset += byteRead; in write() [all …]
|
D | ExifParser.java | 220 long offset = mTiffStream.readUnsignedInt(); in ExifParser() local 221 if (offset > Integer.MAX_VALUE) { in ExifParser() 222 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser() 224 mIfd0Position = (int) offset; in ExifParser() 227 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser() 228 if (offset != DEFAULT_IFD0_OFFSET) { in ExifParser() 229 mDataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; in ExifParser() 277 int offset = mTiffStream.getReadByteCount(); in next() local 279 if (offset < endOfTags) { in next() 288 } else if (offset == endOfTags) { in next() [all …]
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
D | ExifOutputStream.java | 106 , 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 …]
|
D | ExifParser.java | 218 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/ |
D | ExifOutputStream.java | 106 , 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 …]
|
D | ExifParser.java | 218 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/ |
D | ExifOutputStream.java | 106 , 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 …]
|
D | ExifParser.java | 218 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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 123 int offset = 0; in parse() local 131 while (offset < length) { in parse() 136 while (offset < length) { in parse() 137 c = string.charAt(offset++); in parse() 164 while (offset < length) { in parse() 165 c = string.charAt(offset++); in parse() 168 if (offset == length) { in parse() 172 c = string.charAt(offset); in parse() 176 offset++; in parse() 186 int start = offset; in parse() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Exif.java | 29 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/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapSmsPdu.java | 161 int offset = 0; in cdmaGetParameterOffset() local 177 offset += 2 + currentLen; in cdmaGetParameterOffset() 186 return offset; in cdmaGetParameterOffset() 195 int offset = 0; in cdmaGetSubParameterOffset() local 197 …offset = cdmaGetParameterOffset(BEARER_DATA) + 2; // Add to offset the BEARER_DATA parameter id an… in cdmaGetSubParameterOffset() 198 pdu.skip(offset); in cdmaGetSubParameterOffset() 211 offset += 2 + currentLen; in cdmaGetSubParameterOffset() 220 return offset; in cdmaGetSubParameterOffset() 232 int offset; in cdmaChangeToDeliverPdu() local 236 offset = cdmaGetParameterOffset(DESTINATION_ADDRESS); in cdmaChangeToDeliverPdu() [all …]
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | BlobCache.java | 479 private boolean getBlob(RandomAccessFile file, int offset, in getBlob() argument 484 file.seek(offset); in getBlob() 496 if (blobOffset != offset) { in getBlob() 501 if (length < 0 || length > mMaxBytes - offset - BLOB_HEADER_SIZE) { in getBlob() 543 int offset = hashStart + slot * 12; in lookupInternal() local 544 long candidateKey = mIndexBuffer.getLong(offset); in lookupInternal() 545 int candidateOffset = mIndexBuffer.getInt(offset + 8); in lookupInternal() 547 mSlotOffset = offset; in lookupInternal() 550 mSlotOffset = offset; in lookupInternal() 594 int offset = mActiveHashStart + i * 12; in getActiveCount() local [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 488 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/Mms/src/com/android/mms/dom/smil/ |
D | SmilPlayer.java | 91 ElementParallelTimeContainer par, double offset, double maxOffset) { in getParTimeline() argument 101 double beginOffset = begin.getResolvedOffset() + offset; in getParTimeline() 115 double endOffset = end.getResolvedOffset() + offset; in getParTimeline() 126 ArrayList<TimelineEntry> childTimeline = getTimeline(child, offset, maxOffset); in getParTimeline() 134 (float) (endOffset - offset) * 1000); in getParTimeline() 148 ElementSequentialTimeContainer seq, double offset, double maxOffset) { in getSeqTimeline() argument 150 double orgOffset = offset; in getSeqTimeline() 159 double beginOffset = begin.getResolvedOffset() + offset; in getSeqTimeline() 173 double endOffset = end.getResolvedOffset() + offset; in getSeqTimeline() 185 ArrayList<TimelineEntry> childTimeline = getTimeline(child, offset, maxOffset); in getSeqTimeline() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 80 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 …]
|
D | SinglePhotoDataAdapter.java | 184 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/Gallery/src/com/android/camera/ |
D | ImageGetter.java | 53 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/Exchange/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 195 static int getLong(byte[] bytes, int offset) { in getLong() argument 196 return (bytes[offset++] & 0xFF) | ((bytes[offset++] & 0xFF) << 8) | in getLong() 197 ((bytes[offset++] & 0xFF) << 16) | ((bytes[offset] & 0xFF) << 24); in getLong() 201 static void setLong(byte[] bytes, int offset, int value) { in setLong() argument 202 bytes[offset++] = (byte) (value & 0xFF); in setLong() 203 bytes[offset++] = (byte) ((value >> 8) & 0xFF); in setLong() 204 bytes[offset++] = (byte) ((value >> 16) & 0xFF); in setLong() 205 bytes[offset] = (byte) ((value >> 24) & 0xFF); in setLong() 209 static int getWord(byte[] bytes, int offset) { in getWord() argument 210 return (bytes[offset++] & 0xFF) | ((bytes[offset] & 0xFF) << 8); in getWord() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoView.java | 67 public void getImageSize(int offset, Size size); in getImageSize() argument 70 public MediaItem getMediaItem(int offset); in getMediaItem() argument 73 public int getImageRotation(int offset); in getImageRotation() argument 78 public ScreenNail getScreenNail(int offset); in getScreenNail() argument 84 public boolean isCamera(int offset); in isCamera() argument 87 public boolean isPanorama(int offset); in isPanorama() argument 91 public boolean isStaticCamera(int offset); in isStaticCamera() argument 94 public boolean isVideo(int offset); in isVideo() argument 97 public boolean isDeletable(int offset); in isDeletable() argument 103 public int getLoadingState(int offset); in getLoadingState() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DecodeUtils.java | 82 public static Bitmap decode(JobContext jc, byte[] bytes, int offset, in decode() argument 88 BitmapFactory.decodeByteArray(bytes, offset, length, options)); in decode() 91 public static void decodeBounds(JobContext jc, byte[] bytes, int offset, in decodeBounds() argument 96 BitmapFactory.decodeByteArray(bytes, offset, length, options); in decodeBounds() 200 JobContext jc, byte[] bytes, int offset, int length, in createBitmapRegionDecoder() argument 202 if (offset < 0 || length <= 0 || offset + length > bytes.length) { in createBitmapRegionDecoder() 205 offset, length, bytes.length)); in createBitmapRegionDecoder() 210 bytes, offset, length, shareable); in createBitmapRegionDecoder() 250 public static Bitmap decodeUsingPool(JobContext jc, byte[] data, int offset, in decodeUsingPool() argument 256 ? findCachedBitmap(jc, data, offset, length, options) : null; in decodeUsingPool() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaWindowAdapter.java | 314 int offset; // offset in position in the list view field in AgendaWindowAdapter.DayAdapterInfo 333 sb.append(" Offset:").append(offset); in toString() 389 return info.dayAdapter.getItemViewType(position - info.offset); in getItemViewType() 400 return info.dayAdapter.isEnabled(position - info.offset); in isEnabled() 415 return info.dayAdapter.getItem(position - info.offset); in getItem() 432 int curPos = info.dayAdapter.getCursorPosition(position - info.offset); in getItemId() 469 int offset = position - info.offset; in getView() local 470 v = info.dayAdapter.getView(offset, convertView, in getView() 475 if (info.dayAdapter.isDayHeaderView(offset)) { in getView() 478 if (info.dayAdapter.isFirstDayAfterYesterday(offset)) { in getView() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | AbstractSyncAdapter.java | 133 Operation(ContentProviderOperation.Builder builder, String columnName, int offset) { in Operation() argument 137 mOffset = offset; in Operation() 191 static ContentProviderOperation operationToContentProviderOperation(Operation op, int offset) { in operationToContentProviderOperation() argument 199 builder.withValueBackReference(op.mColumnName, op.mOffset - offset); in operationToContentProviderOperation() 208 final String authority, final ArrayList<Operation> ops, final int offset) in applyBatch() argument 216 cpos.add(operationToContentProviderOperation(op, offset)); in applyBatch() 226 final ContentProviderResult[] result, final int offset) throws RemoteException { in applyAndCopyResults() argument 231 offset); in applyAndCopyResults() 233 System.arraycopy(miniResult, 0, result, offset, miniResult.length); in applyAndCopyResults() 263 int offset = 0; in safeExecute() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CursorAnchorInfoUtils.java | 152 for (int offset = offsetStart; offset < offsetEnd; ++offset) { in getCursorAnchorInfo() 153 final float charWidth = widths[offset - offsetStart]; in getCursorAnchorInfo() 154 final boolean isRtl = layout.isRtlCharAt(offset); in getCursorAnchorInfo() 155 final float primary = layout.getPrimaryHorizontal(offset); in getCursorAnchorInfo() 156 final float secondary = layout.getSecondaryHorizontal(offset); in getCursorAnchorInfo() 198 builder.addCharacterBounds(offset, localLeft, localTop, localRight, in getCursorAnchorInfo() 207 final int offset = selectionStart; in getCursorAnchorInfo() local 208 final int line = layout.getLineForOffset(offset); in getCursorAnchorInfo() 209 final float insertionMarkerX = layout.getPrimaryHorizontal(offset) in getCursorAnchorInfo() 228 if (layout.isRtlCharAt(offset)) { in getCursorAnchorInfo()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/ |
D | dynamic_pt_writing_utils.cpp | 112 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()
|