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

12345678

/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/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/TV/src/com/android/tv/util/
H A DFilter.java20 * Interface to decide whether an input is filtered out or not.
24 * Returns true, if {@code input} is acceptable.
26 boolean filter(T input); argument
/packages/services/Car/car-support-lib/src/android/support/car/input/
H A DCarEditableListener.java16 package android.support.car.input;
H A DCarInputManager.java16 package android.support.car.input;
28 * Starts input on the requested {@link android.widget.EditText}, showing the IME.
29 * If IME input is already occurring for another view, this call stops input on the previous
30 * view and starts input on the new view.
38 * Stops input, hiding the IME. This method fails silently if the calling application didn't
39 * request input and isn't the active IME.
/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
153 handleSecretCode(String input) argument
164 handleAdnEntry(Context context, String input) argument
193 handlePinEntry(Context context, String input, Activity pukInputActivity) argument
217 handleIMEIDisplay(Context context, String input) argument
244 handleRegulatoryInfoDisplay(Context context, String input) argument
[all...]
/packages/services/Car/car-default-input-service/src/android/car/input/service/
H A DDefaultInputService.java16 package android.car.input.service;
18 import android.car.input.CarInputHandlingService;
19 import android.car.input.CarInputHandlingService.InputFilter;
26 * This implementation does nothing, just serves as showcase how input service should be
/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/Car/car-lib/src/android/car/input/
H A DICarInputListener.aidl16 package android.car.input;
/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/DocumentsUI/src/com/android/documentsui/base/
H A DCheckedTask.java31 * @template Input input type
47 protected abstract Output run(Input... input); argument
61 protected final Output doInBackground(Input... input) { argument
65 return run(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/Dialer/java/com/android/dialer/oem/
H A DMotorolaHiddenMenuKeySequence.java42 * Handle input char sequence.
45 * @param input input sequence
46 * @return true if the input matches any pattern
48 static boolean handleCharSequence(Context context, String input) { argument
53 return handleKeySequence(context, input) || handleKeyPattern(context, input);
100 private static boolean handleKeyPattern(Context context, String input) { argument
101 int len = input.length();
107 if ((Pattern.compile(hiddenKeyPatternArray[i])).matcher(input)
114 handleKeySequence(Context context, String input) argument
128 sendIntent( final Context context, final String input, final String action) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
H A DDialerExecutor.java36 OutputT doInBackground(@Nullable InputT input) throws Throwable; argument
84 void executeSerial(@Nullable InputT input); argument
94 void executeSerialWithWait(@Nullable InputT input, long waitMillis); argument
101 void executeParallel(@Nullable InputT input); argument
109 @NonNull ExecutorService executorService, @Nullable InputT input);
108 executeOnCustomExecutorService( @onNull ExecutorService executorService, @Nullable InputT input) argument
/packages/apps/Settings/src/com/android/settings/search/
H A DInlineListPayload.java36 protected int standardizeInput(int input) throws IllegalArgumentException { argument
37 if (input < 0 || input >= mNumOptions) {
40 + mNumOptions + " but found: " + input);
42 return input;
/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();

Completed in 622 milliseconds

12345678