/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | ShellCommandUtils.java | 118 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/ |
D | FileUtil.java | 30 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/ |
D | ProtoDumpUtils.java | 46 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/ |
D | PermissionTestService.java | 157 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/ |
D | FontFileTestUtil.java | 35 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/ |
D | SystemUtil.java | 107 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()
|
D | PackageUtil.java | 183 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/ |
D | ClientTest.java | 69 try (FileInputStream fis = InstrumentationRegistry in testFullApplicationReadFile() argument 74 while ((count = fis.read(b)) != -1) { in testFullApplicationReadFile()
|
/cts/tests/musicrecognition/src/android/musicrecognition/cts/ |
D | CtsMusicRecognitionService.java | 73 ParcelFileDescriptor.AutoCloseInputStream fis = in readStream() local 76 return ByteStreams.toByteArray(fis); in readStream()
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontFileTestUtil.java | 36 try (FileInputStream fis = new FileInputStream(file)) { in getPostScriptName() argument 37 final FileChannel fc = fis.getChannel(); in getPostScriptName()
|
D | SystemFontsTest.java | 140 try (FileInputStream fis = new FileInputStream(file)) { in testFontsFallbackUnreadable() argument 141 FileChannel fc = fis.getChannel(); in testFontsFallbackUnreadable()
|
/cts/tests/quicksettings/src/android/quicksettings/cts/ |
D | BaseTileServiceTest.java | 201 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/ |
D | DumpProtoUtils.java | 71 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/ |
D | DumpProtoUtils.java | 71 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/ |
D | MainHotwordDetectionService.java | 234 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/ |
D | DeleteKeepDataDeviceTest.java | 106 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/ |
D | MetricsRecorder.java | 193 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/ |
D | FileUtilsTest.java | 117 final FileInputStream fis = new FileInputStream("/dev/null"); in testClose() local 118 FileUtils.closeQuietly(fis); in testClose()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CertificateTest.java | 173 FileInputStream fis = new FileInputStream(certFile); in loadCertsFromDisk() local 174 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk() 178 fis.close(); in loadCertsFromDisk()
|
D | StagefrightTest.java | 764 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/ |
D | AtomicFileHelperTest.java | 151 FileInputStream fis = atomicFile3.openRead(); in testAtomicFileRewrite() local 155 fis.close(); in testAtomicFileRewrite()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | FileParser.java | 133 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/ |
D | Utils.java | 171 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/ |
D | SharedPreferencesTest.java | 303 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/ |
D | ActivityManagerGetConfigTests.java | 87 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local 89 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand() 92 fis.close(); in executeShellCommand()
|