Searched refs:input (Results 1 - 25 of 117) sorted by relevance

12345

/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/InCallUI/src/com/android/incallui/widget/multiwaveview/
H A DEase.java28 public float getInterpolation(float input) {
29 return input;
36 public float getInterpolation(float input) {
37 return DOMAIN*(input/=DURATION)*input*input + START;
41 public float getInterpolation(float input) {
42 return DOMAIN*((input=input/DURATION-1)*input*inpu
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
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 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 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 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
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
H A DStreamUtils.java27 * 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/Camera2/src/com/android/camera/ui/motion/
H A DUnitBezier.java64 * valueAt(result) produces the input value.
67 * @return the closest approximate input that will produce value when provided
77 float input = target;
81 float value = fn.value(input) - target;
83 return input;
85 float derivative = fn.derivative(input);
89 input = input - value / derivative;
95 input = target;
97 if (input < mi
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DCopyUtils.java133 * @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...]
H A DIOUtils.java43 * 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
277 toByteArray(String input) argument
338 toCharArray(Reader input) argument
358 toString(InputStream input) argument
380 toString(InputStream input, String encoding) argument
398 toString(Reader input) argument
415 toString(byte[] input) argument
434 toString(byte[] input, String encoding) argument
458 readLines(InputStream input) argument
480 readLines(InputStream input, String encoding) argument
502 readLines(Reader input) argument
576 lineIterator(InputStream input, String encoding) argument
596 toInputStream(String input) argument
614 toInputStream(String input, String encoding) argument
1001 copy(InputStream input, OutputStream output) argument
1023 copyLarge(InputStream input, OutputStream output) argument
1050 copy(InputStream input, Writer output) argument
1075 copy(InputStream input, Writer output, String encoding) argument
1106 copy(Reader input, Writer output) argument
1127 copyLarge(Reader input, Writer output) argument
1157 copy(Reader input, OutputStream output) argument
1189 copy(Reader input, OutputStream output, String encoding) 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/UnifiedEmail/src/com/android/mail/utils/
H A DStyleUtils.java46 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,
/packages/services/Telephony/src/com/android/phone/
H A DSpecialCharSequenceMgr.java69 * Check for special strings of digits from an input
71 * @param context input Context for the events we handle.
72 * @param input the dial string to be examined.
74 static boolean handleChars(Context context, String input) { argument
75 return handleChars(context, input, null);
91 * @param context input Context for the events we handle.
92 * @param input the dial string to be examined.
97 * @return true if the input was a special string which has been
101 String input,
105 String dialString = PhoneNumberUtils.stripSeparators(input);
100 handleChars(Context context, String input, Activity pukInputActivity) argument
126 handleCharsForLockedDevice(Context context, String input, Activity pukInputActivity) argument
154 handleSecretCode(Context context, String input) argument
167 handleAdnEntry(Context context, String input) argument
196 handlePinEntry(Context context, String input, Activity pukInputActivity) argument
220 handleIMEIDisplay(Context context, String input) argument
247 handleRegulatoryInfoDisplay(Context context, String input) argument
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DPredicate.java21 * 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/services/Telephony/src/org/apache/commons/io/
H A DIOUtils.java42 * This class provides static utility methods for input/output operations.
136 * @param input the Reader to close, may be null or already closed
138 public static void closeQuietly(Reader input) { argument
140 if (input != null) {
141 input.close();
172 * @param input the InputStream to close, may be null or already closed
174 public static void closeQuietly(InputStream input) { argument
176 if (input != null) {
177 input.close();
207 * This method buffers the input internall
215 toByteArray(InputStream input) argument
233 toByteArray(Reader input) argument
256 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
414 toString(byte[] input) argument
433 toString(byte[] input, String encoding) argument
457 readLines(InputStream input) argument
479 readLines(InputStream input, String encoding) argument
501 readLines(Reader input) argument
521 toInputStream(String input) argument
539 toInputStream(String input, String encoding) argument
926 copy(InputStream input, OutputStream output) argument
948 copyLarge(InputStream input, OutputStream output) argument
975 copy(InputStream input, Writer output) argument
1000 copy(InputStream input, Writer output, String encoding) argument
1031 copy(Reader input, Writer output) argument
1052 copyLarge(Reader input, Writer output) argument
1082 copy(Reader input, OutputStream output) argument
1114 copy(Reader input, OutputStream output, String encoding) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DOpenWnnClauseConverterJAJP.java33 /** Maximum limit length of input */
122 * @param input The input string
125 public Iterator convert(String input) { argument
130 /* do nothing if the length of input exceeds the limit */
131 if (input.length() > MAX_INPUT_LENGTH) {
139 if (!singleClauseConvert(mConvertResult, input, mPosEndOfClause2, true)) {
148 * @param input The input string
151 public WnnSentence consecutiveClauseConvert(String input) { argument
236 consecutiveClauseConvert(LinkedList resultList, String input) argument
256 singleClauseConvert(LinkedList clauseList, String input, WnnPOS terminal, boolean all) argument
321 addClause(LinkedList<WnnClause> clauseList, String input, WnnWord stem, WnnWord fzk, WnnPOS terminal, boolean all) argument
397 getAncillaryPattern(String input) argument
460 getIndependentWords(String input, boolean all) argument
526 addAutoGeneratedCandidates(String input, ArrayList wordList, boolean all) argument
539 defaultClause(String input) argument
[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/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/UnifiedEmail/src/com/android/mail/ui/
H A DLicensesActivity.java51 InputStream input = null;
55 input = getResources().openRawResource(R.raw.licenses);
56 final String license = IOUtils.toString(input, "UTF-8");
63 if (input != null) {
65 input.close();
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DBaseVoicemailProviderTest.java132 private static void recursiveDeleteAll(File input) { argument
133 if (input.isDirectory()) {
134 for (File file : input.listFiles()) {
138 assertTrue("error deleting " + input.getAbsolutePath(), input.delete());
141 private List<File> findAllFiles(File input) { argument
142 if (input == null) {
145 if (!input.isDirectory()) {
146 return Collections.singletonList(input);
149 for (File file : input
[all...]
/packages/apps/Camera2/src/com/android/camera/async/
H A DObservables.java51 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/Camera2/src/com/android/camera/util/
H A DGusterpolator.java63 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/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
H A DBinaryDictOffdeviceUtils.java109 InputStream input = new BufferedInputStream(new FileInputStream(src));
113 input = Compress.getUncompressedStream(input);
116 input = Crypt.getDecryptedStream(input);
120 return input;
126 public T process(@Nonnull final InputStream input) argument
132 public File process(@Nonnull final InputStream input) throws IOException, argument
137 copy(input, output);
154 public DictionaryHeader process(final InputStream input) throw argument
209 copy(final InputStream input, final OutputStream output) argument
[all...]
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiAPITest.java106 // Set an EditText view to get user input
107 final EditText input = new EditText(this);
108 alert.setView(input);
111 Editable value = input.getText();
126 // Set an EditText view to get user input
127 final EditText input = new EditText(this);
128 alert.setView(input);
131 Editable value = input.getText();
/packages/apps/Dialer/src/com/android/dialer/
H A DSpecialCharSequenceMgr.java118 public HandleMmiAccountSelectedCallback(Context context, String input) { argument
120 mInput = input;
134 public static boolean handleChars(Context context, String input, EditText textField) { argument
136 String dialString = PhoneNumberUtils.stripSeparators(input);
172 * @param input the text to check for a secret code in
175 static boolean handleSecretCode(Context context, String input) { argument
177 int len = input.length();
178 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) {
180 Uri.parse("android_secret_code://" + input
195 handleAdnEntry(Context context, String input, EditText textField) argument
300 handlePinEntry(final Context context, final String input) argument
329 handleDeviceIdDisplay(Context context, String input) argument
356 handleRegulatoryInfoDisplay(Context context, String input) argument
[all...]

Completed in 932 milliseconds

12345