/packages/apps/Email/emailcommon/src/org/apache/commons/io/ |
D | CopyUtils.java | 136 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 …]
|
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 …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | SpecialCharSequenceMgr.java | 66 static boolean handleChars(Context context, String input) { in handleChars() argument 67 return handleChars(context, input, null); in handleChars() 93 String input, in handleChars() argument 97 String dialString = PhoneNumberUtils.stripSeparators(input); in handleChars() 118 String input, in handleCharsForLockedDevice() argument 121 String dialString = PhoneNumberUtils.stripSeparators(input); in handleCharsForLockedDevice() 145 static private boolean handleSecretCode(Context context, String input) { in handleSecretCode() argument 147 int len = input.length(); in handleSecretCode() 148 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode() 150 Uri.parse("android_secret_code://" + input.substring(4, len - 4))); in handleSecretCode() [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 | 315 String input = text.toString(ComposingText.LAYER1); in setSearchKey() local 316 if (0 <= maxLen && maxLen <= input.length()) { in setSearchKey() 317 input = input.substring(0, maxLen); in setSearchKey() 323 if (input.length() == 0) { in setSearchKey() 329 mInputHiragana = input; in setSearchKey() 332 return input.length(); in setSearchKey() 417 String input; in convert() local 421 input = text.toString(ComposingText.LAYER1, 0, cursor - 1); in convert() 422 Iterator headCandidates = mClauseConverter.convert(input); in convert() 426 head = new WnnClause(input, (WnnWord)headCandidates.next()); in convert() [all …]
|
/packages/apps/Email/emailcommon/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()
|
D | TeeInputStream.java | 17 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()
|
D | SwappedDataInputStream.java | 17 package org.apache.commons.io.input; 45 public SwappedDataInputStream( InputStream input ) in SwappedDataInputStream() argument 47 super( input ); in SwappedDataInputStream()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | SpecialCharSequenceMgr.java | 61 public static boolean handleChars(Context context, String input, EditText textField) { in handleChars() argument 62 return handleChars(context, input, false, textField); in handleChars() 65 static boolean handleChars(Context context, String input) { in handleChars() argument 66 return handleChars(context, input, false, null); in handleChars() 69 static boolean handleChars(Context context, String input, boolean useSystemWindow, in handleChars() argument 73 String dialString = PhoneNumberUtils.stripSeparators(input); in handleChars() 94 static boolean handleSecretCode(Context context, String input) { in handleSecretCode() argument 96 int len = input.length(); in handleSecretCode() 97 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode() 99 Uri.parse("android_secret_code://" + input.substring(4, len - 4))); in handleSecretCode() [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/Gallery2/tests/src/com/android/gallery3d/ui/ |
D | PointerInfo.java | 87 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/inputmethods/LatinIME/native/src/ |
D | debug.h | 23 static inline unsigned char* convertToUnibyteString(unsigned short* input, unsigned char* output, in convertToUnibyteString() argument 26 for (; i <= length && input[i] != 0; ++i) in convertToUnibyteString() 27 output[i] = input[i] & 0xFF; in convertToUnibyteString() 32 static inline unsigned char* convertToUnibyteStringAndReplaceLastChar(unsigned short* input, in convertToUnibyteStringAndReplaceLastChar() argument 35 for (; i <= length && input[i] != 0; ++i) in convertToUnibyteStringAndReplaceLastChar() 36 output[i] = input[i] & 0xFF; in convertToUnibyteStringAndReplaceLastChar()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseVoicemailProviderTest.java | 123 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/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/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/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()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | UriImage.java | 145 InputStream input = null; in decodeBoundsInfo() local 147 input = mContext.getContentResolver().openInputStream(mUri); in decodeBoundsInfo() 150 BitmapFactory.decodeStream(input, null, opt); in decodeBoundsInfo() 157 if (null != input) { in decodeBoundsInfo() 159 input.close(); in decodeBoundsInfo() 239 InputStream input = null; in getResizedImageData() local 252 input = mContext.getContentResolver().openInputStream(mUri); in getResizedImageData() 255 b = BitmapFactory.decodeStream(input, null, options); in getResizedImageData() 263 if (input != null) { in getResizedImageData() 265 input.close(); in getResizedImageData()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | BaseImage.java | 109 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/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadUtils.java | 83 InputStream input = null; in download() local 85 input = url.openStream(); in download() 86 dump(jc, input, output); in download() 92 Utils.closeSilently(input); in download()
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepMessage.java | 79 ByteBuffer input = ByteBuffer.wrap(data); in SnepMessage() local 83 mVersion = input.get(); in SnepMessage() 84 mField = input.get(); in SnepMessage() 85 mLength = input.getInt(); in SnepMessage() 87 mAcceptableLength = input.getInt(); in SnepMessage()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | WnnSentence.java | 38 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()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkInputActivity.java | 87 String input = null; in onClick() local 95 input = mTextIn.getText().toString(); in onClick() 99 input = YES_STR_RESPONSE; in onClick() 102 input = NO_STR_RESPONSE; in onClick() 106 sendResponse(StkAppService.RES_ID_INPUT, input, false); in onClick() 187 private void sendResponse(int resId, String input, boolean help) { in sendResponse() argument 191 if (input != null) { in sendResponse() 192 args.putString(StkAppService.INPUT, input); in sendResponse()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | Logic.java | 218 String evaluate(String input) throws SyntaxException { in evaluate() argument 219 if (input.trim().equals("")) { in evaluate() 224 int size = input.length(); in evaluate() 225 while (size > 0 && isOperator(input.charAt(size - 1))) { in evaluate() 226 input = input.substring(0, size - 1); in evaluate() 230 double value = mSymbols.eval(input); in evaluate()
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | MediaModel.java | 278 InputStream input = null; in initMediaSize() local 280 input = cr.openInputStream(mUri); in initMediaSize() 281 if (input instanceof FileInputStream) { in initMediaSize() 283 FileInputStream f = (FileInputStream) input; in initMediaSize() 289 while (-1 != input.read()) { in initMediaSize() 301 if (null != input) { in initMediaSize() 303 input.close(); in initMediaSize()
|