/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/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
H A D | Ease.java | 28 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 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 | 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 | 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 | 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
|
/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/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...] |
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 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 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...] |
/packages/services/Telephony/src/com/android/phone/ |
H A D | SpecialCharSequenceMgr.java | 69 * 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 219 handleIMEIDisplay(Context context, String input) argument 246 handleRegulatoryInfoDisplay(Context context, String input) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/lib/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/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/JAJP/ |
H A D | OpenWnnClauseConverterJAJP.java | 33 /** 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 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...] |
/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/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | LicensesActivity.java | 51 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/apps/Dialer/src/com/android/dialer/ |
H A D | SpecialCharSequenceMgr.java | 82 public static boolean handleChars(Context context, String input, EditText textField) { argument 83 return handleChars(context, input, false, textField); 86 static boolean handleChars(Context context, String input) { argument 87 return handleChars(context, input, false, null); 90 static boolean handleChars(Context context, String input, boolean useSystemWindow, argument 94 String dialString = PhoneNumberUtils.stripSeparators(input); 130 * @param input the text to check for a secret code in 133 static boolean handleSecretCode(Context context, String input) { argument 135 int len = input.length(); 136 if (len > 8 && input 153 handleAdnEntry(Context context, String input, EditText textField) argument 227 handlePinEntry(Context context, String input) argument 236 handleIMEIDisplay(Context context, String input, boolean useSystemWindow) argument 253 handleRegulatoryInfoDisplay(Context context, String input) argument [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | BaseVoicemailProviderTest.java | 121 private static void recursiveDeleteAll(File input) { argument 122 if (input.isDirectory()) { 123 for (File file : input.listFiles()) { 127 assertTrue("error deleting " + input.getAbsolutePath(), input.delete()); 130 private List<File> findAllFiles(File input) { argument 131 if (input == null) { 134 if (!input.isDirectory()) { 135 return Collections.singletonList(input); 138 for (File file : input [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | Gusterpolator.java | 61 public float getInterpolation(float input) { argument 62 if (input >= 1.0f) { 66 if (input <= 0f) { 71 (int)(input * (VALUES.length - 1)), 75 float difference = input - quantized;
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | WifiAPITest.java | 107 // Set an EditText view to get user input 108 final EditText input = new EditText(this); 109 alert.setView(input); 112 Editable value = input.getText(); 127 // Set an EditText view to get user input 128 final EditText input = new EditText(this); 129 alert.setView(input); 132 Editable value = input.getText();
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/ |
H A D | ImgSrcReplacementTest.java | 29 private static void replace(final String input, final String expectedOutput) { argument 30 assertEquals(expectedOutput, HtmlConversationTemplates.replaceAbsoluteImgUrls(input));
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadUtils.java | 67 InputStream input = null; 69 input = url.openStream(); 70 dump(jc, input, output); 76 Utils.closeSilently(input);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | InputLogicTestsReorderingMyanmar.java | 214 final int[] input = step.first; 216 if (input.length > 1) { 217 mLatinIME.onTextInput(new String(input, 0, input.length)); 219 type(input[0]);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
H A D | OpenWnnEngineEN.java | 137 /* input string itself */ 140 /* Capitalize the head of input */ 201 * input string to the search key. And hold the input string's 205 * @param input Input string 208 private boolean setSearchKey(String input) { argument 209 if (input.length() == 0) { 214 mInputString = input; 217 mSearchKey = input.toLowerCase(); 220 if (Character.isUpperCase(input [all...] |