Home
last modified time | relevance | path

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

12

/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/
DCarRotaryImeTest.java95 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in dumpsysRotaryServiceProto() argument
104 while (fis.read(buffer) > 0 && buffer[0] != ':') { in dumpsysRotaryServiceProto()
108 fis.skip(5); in dumpsysRotaryServiceProto()
110 return RotaryProtos.RotaryService.parseFrom(fis); in dumpsysRotaryServiceProto()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DPermissionTestService.java156 FileInputStream fis = null; in testFileReadAccess() local
158 fis = new FileInputStream(f); in testFileReadAccess()
162 value = fis.read(); in testFileReadAccess()
180 if (fis != null) { in testFileReadAccess()
182 fis.close(); in testFileReadAccess()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java221 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fdOut)) { in executeCommandPreS() argument
222 String out = new String(FileUtils.readInputStreamFully(fis)); in executeCommandPreS()
253 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fdOut)) { in executeCommandForBytesPreS() argument
254 return FileUtils.readInputStreamFully(fis); in executeCommandForBytesPreS()
274 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in readStreamAndClose() argument
275 return FileUtils.readInputStreamFully(fis); in readStreamAndClose()
/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()
95 try (FileInputStream fis = new FileInputStream(file)) { in containsEmojiCompatMetadata() argument
96 final FileChannel fc = fis.getChannel(); in containsEmojiCompatMetadata()
/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/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java151 try (InputStream fis = in onDetect() argument
157 while (fis.available() < 8) { in onDetect()
168 Log.d(TAG, "fis.available() = " + fis.available()); in onDetect()
170 fis.read(buffer, 0, 8); in onDetect()
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java140 FileInputStream fis = new FileInputStream(certFile); in loadCertsFromDisk() local
141 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk()
145 fis.close(); in loadCertsFromDisk()
DStagefrightTest.java776 FileInputStream fis = fd.createInputStream(); in testStagefright_bug_36592202() local
777 int numRead = fis.read(blob); in testStagefright_bug_36592202()
778 fis.close(); in testStagefright_bug_36592202()
2642 FileInputStream fis = fd.createInputStream(); in getFrameSizes() local
2644 fis.read(frameInfo); in getFrameSizes()
2645 fis.close(); in getFrameSizes()
2657 FileInputStream fis = fd.createInputStream(); in getFrameInfo() local
2659 fis.read(frameInfo); in getFrameInfo()
2660 fis.close(); in getFrameInfo()
2742 FileInputStream fis = fd.createInputStream(); in doStagefrightTestRawBlob() local
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DUtils.java137 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local
139 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
142 fis.close(); in executeShellCommand()
/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/tests/content/src/android/content/cts/
DSharedPreferencesTest.java309 FileInputStream fis = new FileInputStream(prefsFile); in testTorture2() local
312 while ((n = fis.read(buf)) > 0) { in testTorture2()
315 fis.close(); in testTorture2()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
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()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java396 try (FileInputStream fis = new FileInputStream(new File(cur, name))) { in testExternalStorageRename() argument
397 assertEquals(42, fis.read()); in testExternalStorageRename()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java354 FileInputStream fis = new FileInputStream(file); in openFile() local
355 return ParcelFileDescriptor.dup(fis.getFD()); in openFile()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DPackagesTest.java78 try (FileInputStream fis = new FileInputStream(file)) { in loadBytes() argument
79 return FileUtils.readInputStreamFully(fis); in loadBytes()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackages.java309 try (FileInputStream fis = new FileInputStream(file)) { in loadBytes() argument
310 return readInputStreamFully(fis); in loadBytes()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java925 FileInputStream fis = new FileInputStream(f); in tryFileRead() local
926 while((fis.available() != 0) && (fis.read(b) != -1)) { in tryFileRead()
930 fis.close(); in tryFileRead()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTestSuiteContentReport.java269 FileInputStream fis = new FileInputStream(file); in getFileContentId() local
274 while ((nread = fis.read(dataBytes)) != -1) { in getFileContentId()
/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java404 FileInputStream fis = new FileInputStream(imageFile); in readFromStandaloneDataWithExif() local
406 fis.skip(4); in readFromStandaloneDataWithExif()
408 short length = readShort(fis); in readFromStandaloneDataWithExif()
410 fis.read(exifBytes); in readFromStandaloneDataWithExif()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java306 try (FileInputStream fis = new FileInputStream(file)) { in writeToFile() argument
307 actual = readFromInputStream(fis); in writeToFile()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingTestUtil.java134 FileInputStream fis = new FileInputStream(pfd.getFileDescriptor()); in dumpYuvToExternal() local
136 FileUtils.copy(fis, fos); in dumpYuvToExternal()

12