/packages/apps/Gallery2/jni_jpegstream/src/ |
H A D | outputstream_wrapper.cpp | 22 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);
|
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));
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
H A D | FakeInputStream.java | 28 public FakeInputStream(long length) { argument 29 mRemaining = length; 44 public int read(byte[] buffer, int offset, int length) { argument 45 Arrays.checkOffsetAndCount(buffer.length, offset, length); 47 if (length > mRemaining) { 48 length = (int) mRemaining; 50 mRemaining -= length; 52 if (length == 0) { 55 return length; [all...] |
/packages/apps/Email/src/com/android/email/ |
H A D | FixedLengthInputStream.java | 23 * A filtering InputStream that stops allowing reads after the given length has been read. This 32 public FixedLengthInputStream(InputStream in, int length) { argument 34 this.mLength = length; 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)); 69 return read(b, 0, b.length); 78 return String.format("FixedLengthInputStream(in=%s, length=%d)", mIn.toString(), mLength);
|
H A D | PeekableInputStream.java | 55 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); 72 return read(b, 0, b.length);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Exif.java | 30 int length = 0; 33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { 51 // Get the length and check if it is reasonable. 52 length = pack(jpeg, offset, 2, false); 53 if (length < 2 || offset + length > jpeg.length) { 54 Log.e(TAG, "Invalid length"); 59 if (marker == 0xE1 && length >= 8 && 63 length 121 pack(byte[] bytes, int offset, int length, boolean littleEndian) argument [all...] |
/packages/apps/OMA-DM/engine/dmlib/tool-src/db_wizard_tool/com/mot/dm/dbtool/ |
H A D | BlockTable.java | 7 public final int length; field in class:BlockTable 14 this.length = size; 18 for(int i=0; i< newData.length; i++){
|
H A D | ByteArray.java | 16 byte[] newBytes = new byte[bytes.length + b.length]; 17 for (int i = 0; i < bytes.length; i++) { 20 for (int i = 0; i < b.length; i++) { 30 public int length() throws Exception { method in class:ByteArray 31 return bytes.length;
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
H A D | TempFile.java | 79 * Gets the length of this temporary file. 81 * @return the length. 83 long length(); method in interface:TempFile
|
H A D | PartialInputStream.java | 29 public PartialInputStream(InputStream inputStream, long offset, long length) throws IOException { argument 32 this.limit = offset + length; 47 return read(b, 0, b.length);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | AssetFileAddress.java | 25 * 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 35 mLength = length; 48 return new AssetFileAddress(filename, 0l, f.length()); 56 * @param length the length. 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/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); 97 if (mDumpEmptyLines || (mSb.length() > mTag.length())) {
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
H A D | SimpleIcsWriterTests.java | 70 * @return a String of {@code length} bytes in UTF-8. 72 private static String stringOfLength(int length) { argument 74 for (int i = 0; i < length; i++) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | NinePatchChunk.java | 38 for (int i = 0, n = data.length; i < n; ++i) { 43 private static void checkDivCount(int length) { argument 44 if (length == 0 || (length & 0x01) != 0) { 45 throw new RuntimeException("invalid nine-patch: " + length); 61 checkDivCount(chunk.mDivX.length); 62 checkDivCount(chunk.mDivY.length);
|
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_util/hdr/ |
H A D | dmtoken.h | 89 * Retrieves length of a string 91 INT32 length() { return m_pStr ? DmStrlen(m_pStr):0; } function in class:DMToken 190 /* Segment length */
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | CharSequenceReader.java | 79 if (idx >= charSequence.length()) { 91 * @param length The maximum number of characters to read 95 public int read(char[] array, int offset, int length) { argument 96 if (idx >= charSequence.length()) { 102 if (length < 0 || (offset + length) > array.length) { 103 throw new IndexOutOfBoundsException("Array Size=" + array.length + 104 ", offset=" + offset + ", length=" + length); [all...] |
H A D | CountingInputStream.java | 97 * @param length the number of bytes to skip 102 public long skip(final long length) throws IOException { argument 103 final long skip = super.skip(length);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | AssetFileAddress.java | 27 * 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 37 mLength = length; 42 return new AssetFileAddress(file.getAbsolutePath(), 0L, file.length()); 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/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppReceiveFileInfo.java | 71 public BluetoothOppReceiveFileInfo(String data, long length, int status) { argument 74 mLength = length; 77 public BluetoothOppReceiveFileInfo(String filename, long length, FileOutputStream outputStream, argument 82 mLength = length; 95 long length = 0; 103 length = metadataCursor.getInt(1); 133 if (stat.getBlockSize() * ((long)stat.getAvailableBlocks() - 4) < length) { 179 return new BluetoothOppReceiveFileInfo(fullfilename, length, new FileOutputStream(
|
H A D | BluetoothOppSendFileInfo.java | 80 public BluetoothOppSendFileInfo(String fileName, String type, long length, argument 84 mLength = length; 91 public BluetoothOppSendFileInfo(String data, String type, long length, int status) { argument 96 mLength = length; 106 long length = 0; 125 length = metadataCursor.getInt(1); 126 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length); 140 length = f.length(); [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/ |
H A D | FormatUtilsTests.java | 66 private void checkCopyToCharArrayBuffer(CharArrayBuffer buffer, String value, int length) { argument 68 assertEquals(length, buffer.sizeCopied); 69 for (int index = 0; index < length; ++index) {
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | ItemOperationsParser.java | 103 * @param length the number of expected bytes we're going to read 108 final long length, final ProgressCallback callback) throws IOException { 127 // We can't report percentage if data is chunked; the length of incoming data is unknown 128 if (length > 0) { 129 final int pct = (int)((totalRead * 100) / length); 107 readChunked(final InputStream inputStream, final OutputStream outputStream, final long length, final ProgressCallback callback) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | BytesBufferPool.java | 33 public int length; field in class:BytesBufferPool.BytesBuffer 42 length = 0; 44 int capacity = data.length; 46 int step = Math.min(READ_STEP, capacity - length); 47 int rc = fis.read(data, length, step); 49 length += rc; 51 if (length == capacity) { 52 byte[] newData = new byte[data.length * 2]; 53 System.arraycopy(data, 0, newData, 0, data.length); 55 capacity = data.length; [all...] |
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
H A D | SmilRootLayoutElementImpl.java | 74 private int parseAbsoluteLength(String length) { argument 75 if (length.endsWith("px")) { 76 length = length.substring(0, length.indexOf("px")); 79 return Integer.parseInt(length);
|
/packages/apps/Mms/src/com/android/mms/dom/smil/parser/ |
H A D | SmilContentHandler.java | 90 public void characters(char[] ch, int start, int length) { argument 92 Log.v(TAG, "SmilContentHandler.characters. ch = " + new String(ch, start, length));
|