/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | LoggingInputStream.java | 67 public int read(byte[] b, int offset, int length) throws IOException { argument 68 int bytesRead = super.read(b, offset, length); 71 logRaw(b[offset] & 0xFF); 73 offset++;
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
H A D | inputstream_wrapper.cpp | 23 int32_t InputStreamWrapper::read(int32_t length, int32_t offset) { argument 24 if (offset < 0 || length < 0 || (offset + length) > getBufferSize()) { 34 mByteArray, offset, length));
|
H A D | outputstream_wrapper.h | 27 virtual int32_t write(int32_t length, int32_t offset);
|
H A D | inputstream_wrapper.h | 27 virtual int32_t read(int32_t length, int32_t offset);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | CharSequenceReader.java | 90 * @param offset The starting position in the array to store 95 public int read(char[] array, int offset, int length) { argument 102 if (length < 0 || (offset + length) > array.length) { 104 ", offset=" + offset + ", length=" + length); 112 array[offset + i] = (char)c;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/ |
H A D | dynamic_pt_reading_utils.cpp | 31 // Currently, DICT_OFFSET_INVALID is 0 in Java side but offset can be 0 during GC. So, the maximum 32 // value of offsets, which is 0x7FFFFF is used to represent 0 offset. 61 const int offset = ByteArrayUtils::readSint24AndAdvancePosition(buffer, pos); local 62 if (offset == DICT_OFFSET_INVALID) { 65 } else if (offset == DICT_OFFSET_ZERO_OFFSET) { 68 return base + offset;
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageGetter.java | 53 public void imageLoaded(int pos, int offset, RotateBitmap bitmap, argument 55 public boolean wantsThumbnail(int pos, int offset); argument 56 public boolean wantsFullImage(int pos, int offset); argument 57 public int fullImageSizeToUse(int pos, int offset); argument 102 private Runnable callback(final int position, final int offset, argument 111 mCB.imageLoaded(position, offset, bitmap, isThumb); 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/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BlobCache.java | 39 // Each hash entry is 12 bytes: 8 bytes key and 4 bytes offset into the data 40 // file. The offset is 0 when the slot is free. Note that 0 is a valid value 86 // index header offset 99 // blob header offset 350 // Clear the hash table starting from the specified offset. 451 // if it's available. So we keep the offset of the hash entry so we can 482 // Copies the blob for the specified offset in the specified file to 488 private boolean getBlob(RandomAccessFile file, int offset, argument 493 file.seek(offset); 508 if (blobOffset != offset) { 625 checkSum(byte[] data, int offset, int nbytes) argument 640 readInt(byte[] buf, int offset) argument 647 readLong(byte[] buf, int offset) argument 655 writeInt(byte[] buf, int offset, int value) argument 662 writeLong(byte[] buf, int offset, long value) argument [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | BlobCache.java | 39 // Each hash entry is 12 bytes: 8 bytes key and 4 bytes offset into the data 40 // file. The offset is 0 when the slot is free. Note that 0 is a valid value 87 // index header offset 100 // blob header offset 351 // Clear the hash table starting from the specified offset. 442 // if it's available. So we keep the offset of the hash entry so we can 473 // Copies the blob for the specified offset in the specified file to 479 private boolean getBlob(RandomAccessFile file, int offset, argument 484 file.seek(offset); 496 if (blobOffset != offset) { 613 checkSum(byte[] data, int offset, int nbytes) argument 628 readInt(byte[] buf, int offset) argument 635 readLong(byte[] buf, int offset) argument 643 writeInt(byte[] buf, int offset, int value) argument 650 writeLong(byte[] buf, int offset, long value) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | ExifOutputStream.java | 106 , int offset, int length) { 109 mBuffer.put(buffer, offset, byteToRead); 118 public void write(byte[] buffer, int offset, int length) throws IOException { argument 125 offset += byteToProcess; 129 out.write(buffer, offset, byteToProcess); 132 offset += byteToProcess; 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); 140 offset += byteRead; 157 byteRead = requestByteToBuffer(4, buffer, offset, length); 158 offset 105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument 309 calculateOffsetOfIfd(IfdData ifd, int offset) argument [all...] |
H A D | ExifParser.java | 218 long offset = mTiffStream.readUnsignedInt(); 219 if (offset > Integer.MAX_VALUE) { 220 throw new ExifInvalidFormatException("Invalid offset " + offset); 222 mIfd0Position = (int) offset; 225 registerIfd(IfdId.TYPE_IFD_0, offset); 226 if (offset != DEFAULT_IFD0_OFFSET) { 227 mDataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; 275 int offset = mTiffStream.getReadByteCount(); 277 if (offset < endOfTag 496 skipTo(int offset) argument 518 registerIfd(int ifdType, long offset) argument 524 registerCompressedImage(long offset) argument 528 registerUncompressedStrip(int stripIndex, long offset) argument 800 read(byte[] buffer, int offset, int length) argument [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | ExifOutputStream.java | 106 , int offset, int length) { 109 mBuffer.put(buffer, offset, byteToRead); 118 public void write(byte[] buffer, int offset, int length) throws IOException { argument 125 offset += byteToProcess; 129 out.write(buffer, offset, byteToProcess); 132 offset += byteToProcess; 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); 140 offset += byteRead; 157 byteRead = requestByteToBuffer(4, buffer, offset, length); 158 offset 105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument 309 calculateOffsetOfIfd(IfdData ifd, int offset) argument [all...] |
H A D | ExifParser.java | 218 long offset = mTiffStream.readUnsignedInt(); 219 if (offset > Integer.MAX_VALUE) { 220 throw new ExifInvalidFormatException("Invalid offset " + offset); 222 mIfd0Position = (int) offset; 225 registerIfd(IfdId.TYPE_IFD_0, offset); 226 if (offset != DEFAULT_IFD0_OFFSET) { 227 mDataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; 275 int offset = mTiffStream.getReadByteCount(); 277 if (offset < endOfTag 496 skipTo(int offset) argument 518 registerIfd(int ifdType, long offset) argument 524 registerCompressedImage(long offset) argument 528 registerUncompressedStrip(int stripIndex, long offset) argument 800 read(byte[] buffer, int offset, int length) argument [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
H A D | ExifOutputStream.java | 106 , int offset, int length) { 109 mBuffer.put(buffer, offset, byteToRead); 118 public void write(byte[] buffer, int offset, int length) throws IOException { argument 125 offset += byteToProcess; 129 out.write(buffer, offset, byteToProcess); 132 offset += byteToProcess; 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); 140 offset += byteRead; 157 byteRead = requestByteToBuffer(4, buffer, offset, length); 158 offset 105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument 309 calculateOffsetOfIfd(IfdData ifd, int offset) argument [all...] |
/packages/apps/Mms/src/com/android/mms/exif/ |
H A D | ExifOutputStream.java | 108 , int offset, int length) { 111 mBuffer.put(buffer, offset, byteToRead); 120 public void write(byte[] buffer, int offset, int length) throws IOException { argument 127 offset += byteToProcess; 131 out.write(buffer, offset, byteToProcess); 134 offset += byteToProcess; 141 int byteRead = requestByteToBuffer(2, buffer, offset, length); 142 offset += byteRead; 159 byteRead = requestByteToBuffer(4, buffer, offset, length); 160 offset 107 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument 311 calculateOffsetOfIfd(IfdData ifd, int offset) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | SinglePhotoDataAdapter.java | 184 public void getImageSize(int offset, PhotoView.Size size) { argument 185 if (offset == 0) { 195 public int getImageRotation(int offset) { argument 196 return (offset == 0) ? mItem.getFullImageRotation() : 0; 200 public ScreenNail getScreenNail(int offset) { argument 201 return (offset == 0) ? getScreenNail() : null; 210 public boolean isCamera(int offset) { argument 215 public boolean isPanorama(int offset) { argument 220 public boolean isStaticCamera(int offset) { argument 225 public boolean isVideo(int offset) { argument 230 isDeletable(int offset) argument 235 getMediaItem(int offset) argument 260 getLoadingState(int offset) argument [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
H A D | JPEGInputStream.java | 102 public int read(byte[] buffer, int offset, int count) throws IOException { argument 103 if (offset < 0 || count < 0 || (offset + count) > buffer.length) { 105 " buffer length %d, offset %d, length %d", 106 buffer.length, offset, count)); 114 flag = readDecodedBytes(buffer, offset, count); 186 native private int readDecodedBytes( byte[] inBuffer, int offset, int inCount); argument
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
H A D | HandoverClient.java | 108 int offset = 0; 115 while (offset < buffer.length) { 116 int length = Math.min(buffer.length - offset, remoteMiu); 117 byte[] tmpBuffer = Arrays.copyOfRange(buffer, offset, offset+length); 120 offset += length;
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
H A D | NdefPushClient.java | 100 int offset = 0; 106 while (offset < buffer.length) { 107 int length = Math.min(buffer.length - offset, remoteMiu); 108 byte[] tmpBuffer = Arrays.copyOfRange(buffer, offset, offset+length); 111 offset += length;
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | AbstractSyncAdapter.java | 112 * and offset (that might be used in Builder.withValueBackReference). The CPO is not actually 133 Operation(ContentProviderOperation.Builder builder, String columnName, int offset) { argument 137 mOffset = offset; 188 * passed-in offset 191 static ContentProviderOperation operationToContentProviderOperation(Operation op, int offset) { argument 199 builder.withValueBackReference(op.mColumnName, op.mOffset - offset); 208 final String authority, final ArrayList<Operation> ops, final int offset) 216 cpos.add(operationToContentProviderOperation(op, offset)); 226 final ContentProviderResult[] result, final int offset) throws RemoteException { 231 offset); 207 applyBatch(final ContentResolver contentResolver, final String authority, final ArrayList<Operation> ops, final int offset) argument 224 applyAndCopyResults(final ContentResolver contentResolver, final String authority, final ArrayList<Operation> mini, final ContentProviderResult[] result, final int offset) argument [all...] |
/packages/apps/Email/src/com/android/email/ |
H A D | FixedLengthInputStream.java | 53 public int read(byte[] b, int offset, int length) throws IOException { argument 55 int d = mIn.read(b, offset, Math.min(mLength - mCount, length));
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/ |
H A D | mmapped_buffer.cpp | 39 const int offset = bufferOffset % pagesize; local 40 int alignedOffset = bufferOffset - offset; 41 int alignedSize = bufferSize + offset; 50 uint8_t *const buffer = static_cast<uint8_t *>(mmappedBuffer) + offset;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | AutoScrollListView.java | 55 * not requested, instantly positions the requested item at a preferred offset. 79 final int offset = (int) (getHeight() * PREFERRED_SELECTION_OFFSET_FROM_TOP); 81 setSelectionFromTop(position, offset); 114 smoothScrollToPositionFromTop(position, offset);
|
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_ua/src/ |
H A D | dmMetaDataBuffer.cc | 55 UINT32 offset = ReadUINT32(); local 58 if ( offset >= m_nFilesSize ) { 63 CPCHAR str = (CPCHAR)(m_pBuffer + offset);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | CursorAnchorInfoUtils.java | 152 for (int offset = offsetStart; offset < offsetEnd; ++offset) { 153 final float charWidth = widths[offset - offsetStart]; 154 final boolean isRtl = layout.isRtlCharAt(offset); 155 final float primary = layout.getPrimaryHorizontal(offset); 156 final float secondary = layout.getSecondaryHorizontal(offset); 197 // Here offset is the index in Java chars. 198 builder.addCharacterBounds(offset, localLeft, localTop, localRight, 207 final int offset [all...] |