Home
last modified time | relevance | path

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

/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/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/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/common/device-side/util/src/com/android/compatibility/common/util/
DSystemUtil.java78 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local
80 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand()
83 fis.close(); in runShellCommand()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java92 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local
94 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand()
97 fis.close(); in runShellCommand()
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java142 FileInputStream fis = new FileInputStream(certFile); in loadCertsFromDisk() local
143 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk()
147 fis.close(); in loadCertsFromDisk()
DStagefrightTest.java626 FileInputStream fis = fd.createInputStream(); in testStagefright_bug_36592202() local
627 int numRead = fis.read(blob); in testStagefright_bug_36592202()
628 fis.close(); in testStagefright_bug_36592202()
1618 FileInputStream fis = fd.createInputStream(); in getFrameSizes() local
1620 fis.read(frameInfo); in getFrameSizes()
1621 fis.close(); in getFrameSizes()
1693 FileInputStream fis = fd.createInputStream(); in doStagefrightTestRawBlob() local
1694 int numRead = fis.read(blob); in doStagefrightTestRawBlob()
1695 fis.close(); in doStagefrightTestRawBlob()
1808 FileInputStream fis = fd.createInputStream(); in doStagefrightTestRawBlob() local
[all …]
/cts/tests/tests/os/src/android/os/cts/
DFileUtilsTest.java115 final FileInputStream fis = new FileInputStream("/dev/null"); in testClose() local
116 FileUtils.closeQuietly(fis); in testClose()
/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/app/src/android/app/cts/
DDownloadManagerTestBase.java197 try (FileInputStream fis = new FileInputStream(file)) { in writeToFile() argument
198 actual = readFromInputStream(fis); in writeToFile()
216 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfds[0])) { in writeToFileFromShell() argument
217 res = readFromInputStream(fis); in writeToFileFromShell()
DServiceTest.java389 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local
391 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
394 fis.close(); in executeShellCommand()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java311 FileInputStream fis = new FileInputStream(prefsFile); in testTorture2() local
314 while ((n = fis.read(buf)) > 0) { in testTorture2()
317 fis.close(); in testTorture2()
/cts/tests/tests/keystore/src/android/server/am/
DActivityManagerState.java131 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local
133 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
136 fis.close(); in executeShellCommand()
DWindowManagerState.java129 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local
131 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
134 fis.close(); in executeShellCommand()
/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.java379 try (FileInputStream fis = new FileInputStream(new File(cur, name))) { in testExternalStorageRename() argument
380 assertEquals(42, fis.read()); in testExternalStorageRename()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerState.java144 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local
146 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
149 fis.close(); in executeShellCommand()
DWindowManagerState.java174 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeShellCommand() local
176 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
179 fis.close(); in executeShellCommand()
/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/graphics/src/android/graphics/cts/
DTypefaceTest.java514 try (FileInputStream fis = new FileInputStream(obtainPath())) { in testTypefaceBuilder_FileSourceFD() argument
515 assertNotNull(new Typeface.Builder(fis.getFD()).build()); in testTypefaceBuilder_FileSourceFD()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java93 try (FileInputStream fis = new FileInputStream(file)) { in mmap() argument
94 FileChannel channel = fis.getChannel(); in mmap()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java998 try (FileInputStream fis = new FileInputStream(file)) {
/cts/tests/tests/media/res/raw/
Dfootball_qvga.yuv130 …SZ_dhhgfijilnnmlopkijkgeedc`_``adeedgihijijihhkkjwvstuvywuvvz��������ztog[`fis�������n[^[TPOMQU[ae…