Searched defs:input (Results 1 - 25 of 50) sorted by relevance

12

/packages/apps/Email/src/org/apache/commons/io/input/
H A DTeeInputStream.java17 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 DClassLoaderObjectInputStream.java17 package org.apache.commons.io.input;
H A DCloseShieldInputStream.java17 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 DClosedInputStream.java17 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 DAutoCloseInputStream.java17 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 DDemuxInputStream.java17 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 DCharSequenceReader.java17 package org.apache.commons.io.input;
H A DCountingInputStream.java17 package org.apache.commons.io.input;
23 * A decorating input stream that counts the number of bytes that have passed
H A DProxyInputStream.java17 package org.apache.commons.io.input;
H A DProxyReader.java17 package org.apache.commons.io.input;
H A DNullInputStream.java17 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 DNullReader.java17 package org.apache.commons.io.input;
H A DSwappedDataInputStream.java17 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 DMoreMath.java24 * 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/Email/src/org/apache/commons/io/
H A DCopyUtils.java132 * @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 DEndianUtils.java38 * @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/tests/src/com/android/gallery3d/anim/
H A DAnimationTest.java53 public float getInterpolation(float input) { argument
54 return 4f * (input - 0.5f); // maps [0,1] to [-2,2]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DWnnSentence.java35 * @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 DSoftLandingInterpolator.java48 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/exchange2/tests/src/com/android/exchange/utility/
H A DSimpleIcsWriterTests.java63 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/apps/Exchange/tests/src/com/android/exchange/utility/
H A DSimpleIcsWriterTests.java63 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 DMetadataHandler.java102 * @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 DMetadataParser.java93 * @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 DFormatUtils.java93 * 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);
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DPointerInfo.java87 private static ByteBuffer toByteBuffer(int byteCount, Buffer input) { argument
90 if (input instanceof ByteBuffer) {
91 ByteBuffer input2 = (ByteBuffer) input;
101 } else if (input instanceof CharBuffer) {
102 CharBuffer input2 = (CharBuffer) input;
113 } else if (input instanceof ShortBuffer) {
114 ShortBuffer input2 = (ShortBuffer) input;
125 } else if (input instanceof IntBuffer) {
126 IntBuffer input2 = (IntBuffer) input;
137 } else if (input instanceo
[all...]

Completed in 363 milliseconds

12