Home
last modified time | relevance | path

Searched refs:getInputStream (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/net/
DLocalSocketTest.java61 assertEquals(42, ls1.getInputStream().read()); in testBasic()
74 assertEquals(42, ls1.getInputStream().read()); in testBasic()
83 assertEquals(1, ls.getInputStream().read()); in testBasic()
84 assertEquals(4, ls.getInputStream().available()); in testBasic()
89 countRead = ls.getInputStream().read(buffer, 1, 15); in testBasic()
99 ls.getInputStream().read(buffer, 1, 16); in testBasic()
127 ls.getInputStream().read(buffer, -1, 15); in testBasic()
134 ls.getInputStream().read(buffer, 0, -1); in testBasic()
142 countRead = ls1.getInputStream().read(buffer, 0, 0); in testBasic()
144 assertEquals(42, ls1.getInputStream().read()); in testBasic()
[all …]
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestUtils.java51 s.getInputStream(); in assertConnectionSucceeds()
60 connection.getInputStream(); in assertUrlConnectionFails()
72 connection.getInputStream(); in assertUrlConnectionSucceeds()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DAmbientBrightnessStatsTrackerTest.java222 statsTracker.readStats(getInputStream(statsFile)); in testReadAmbientBrightnessStats()
249 statsTracker.readStats(getInputStream(statsFile)); in testFailedReadAmbientBrightnessStatsWithException()
271 statsTracker.readStats(getInputStream(statsFile)); in testFailedReadAmbientBrightnessStatsWithException()
285 statsTracker.readStats(getInputStream(statsFile)); in testFailedReadAmbientBrightnessStatsWithException()
441 private InputStream getInputStream(String data) { in getInputStream() method in AmbientBrightnessStatsTrackerTest
/frameworks/base/core/java/com/android/internal/protolog/
DViewerConfigInputStreamProvider.java25 ProtoInputStream getInputStream(); in getInputStream() method
DProtoLogViewerConfigReader.java62 final ProtoInputStream pis = mViewerConfigInputStreamProvider.getInputStream(); in doLoadViewerConfig()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DBufferedZipFilePerfTest.java76 InputStream in = zipFile.getInputStream(entry); in timeUnbufferedRead()
96 InputStream in = new BufferedInputStream(zipFile.getInputStream(entry)); in timeBufferedRead()
DZipFileReadPerfTest.java99 InputStream is = zipFile.getInputStream(zipEntry); in timeZipFileRead()
/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java107 InputStream is = file.getInputStream(); in testRun()
148 InputStream is = file.getInputStream(); in readIndexOutOfBoundsException()
198 InputStream is = file.getInputStream(); in testReadEOF()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java148 assertEquals("TEST", new String(buf, 0, e.getInputStream().read(buf)));
207 assertEquals("FILE1", new String(buf1, 0, e1.getInputStream().read(buf1)));
211 assertEquals("DATA2", new String(buf2, 0, e2.getInputStream().read(buf2)));
215 assertEquals("DATA3", new String(buf3, 0, e3.getInputStream().read(buf3)));
252 assertEquals("test", new String(Streams.readFully(entry.getInputStream()))); in testAddEntry_Success()
743 assertEquals(null, e.getInputStream()); in testDropBoxEntrySerialization()
752 new BufferedReader(new InputStreamReader(e.getInputStream())).readLine()); in testDropBoxEntrySerialization()
768 new BufferedReader(new InputStreamReader(e.getInputStream())).readLine()); in testDropBoxEntrySerialization()
776 assertEquals(null, e.getInputStream()); in testDropBoxEntrySerialization()
792 new BufferedReader(new InputStreamReader(e.getInputStream())).readLine()); in testDropBoxEntrySerialization()
[all …]
/frameworks/base/core/java/android/net/
DLocalSocket.java205 public InputStream getInputStream() throws IOException { in getInputStream() method in LocalSocket
207 return impl.getInputStream(); in getInputStream()
DLocalSocketImpl.java316 protected InputStream getInputStream() throws IOException in getInputStream() method in LocalSocketImpl
360 return getInputStream().available(); in available()
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java72 String requestLine = getLine(connection.getInputStream()); in run()
254 while (getLine(socket.getInputStream()).length() != 0); in skipToRequestBody()
293 line = getLine(src.getInputStream()); in filterAndForwardRequestHeaders()
DSocketConnect.java17 this.from = from.getInputStream(); in SocketConnect()
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java103 new InputStreamReader(conn.getInputStream())); in testUrlConnection()
127 new InputStreamReader(conn.getInputStream())); in testUrlConnectionv6()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DSerializedFrame.java109 public final DirectByteInputStream getInputStream() { in getInputStream() method in SerializedFrame.DirectByteOutputStream
268 InputStream inputStream = mByteOutputStream.getInputStream(); in deserializeObjectValue()
/frameworks/base/core/java/android/webkit/
DPluginData.java98 public InputStream getInputStream() { in getInputStream() method in PluginData
DCacheManager.java218 public InputStream getInputStream() { in getInputStream() method in CacheManager.CacheResult
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java120 InputStream in = zip.getInputStream(refEntry); in testCrcValue()
150 InputStream in = zip.getInputStream(refEntry); in testInvalidCrcValue()
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/
DHostStubGen.kt303 BufferedInputStream(inZip.getInputStream(entry)).use { bis -> in <lambda>()
339 BufferedInputStream(inZip.getInputStream(entry)).use { bis -> in <lambda>()
352 BufferedInputStream(inZip.getInputStream(entry)).use { bis -> in <lambda>()
/frameworks/base/tools/sdkparcelables/src/com/android/sdkparcelables/
DMain.kt46 val reader = ClassReader(zipFile.getInputStream(entry)) in main()
/frameworks/base/core/java/android/os/
DDropBoxManager.java236 is = getInputStream(); in getText()
253 public @Nullable InputStream getInputStream() throws IOException { in getInputStream() method in DropBoxManager.Entry
/frameworks/base/tools/traceinjection/src/com/android/traceinjection/
DMain.java96 BufferedInputStream bis = new BufferedInputStream(zipSrc.getInputStream(entry)); in main()
/frameworks/base/packages/DynamicSystemInstallationService/tests/src/com/android/dynsystem/
DKeyRevocationListTest.java76 .when(mockConnection).getInputStream(); in testFromUrl()
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java207 public InputStream getInputStream(ZipEntry ze) { in getInputStream() method in StrictJarFile
302 metaEntries.put(entry.getName(), Streams.readFully(getInputStream(entry))); in getMetaEntries()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DKeyRevocationList.java134 try (InputStream stream = connection.getInputStream()) { in fromUrl()

1234