/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
D | AccessPrivateDataTest.java | 64 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/ |
D | AssetManagerTest.java | 55 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()
|
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/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableTest.java | 166 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/ |
D | ShellCommandBuilder.java | 74 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/ |
D | LocalSocketTest.java | 234 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/ |
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/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 70 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in setAppOps() local 71 result = convertStreamToString(inputStream); in setAppOps()
|
D | ExifInterfaceTest.java | 168 try (InputStream inputStream = getContext().getResources().openRawResource( in setUp() argument 171 Streams.copy(inputStream, outputStream); in setUp()
|
D | DecodeAccuracyTestBase.java | 1388 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/ |
D | CreatePrivateDataTest.java | 100 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/ |
D | MediaServerCrashTest.java | 160 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/ |
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/apps/CtsVerifier/src/com/android/cts/verifier/usb/ |
D | UsbAccessoryTestActivity.java | 232 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/ |
D | TestDeviceFuncTest.java | 352 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/ |
D | TriggerContentTest.java | 155 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/ |
D | PasswordTransformationMethodTest.java | 134 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local 135 result = convertStreamToString(inputStream); in enableAppOps()
|
/cts/hostsidetests/compilation/src/android/cts/compilation/ |
D | AdbRootDependentCompilationTest.java | 92 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/ |
D | DateFormatTest.java | 86 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local 87 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 | 902 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/ |
D | DisplayTest.java | 107 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps() local 108 result = convertStreamToString(inputStream); in enableAppOps()
|
/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
|