Home
last modified time | relevance | path

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

/cts/tests/tests/content/src/android/content/res/cts/
DAssetManagerTest.java51 InputStream inputStream = mAssets.open(fileName); in testAssetOperations() local
52 assertNotNull(inputStream); in testAssetOperations()
54 assertContextEquals(expect, inputStream); in testAssetOperations()
55 inputStream = mAssets.open(fileName, AssetManager.ACCESS_BUFFER); in testAssetOperations()
56 assertNotNull(inputStream); in testAssetOperations()
57 assertContextEquals(expect, inputStream); in testAssetOperations()
118 private void assertContextEquals(final String expect, final InputStream inputStream) in assertContextEquals() argument
120 final BufferedReader bf = new BufferedReader(new InputStreamReader(inputStream)); in assertContextEquals()
122 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/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java61 FileInputStream inputStream = new FileInputStream(privateFilePath); in testAccessPrivateData() local
62 inputStream.read(); in testAccessPrivateData()
63 inputStream.close(); in testAccessPrivateData()
91 DataInputStream inputStream = new DataInputStream(new FileInputStream(publicFilePath)); in getOtherAppUid() local
92 int otherAppUid = (int)inputStream.readInt(); in getOtherAppUid()
93 inputStream.close(); in getOtherAppUid()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java162 FileInputStream inputStream = null; in testCreateFromStream() local
182 inputStream = new FileInputStream(imageFile); in testCreateFromStream()
183 assertNotNull(Drawable.createFromStream(inputStream, "Sample")); in testCreateFromStream()
192 if (null != inputStream) { in testCreateFromStream()
193 inputStream.close(); in testCreateFromStream()
206 FileInputStream inputStream = null; in testCreateFromResourceStream1() local
210 assertNull(Drawable.createFromResourceStream(null, null, inputStream, "test.bmp")); in testCreateFromResourceStream1()
227 inputStream = new FileInputStream(imageFile); in testCreateFromResourceStream1()
229 assertNotNull(Drawable.createFromResourceStream(mResources, value, inputStream, in testCreateFromResourceStream1()
239 if (null != inputStream) { in testCreateFromResourceStream1()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DUtils.java66 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in setAppOps() local
67 result = convertStreamToString(inputStream); in setAppOps()
/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/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DUsbAccessoryTestActivity.java157 FileInputStream inputStream = new FileInputStream(fileDescriptor); in openAccessory() local
159 new MessageThread(inputStream, outputStream, mHandler).start(); in openAccessory()
175 MessageThread(InputStream inputStream, OutputStream outputStream, MessageHandler handler) { in MessageThread() argument
176 this.mInputStream = inputStream; in MessageThread()
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java102 DataInputStream inputStream = new DataInputStream(new FileInputStream(publicFilePath)); in accessPublicData() local
103 int otherAppUid = (int)inputStream.readInt(); in accessPublicData()
104 inputStream.close(); in accessPublicData()
/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/hostsidetests/aadb/src/com/android/cts/aadb/
DTestDeviceFuncTest.java353 InputStream inputStream = source.createInputStream(); in testGetScreenshot() local
355 BufferedImage screenshotImage = ImageIO.read(inputStream); in testGetScreenshot()
362 StreamUtil.close(inputStream); in testGetScreenshot()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java92 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local
93 result = convertStreamToString(inputStream); in enableAppOps()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java81 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local
82 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.java969 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers() local
972 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers()
973 inputStream.close(); in getKeyManagers()
/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