Home
last modified time | relevance | path

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

/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/
DNetworkFragment.java264 private String readStream(InputStream stream, int maxLength) throws IOException { in readStream() argument
269 char[] buffer = new char[maxLength]; in readStream()
273 while (numChars < maxLength && readSize != -1) { in readStream()
275 int pct = (100 * numChars) / maxLength; in readStream()
283 numChars = Math.min(numChars, maxLength); in readStream()