/packages/apps/Browser/tests/src/com/android/browser/ |
H A D | PopularUrlsTest.java | 328 FileReader input = null; 335 input = new FileReader(mFile); 337 reader = new BufferedReader(input); 357 if (input != null) { 358 input.close(); 431 * @param input the reader from which to get the URLs. 435 * @throws IOException unable to read from input or write to writer. 438 void loopUrls(BufferedReader input, OutputStreamWriter writer, argument 447 while (null != (page = input.readLine())) {
|
/packages/apps/Calculator/ |
H A D | arity-2.1.2.jar | META-INF/ META-INF/MANIFEST.MF org/ org/javia/ org/javia/arity/ org/javia/arity/Compiler ... |
/packages/apps/Calculator/src/com/android/calculator2/ |
H A D | Logic.java | 227 String evaluate(String input) throws SyntaxException { argument 228 if (input.trim().equals("")) { 233 int size = input.length(); 234 while (size > 0 && isOperator(input.charAt(size - 1))) { 235 input = input.substring(0, size - 1); 239 input = replaceTranslations(input); 240 double value = mSymbols.eval(input); 261 private String replaceTranslations(String input) { argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | SpecialCharSequenceMgr.java | 80 public static boolean handleChars(Context context, String input, EditText textField) { argument 81 return handleChars(context, input, false, textField); 84 static boolean handleChars(Context context, String input) { argument 85 return handleChars(context, input, false, null); 88 static boolean handleChars(Context context, String input, boolean useSystemWindow, argument 92 String dialString = PhoneNumberUtils.stripSeparators(input); 127 * @param input the text to check for a secret code in 130 static boolean handleSecretCode(Context context, String input) { argument 132 int len = input.length(); 133 if (len > 8 && input 150 handleAdnEntry(Context context, String input, EditText textField) argument 224 handlePinEntry(Context context, String input) argument 237 handleIMEIDisplay(Context context, String input, boolean useSystemWindow) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/dialpad/ |
H A D | DialpadFragment.java | 196 * that SpecialCharSequenceMgr actions can be triggered by user input but *not* by a 209 public void onTextChanged(CharSequence input, int start, int before, int changeCount) { argument 210 if (mWasEmptyBeforeTextChange != TextUtils.isEmpty(input)) { 222 public void afterTextChanged(Editable input) { argument 227 SpecialCharSequenceMgr.handleChars(getActivity(), input.toString(), mDigits)) { 348 // Put the requested number into the input area 367 // Put the number into the input area 955 // Remove tentative input ('0') done by onTouch().
|
/packages/apps/Contacts/src/com/android/contacts/format/ |
H A D | FormatUtils.java | 95 * Applies the given style to a range of the input CharSequence. 97 * @param input The CharSequence to style. 99 * @param end Ending index of the range to style (will be clamped to a maximum of the input 104 public static CharSequence applyStyleToSpan(int style, CharSequence input, int start, int end, argument 108 end = Math.min(input.length(), end); 109 SpannableString text = new SpannableString(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/DeskClock/src/com/android/deskclock/stopwatch/ |
H A D | StopwatchFragment.java | 480 private long[] getLapShareTimes(long[] input) { argument 481 if (input == null) { 485 int numLaps = input.length; 489 long lap = input[lap_i];
|
/packages/apps/Email/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...] |
H A D | IOUtils.java | 43 * This class provides static utility methods for input/output operations.
137 * @param input the Reader to close, may be null or already closed
139 public static void closeQuietly(Reader input) {
argument 141 if (input != null) {
142 input.close();
173 * @param input the InputStream to close, may be null or already closed
175 public static void closeQuietly(InputStream input) {
argument 177 if (input != null) {
178 input.close();
208 * This method buffers the input internall 216 toByteArray(InputStream input) argument 234 toByteArray(Reader input) argument 257 toByteArray(Reader input, String encoding) argument 276 toByteArray(String input) argument 337 toCharArray(Reader input) argument 357 toString(InputStream input) argument 379 toString(InputStream input, String encoding) argument 397 toString(Reader input) argument 413 toString(byte[] input) argument 431 toString(byte[] input, String encoding) argument 455 readLines(InputStream input) argument 477 readLines(InputStream input, String encoding) argument 499 readLines(Reader input) argument 573 lineIterator(InputStream input, String encoding) argument 593 toInputStream(String input) argument 611 toInputStream(String input, String encoding) argument 998 copy(InputStream input, OutputStream output) argument 1020 copyLarge(InputStream input, OutputStream output) argument 1047 copy(InputStream input, Writer output) argument 1072 copy(InputStream input, Writer output, String encoding) argument 1103 copy(Reader input, Writer output) argument 1124 copyLarge(Reader input, Writer output) argument 1154 copy(Reader input, OutputStream output) argument 1186 copy(Reader input, OutputStream output, String encoding) argument [all...] |
/packages/apps/Email/src/org/apache/commons/io/input/ |
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 | CharSequenceReader.java | 17 package org.apache.commons.io.input;
|
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 | 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 | 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 | 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 | ProxyInputStream.java | 17 package org.apache.commons.io.input;
|
H A D | ProxyReader.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 );
|
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...] |
/packages/apps/Exchange/exchange2/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...] |