Searched refs:fileInputStream (Results 1 – 9 of 9) 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()
278 try (FileInputStream fileInputStream = openFileInput(relativeFilePath)) { in readFileAndVerify() argument280 new BufferedReader(new InputStreamReader(fileInputStream)); in readFileAndVerify()313 try (FileInputStream fileInputStream = openFileInput(relativeFilePath)) { in writeToFileAndVerifyException() argument315 FileOutputStream fileOutputStream = new FileOutputStream(fileInputStream.getFD()); in writeToFileAndVerifyException()
220 FileInputStream fileInputStream = new FileInputStream(fd); in assertUserLifecycleEventLogged() local222 new InputStreamReader(fileInputStream))) { in assertUserLifecycleEventLogged()
445 StreamingShellOutput(FileInputStream fileInputStream, Stream<String> stream) { in StreamingShellOutput() argument446 mFileInputStream = fileInputStream; in StreamingShellOutput()
357 FileInputStream fileInputStream = openFileInput(TEST_FILE_NAME);359 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()
512 FileInputStream fileInputStream = new FileInputStream( in createFileContent()515 long copied = FileUtils.copy(fileInputStream, outputStream); in createFileContent()
598 try (FileInputStream fileInputStream = new FileInputStream(tmp); in testUnbufferedIoGZipInput() argument599 GZIPInputStream in = new GZIPInputStream(fileInputStream)) { in testUnbufferedIoGZipInput()