Home
last modified time | relevance | path

Searched refs:fis (Results 1 – 25 of 44) sorted by relevance

12

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java118 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fdOut); in executeCommandForStream() local
119 BufferedReader reader = new BufferedReader(new InputStreamReader(fis)); in executeCommandForStream()
121 return new StreamingShellOutput(fis, reader.lines()); in executeCommandForStream()
266 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fdOut)) { in executeCommandPreS() argument
267 String out = new String(FileUtils.readInputStreamFully(fis)); in executeCommandPreS()
298 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fdOut)) { in executeCommandForBytesPreS() argument
299 return FileUtils.readInputStreamFully(fis); in executeCommandForBytesPreS()
319 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in readStreamAndClose() argument
320 return FileUtils.readInputStreamFully(fis); in readStreamAndClose()
/cts/tools/vm-tests-tf/build/src/util/build/
DFileUtil.java30 try (FileInputStream fis = new FileInputStream(f)) { in readFile() argument
33 int read = fis.read(tmp, pos, tmp.length - pos); in readFile()
/cts/tests/tests/car/src/android/car/cts/utils/
DProtoDumpUtils.java46 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in executeProtoDumpShellCommand() argument
50 while ((bytesRead = fis.read(buf)) != -1) { in executeProtoDumpShellCommand()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DPermissionTestService.java157 FileInputStream fis = null; in testFileReadAccess() local
159 fis = new FileInputStream(f); in testFileReadAccess()
163 value = fis.read(); in testFileReadAccess()
181 if (fis != null) { in testFileReadAccess()
183 fis.close(); in testFileReadAccess()
/cts/tests/tests/text/src/android/text/cts/
DFontFileTestUtil.java35 try (FileInputStream fis = new FileInputStream(file)) { in getPostScriptName() argument
36 final FileChannel fc = fis.getChannel(); in getPostScriptName()
117 try (FileInputStream fis = new FileInputStream(file)) { in hasTable() argument
118 final FileChannel fc = fis.getChannel(); in hasTable()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java107 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in runShellCommandByteOutput() argument
108 return FileUtils.readInputStreamFully(fis); in runShellCommandByteOutput()
160 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fdOut)) { in runShellCommandOrThrow() argument
161 out = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandOrThrow()
163 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fdErr)) { in runShellCommandOrThrow() argument
164 err = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandOrThrow()
DPackageUtil.java183 try (FileInputStream fis = new FileInputStream(srcFile)) { in computeFileHash() argument
186 while ((nread = fis.read(dataBytes)) != -1) { in computeFileHash()
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/
DClientTest.java69 try (FileInputStream fis = InstrumentationRegistry in testFullApplicationReadFile() argument
74 while ((count = fis.read(b)) != -1) { in testFullApplicationReadFile()
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DCtsMusicRecognitionService.java73 ParcelFileDescriptor.AutoCloseInputStream fis = in readStream() local
76 return ByteStreams.toByteArray(fis); in readStream()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFileTestUtil.java36 try (FileInputStream fis = new FileInputStream(file)) { in getPostScriptName() argument
37 final FileChannel fc = fis.getChannel(); in getPostScriptName()
DSystemFontsTest.java140 try (FileInputStream fis = new FileInputStream(file)) { in testFontsFallbackUnreadable() argument
141 FileChannel fc = fis.getChannel(); in testFontsFallbackUnreadable()
/cts/tests/quicksettings/src/android/quicksettings/cts/
DBaseTileServiceTest.java201 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in getProtoDump() local
203 while ((bytesRead = fis.read(buf)) != -1) { in getProtoDump()
206 fis.close(); in getProtoDump()
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DDumpProtoUtils.java71 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in getDump() argument
72 return FileUtils.readInputStreamFully(fis); in getDump()
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/
DDumpProtoUtils.java71 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in getDump() argument
72 return FileUtils.readInputStreamFully(fis); in getDump()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java234 InputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(audioStream); in onDetect() local
239 while (fis.available() < 8) { in onDetect()
250 Log.d(TAG, "fis.available() = " + fis.available()); in onDetect()
252 fis.read(buffer, 0, 8); in onDetect()
275 mExternalAudioStreamReceived = fis; in onDetect()
304 fis.close(); in onDetect()
/cts/hostsidetests/packagemanager/deletekeepdata/app/src/com/android/tests/deletekeepdata/app/
DDeleteKeepDataDeviceTest.java106 try (FileInputStream fis = new FileInputStream( in readExternalDataFile() argument
109 while ((len = fis.read(buffer)) != -1) { in readExternalDataFile()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMetricsRecorder.java193 try (var fis = new AutoCloseInputStream(fdOut)) { in runShellCommandWithStdIn() argument
194 out = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandWithStdIn()
198 try (var fis = new AutoCloseInputStream(fdErr)) { in runShellCommandWithStdIn() argument
199 err = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandWithStdIn()
/cts/tests/tests/os/src/android/os/cts/
DFileUtilsTest.java117 final FileInputStream fis = new FileInputStream("/dev/null"); in testClose() local
118 FileUtils.closeQuietly(fis); in testClose()
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java173 FileInputStream fis = new FileInputStream(certFile); in loadCertsFromDisk() local
174 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk()
178 fis.close(); in loadCertsFromDisk()
DStagefrightTest.java764 FileInputStream fis = fd.createInputStream(); in testStagefright_bug_36592202() local
765 int numRead = fis.read(blob); in testStagefright_bug_36592202()
766 fis.close(); in testStagefright_bug_36592202()
2714 FileInputStream fis = fd.createInputStream(); in getFrameSizes() local
2716 fis.read(frameInfo); in getFrameSizes()
2717 fis.close(); in getFrameSizes()
2729 FileInputStream fis = fd.createInputStream(); in getFrameInfo() local
2731 fis.read(frameInfo); in getFrameInfo()
2732 fis.close(); in getFrameInfo()
2827 FileInputStream fis = fd.createInputStream(); in doStagefrightTestRawBlob() local
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DAtomicFileHelperTest.java151 FileInputStream fis = atomicFile3.openRead(); in testAtomicFileRewrite() local
155 fis.close(); in testAtomicFileRewrite()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DFileParser.java133 FileInputStream fis = new FileInputStream(mFile); in getFileContentId() local
136 while ((nread = fis.read(dataBytes)) != -1) { in getFileContentId()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/
DUtils.java171 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local
173 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
176 fis.close(); in executeShellCommand()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java303 FileInputStream fis = new FileInputStream(prefsFile); in testTorture2() local
306 while ((n = fis.read(buf)) > 0) { in testTorture2()
309 fis.close(); in testTorture2()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DActivityManagerGetConfigTests.java87 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local
89 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
92 fis.close(); in executeShellCommand()

12