Home
last modified time | relevance | path

Searched refs:inputStream (Results 1 – 25 of 26) sorted by relevance

12

/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java64 FileInputStream inputStream = new FileInputStream(privateFile); in testAccessPrivateData() local
65 inputStream.read(); in testAccessPrivateData()
66 inputStream.close(); in testAccessPrivateData()
91 FileInputStream inputStream = new FileInputStream(publicFile); in testAccessPublicData() local
92 inputStream.read(); in testAccessPublicData()
93 inputStream.close(); in testAccessPublicData()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManagerTest.java55 InputStream inputStream = mAssets.open(fileName); in testAssetOperations() local
56 assertNotNull(inputStream); in testAssetOperations()
58 assertContextEquals(expect, inputStream); in testAssetOperations()
59 inputStream = mAssets.open(fileName, AssetManager.ACCESS_BUFFER); in testAssetOperations()
60 assertNotNull(inputStream); in testAssetOperations()
61 assertContextEquals(expect, inputStream); in testAssetOperations()
181 private void assertContextEquals(final String expect, final InputStream inputStream) in assertContextEquals() argument
183 final BufferedReader bf = new BufferedReader(new InputStreamReader(inputStream)); in assertContextEquals()
185 inputStream.close(); in assertContextEquals()
DAssetFileDescriptor_AutoCloseOutputStreamTest.java71 FileInputStream inputStream = mAssetFileDes.createInputStream(); in testAutoCloseOutputStream() local
73 assertEquals(FILE_DATA[i], inputStream.read()); in testAutoCloseOutputStream()
76 assertEquals(FILE_DATA[i], inputStream.read()); in testAutoCloseOutputStream()
78 assertEquals(FILE_END, inputStream.read()); in testAutoCloseOutputStream()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java166 FileInputStream inputStream = null; in testCreateFromStream() local
186 inputStream = new FileInputStream(imageFile); in testCreateFromStream()
187 assertNotNull(Drawable.createFromStream(inputStream, "Sample")); in testCreateFromStream()
196 if (null != inputStream) { in testCreateFromStream()
197 inputStream.close(); in testCreateFromStream()
210 FileInputStream inputStream = null; in testCreateFromResourceStream1() local
214 assertNull(Drawable.createFromResourceStream(null, null, inputStream, "test.bmp")); in testCreateFromResourceStream1()
231 inputStream = new FileInputStream(imageFile); in testCreateFromResourceStream1()
233 assertNotNull(Drawable.createFromResourceStream(mResources, value, inputStream, in testCreateFromResourceStream1()
243 if (null != inputStream) { in testCreateFromResourceStream1()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DShellCommandBuilder.java74 try (InputStream inputStream = new FileInputStream(fd.getFileDescriptor())) { in execShellCommand() argument
76 new InputStreamReader(inputStream, StandardCharsets.UTF_8))) { in execShellCommand()
/cts/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java234 private void testFlushWorks(OutputStream outputStream, InputStream inputStream) in testFlushWorks() argument
237 StreamReader inputStreamReader = new StreamReader(inputStream, bytesToTransfer); in testFlushWorks()
241 assertEquals(bytesToTransfer, inputStream.available()); in testFlushWorks()
252 assertEquals(0, inputStream.available()); in testFlushWorks()
/cts/libs/deviceutil/src/android/cts/util/
DFileUtils.java109 public static boolean copyToFile(InputStream inputStream, File destFile) { in copyToFile() argument
118 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile()
/cts/tests/tests/media/src/android/media/cts/
DUtils.java70 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in setAppOps() local
71 result = convertStreamToString(inputStream); in setAppOps()
DExifInterfaceTest.java168 try (InputStream inputStream = getContext().getResources().openRawResource( in setUp() argument
171 Streams.copy(inputStream, outputStream); in setUp()
DDecodeAccuracyTestBase.java1388 InputStream inputStream = context.getAssets().open(filename); in createCacheFile() local
1393 while (inputStream.read(buffer) != -1) { in createCacheFile()
1397 inputStream.close(); in createCacheFile()
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java100 DataInputStream inputStream = new DataInputStream(new FileInputStream(publicFile)); in accessPublicData() local
101 inputStream.readInt(); in accessPublicData()
102 inputStream.close(); in accessPublicData()
/cts/tests/tests/security/src/android/security/cts/
DMediaServerCrashTest.java160 FileInputStream inputStream = afd.createInputStream(); in convertDmToFl() local
163 int readSize = inputStream.read(fileData, 0, inputLength); in convertDmToFl()
165 inputStream.close(); in convertDmToFl()
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SystemTest.java80 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local
81 result = convertStreamToString(inputStream); in enableAppOps()
DContacts_PeopleTest.java259 InputStream inputStream = context.getResources().openRawResource(
261 int size = inputStream.available();
263 inputStream.read(data);
DContactsTest.java222 InputStream inputStream = context.getResources().openRawResource( in testPhotosTable() local
224 int size = inputStream.available(); in testPhotosTable()
226 inputStream.read(data); in testPhotosTable()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DUsbAccessoryTestActivity.java232 FileInputStream inputStream = new FileInputStream(fileDescriptor); in openAccessory() local
234 new MessageThread(inputStream, outputStream, mHandler).start(); in openAccessory()
263 MessageThread(InputStream inputStream, OutputStream outputStream, MessageHandler handler) { in MessageThread() argument
264 this.mInputStream = inputStream; in MessageThread()
/cts/hostsidetests/aadb/src/android/aadb/cts/
DTestDeviceFuncTest.java352 InputStream inputStream = source.createInputStream(); in testGetScreenshot() local
354 BufferedImage screenshotImage = ImageIO.read(inputStream); in testGetScreenshot()
361 StreamUtil.close(inputStream); in testGetScreenshot()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java155 public static void copyToFileOrThrow(InputStream inputStream, File destFile) in copyToFileOrThrow() argument
164 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFileOrThrow()
174 inputStream.close(); in copyToFileOrThrow()
/cts/tests/tests/text/src/android/text/method/cts/
DPasswordTransformationMethodTest.java134 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local
135 result = convertStreamToString(inputStream); in enableAppOps()
/cts/hostsidetests/compilation/src/android/cts/compilation/
DAdbRootDependentCompilationTest.java92 InputStream inputStream = getClass().getResourceAsStream("/CtsCompilationApp.apk"); in setUp() local
93 ByteStreams.copy(inputStream, outputStream); in setUp()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java86 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local
87 result = convertStreamToString(inputStream); in enableAppOps()
/cts/libs/testserver/src/android/webkit/cts/
DTestWebServer.java534 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers() local
537 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers()
538 inputStream.close(); in getKeyManagers()
DCtsTestServer.java902 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers() local
905 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers()
906 inputStream.close(); in getKeyManagers()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java107 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local
108 result = convertStreamToString(inputStream); in enableAppOps()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex17182 final java.io.InputStream inputStream
29590 private java.io.InputStream inputStream
29713 private java.io.InputStream inputStream
65603 private java.io.InputStream inputStream
65831 private java.io.InputStream inputStream
66671 java.io.InputStream inputStream

12