/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | TeeInputStream.java | 17 package org.apache.commons.io.input;
27 * bytes from the input stream being skipped or duplicated in the output
30 * The proxied input stream is closed when the {@link #close()} method is
41 * proxied input stream.
56 * @param input input stream to be proxied
59 public TeeInputStream(InputStream input, OutputStream branch) {
argument 60 this(input, branch, false);
69 * @param input input strea 74 TeeInputStream( InputStream input, OutputStream branch, boolean closeBranch) argument [all...] |
H A D | ClassLoaderObjectInputStream.java | 17 package org.apache.commons.io.input;
|
H A D | CloseShieldInputStream.java | 17 package org.apache.commons.io.input;
22 * Proxy stream that prevents the underlying input stream from being closed.
24 * This class is typically used in cases where an input stream needs to be
26 * more input would still be available to other components.
34 * Creates a proxy that shields the given input stream from being
37 * @param in underlying input stream
44 * Replaces the underlying input stream with a {@link ClosedInputStream}
45 * sentinel. The original input stream will remain open, but this proxy
|
H A D | ClosedInputStream.java | 17 package org.apache.commons.io.input;
22 * Closed input stream. This stream returns -1 to all attempts to read
26 * that accept input streams and acting as a sentinel value instead of a
27 * <code>null</code> input stream.
|
H A D | AutoCloseInputStream.java | 17 package org.apache.commons.io.input;
24 * end of input has been reached or when the stream is explicitly closed.
40 * Creates an automatically closing proxy for the given input stream.
42 * @param in underlying input stream
49 * Closes the underlying input stream and replaces the reference to it
53 * of input has been reached.
56 * underlying input stream is closed and discarded only once when this
59 * @throws IOException if the underlying input stream can not be closed
67 * Reads and returns a single byte from the underlying input stream.
83 * Reads and returns bytes from the underlying input strea [all...] |
H A D | DemuxInputStream.java | 17 package org.apache.commons.io.input;
37 * @param input the stream to bind
40 public InputStream bindStream( InputStream input )
43 m_streams.set( input );
56 InputStream input = getStream();
57 if( null != input )
59 input.close();
73 InputStream input = getStream();
74 if( null != input )
76 return input [all...] |
H A D | CharSequenceReader.java | 17 package org.apache.commons.io.input;
|
H A D | CountingInputStream.java | 17 package org.apache.commons.io.input;
23 * A decorating input stream that counts the number of bytes that have passed
|
H A D | ProxyInputStream.java | 17 package org.apache.commons.io.input;
|
H A D | ProxyReader.java | 17 package org.apache.commons.io.input;
|
H A D | NullInputStream.java | 17 package org.apache.commons.io.input;
77 * @param size The size of the input stream to emulate.
87 * @param size The size of the input stream to emulate.
112 * @return The size of the input stream to emulate.
135 * Close this input stream - resets the internal state to
|
H A D | NullReader.java | 17 package org.apache.commons.io.input;
|
H A D | SwappedDataInputStream.java | 17 package org.apache.commons.io.input;
43 * @param input InputStream to read from
45 public SwappedDataInputStream( InputStream input )
47 super( input );
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | MoreMath.java | 24 * If the input value lies outside of the specified range, return the nearer 25 * bound. Otherwise, return the input value, unchanged. 27 public static int clamp(int input, int lowerBound, int upperBound) { argument 28 if (input < lowerBound) return lowerBound; 29 if (input > upperBound) return upperBound; 30 return input; 34 * If the input value lies outside of the specified range, return the nearer 35 * bound. Otherwise, return the input value, unchanged. 37 public static float clamp(float input, float lowerBound, float upperBound) { argument 38 if (input < lowerBoun 47 clamp(double input, double lowerBound, double upperBound) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
H A D | Predicate.java | 21 * Determines a true or false value for a given input. For example, a 41 * @param input the input that the predicate should act on 42 * @return the value of this predicate when applied to the input {@code t} 44 boolean apply(T input); argument 49 * also a {@code Predicate} and, for every input object {@code input}, it 51 * implies that either {@code predicate1.apply(input)} and 52 * {@code predicate2.apply(input)} are both {@code true} or both
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | CopyUtils.java | 132 * @param input the byte array to read from
136 public static void copy(byte[] input, OutputStream output)
argument 138 output.write(input);
149 * @param input the byte array to read from
153 public static void copy(byte[] input, Writer output)
argument 155 ByteArrayInputStream in = new ByteArrayInputStream(input);
163 * @param input the byte array to read from
171 byte[] input,
175 ByteArrayInputStream in = new ByteArrayInputStream(input);
187 * @param input th 170 copy( byte[] input, Writer output, String encoding) argument 192 copy( InputStream input, OutputStream output) argument 217 copy( Reader input, Writer output) argument 243 copy( InputStream input, Writer output) argument 261 copy( InputStream input, Writer output, String encoding) argument 282 copy( Reader input, OutputStream output) argument 305 copy( String input, OutputStream output) argument 327 copy(String input, Writer output) argument [all...] |
H A D | EndianUtils.java | 38 * @see org.apache.commons.io.input.SwappedDataInputStream
294 * @param input source InputStream
298 public static short readSwappedShort(InputStream input)
argument 301 return (short)( ( ( read( input ) & 0xff ) << 0 ) +
302 ( ( read( input ) & 0xff ) << 8 ) );
308 * @param input source InputStream
312 public static int readSwappedUnsignedShort(InputStream input)
argument 315 int value1 = read( input );
316 int value2 = read( input );
341 * @param input sourc 345 readSwappedInteger(InputStream input) argument 366 readSwappedUnsignedInteger(InputStream input) argument 410 readSwappedLong(InputStream input) argument 440 readSwappedFloat(InputStream input) argument 466 readSwappedDouble(InputStream input) argument 478 read(InputStream input) argument [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
H A D | StreamUtils.java | 27 * Copies the input byte array into the output int array with the given 28 * endianness. If input is not a multiple of 4, ignores the last 1-3 bytes 31 public static boolean byteToIntArray(int[] output, byte[] input, ByteOrder endianness) { argument 32 int length = input.length - (input.length % 4); 34 throw new ArrayIndexOutOfBoundsException("Output array is too short to hold input"); 38 output[i] = ((input[j] & 0xFF) << 24) | ((input[j + 1] & 0xFF) << 16) 39 | ((input[j + 2] & 0xFF) << 8) | ((input[ 50 byteToIntArray(byte[] input, ByteOrder endianness) argument 59 byteToIntArray(byte[] input) argument [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
H A D | Predicate.java | 21 * Determines a true or false value for a given input. For example, a 41 * @param input the input that the predicate should act on 42 * @return the value of this predicate when applied to the input {@code t} 44 boolean apply(T input); argument 49 * also a {@code Predicate} and, for every input object {@code input}, it 51 * implies that either {@code predicate1.apply(input)} and 52 * {@code predicate2.apply(input)} are both {@code true} or both
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | WnnSentence.java | 35 * @param input The string of reading 38 public WnnSentence(String input, ArrayList<WnnClause> clauses) { argument 53 this.stroke = input; 68 this.stroke = input; 79 * @param input The string of reading 82 public WnnSentence(String input, WnnClause clause) { argument 85 this.stroke = input;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | SoftLandingInterpolator.java | 48 public float getInterpolation(float input) { argument 49 final float f = fly.getInterpolation(input / upperRange) * mO; 50 final float s = slide.getInterpolation((input - bottom) / upperRange) * (1f - mO) + mO; 53 if (input < bottom) { 55 } else if (input < top) { 56 final float alpha = (input - bottom) / (top - bottom);
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
H A D | SimpleIcsWriterTests.java | 63 String input = stringOfLength(i) + last; 64 checkWriteLine(input); 80 private void checkWriteLine(String input) { argument 82 ics.writeLine(input); 92 assertTrue("input=" + input, numBytes <= 75); 98 assertTrue("input=" + input, numBytes <= 75); 101 // If it becomes the same as input, we're doing the right thing. 104 assertEquals("input [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | MetadataHandler.java | 102 * @param input The stream to read from. 104 * @throws IOException if the input stream cannot be read 107 public static List<WordListMetadata> readMetadata(final InputStreamReader input) argument 109 return MetadataParser.parseMetadata(input);
|
H A D | MetadataParser.java | 93 * @param input a stream reader expected to contain JSON formatted metadata. 98 public static List<WordListMetadata> parseMetadata(final InputStreamReader input) argument 100 JsonReader reader = new JsonReader(input);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/ |
H A D | FormatUtils.java | 93 * Applies the given style to a range of the input CharSequence. 95 * @param input The CharSequence to style. 97 * @param end Ending index of the range to style (will be clamped to a maximum of the input 102 public static CharSequence applyStyleToSpan(int style, CharSequence input, int start, int end, argument 106 end = Math.min(input.length(), end); 107 SpannableString text = new SpannableString(input);
|