/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
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*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/UnifiedEmail/src/org/apache/commons/io/ |
D | IOUtils.java | 139 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 …]
|
D | EndianUtils.java | 298 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 …]
|
D | CopyUtils.java | 137 public static void copy(byte[] input, OutputStream output) in copy() argument 139 output.write(input); in copy() 154 public static void copy(byte[] input, Writer output) in copy() argument 156 ByteArrayInputStream in = new ByteArrayInputStream(input); in copy() 172 byte[] input, in copy() argument 176 ByteArrayInputStream in = new ByteArrayInputStream(input); in copy() 194 InputStream input, in copy() argument 200 while (-1 != (n = input.read(buffer))) { in copy() 219 Reader input, in copy() argument 225 while (-1 != (n = input.read(buffer))) { in copy() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | OpenWnnClauseConverterJAJP.java | 125 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 …]
|
D | OpenWnnEngineJAJP.java | 318 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/services/Telephony/src/com/android/phone/ |
D | SpecialCharSequenceMgr.java | 74 static boolean handleChars(Context context, String input) { in handleChars() argument 75 return handleChars(context, input, null); in handleChars() 101 String input, in handleChars() argument 105 String dialString = PhoneNumberUtils.stripSeparators(input); in handleChars() 127 String input, in handleCharsForLockedDevice() argument 130 String dialString = PhoneNumberUtils.stripSeparators(input); in handleCharsForLockedDevice() 154 static private boolean handleSecretCode(Context context, String input) { in handleSecretCode() argument 156 int len = input.length(); in handleSecretCode() 157 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode() 159 Uri.parse("android_secret_code://" + input.substring(4, len - 4))); in handleSecretCode() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
D | StreamUtils.java | 31 public static boolean byteToIntArray(int[] output, byte[] input, ByteOrder endianness) { in byteToIntArray() argument 32 int length = input.length - (input.length % 4); in byteToIntArray() 38 output[i] = ((input[j] & 0xFF) << 24) | ((input[j + 1] & 0xFF) << 16) in byteToIntArray() 39 | ((input[j + 2] & 0xFF) << 8) | ((input[j + 3] & 0xFF)); in byteToIntArray() 43 output[i] = ((input[j + 3] & 0xFF) << 24) | ((input[j + 2] & 0xFF) << 16) in byteToIntArray() 44 | ((input[j + 1] & 0xFF) << 8) | ((input[j] & 0xFF)); in byteToIntArray() 47 return input.length % 4 != 0; in byteToIntArray() 50 public static int[] byteToIntArray(byte[] input, ByteOrder endianness) { in byteToIntArray() argument 51 int[] output = new int[input.length / 4]; in byteToIntArray() 52 byteToIntArray(output, input, endianness); in byteToIntArray() [all …]
|
/packages/apps/Dialer/src/com/android/dialer/ |
D | SpecialCharSequenceMgr.java | 91 public static boolean handleChars(Context context, String input, EditText textField) { in handleChars() argument 93 String dialString = PhoneNumberUtils.stripSeparators(input); in handleChars() 132 static boolean handleSecretCode(Context context, String input) { in handleSecretCode() argument 134 int len = input.length(); in handleSecretCode() 135 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode() 137 Uri.parse("android_secret_code://" + input.substring(4, len - 4))); in handleSecretCode() 152 static boolean handleAdnEntry(final Context context, String input, EditText textField) { in handleAdnEntry() argument 172 int len = input.length(); in handleAdnEntry() 173 if ((len > 1) && (len < 5) && (input.endsWith("#"))) { in handleAdnEntry() 176 final int index = Integer.parseInt(input.substring(0, len-1)); in handleAdnEntry() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | MoreMath.java | 27 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
D | OpenWnnEngineEN.java | 208 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/UnifiedEmail/src/org/apache/commons/io/input/ |
D | DemuxInputStream.java | 17 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()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseVoicemailProviderTest.java | 121 private static void recursiveDeleteAll(File input) { 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) { 131 if (input == null) { 134 if (!input.isDirectory()) { 135 return Collections.singletonList(input); 138 for (File file : input.listFiles()) {
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/unit/ |
D | PhoneAccountRegistrarTest.java | 64 PhoneAccountHandle input = new PhoneAccountHandle(new ComponentName("pkg0", "cls0"), "id0"); in testPhoneAccountHandle() local 65 PhoneAccountHandle result = roundTripXml(this, input, in testPhoneAccountHandle() 67 assertPhoneAccountHandleEquals(input, result); in testPhoneAccountHandle() 77 PhoneAccount input = makeQuickAccountBuilder("id0", 0) in testPhoneAccount() local 81 PhoneAccount result = roundTripXml(this, input, PhoneAccountRegistrar.sPhoneAccountXml, in testPhoneAccount() 83 assertPhoneAccountEquals(input, result); in testPhoneAccount() 87 PhoneAccountRegistrar.State input = makeQuickState(); in testState() local 88 PhoneAccountRegistrar.State result = roundTripXml(this, input, in testState() 91 assertStateEquals(input, result); in testState() 266 T input, in roundTripXml() argument [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | UriImage.java | 190 InputStream input = null; in decodeBoundsInfo() local 192 input = mContext.getContentResolver().openInputStream(mUri); in decodeBoundsInfo() 195 BitmapFactory.decodeStream(input, null, opt); in decodeBoundsInfo() 202 if (null != input) { in decodeBoundsInfo() 204 input.close(); in decodeBoundsInfo() 293 InputStream input = null; in getResizedImageData() local 306 input = context.getContentResolver().openInputStream(uri); in getResizedImageData() 309 b = BitmapFactory.decodeStream(input, null, options); in getResizedImageData() 321 if (input != null) { in getResizedImageData() 323 input.close(); in getResizedImageData() [all …]
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
D | SimpleIcsWriterTests.java | 63 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/UnifiedEmail/src/com/android/mail/utils/ |
D | StyleUtils.java | 46 public static void stripUnderlinesAndLinkUrls(Spannable input, in stripUnderlinesAndLinkUrls() argument 48 final URLSpan[] urls = input.getSpans(0, input.length(), URLSpan.class); in stripUnderlinesAndLinkUrls() 51 final int start = input.getSpanStart(span); in stripUnderlinesAndLinkUrls() 52 final int end = input.getSpanEnd(span); in stripUnderlinesAndLinkUrls() 53 input.removeSpan(span); in stripUnderlinesAndLinkUrls() 54 input.setSpan(new LinkStyleSpan(onClickListener), start, end, in stripUnderlinesAndLinkUrls()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkInputActivity.java | 99 String input = null; in onClick() local 113 input = mTextIn.getText().toString(); in onClick() 118 input = YES_STR_RESPONSE; in onClick() 122 input = NO_STR_RESPONSE; in onClick() 128 sendResponse(StkAppService.RES_ID_INPUT, input, false); in onClick() 233 void sendResponse(int resId, String input, boolean help) { in sendResponse() argument 244 CatLog.d(LOG_TAG, "sendResponse resID[" + resId + "] input[" + input + in sendResponse() 251 if (input != null) { in sendResponse() 252 args.putString(StkAppService.INPUT, input); in sendResponse()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | HanziToPinyin.java | 124 public String transliterate(final String input) { in transliterate() argument 125 if (!hasChineseTransliterator() || TextUtils.isEmpty(input)) { in transliterate() 128 return mPinyinTransliterator.transliterate(input); in transliterate() 136 public ArrayList<Token> getTokens(final String input) { in getTokens() argument 138 if (!hasChineseTransliterator() || TextUtils.isEmpty(input)) { in getTokens() 143 final int inputLength = input.length(); in getTokens() 153 final char character = input.charAt(i); in getTokens()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtils.java | 77 public static void copy(final InputStream input, final OutputStream output) throws IOException { in copy() argument 79 for (int readBytes = input.read(buffer); readBytes >= 0; readBytes = input.read(buffer)) { in copy() 137 final InputStream input = Compress.getUncompressedStream( in tryGetUncompressedFile() argument 141 copy(input, output); in tryGetUncompressedFile() 160 final InputStream input = Crypt.getDecryptedStream( in tryGetDecryptedFile() argument 164 copy(input, output); in tryGetDecryptedFile()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | SoftLandingInterpolator.java | 48 public float getInterpolation(float input) { in getInterpolation() argument 49 final float f = fly.getInterpolation(input / upperRange) * mO; in getInterpolation() 50 final float s = slide.getInterpolation((input - bottom) / upperRange) * (1f - mO) + mO; in getInterpolation() 53 if (input < bottom) { in getInterpolation() 55 } else if (input < top) { in getInterpolation() 56 final float alpha = (input - bottom) / (top - bottom); in getInterpolation()
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | MediaModel.java | 233 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/Settings/src/com/android/settings/wifi/ |
D | WifiAPITest.java | 108 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/ContactsCommon/src/com/android/contacts/common/util/ |
D | BitmapUtil.java | 126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { in getRoundedBitmap() argument 127 if (input == null) { in getRoundedBitmap() 130 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight, input.getConfig()); in getRoundedBitmap() 141 final int inputWidth = input.getWidth(); in getRoundedBitmap() 142 final int inputHeight = input.getHeight(); in getRoundedBitmap() 159 canvas.drawBitmap(input, src, dst, paint); in getRoundedBitmap()
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
D | NdefPushProtocol.java | 68 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()
|