Home
last modified time | relevance | path

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

/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/internal/
DBackendInputStream.java30 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()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java182 try (FileInputStream fileInputStream = context.openFileInput("__test__")) { in openFileInput_shouldReturnAFileInputStream() argument
184 fileInputStream.read(bytes); in openFileInput_shouldReturnAFileInputStream()
191 try (FileInputStream fileInputStream = in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters() argument
203 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldReturnAFileOutputStream() argument
205 fileInputStream.read(readBuffer); in openFileOutput_shouldReturnAFileOutputStream()
231 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldAppendData() argument
233 fileInputStream.read(readBuffer); in openFileOutput_shouldAppendData()
249 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldOverwriteData() argument
251 fileInputStream.read(readBuffer); in openFileOutput_shouldOverwriteData()
DShadowBitmapFactoryTest.java90 FileInputStream fileInputStream = new FileInputStream(tmp); in decodeResource_sameAs() local
91 Bitmap bitmap2 = BitmapFactory.decodeStream(fileInputStream); in decodeResource_sameAs()
453 try (FileInputStream fileInputStream = new FileInputStream(tmpFile)) { in decodeFileDescriptor_shouldHaveCorrectWidthAndHeight() argument
454 Bitmap loadedBitmap = BitmapFactory.decodeFileDescriptor(fileInputStream.getFD()); in decodeFileDescriptor_shouldHaveCorrectWidthAndHeight()
517 FileInputStream fileInputStream = new FileInputStream(file); in getPngImageColorFromFileDescriptor() local
518 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fileInputStream.getFD()); in getPngImageColorFromFileDescriptor()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java162 try (FileInputStream fileInputStream = context.openFileInput("__test__")) { in openFileInput_shouldReturnAFileInputStream() argument
164 fileInputStream.read(bytes); in openFileInput_shouldReturnAFileInputStream()
171 … try (FileInputStream fileInputStream = context.openFileInput("data" + File.separator + "test")) {} in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters() argument
181 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldReturnAFileOutputStream() argument
183 fileInputStream.read(readBuffer); in openFileOutput_shouldReturnAFileOutputStream()
205 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldAppendData() argument
207 fileInputStream.read(readBuffer); in openFileOutput_shouldAppendData()
223 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldOverwriteData() argument
225 fileInputStream.read(readBuffer); in openFileOutput_shouldOverwriteData()
/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/
DQuicTest.java163 FileInputStream fileInputStream = new FileInputStream(file); in fileContainsString() local
165 fileInputStream.read(data); in fileContainsString()
166 fileInputStream.close(); in fileContainsString()
DNQETest.java156 FileInputStream fileInputStream = new FileInputStream(file); in prefsFileContainsString() local
158 fileInputStream.read(data); in prefsFileContainsString()
159 fileInputStream.close(); in prefsFileContainsString()
DExperimentalOptionsTest.java202 FileInputStream fileInputStream = null; in fileContainsString() local
205 fileInputStream = new FileInputStream(file); in fileContainsString()
207 fileInputStream.read(data); in fileContainsString()
219 if (fileInputStream != null) { in fileContainsString()
220 fileInputStream.close(); in fileContainsString()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBitmapFactory.java104 try (FileInputStream fileInputStream = new FileInputStream(pathName); in decodeFile() argument
105 BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream)) { in decodeFile()
131 try (FileInputStream fileInputStream = new FileInputStream(fd); in decodeFileDescriptor() argument
132 BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream); ) { in decodeFileDescriptor()
/external/apache-commons-io/src/test/java/org/apache/commons/io/
DIOUtilsTest.java914 final FileInputStream fileInputStream = new FileInputStream(testFile); in testRead_ReadableByteChannel() local
915 final FileChannel input = fileInputStream.getChannel(); in testRead_ReadableByteChannel()
925 IOUtils.closeQuietly(input, fileInputStream); in testRead_ReadableByteChannel()
969 final FileInputStream fileInputStream = new FileInputStream(testFile); in testReadFully_ReadableByteChannel() local
970 final FileChannel input = fileInputStream.getChannel(); in testReadFully_ReadableByteChannel()
985 IOUtils.closeQuietly(input, fileInputStream); in testReadFully_ReadableByteChannel()
1291 final FileInputStream fileInputStream = new FileInputStream(testFile); in testSkip_ReadableByteChannel() local
1292 final FileChannel fileChannel = fileInputStream.getChannel(); in testSkip_ReadableByteChannel()
1298 IOUtils.closeQuietly(fileChannel, fileInputStream); in testSkip_ReadableByteChannel()
1319 final FileInputStream fileInputStream = new FileInputStream(testFile); in testSkipFully_ReadableByteChannel() local
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/test/
DOutdatedPaths.java166 InputStream fileInputStream = directory == null in openDataInput() local
170 DataInputStream dataIn = new DataInputStream(fileInputStream); in openDataInput()