Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 25 of 37) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataParser.java52 private static WordListMetadata parseOneWordList(final JsonReader reader) in parseOneWordList() argument
55 reader.beginObject(); in parseOneWordList()
56 while (reader.hasNext()) { in parseOneWordList()
57 final String name = reader.nextName(); in parseOneWordList()
59 arguments.put(name, reader.nextString()); in parseOneWordList()
62 reader.endObject(); in parseOneWordList()
100 JsonReader reader = new JsonReader(input); in parseMetadata() local
102 reader.beginArray(); in parseMetadata()
103 while (reader.hasNext()) { in parseMetadata()
104 final WordListMetadata thisMetadata = parseOneWordList(reader); in parseMetadata()
DUpdateHandler.java587 final InputStreamReader reader = new InputStreamReader(stream); in handleMetadata() local
590 newMetadata = MetadataHandler.readMetadata(reader); in handleMetadata()
592 reader.close(); in handleMetadata()
/packages/apps/Email/src/org/apache/commons/io/
DIOUtils.java456 InputStreamReader reader = new InputStreamReader(input); in readLines() local
457 return readLines(reader); in readLines()
481 InputStreamReader reader = new InputStreamReader(input, encoding); in readLines() local
482 return readLines(reader); in readLines()
500 BufferedReader reader = new BufferedReader(input); in readLines() local
502 String line = reader.readLine(); in readLines()
505 line = reader.readLine(); in readLines()
539 public static LineIterator lineIterator(Reader reader) { in lineIterator() argument
540 return new LineIterator(reader); in lineIterator()
575 Reader reader = null; in lineIterator() local
[all …]
DLineIterator.java68 public LineIterator(final Reader reader) throws IllegalArgumentException { in LineIterator() argument
69 if (reader == null) { in LineIterator()
72 if (reader instanceof BufferedReader) { in LineIterator()
73 bufferedReader = (BufferedReader) reader; in LineIterator()
75 bufferedReader = new BufferedReader(reader); in LineIterator()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java66 BufferedReader reader = null; in isCombinedDictionary() local
68 reader = new BufferedReader(new FileReader(new File(filename))); in isCombinedDictionary()
69 String firstLine = reader.readLine(); in isCombinedDictionary()
71 firstLine = reader.readLine(); in isCombinedDictionary()
79 if (reader != null) { in isCombinedDictionary()
81 reader.close(); in isCombinedDictionary()
100 final BufferedReader reader = new BufferedReader(new InputStreamReader(source, "UTF-8")); in readDictionaryCombined() local
101 String headerLine = reader.readLine(); in readDictionaryCombined()
103 headerLine = reader.readLine(); in readDictionaryCombined()
129 while (null != (line = reader.readLine())) { in readDictionaryCombined()
DXmlDictInputOutput.java274 BufferedReader reader = null; in isXmlUnigramDictionary() local
276 reader = new BufferedReader(new FileReader(new File(filename))); in isXmlUnigramDictionary()
277 final String firstLine = reader.readLine(); in isXmlUnigramDictionary()
284 if (reader != null) { in isXmlUnigramDictionary()
286 reader.close(); in isXmlUnigramDictionary()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadService.java305 final DownloadInfo.Reader reader = new DownloadInfo.Reader(resolver, cursor); in updateLocked() local
313 updateDownload(reader, info, now); in updateLocked()
315 info = insertDownloadLocked(reader, now); in updateLocked()
378 private DownloadInfo insertDownloadLocked(DownloadInfo.Reader reader, long now) { in insertDownloadLocked() argument
379 final DownloadInfo info = reader.newDownloadInfo( in insertDownloadLocked()
393 private void updateDownload(DownloadInfo.Reader reader, DownloadInfo info, long now) { in updateDownload() argument
394 reader.updateFromDatabase(info); in updateDownload()
/packages/apps/Browser/tests/src/com/android/browser/
DPopularUrlsTest.java329 BufferedReader reader = null; in RunStatus() local
337 reader = new BufferedReader(input); in RunStatus()
338 String line = reader.readLine(); in RunStatus()
342 line = reader.readLine(); in RunStatus()
353 if (reader != null) { in RunStatus()
354 reader.close(); in RunStatus()
/packages/apps/Nfc/src/com/android/nfc/
DNfceeAccessControl.java183 FileReader reader = null; in parseNfceeAccess() local
186 reader = new FileReader(file); in parseNfceeAccess()
189 parser.setInput(reader); in parseNfceeAccess()
261 if (reader != null) { in parseNfceeAccess()
263 reader.close(); in parseNfceeAccess()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DUploader.java133 final BufferedReader reader = new BufferedReader(new InputStreamReader( in uploadFile() local
136 while ((line = reader.readLine()) != null) { in uploadFile()
137 Log.d(TAG, "| " + reader.readLine()); in uploadFile()
139 reader.close(); in uploadFile()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DMemoryUtils.java35 MemInfoReader reader = new MemInfoReader(); in getTotalMemorySize() local
36 reader.readMemInfo(); in getTotalMemorySize()
39 sTotalMemorySize = reader.getTotalSize(); in getTotalMemorySize()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DMemoryUtils.java29 MemInfoReader reader = new MemInfoReader(); in getTotalMemorySize() local
30 reader.readMemInfo(); in getTotalMemorySize()
35 sTotalMemorySize = reader.getTotalSize(); in getTotalMemorySize()
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java766 BlockHash (String _name, BufferedReader reader) throws IOException { in BlockHash() argument
772 String line = reader.readLine(); in BlockHash()
799 blocks.add(new BlockHash(lastValue, reader)); in BlockHash()
819 BufferedReader reader = new BufferedReader(new StringReader(Utility.fromUtf8(bytes))); in parseIcsContent() local
820 String line = reader.readLine(); in parseIcsContent()
824 return new BlockHash("VCALENDAR", reader); in parseIcsContent()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java756 BlockHash (String _name, BufferedReader reader) throws IOException { in BlockHash() argument
762 String line = reader.readLine(); in BlockHash()
789 blocks.add(new BlockHash(lastValue, reader)); in BlockHash()
809 BufferedReader reader = new BufferedReader(new StringReader(Utility.fromUtf8(bytes))); in parseIcsContent() local
810 String line = reader.readLine(); in parseIcsContent()
814 return new BlockHash("VCALENDAR", reader); in parseIcsContent()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java258 BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); in readStream() local
261 int length = reader.read(buffer); in readStream()
265 reader.close(); in readStream()
/packages/apps/Settings/src/com/android/settings/
DDeviceInfoSettings.java262 BufferedReader reader = new BufferedReader(new FileReader(filename), 256); in readLine() local
264 return reader.readLine(); in readLine()
266 reader.close(); in readLine()
/packages/experimental/BugReportSender/src/com/android/bugreportsender/
DBugReportParser.java25 BufferedReader reader = new BufferedReader(new InputStreamReader(in, "UTF-8"), BUFFER_SIZE); in extractSystemLogs() local
31 while ((line = reader.readLine()) != null) { in extractSystemLogs()
/packages/apps/Email/src/org/apache/james/mime4j/field/address/
DAddressList.java120 …java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(System.in… in main() local
124 String line = reader.readLine(); in main()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.java158 BufferedReader reader = new BufferedReader( in getResponseFrom() local
163 while ((bytes = reader.read(chars)) != -1) { in getResponseFrom()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/
DExifReaderTest.java48 ExifReader reader = new ExifReader(mInterface); in testRead() local
49 ExifData exifData = reader.read(getImageInputStream()); in testRead()
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/
DPhaseBeamRS.java140 BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); in createBackgroundMesh() local
143 while ((line = reader.readLine()) != null) { in createBackgroundMesh()
/packages/wallpapers/NoiseField/src/com/android/noisefield/
DNoiseFieldRS.java125 BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); in createBackgroundMesh() local
128 while ((line = reader.readLine()) != null) { in createBackgroundMesh()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java111 InputStreamReader reader = new InputStreamReader(in, encoding); in readInputStream() local
115 while ((count = reader.read(buf)) != -1) { in readInputStream()
/packages/apps/Camera/src/com/android/camera/
DPanoramaModule.java918 ExifReader reader = new ExifReader(); in savePanorama() local
919 ExifData data = reader.read(is); in savePanorama()
/packages/apps/Camera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile131 # the reader which header file to include in order to use a class.
1242 # nicely formatted so it can be parsed by a human reader. This is useful

12