Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 82) sorted by relevance

1234

/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
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*input + 1) + START;
46 public float getInterpolation(float input) {
47 return ((input/=DURATION/2) < 1.0f) ?
48 (DOMAIN/2*input*input*input + START)
49 : (DOMAIN/2*((input-=2)*input*input + 2) + START);
[all …]
/packages/apps/Email/src/org/apache/commons/io/
DIOUtils.java139 public static void closeQuietly(Reader input) { in closeQuietly() argument
141 if (input != null) { in closeQuietly()
142 input.close(); in closeQuietly()
175 public static void closeQuietly(InputStream input) { in closeQuietly() argument
177 if (input != null) { in closeQuietly()
178 input.close(); in closeQuietly()
216 public static byte[] toByteArray(InputStream input) throws IOException { in toByteArray() argument
218 copy(input, output); in toByteArray()
234 public static byte[] toByteArray(Reader input) throws IOException { in toByteArray() argument
236 copy(input, output); in toByteArray()
[all …]
DCopyUtils.java136 public static void copy(byte[] input, OutputStream output) in copy() argument
138 output.write(input); in copy()
153 public static void copy(byte[] input, Writer output) in copy() argument
155 ByteArrayInputStream in = new ByteArrayInputStream(input); in copy()
171 byte[] input, in copy() argument
175 ByteArrayInputStream in = new ByteArrayInputStream(input); in copy()
193 InputStream input, in copy() argument
199 while (-1 != (n = input.read(buffer))) { in copy()
218 Reader input, in copy() argument
224 while (-1 != (n = input.read(buffer))) { in copy()
[all …]
DEndianUtils.java298 public static short readSwappedShort(InputStream input) in readSwappedShort() argument
301 return (short)( ( ( read( input ) & 0xff ) << 0 ) + in readSwappedShort()
302 ( ( read( input ) & 0xff ) << 8 ) ); in readSwappedShort()
312 public static int readSwappedUnsignedShort(InputStream input) in readSwappedUnsignedShort() argument
315 int value1 = read( input ); in readSwappedUnsignedShort()
316 int value2 = read( input ); in readSwappedUnsignedShort()
345 public static int readSwappedInteger(InputStream input) in readSwappedInteger() argument
348 int value1 = read( input ); in readSwappedInteger()
349 int value2 = read( input ); in readSwappedInteger()
350 int value3 = read( input ); in readSwappedInteger()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DOpenWnnClauseConverterJAJP.java125 public Iterator convert(String input) { in convert() argument
131 if (input.length() > MAX_INPUT_LENGTH) { in convert()
139 if (!singleClauseConvert(mConvertResult, input, mPosEndOfClause2, true)) { in convert()
151 public WnnSentence consecutiveClauseConvert(String input) { in consecutiveClauseConvert() argument
155 for (int i = 0; i < input.length(); i++) { in consecutiveClauseConvert()
161 for (int start = 0; start < input.length(); start++) { in consecutiveClauseConvert()
167 int end = input.length(); in consecutiveClauseConvert()
190 String key = input.substring(start, end); in consecutiveClauseConvert()
193 if (end == input.length()) { in consecutiveClauseConvert()
223 if (sentence[input.length() - 1] != null) { in consecutiveClauseConvert()
[all …]
DOpenWnnEngineJAJP.java318 String input = text.toString(ComposingText.LAYER1); in setSearchKey() local
319 if (0 <= maxLen && maxLen <= input.length()) { in setSearchKey()
320 input = input.substring(0, maxLen); in setSearchKey()
326 if (input.length() == 0) { in setSearchKey()
332 mInputHiragana = input; in setSearchKey()
335 return input.length(); in setSearchKey()
420 String input; in convert() local
424 input = text.toString(ComposingText.LAYER1, 0, cursor - 1); in convert()
425 Iterator headCandidates = mClauseConverter.convert(input); in convert()
429 head = new WnnClause(input, (WnnWord)headCandidates.next()); in convert()
[all …]
/packages/apps/Phone/src/com/android/phone/
DSpecialCharSequenceMgr.java68 static boolean handleChars(Context context, String input) { in handleChars() argument
69 return handleChars(context, input, null); in handleChars()
95 String input, in handleChars() argument
99 String dialString = PhoneNumberUtils.stripSeparators(input); in handleChars()
120 String input, in handleCharsForLockedDevice() argument
123 String dialString = PhoneNumberUtils.stripSeparators(input); in handleCharsForLockedDevice()
147 static private boolean handleSecretCode(Context context, String input) { in handleSecretCode() argument
149 int len = input.length(); in handleSecretCode()
150 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode()
152 Uri.parse("android_secret_code://" + input.substring(4, len - 4))); in handleSecretCode()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DMoreMath.java27 public static int clamp(int input, int lowerBound, int upperBound) { in clamp() argument
28 if (input < lowerBound) return lowerBound; in clamp()
29 if (input > upperBound) return upperBound; in clamp()
30 return input; in clamp()
37 public static float clamp(float input, float lowerBound, float upperBound) { in clamp() argument
38 if (input < lowerBound) return lowerBound; in clamp()
39 if (input > upperBound) return upperBound; in clamp()
40 return input; in clamp()
47 public static double clamp(double input, double lowerBound, double upperBound) { in clamp() argument
48 if (input < lowerBound) return lowerBound; in clamp()
[all …]
/packages/apps/Email/src/org/apache/commons/io/input/
DDemuxInputStream.java17 package org.apache.commons.io.input;
40 public InputStream bindStream( InputStream input ) in bindStream() argument
43 m_streams.set( input ); in bindStream()
56 InputStream input = getStream(); in close() local
57 if( null != input ) in close()
59 input.close(); in close()
73 InputStream input = getStream(); in read() local
74 if( null != input ) in read()
76 return input.read(); in read()
DTeeInputStream.java17 package org.apache.commons.io.input;
59 public TeeInputStream(InputStream input, OutputStream branch) { in TeeInputStream() argument
60 this(input, branch, false); in TeeInputStream()
75 InputStream input, OutputStream branch, boolean closeBranch) { in TeeInputStream() argument
76 super(input); in TeeInputStream()
/packages/apps/Contacts/src/com/android/contacts/
DSpecialCharSequenceMgr.java80 public static boolean handleChars(Context context, String input, EditText textField) { in handleChars() argument
81 return handleChars(context, input, false, textField); in handleChars()
84 static boolean handleChars(Context context, String input) { in handleChars() argument
85 return handleChars(context, input, false, null); in handleChars()
88 static boolean handleChars(Context context, String input, boolean useSystemWindow, in handleChars() argument
92 String dialString = PhoneNumberUtils.stripSeparators(input); in handleChars()
130 static boolean handleSecretCode(Context context, String input) { in handleSecretCode() argument
132 int len = input.length(); in handleSecretCode()
133 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode()
135 Uri.parse("android_secret_code://" + input.substring(4, len - 4))); in handleSecretCode()
[all …]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DPointerInfo.java87 private static ByteBuffer toByteBuffer(int byteCount, Buffer input) { in toByteBuffer() argument
90 if (input instanceof ByteBuffer) { in toByteBuffer()
91 ByteBuffer input2 = (ByteBuffer) input; in toByteBuffer()
101 } else if (input instanceof CharBuffer) { in toByteBuffer()
102 CharBuffer input2 = (CharBuffer) input; in toByteBuffer()
113 } else if (input instanceof ShortBuffer) { in toByteBuffer()
114 ShortBuffer input2 = (ShortBuffer) input; in toByteBuffer()
125 } else if (input instanceof IntBuffer) { in toByteBuffer()
126 IntBuffer input2 = (IntBuffer) input; in toByteBuffer()
137 } else if (input instanceof FloatBuffer) { in toByteBuffer()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DSimpleIcsWriterTests.java63 String input = stringOfLength(i) + last; in testWriteLine() local
64 checkWriteLine(input); in testWriteLine()
80 private void checkWriteLine(String input) { in checkWriteLine() argument
82 ics.writeLine(input); in checkWriteLine()
92 assertTrue("input=" + input, numBytes <= 75); in checkWriteLine()
98 assertTrue("input=" + input, numBytes <= 75); in checkWriteLine()
104 assertEquals("input=" + input, input + "\r\n", unfolded); in checkWriteLine()
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DSimpleIcsWriterTests.java63 String input = stringOfLength(i) + last; in testWriteLine() local
64 checkWriteLine(input); in testWriteLine()
80 private void checkWriteLine(String input) { in checkWriteLine() argument
82 ics.writeLine(input); in checkWriteLine()
92 assertTrue("input=" + input, numBytes <= 75); in checkWriteLine()
98 assertTrue("input=" + input, numBytes <= 75); in checkWriteLine()
104 assertEquals("input=" + input, input + "\r\n", unfolded); in checkWriteLine()
/packages/inputmethods/LatinIME/tools/dicttool/src/android/inputmethod/latin/dicttool/
DCompress.java39 public static void copy(final InputStream input, final OutputStream output) throws IOException { in copy() argument
41 for (int readBytes = input.read(buffer); readBytes >= 0; readBytes = input.read(buffer)) in copy()
43 input.close(); in copy()
65 final InputStream input = inFilename.equals(STDIN_OR_STDOUT) ? System.in in run() local
69 copy(input, new GZIPOutputStream(output)); in run()
91 final InputStream input = inFilename.equals(STDIN_OR_STDOUT) ? System.in in run() local
95 copy(new GZIPInputStream(input), output); in run()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseVoicemailProviderTest.java123 private static void recursiveDeleteAll(File input) {
124 if (input.isDirectory()) {
125 for (File file : input.listFiles()) {
129 assertTrue("error deleting " + input.getAbsolutePath(), input.delete());
132 private List<File> findAllFiles(File input) {
133 if (input == null) {
136 if (!input.isDirectory()) {
137 return Collections.singletonList(input);
140 for (File file : input.listFiles()) {
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSoftLandingInterpolator.java51 public float getInterpolation(float input) { in getInterpolation() argument
52 final float f = fly.getInterpolation(input / upperRange) * mO; in getInterpolation()
53 final float s = slide.getInterpolation((input - bottom) / upperRange) * (1f - mO) + mO; in getInterpolation()
56 if (input < bottom) { in getInterpolation()
58 } else if (input < top) { in getInterpolation()
59 final float alpha = (input - bottom) / (top - bottom); in getInterpolation()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
DOpenWnnEngineEN.java208 private boolean setSearchKey(String input) { in setSearchKey() argument
209 if (input.length() == 0) { in setSearchKey()
214 mInputString = input; in setSearchKey()
217 mSearchKey = input.toLowerCase(); in setSearchKey()
220 if (Character.isUpperCase(input.charAt(0))) { in setSearchKey()
221 if (input.length() > 1 && Character.isUpperCase(input.charAt(1))) { in setSearchKey()
257 String input = text.toString(2); in predict() local
258 if (!setSearchKey(input)) { in predict()
268 if (input.length() > 1) { in predict()
271 if (input.length() > 2) { in predict()
/packages/apps/Calculator/src/com/android/calculator2/
DLogic.java227 String evaluate(String input) throws SyntaxException { in evaluate() argument
228 if (input.trim().equals("")) { in evaluate()
233 int size = input.length(); in evaluate()
234 while (size > 0 && isOperator(input.charAt(size - 1))) { in evaluate()
235 input = input.substring(0, size - 1); in evaluate()
239 input = replaceTranslations(input); in evaluate()
240 double value = mSymbols.eval(input); in evaluate()
261 private String replaceTranslations(String input) { in replaceTranslations() argument
273 input = input.replace(entry.getKey(), entry.getValue()); in replaceTranslations()
275 return input; in replaceTranslations()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiAPITest.java108 final EditText input = new EditText(this); in onPreferenceClick() local
109 alert.setView(input); in onPreferenceClick()
112 Editable value = input.getText(); in onPreferenceClick()
128 final EditText input = new EditText(this); in onPreferenceClick() local
129 alert.setView(input); in onPreferenceClick()
132 Editable value = input.getText(); in onPreferenceClick()
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushProtocol.java68 DataInputStream input = new DataInputStream(buffer); in NdefPushProtocol() local
73 version = input.readByte(); in NdefPushProtocol()
86 mNumMessages = input.readInt(); in NdefPushProtocol()
102 mActions[i] = input.readByte(); in NdefPushProtocol()
110 length = input.readInt(); in NdefPushProtocol()
119 lengthRead = input.read(bytes); in NdefPushProtocol()
/packages/apps/Gallery/src/com/android/camera/gallery/
DBaseImage.java109 InputStream input = mContentResolver.openInputStream(mUri); in fullSizeImageData() local
110 return input; in fullSizeImageData()
141 ParcelFileDescriptor input = null; in setupDimension() local
143 input = mContentResolver.openFileDescriptor(mUri, "r"); in setupDimension()
147 input.getFileDescriptor(), options); in setupDimension()
154 Util.closeSilently(input); in setupDimension()
/packages/apps/Mms/src/com/android/mms/model/
DMediaModel.java233 InputStream input = null; in initMediaSize() local
235 input = cr.openInputStream(mUri); in initMediaSize()
236 if (input instanceof FileInputStream) { in initMediaSize()
238 FileInputStream f = (FileInputStream) input; in initMediaSize()
249 while (-1 != input.read()) { in initMediaSize()
261 if (null != input) { in initMediaSize()
263 input.close(); in initMediaSize()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadUtils.java67 InputStream input = null; in download() local
69 input = url.openStream(); in download()
70 dump(jc, input, output); in download()
76 Utils.closeSilently(input); in download()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DWnnSentence.java38 public WnnSentence(String input, ArrayList<WnnClause> clauses) { in WnnSentence() argument
53 this.stroke = input; in WnnSentence()
68 this.stroke = input; in WnnSentence()
82 public WnnSentence(String input, WnnClause clause) { in WnnSentence() argument
85 this.stroke = input; in WnnSentence()

1234