Home
last modified time | relevance | path

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

/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java312 long contentLength = CONTENT_LENGTH_UNKNOWN; in processDownload() local
320 contentLength = httpConn.getContentLengthLong(); in processDownload()
328 if (!downloadToFile(is, fop, contentLength, task, nm)) { in processDownload()
373 long contentLength, @NonNull DownloadTask task, in downloadToFile() argument
377 final long maxRead = contentLength == CONTENT_LENGTH_UNKNOWN in downloadToFile()
378 ? Long.MAX_VALUE : contentLength; in downloadToFile()
403 final Integer progress = getProgress(contentLength, allRead); in downloadToFile()
436 private Integer getProgress(long contentLength, long totalRead) { in getProgress() argument
437 if (contentLength == CONTENT_LENGTH_UNKNOWN || contentLength == 0) return null; in getProgress()
438 return (int) (totalRead * 100 / contentLength); in getProgress()
DCaptivePortalLoginActivity.java1062 String mimetype, long contentLength) { in onDownloadStart() argument
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java96 public void setFixedLengthStreamingMode(int contentLength) { in setFixedLengthStreamingMode() argument
97 mConnection.setFixedLengthStreamingMode(contentLength); in setFixedLengthStreamingMode()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dokhttp-3.12.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/proguard/ okhttp3/ ...
Dgoogle-http-client-1.36.0.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
Dgoogle-api-client-1.30.10.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
Dhttpcore-4.4.13.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/apache/ org/ ...
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpClient.java181 private byte[] getByteArray(@Nullable InputStream in, long contentLength) throws IOException { in getByteArray() argument
182 if (contentLength == 0) { in getByteArray()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java3039 long contentLength = urlConnection.getContentLengthLong(); in sendHttpProbe() local
3044 } else if (contentLength == -1) { in sendHttpProbe()
3053 } else if (matchesHttpContentLength(contentLength)) { in sendHttpProbe()
3055 final String content = readAsString(is, (int) contentLength, in sendHttpProbe()
3067 + contentLength + ", content matches custom regexp, interpreted" in sendHttpProbe()
3071 } else if (contentLength <= 4) { in sendHttpProbe()
3129 boolean matchesHttpContentLength(final long contentLength) { in matchesHttpContentLength() argument
3132 if (contentLength <= 0) return false; in matchesHttpContentLength()
3133 if (contentLength > Integer.MAX_VALUE) { in matchesHttpContentLength()
3134 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/modules/Bluetooth/android/ChannelSoundingTestApp/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/apps/Car/Launcher/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/services/Telephony/testapps/TestSliceApp/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/providers/MediaProvider/tools/photopicker-gradle/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java734 private byte[] getByteArray(@Nullable InputStream in, long contentLength) throws IOException { in getByteArray() argument
735 if (contentLength == 0) { in getByteArray()
/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/apps/Car/DebuggingRestrictionController/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/modules/Bluetooth/android/leaudio/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...