Searched refs:fileInputStream (Results 1 – 10 of 10) sorted by relevance
94 try (FileInputStream fileInputStream = mContext.openFileInput(EVENT_LOG_FILE_NAME)) { in loadEventsFromFile() argument95 Event event = readEvent(fileInputStream); in loadEventsFromFile()102 event = readEvent(fileInputStream); in loadEventsFromFile()117 private Event readEvent(FileInputStream fileInputStream) throws IOException { in readEvent() argument118 if (fileInputStream.available() < BYTES_PER_INT) { in readEvent()122 fileInputStream.read(sizeBytes); in readEvent()127 fileInputStream.read(eventBytes); in readEvent()
102 FileInputStream fileInputStream = new FileInputStream(fd); in assertLogcatMessage() local104 new InputStreamReader(fileInputStream))) { in assertLogcatMessage()139 FileInputStream fileInputStream = new FileInputStream(fd); in assertNoLogcatMessage() local141 new InputStreamReader(fileInputStream))) { in assertNoLogcatMessage()
146 try (FileInputStream fileInputStream = new FileInputStream(options.filePath); in main() argument149 int bytesRead = fileInputStream.read(lumadata); in main()162 long skipped = fileInputStream.skip(uSize + uSize); in main()
525 try (FileInputStream fileInputStream = openFileInput(relativeFilePath)) { in readFileAndVerify() argument527 new BufferedReader(new InputStreamReader(fileInputStream)); in readFileAndVerify()560 try (FileInputStream fileInputStream = openFileInput(relativeFilePath)) { in writeToFileAndVerifyException() argument562 FileOutputStream fileOutputStream = new FileOutputStream(fileInputStream.getFD()); in writeToFileAndVerifyException()
220 FileInputStream fileInputStream = new FileInputStream(fd); in assertUserLifecycleEventLogged() local222 new InputStreamReader(fileInputStream))) { in assertUserLifecycleEventLogged()
449 StreamingShellOutput(FileInputStream fileInputStream, Stream<String> stream) { in StreamingShellOutput() argument450 mFileInputStream = fileInputStream; in StreamingShellOutput()
368 FileInputStream fileInputStream = openFileInput(TEST_FILE_NAME);370 try (InputStreamReader isr = new InputStreamReader(fileInputStream);
136 FileInputStream fileInputStream = new ParcelFileDescriptor.AutoCloseInputStream(socketOut); in checkDump() local141 assertEquals(input.length, fileInputStream.read(input)); in checkDump()263 FileInputStream fileInputStream = new ParcelFileDescriptor.AutoCloseInputStream(out); in checkInOutSockets() local266 assertEquals(input.length, fileInputStream.read(input)); in checkInOutSockets()
533 FileInputStream fileInputStream = new FileInputStream( in createFileContent()536 long copied = FileUtils.copy(fileInputStream, outputStream); in createFileContent()
571 try (FileInputStream fileInputStream = new FileInputStream(tmp); in testUnbufferedIoGZipInput() argument572 GZIPInputStream in = new GZIPInputStream(fileInputStream)) { in testUnbufferedIoGZipInput()