Home
last modified time | relevance | path

Searched refs:fileInputStream (Results 1 – 9 of 9) sorted by relevance

/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEvents.java94 try (FileInputStream fileInputStream = mContext.openFileInput(EVENT_LOG_FILE_NAME)) { in loadEventsFromFile() argument
95 Event event = readEvent(fileInputStream); in loadEventsFromFile()
102 event = readEvent(fileInputStream); in loadEventsFromFile()
117 private Event readEvent(FileInputStream fileInputStream) throws IOException { in readEvent() argument
118 if (fileInputStream.available() < BYTES_PER_INT) { in readEvent()
122 fileInputStream.read(sizeBytes); in readEvent()
127 fileInputStream.read(eventBytes); in readEvent()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DLogcatHelper.java102 FileInputStream fileInputStream = new FileInputStream(fd); in assertLogcatMessage() local
104 new InputStreamReader(fileInputStream))) { in assertLogcatMessage()
139 FileInputStream fileInputStream = new FileInputStream(fd); in assertNoLogcatMessage() local
141 new InputStreamReader(fileInputStream))) { in assertNoLogcatMessage()
/cts/tests/wearable/src/android/wearable/cts/
DCtsIsolatedWearableSensingService.java278 try (FileInputStream fileInputStream = openFileInput(relativeFilePath)) { in readFileAndVerify() argument
280 new BufferedReader(new InputStreamReader(fileInputStream)); in readFileAndVerify()
313 try (FileInputStream fileInputStream = openFileInput(relativeFilePath)) { in writeToFileAndVerifyException() argument
315 FileOutputStream fileOutputStream = new FileOutputStream(fileInputStream.getFD()); in writeToFileAndVerifyException()
/cts/tests/tests/car/src/android/car/cts/
DCarServiceHelperServiceUpdatableTest.java220 FileInputStream fileInputStream = new FileInputStream(fd); in assertUserLifecycleEventLogged() local
222 new InputStreamReader(fileInputStream))) { in assertUserLifecycleEventLogged()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java445 StreamingShellOutput(FileInputStream fileInputStream, Stream<String> stream) { in StreamingShellOutput() argument
446 mFileInputStream = fileInputStream; in StreamingShellOutput()
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/
DCtsIsolatedInferenceService.java357 FileInputStream fileInputStream = openFileInput(TEST_FILE_NAME);
359 try (InputStreamReader isr = new InputStreamReader(fileInputStream);
/cts/tests/tests/binder_ndk/src/android/binder/cts/
DJavaClientTest.java136 FileInputStream fileInputStream = new ParcelFileDescriptor.AutoCloseInputStream(socketOut); in checkDump() local
141 assertEquals(input.length, fileInputStream.read(input)); in checkDump()
263 FileInputStream fileInputStream = new ParcelFileDescriptor.AutoCloseInputStream(out); in checkInOutSockets() local
266 assertEquals(input.length, fileInputStream.read(input)); in checkInOutSockets()
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
DScopedStorageTestHelper.java512 FileInputStream fileInputStream = new FileInputStream( in createFileContent()
515 long copied = FileUtils.copy(fileInputStream, outputStream); in createFileContent()
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java598 try (FileInputStream fileInputStream = new FileInputStream(tmp); in testUnbufferedIoGZipInput() argument
599 GZIPInputStream in = new GZIPInputStream(fileInputStream)) { in testUnbufferedIoGZipInput()