/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;
|
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | Gusterpolator.java | 63 public float getInterpolation(float input) { argument 64 if (input >= 1.0f) { 68 if (input <= 0f) { 73 (int)(input * (VALUES.length - 1)), 77 float difference = input - quantized;
|
/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/PackageInstaller/src/android/support/wearable/view/ |
H A D | Gusterpolator.java | 65 public float getInterpolation(float input) { argument 66 if (input >= 1.0f) { 70 if (input <= 0f) { 75 (int)(input * (VALUES.length - 1)), 79 float difference = input - quantized;
|
/packages/apps/TV/common/src/com/android/tv/common/ |
H A D | TvCommonUtils.java | 29 * Returns an intent to start the setup activity for the TV input using {@link 47 * Returns an intent to start the setup activity for this TV input using {@link 50 public static Intent createSetupIntent(TvInputInfo input) { argument 51 return createSetupIntent(input.createSetupIntent(), input.getId());
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | StyleUtils.java | 46 public static void stripUnderlinesAndLinkUrls(Spannable input, argument 48 final URLSpan[] urls = input.getSpans(0, input.length(), URLSpan.class); 51 final int start = input.getSpanStart(span); 52 final int end = input.getSpanEnd(span); 53 input.removeSpan(span); 54 input.setSpan(new LinkStyleSpan(onClickListener), start, end,
|
H A D | BitmapUtil.java | 87 * {@link android.widget.ImageView.ScaleType#CENTER_CROP}. May return the input bitmap if no 103 * so the entire cropped bitmap will fit inside the src. May return the input bitmap if no 181 * Frames the input bitmap in a circle. 183 public static Bitmap frameBitmapInCircle(Bitmap input) { argument 184 if (input == null) { 189 int inputWidth = input.getWidth(); 190 int inputHeight = input.getHeight(); 213 // Replace the black parts of the mask with the input image. 215 canvas.drawBitmap(input, targetX /* left */, targetY /* top */, paint);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | CopyUtils.java | 133 * @param input the byte array to read from 137 public static void copy(byte[] input, OutputStream output) argument 139 output.write(input); 150 * @param input the byte array to read from 154 public static void copy(byte[] input, Writer output) argument 156 ByteArrayInputStream in = new ByteArrayInputStream(input); 164 * @param input the byte array to read from 172 byte[] input, 176 ByteArrayInputStream in = new ByteArrayInputStream(input); 188 * @param input th 171 copy( byte[] input, Writer output, String encoding) argument 193 copy( InputStream input, OutputStream output) argument 218 copy( Reader input, Writer output) argument 244 copy( InputStream input, Writer output) argument 262 copy( InputStream input, Writer output, String encoding) argument 283 copy( Reader input, OutputStream output) argument 306 copy( String input, OutputStream output) argument 328 copy(String input, Writer output) argument [all...] |
/packages/services/Car/car-support-lib/src/android/support/car/input/ |
H A D | CarEditableListener.java | 16 package android.support.car.input;
|
H A D | CarEditable.java | 16 package android.support.car.input;
|
H A D | CarInputManager.java | 16 package android.support.car.input; 26 * Starts input on the requested {@link android.widget.EditText}, showing the IME. 27 * If IME input is already occurring for another view, this call stops input on the previous 28 * view and starts input on the new view. 36 * Stops input, hiding the IME. This method fails silently if the calling application didn't 37 * request input and isn't the active IME.
|
H A D | CarRestrictedEditText.java | 16 package android.support.car.input; 51 void onCommitText(String input); argument
|
/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/services/Car/car-support-lib/src/android/support/car/ui/ |
H A D | ReversibleInterpolator.java | 36 public float getForwardInterpolation(float input) { argument 37 return mForwardInterpolator.getInterpolation(input); 40 public float getReverseInterpolation(float input) { argument 41 return mReverseInterpolator.getInterpolation(input);
|
/packages/apps/Camera2/src/com/android/camera/async/ |
H A D | Observables.java | 51 public static <F, T> Observable<T> transform(final Observable<F> input, argument 57 return function.apply(input.get()); 64 return input.addCallback(callback, executor); 70 * @return An observable which recomputes its output every time an input changes. 82 public static <F, T> Observable<T> transform(final List<? extends Observable<F>> input, argument 84 return ObservableCombiner.transform(input, function);
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
H A D | PaymentDefaultDialog.java | 132 private String sanitizePaymentAppCaption(String input) { argument 133 String sanitizedString = input.replace('\n', ' ').replace('\r', ' ').trim();
|