/packages/apps/Camera/src/com/android/camera/ |
H A D | Exif.java | 31 int length = 0; 34 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { 52 // Get the length and check if it is reasonable. 53 length = pack(jpeg, offset, 2, false); 54 if (length < 2 || offset + length > jpeg.length) { 55 Log.e(TAG, "Invalid length"); 60 if (marker == 0xE1 && length >= 8 && 64 length 122 pack(byte[] bytes, int offset, int length, boolean littleEndian) argument [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/Email/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);
|
H A D | SimpleTempStorage.java | 231 * @see org.apache.james.mime4j.util.TempFile#length()
233 public long length() {
method in class:SimpleTempStorage.SimpleTempFile 234 return file.length();
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | Exif.java | 33 int length = 0; 53 // Get the length and check if it is reasonable. 57 length = pack(buf, 0, 2, false); 58 if (length < 2) { 59 Log.e(TAG, "Invalid length"); 62 length -= 2; 65 if (marker == 0xE1 && length >= 6) { 67 length -= 6; 76 is.skip(length); 80 length 138 pack(byte[] bytes, int offset, int length, boolean littleEndian) argument 154 read(InputStream is, byte[] buf, int length) argument [all...] |
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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
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; 42 return new AssetFileAddress(filename, 0l, f.length()); 46 final long offset, final long length) { 50 return new AssetFileAddress(filename, offset, length); 45 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 | 68 public int read(byte[] b, int offset, int length) throws IOException { argument 69 int bytesRead = super.read(b, offset, length); 98 if (mDumpEmptyLines || (mSb.length() > mTag.length())) {
|
/packages/apps/Email/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);
|
H A D | NullInputStream.java | 52 * protected void processBytes(byte[] bytes, int offset, int length) {
53 * for (int i = offset; i < length; i++) {
203 return read(bytes, 0, bytes.length);
211 * @param length The number of bytes to read.
219 public int read(byte[] bytes, int offset, int length) throws IOException {
argument 226 position += length;
227 int returnLength = length;
229 returnLength = length - (int)(position - size);
300 * Process the bytes for the <code>read(byte[], offset, length)</code>
307 * @param length Th 309 processBytes(byte[] bytes, int offset, int length) argument [all...] |
H A D | NullReader.java | 52 * protected void processChars(char[] chars, int offset, int length) {
53 * for (int i = offset; i < length; i++) {
187 return read(chars, 0, chars.length);
195 * @param length The number of characters to read.
203 public int read(char[] chars, int offset, int length) throws IOException {
argument 210 position += length;
211 int returnLength = length;
213 returnLength = length - (int)(position - size);
284 * Process the characters for the <code>read(char[], offset, length)</code>
291 * @param length Th 293 processChars(char[] chars, int offset, int length) argument [all...] |
/packages/apps/Exchange/exchange2/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/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/ui/ |
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/VideoEditor/src/com/android/videoeditor/util/ |
H A D | StringUtils.java | 59 * the specified length. The method uses the Random class that is built-in
64 * The specified length must be at least one. If not, the method will return null.
66 * @param length the desired length of the random String to return.
67 * @return a random String of numbers and letters of the specified length.
69 public static String randomString(int length) {
argument 70 if (length < 1) {
74 final char[] randBuffer = new char[length];
75 for (int i = 0; i < randBuffer.length; i++) {
76 randBuffer[i] = sNumbersAndLetters[sRandGen.nextInt(sNumbersAndLetters.length 92 randomStringOfNumbers(int length) argument [all...] |
/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/Contacts/tests/src/com/android/contacts/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/Email/src/com/android/mail/utils/ |
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/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 | 89 public void characters(char[] ch, int start, int length) { argument 91 Log.v(TAG, "SmilContentHandler.characters. ch = " + new String(ch, start, length));
|