Home
last modified time | relevance | path

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

/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java293 long contentLength = CONTENT_LENGTH_UNKNOWN; in processDownload() local
301 contentLength = httpConn.getContentLengthLong(); in processDownload()
309 if (!downloadToFile(is, fop, contentLength, task, nm)) { in processDownload()
337 long contentLength, @NonNull DownloadTask task, in downloadToFile() argument
341 final long maxRead = contentLength == CONTENT_LENGTH_UNKNOWN in downloadToFile()
342 ? Long.MAX_VALUE : contentLength; in downloadToFile()
359 final Integer progress = getProgress(contentLength, allRead); in downloadToFile()
382 private Integer getProgress(long contentLength, long totalRead) { in getProgress() argument
383 if (contentLength == CONTENT_LENGTH_UNKNOWN || contentLength == 0) return null; in getProgress()
384 return (int) (totalRead * 100 / contentLength); in getProgress()
DCaptivePortalLoginActivity.java847 String mimetype, long contentLength) { in onDownloadStart() argument
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java2461 long contentLength = urlConnection.getContentLengthLong(); in sendHttpProbe() local
2466 } else if (contentLength == -1) { in sendHttpProbe()
2475 } else if (matchesHttpContentLength(contentLength)) { in sendHttpProbe()
2477 final String content = readAsString(is, (int) contentLength, in sendHttpProbe()
2489 + contentLength + ", content matches custom regexp, interpreted" in sendHttpProbe()
2493 } else if (contentLength <= 4) { in sendHttpProbe()
2542 boolean matchesHttpContentLength(final long contentLength) { in matchesHttpContentLength() argument
2545 if (contentLength <= 0) return false; in matchesHttpContentLength()
2546 if (contentLength > Integer.MAX_VALUE) { in matchesHttpContentLength()
2547 logw("matchesHttpContentLength : Get invalid contentLength = " + contentLength); in matchesHttpContentLength()
[all …]
/packages/services/Car/tests/BugReportApp/libs/
Dgoogle-http-client-1.30.1.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
Dgoogle-api-client-1.30.2.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java244 int contentLength = STRING_1K.length() * numPackets; in buildContinuingResponse() local
246 .setHeader("Content-length", contentLength) in buildContinuingResponse()
/packages/modules/ArtPrebuilt/iorap/test/src/IorapTestApp/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/apps/Car/tests/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...