/aosp_15_r20/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | ArchiveHandle.java | 101 FileInputStream fileInputStream = in recreateCommonArchiveStream() local 103 SeekableByteChannel seekableByteChannel = fileInputStream.getChannel(); in recreateCommonArchiveStream() 105 return fileInputStream; in recreateCommonArchiveStream() 146 FileInputStream fileInputStream = recreateCommonArchiveStream(); in getInputStream() local 147 T commonArchive = recreateCommonArchive(fileInputStream); in getInputStream() 153 fileInputStream.close(); in getInputStream() 168 T recreateCommonArchive(FileInputStream fileInputStream) in recreateCommonArchive() argument 197 protected SevenZFile recreateCommonArchive(@NonNull FileInputStream fileInputStream) in recreateCommonArchive() argument 199 return new SevenZFile(fileInputStream.getChannel()); in recreateCommonArchive() 248 protected ArchiveInputStream recreateCommonArchive(FileInputStream fileInputStream) in recreateCommonArchive() argument [all …]
|
/aosp_15_r20/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/internal/ |
H A D | BackendInputStream.java | 30 private final FileInputStream fileInputStream; field in BackendInputStream 37 private BackendInputStream(FileInputStream fileInputStream, File file) { in BackendInputStream() argument 38 super(fileInputStream); in BackendInputStream() 39 this.fileInputStream = fileInputStream; in BackendInputStream() 50 return fileInputStream.getChannel(); in toFileChannel() 55 return fileInputStream.getChannel().size(); in size()
|
/aosp_15_r20/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/ |
H A D | Events.java | 94 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()
|
/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
H A D | ShadowContextTest.java | 179 try (FileInputStream fileInputStream = context.openFileInput("__test__")) { in openFileInput_shouldReturnAFileInputStream() argument 181 fileInputStream.read(bytes); in openFileInput_shouldReturnAFileInputStream() 188 try (FileInputStream fileInputStream = in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters() argument 200 try (FileInputStream fileInputStream = in openFileOutput_shouldReturnAFileOutputStream() argument 203 fileInputStream.read(readBuffer); in openFileOutput_shouldReturnAFileOutputStream() 229 try (FileInputStream fileInputStream = in openFileOutput_shouldAppendData() argument 232 fileInputStream.read(readBuffer); in openFileOutput_shouldAppendData() 248 try (FileInputStream fileInputStream = in openFileOutput_shouldOverwriteData() argument 251 fileInputStream.read(readBuffer); in openFileOutput_shouldOverwriteData()
|
H A D | ShadowBitmapFactoryTest.java | 93 FileInputStream fileInputStream = new FileInputStream(tmp); in decodeResource_sameAs() local 94 Bitmap bitmap2 = BitmapFactory.decodeStream(fileInputStream); in decodeResource_sameAs() 456 try (FileInputStream fileInputStream = new FileInputStream(tmpFile)) { in decodeFileDescriptor_shouldHaveCorrectWidthAndHeight() argument 457 Bitmap loadedBitmap = BitmapFactory.decodeFileDescriptor(fileInputStream.getFD()); in decodeFileDescriptor_shouldHaveCorrectWidthAndHeight() 520 FileInputStream fileInputStream = new FileInputStream(file); in getPngImageColorFromFileDescriptor() local 521 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fileInputStream.getFD()); in getPngImageColorFromFileDescriptor()
|
/aosp_15_r20/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
H A D | ImageFetcher.java | 195 FileInputStream fileInputStream = null; in processBitmap() local 224 fileInputStream = in processBitmap() 226 fileDescriptor = fileInputStream.getFD(); in processBitmap() 233 if (fileDescriptor == null && fileInputStream != null) { in processBitmap() 235 fileInputStream.close(); in processBitmap() 247 if (fileInputStream != null) { in processBitmap() 249 fileInputStream.close(); in processBitmap()
|
/aosp_15_r20/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
H A D | ImageFetcher.java | 195 FileInputStream fileInputStream = null; in processBitmap() local 224 fileInputStream = in processBitmap() 226 fileDescriptor = fileInputStream.getFD(); in processBitmap() 233 if (fileDescriptor == null && fileInputStream != null) { in processBitmap() 235 fileInputStream.close(); in processBitmap() 247 if (fileInputStream != null) { in processBitmap() 249 fileInputStream.close(); in processBitmap()
|
/aosp_15_r20/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
D | ImageFetcher.java | 195 FileInputStream fileInputStream = null; in processBitmap() local 224 fileInputStream = in processBitmap() 226 fileDescriptor = fileInputStream.getFD(); in processBitmap() 233 if (fileDescriptor == null && fileInputStream != null) { in processBitmap() 235 fileInputStream.close(); in processBitmap() 247 if (fileInputStream != null) { in processBitmap() 249 fileInputStream.close(); in processBitmap()
|
/aosp_15_r20/packages/modules/Telephony/libs/TelephonyStatsLib/src/com/android/telephony/statslib/ |
D | StatsLibStorage.java | 238 FileInputStream fileInputStream = null; in loadFromFileImmediately() local 245 fileInputStream = mContext.openFileInput(filename); in loadFromFileImmediately() 246 objectInputStream = new ObjectInputStream(fileInputStream); in loadFromFileImmediately() 255 if (fileInputStream != null) { in loadFromFileImmediately() 257 fileInputStream.close(); in loadFromFileImmediately()
|
/aosp_15_r20/packages/services/Telephony/utils/satellite/configdatagenerator/src/main/java/com/android/telephony/tools/configdatagenerate/ |
D | SatelliteConfigProtoGenerator.java | 143 FileInputStream fileInputStream = new FileInputStream(sat2File); in readFileToByteArray() local 144 long fileSize = fileInputStream.available(); in readFileToByteArray() 146 int bytesRead = fileInputStream.read(bytes); in readFileToByteArray() 147 fileInputStream.close(); in readFileToByteArray()
|
/aosp_15_r20/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/ |
H A D | LogcatHelper.java | 102 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()
|
/aosp_15_r20/frameworks/base/core/java/com/android/internal/protolog/ |
H A D | AutoClosableProtoInputStream.java | 32 public AutoClosableProtoInputStream(@NonNull FileInputStream fileInputStream) { in AutoClosableProtoInputStream() argument 33 mProtoInputStream = new ProtoInputStream(fileInputStream); in AutoClosableProtoInputStream() 34 mFileInputStream = fileInputStream; in AutoClosableProtoInputStream()
|
/aosp_15_r20/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
H A D | MappedByteBufferTest.java | 128 FileInputStream fileInputStream = new FileInputStream(tmpFile); in test_force() local 129 FileChannel fileChannelRead = fileInputStream.getChannel(); in test_force() 172 FileInputStream fileInputStream = new FileInputStream(tmpFile); in test_load() local 173 FileChannel fileChannelRead = fileInputStream.getChannel(); in test_load()
|
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/async/ |
H A D | SplittingPublisherTestUtils.java | 55 try (FileInputStream fileInputStream = new FileInputStream(file.toFile())) { in verifyIndividualAsyncRequestBody() argument 63 fileInputStream.skip(i * chunkSize); in verifyIndividualAsyncRequestBody() 64 fileInputStream.read(expected); in verifyIndividualAsyncRequestBody()
|
/aosp_15_r20/cts/tests/mediapc/common/tests/src/android/mediapc/cts/common/ |
H A D | Variance.java | 78 try (FileInputStream fileInputStream = new FileInputStream(filePath)) { in main() argument 79 fileInputStream.skip(frameOffset); in main() 80 int bytesRead = fileInputStream.read(luma); in main()
|
/aosp_15_r20/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/ |
H A D | ExperimentalOptionsTest.java | 178 FileInputStream fileInputStream = null; in fileContainsString() local 181 fileInputStream = new FileInputStream(file); in fileContainsString() 183 fileInputStream.read(data); in fileContainsString() 195 if (fileInputStream != null) { in fileContainsString() 196 fileInputStream.close(); in fileContainsString()
|
H A D | QuicTest.java | 175 FileInputStream fileInputStream = new FileInputStream(file); in fileContainsString() local 177 fileInputStream.read(data); in fileContainsString() 178 fileInputStream.close(); in fileContainsString()
|
/aosp_15_r20/test/vts/tests/firmware_dtbo_test/src/com/android/tests/firmwaredtbo/ |
H A D | FirmwareDtboVerification.java | 167 try (InputStream fileInputStream = new FileInputStream(dt_entry_file)) { in decompressDTEntries() argument 173 fileInputStream.read(compressedData); in decompressDTEntries() 181 new BufferedInputStream(fileInputStream))) { in decompressDTEntries() 185 fileInputStream.read(cpio_header); in decompressDTEntries()
|
/aosp_15_r20/external/apache-commons-io/src/test/java/org/apache/commons/io/ |
H A D | IOUtilsTest.java | 928 final FileInputStream fileInputStream = new FileInputStream(testFile); in testRead_ReadableByteChannel() local 929 final FileChannel input = fileInputStream.getChannel(); in testRead_ReadableByteChannel() 938 IOUtils.closeQuietly(input, fileInputStream); in testRead_ReadableByteChannel() 980 final FileInputStream fileInputStream = new FileInputStream(testFile); in testReadFully_ReadableByteChannel() local 981 final FileChannel input = fileInputStream.getChannel(); in testReadFully_ReadableByteChannel() 995 IOUtils.closeQuietly(input, fileInputStream); in testReadFully_ReadableByteChannel() 1299 final FileInputStream fileInputStream = new FileInputStream(testFile); in testSkip_ReadableByteChannel() local 1300 final FileChannel fileChannel = fileInputStream.getChannel(); in testSkip_ReadableByteChannel() 1306 IOUtils.closeQuietly(fileChannel, fileInputStream); in testSkip_ReadableByteChannel() 1365 final FileInputStream fileInputStream = new FileInputStream(testFile); in testSkipFully_ReadableByteChannel() local [all …]
|
/aosp_15_r20/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | DataStreamFileCodec.java | 55 FileInputStream fileInputStream = new FileInputStream(mFile); in deserialize() argument 56 DataInputStream dataInputStream = new DataInputStream(fileInputStream) in deserialize()
|
/aosp_15_r20/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
H A D | ShadowBitmapFactory.java | 103 try (FileInputStream fileInputStream = new FileInputStream(pathName); in decodeFile() argument 104 BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream)) { in decodeFile() 130 try (FileInputStream fileInputStream = new FileInputStream(fd); in decodeFileDescriptor() argument 131 BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream); ) { in decodeFileDescriptor()
|
H A D | ShadowParcelFileDescriptor.java | 292 FileInputStream fileInputStream = new FileInputStream(fileDescriptor); in dup() local 294 FileChannel sourceChannel = fileInputStream.getChannel(); in dup() 299 ByteStreams.copy(fileInputStream, fileOutputStream); in dup()
|
/aosp_15_r20/cts/tests/wearable/src/android/wearable/cts/ |
H A D | CtsIsolatedWearableSensingService.java | 525 try (FileInputStream fileInputStream = openFileInput(relativeFilePath)) { in readFileAndVerify() argument 527 new BufferedReader(new InputStreamReader(fileInputStream)); in readFileAndVerify() 560 try (FileInputStream fileInputStream = openFileInput(relativeFilePath)) { in writeToFileAndVerifyException() argument 562 FileOutputStream fileOutputStream = new FileOutputStream(fileInputStream.getFD()); in writeToFileAndVerifyException()
|
/aosp_15_r20/external/cronet/components/cronet/android/java/src/org/chromium/net/httpflags/ |
H A D | HttpFlagsLoader.java | 128 try (FileInputStream fileInputStream = new FileInputStream(file)) { in loadFlagsFile() argument 129 return Flags.parseDelimitedFrom(fileInputStream); in loadFlagsFile()
|
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/testing/ |
H A D | WycheproofTestUtil.java | 100 try (FileInputStream fileInputStream = new FileInputStream(new File(filePath))) { in readJson() argument 102 JsonParser.parseString(new String(readAll(fileInputStream), UTF_8)).getAsJsonObject(); in readJson()
|