Searched defs:length (Results 1 - 25 of 40) sorted by relevance

12

/packages/apps/Email/src/com/android/email/
H A DFixedLengthInputStream.java23 * 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);
73 return String.format("FixedLengthInputStream(in=%s, length=%d)", mIn.toString(), mLength);
H A DPeekableInputStream.java55 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 DTempFile.java79 * Gets the length of this temporary file.
81 * @return the length.
83 long length(); method in interface:TempFile
H A DPartialInputStream.java29 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 DSimpleTempStorage.java231 * @see org.apache.james.mime4j.util.TempFile#length()
233 public long length() { method in class:SimpleTempStorage.SimpleTempFile
234 return file.length();
/packages/apps/Email/src/org/apache/commons/io/input/
H A DCharSequenceReader.java79 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 DCountingInputStream.java97 * @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 DNullInputStream.java52 * 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 DNullReader.java52 * 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/Email/tests/src/com/android/exchange/utility/
H A DSimpleIcsWriterTests.java68 * @return a String of {@code length} bytes in UTF-8.
70 private static String stringOfLength(int length) { argument
72 for (int i = 0; i < length; i++) {
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppReceiveFileInfo.java71 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);
132 if (stat.getBlockSize() * ((long)stat.getAvailableBlocks() - 4) < length) {
174 return new BluetoothOppReceiveFileInfo(fullfilename, length, new FileOutputStream(
H A DBluetoothOppSendFileInfo.java77 public BluetoothOppSendFileInfo(String fileName, String type, long length, argument
81 mLength = length;
89 public BluetoothOppSendFileInfo(String data, String type, long length, int status, argument
95 mLength = length;
107 long length = 0;
120 length = metadataCursor.getInt(1);
121 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length);
131 length = f.length();
[all...]
/packages/apps/Email/src/com/android/email/mail/transport/
H A DLoggingInputStream.java69 public int read(byte[] b, int offset, int length) throws IOException { argument
70 int bytesRead = super.read(b, offset, length);
99 if (mDumpEmptyLines || (mSb.length() > mTag.length())) {
/packages/apps/IM/src/com/android/im/imps/
H A DPrimitiveContentHandler.java88 public void characters(char[] ch, int start, int length) { argument
89 String contentStr = ImpsUtils.trim(new String(ch, start, length));
90 if (contentStr == null || contentStr.length() == 0) {
H A DWbxmlParser.java69 int length;
74 while ((length = byteStream.read(buffer)) != -1) {
75 nativeParse(mNativeParser, buffer, length, false);
98 void characters(char[] ch, int length) throws SAXException { argument
100 mContentHandler.characters(ch, 0, length);
115 native void nativeParse(int nativeParser, byte[] ch, int length, argument
135 for (int i = 0; i < names.length; i++) {
151 return names == null ? 0 : names.length;
/packages/apps/Mms/src/com/android/mms/dom/smil/
H A DSmilRootLayoutElementImpl.java74 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 DSmilContentHandler.java90 public void characters(char[] ch, int start, int length) { argument
92 Log.v(TAG, "SmilContentHandler.characters. ch = " + new String(ch, start, length));
/packages/apps/Music/tests/src/com/android/music/functional/
H A DTestPlaylist.java62 private void clearSearchString(int length){ argument
64 for (int j=0; j< length; j++)
77 clearSearchString(playlistname.length());
104 clearSearchString(playListName.length());
119 clearSearchString(oldPlaylistName.length());
124 clearSearchString(oldPlaylistName.length());
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DSuggestionCursorUtil.java81 public static ListSuggestionCursor slice(SuggestionCursor cursor, int start, int length) { argument
83 for (int i = start; i < start + length; i++) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDictionary.java31 * The weight to give to a word if it's length is the same as the number of typed characters.
45 * @param wordLength length of valid characters in the character array
78 * @param length the number of valid characters in the character array
82 protected boolean same(final char[] word, final int length, final CharSequence typedWord) { argument
83 if (typedWord.length() != length) {
86 for (int i = 0; i < length; i++) {
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTestUtils.java58 account.mNewMessageCount = 5 + name.length();
143 message.mTimeStamp = 100 + name.length();
152 message.mServerTimeStamp = 300 + name.length();
165 message.mMeetingInfo = "123" + accountId + mailboxId + name.length();
172 message.mSourceKey = 400 + name.length();
188 * @param length the "length" of the attachment
192 public static Attachment setupAttachment(long messageId, String fileName, long length, argument
195 att.mSize = length;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DLevenshteinDistance.java39 final int sourceSize = source.length;
40 final int targetSize = target.length;
67 final int sourceLen = src.length;
68 final int targetLen = trg.length;
107 final int trgLen = mTarget.length;
110 int sourcePos = mSource.length;
160 public int length() { method in class:LevenshteinDistance.Token
167 return subSequence(0, length());
171 final int len = length();
172 if (len > that.length()) retur
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DTextHighlightingAnimation.java156 public int length() { method in class:TextHighlightingAnimation.TextWithHighlighting
187 int count = states.length;
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DLongSparseArray.java145 if (mGarbage && mSize >= mKeys.length) {
152 if (mSize >= mKeys.length) {
158 // Log.e("SparseArray", "grow " + mKeys.length + " to " + n);
159 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);
160 System.arraycopy(mValues, 0, nvalues, 0, mValues.length);
285 if (mGarbage && mSize >= mKeys.length) {
290 if (pos >= mKeys.length) {
296 // Log.e("SparseArray", "grow " + mKeys.length + " to " + n);
297 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);
298 System.arraycopy(mValues, 0, nvalues, 0, mValues.length);
401 equals(byte[] array1, byte[] array2, int length) argument
[all...]
/packages/apps/Gallery3D/src/com/cooliris/picasa/
H A DGDataParser.java139 public void characters(char[] ch, int start, int length) throws SAXException { argument
140 mValue.append(ch, start, length);
143 public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { argument

Completed in 528 milliseconds

12