/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManagerTest.java | 51 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()
|
D | AssetFileDescriptor_AutoCloseOutputStreamTest.java | 71 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/ |
D | AccessPrivateDataTest.java | 61 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/ |
D | DrawableTest.java | 162 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/ |
D | Utils.java | 66 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in setAppOps() local 67 result = convertStreamToString(inputStream); in setAppOps()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | FileUtils.java | 109 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/ |
D | UsbAccessoryTestActivity.java | 157 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/ |
D | CreatePrivateDataTest.java | 102 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/ |
D | Settings_SystemTest.java | 80 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local 81 result = convertStreamToString(inputStream); in enableAppOps()
|
D | Contacts_PeopleTest.java | 259 InputStream inputStream = context.getResources().openRawResource( 261 int size = inputStream.available(); 263 inputStream.read(data);
|
D | ContactsTest.java | 222 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/ |
D | TestDeviceFuncTest.java | 353 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/ |
D | DisplayTest.java | 92 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local 93 result = convertStreamToString(inputStream); in enableAppOps()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 81 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local 82 result = convertStreamToString(inputStream); in enableAppOps()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | TestWebServer.java | 534 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers() local 537 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers() 538 inputStream.close(); in getKeyManagers()
|
D | CtsTestServer.java | 969 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/ |
D | classes0.out.dex | 17182 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
|