Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/net/
DLocalSocketTest.java49 assertEquals(42, ls1.getInputStream().read()); in testBasic()
62 assertEquals(42, ls1.getInputStream().read()); in testBasic()
71 assertEquals(1, ls.getInputStream().read()); in testBasic()
72 assertEquals(4, ls.getInputStream().available()); in testBasic()
77 countRead = ls.getInputStream().read(buffer, 1, 15); in testBasic()
87 ls.getInputStream().read(buffer, 1, 16); in testBasic()
115 ls.getInputStream().read(buffer, -1, 15); in testBasic()
122 ls.getInputStream().read(buffer, 0, -1); in testBasic()
130 countRead = ls1.getInputStream().read(buffer, 0, 0); in testBasic()
132 assertEquals(42, ls1.getInputStream().read()); in testBasic()
[all …]
DSSLTest.java37 InputStream in = ssl.getInputStream(); in testCertificate()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestUtils.java40 s.getInputStream(); in assertConnectionFails()
49 s.getInputStream(); in assertConnectionSucceeds()
58 connection.getInputStream(); in assertUrlConnectionFails()
70 connection.getInputStream(); in assertUrlConnectionSucceeds()
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/
DRemoteAssetRepositoryAdapter.java42 return StreamUtil.getInputStream(mDelgate.openAsset(path, mode)); in openAsset()
48 return StreamUtil.getInputStream(mDelgate.openNonAsset(cookie, path, mode)); in openNonAsset()
/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java89 InputStream is = file.getInputStream(); in testRun()
129 InputStream is = file.getInputStream(); in readIndexOutOfBoundsException()
174 InputStream is = file.getInputStream(); in testReadEOF()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DAmbientBrightnessStatsTrackerTest.java221 statsTracker.readStats(getInputStream(statsFile)); in testReadAmbientBrightnessStats()
248 statsTracker.readStats(getInputStream(statsFile)); in testFailedReadAmbientBrightnessStatsWithException()
270 statsTracker.readStats(getInputStream(statsFile)); in testFailedReadAmbientBrightnessStatsWithException()
284 statsTracker.readStats(getInputStream(statsFile)); in testFailedReadAmbientBrightnessStatsWithException()
440 private InputStream getInputStream(String data) { in getInputStream() method in AmbientBrightnessStatsTrackerTest
/frameworks/base/core/java/android/net/
DLocalSocket.java187 public InputStream getInputStream() throws IOException { in getInputStream() method in LocalSocket
189 return impl.getInputStream(); in getInputStream()
DLocalSocketImpl.java349 protected InputStream getInputStream() throws IOException in getInputStream() method in LocalSocketImpl
393 return getInputStream().available(); in available()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java140 assertEquals("TEST", new String(buf, 0, e.getInputStream().read(buf)));
199 assertEquals("FILE1", new String(buf1, 0, e1.getInputStream().read(buf1)));
203 assertEquals("DATA2", new String(buf2, 0, e2.getInputStream().read(buf2)));
207 assertEquals("DATA3", new String(buf3, 0, e3.getInputStream().read(buf3)));
674 assertEquals(null, e.getInputStream()); in testDropBoxEntrySerialization()
683 new BufferedReader(new InputStreamReader(e.getInputStream())).readLine()); in testDropBoxEntrySerialization()
699 new BufferedReader(new InputStreamReader(e.getInputStream())).readLine()); in testDropBoxEntrySerialization()
707 assertEquals(null, e.getInputStream()); in testDropBoxEntrySerialization()
723 new BufferedReader(new InputStreamReader(e.getInputStream())).readLine()); in testDropBoxEntrySerialization()
730 assertEquals(null, e.getInputStream()); in testDropBoxEntrySerialization()
[all …]
/frameworks/base/core/java/android/webkit/
DPluginData.java93 public InputStream getInputStream() { in getInputStream() method in PluginData
DCacheManager.java185 public InputStream getInputStream() { in getInputStream() method in CacheManager.CacheResult
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java73 String requestLine = getLine(connection.getInputStream()); in run()
255 while (getLine(socket.getInputStream()).length() != 0); in skipToRequestBody()
294 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/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/sdkparcelables/src/com/android/sdkparcelables/
DMain.kt46 val reader = ClassReader(zipFile.getInputStream(entry)) in main()
/frameworks/base/core/java/android/bluetooth/
DBluetoothSocket.java261 as.mSocketIS = as.mSocket.getInputStream(); in acceptSocket()
332 public InputStream getInputStream() throws IOException { in getInputStream() method in BluetoothSocket
396 mSocketIS = mSocket.getInputStream(); in connect()
455 mSocketIS = mSocket.getInputStream(); in bindListen()
/frameworks/base/services/core/java/com/android/server/
DRecoverySystemService.java115 dis = new DataInputStream(socket.getInputStream()); in uncrypt()
283 dis = new DataInputStream(socket.getInputStream()); in setupOrClearBcb()
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/
DStreamUtil.java31 public static InputStream getInputStream(@NotNull RemoteInputStream is) { in getInputStream() method in StreamUtil
/frameworks/support/compat/src/main/java/androidx/core/net/
DDatagramSocketWrapper.java81 protected InputStream getInputStream() throws IOException { in getInputStream() method in DatagramSocketWrapper.DatagramSocketImplWrapper
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/
DAsmGeneratorTest.java284 try (InputStream inputStream = zipFile.getInputStream(entry)) { in testMethodInjection()
323 ClassReader cr = new ClassReader(zip.getInputStream(entry)); in parseZip()
327 filesFound.put(entry.getName(), zip.getInputStream(entry)); in parseZip()
/frameworks/base/core/java/android/os/
DDropBoxManager.java196 is = getInputStream(); in getText()
213 public InputStream getInputStream() throws IOException { in getInputStream() method in DropBoxManager.Entry
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
DBitmapHelper.java72 is = new BufferedInputStream(urlConnection.getInputStream()); in fetchAndRescaleBitmap()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/model/
DMusicProvider.java305 is = new BufferedInputStream(urlConnection.getInputStream()); in fetchJSONFromUrl()
307 urlConnection.getInputStream(), "iso-8859-1")); in fetchJSONFromUrl()

1234