/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/ |
D | CarRotaryImeTest.java | 95 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/ |
D | PermissionTestService.java | 156 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/ |
D | ShellCommandUtils.java | 221 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/ |
D | FontFileTestUtil.java | 36 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/ |
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/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainHotwordDetectionService.java | 151 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/ |
D | CertificateTest.java | 140 FileInputStream fis = new FileInputStream(certFile); in loadCertsFromDisk() local 141 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk() 145 fis.close(); in loadCertsFromDisk()
|
D | StagefrightTest.java | 776 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/ |
D | Utils.java | 137 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/ |
D | FileParser.java | 133 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/ |
D | SharedPreferencesTest.java | 309 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/ |
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()
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteExternalStorageTest.java | 396 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/ |
D | TestResultsProvider.java | 354 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/ |
D | PackagesTest.java | 78 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/ |
D | Packages.java | 309 try (FileInputStream fis = new FileInputStream(file)) { in loadBytes() argument 310 return readInputStreamFully(fis); in loadBytes()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileSystemPermissionTest.java | 925 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/ |
D | TestSuiteContentReport.java | 269 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/ |
D | ExifInterfaceTest.java | 404 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/ |
D | DownloadManagerTestBase.java | 306 try (FileInputStream fis = new FileInputStream(file)) { in writeToFile() argument 307 actual = readFromInputStream(fis); in writeToFile()
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingTestUtil.java | 134 FileInputStream fis = new FileInputStream(pfd.getFileDescriptor()); in dumpYuvToExternal() local 136 FileUtils.copy(fis, fos); in dumpYuvToExternal()
|