/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
fileinput.py | 381 import gzip namespace 382 return gzip.open(filename, mode)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_gzip.py | 2 """Test script for the gzip module. 10 gzip = test_support.import_module('gzip') variable 19 data2 = """/* zlibmodule.c -- gzip-compatible data compression */ 20 /* See http://www.gzip.org/zlib/ 36 with gzip.GzipFile(self.filename, 'wb') as f: 52 with gzip.GzipFile(self.filename, 'r') as f: 59 with gzip.GzipFile(self.filename, 'rU') as f: 69 f = gzip.GzipFile(self.filename, 'r') 78 f = gzip.GzipFile(self.filename, 'w' [all...] |
/external/chromium-trace/catapult/tracing/bin/ |
symbolize_trace | 9 import gzip namespace 360 return gzip.open(trace_file_path, mode + 'b')
|
/external/chromium-trace/catapult/tracing/tracing_build/ |
merge_traces.py | 8 import gzip namespace 301 with gzip.open(filename, 'rb') as f: 343 with gzip.open(filename, 'wb') as f:
|
/external/jetty/src/java/org/eclipse/jetty/http/gzip/ |
AbstractCompressedStream.java | 19 package org.eclipse.jetty.http.gzip; 346 * @see org.eclipse.jetty.http.gzip.CompressedStream#getOutputStream() 354 * @see org.eclipse.jetty.http.gzip.CompressedStream#isClosed()
|
CompressedResponseWrapper.java | 19 package org.eclipse.jetty.http.gzip; 95 * @see org.eclipse.jetty.http.gzip.CompressedResponseWrapper#setMimeTypes(java.util.Set) 104 * @see org.eclipse.jetty.http.gzip.CompressedResponseWrapper#setBufferSize(int) 116 * @see org.eclipse.jetty.http.gzip.CompressedResponseWrapper#setMinCompressSize(int) 125 * @see org.eclipse.jetty.http.gzip.CompressedResponseWrapper#setContentType(java.lang.String) 142 (_mimeTypes==null && ct!=null && ct.contains("gzip") || 152 * @see org.eclipse.jetty.http.gzip.CompressedResponseWrapper#setStatus(int, java.lang.String) 164 * @see org.eclipse.jetty.http.gzip.CompressedResponseWrapper#setStatus(int) 176 * @see org.eclipse.jetty.http.gzip.CompressedResponseWrapper#setContentLength(int) 209 * @see org.eclipse.jetty.http.gzip.CompressedResponseWrapper#addHeader(java.lang.String, java.lang.String [all...] |
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
Benchmark.java | 68 /** True to use gzip content-encoding for the response body. */ 70 boolean gzip; field in class:Benchmark 144 if (gzip) modifiers.add("gzip"); 187 if (gzip) { 193 result.addHeader("Content-Encoding: gzip");
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
GZIPInputStreamTest.java | 82 assertTrue(Arrays.equals(data, gunzip(GZIPOutputStreamTest.gzip(data)))); 88 byte[] gzipped = GZIPOutputStreamTest.gzip(data); 125 // will throw if it sees the gzip magic sequence at the end of a member 167 File f = File.createTempFile("GZIPInputStreamTest", ".gzip"); 185 GZIPInputStream gzip = null; local 187 gzip = new GZIPInputStream(fis, memberSizes[0]); 188 byte[] unzipped = Streams.readFully(gzip); 191 IoUtils.closeQuietly(gzip);
|
/external/chromium-trace/catapult/third_party/apiclient/googleapiclient/ |
http.py | 32 import gzip namespace [all...] |
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
OkApacheClientTest.java | 190 server.enqueue(new MockResponse().setBody(gzip(text)) 191 .setHeader("Content-Encoding", "gzip")); 194 request.setHeader("Accept-encoding", "gzip"); // Not transparent gzip. 200 assertEquals("gzip", encodingHeaders[0].getValue()); 202 assertEquals("gzip", entity.getContentEncoding().getValue()); 209 server.enqueue(new MockResponse().setBody(gzip(text)) 210 .setHeader("Content-Encoding", "gzip") 214 request1.setHeader("Accept-encoding", "gzip"); // Not transparent gzip 263 private static Buffer gzip(String body) throws IOException { method in class:OkApacheClientTest [all...] |
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/ |
test_naming.py | 34 import gzip namespace 324 self.assertEqual('gzip', actual_obj.contentEncoding) 329 f = gzip.GzipFile(fileobj=StringIO.StringIO(stdout), mode='rb') [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/ |
utils.py | 57 import gzip namespace 899 :param compress: Use gzip to compress the scripts, defaults to no compression 928 gz = gzip.GzipFile(mode='wb', fileobj=buf) [all...] |
/external/libmicrohttpd/src/testspdy/ |
test_new_connection.c | 129 /* The gzip stream inflater for the compressed response. */ 190 * Check response is content-encoding: gzip. We need this because SPDY 191 * client is required to support gzip. 195 int gzip = 0; local 199 gzip = strcmp("gzip", nv[i+1]) == 0; 203 if(gzip) { 429 /* TODO add support gzip */
|
test_notls.c | 108 /* The gzip stream inflater for the compressed response. */ 169 * Check response is content-encoding: gzip. We need this because SPDY 170 * client is required to support gzip. 174 int gzip = 0; local 178 gzip = strcmp("gzip", nv[i+1]) == 0; 182 if(gzip) { 427 /* TODO add support gzip */
|
test_request_response.c | 111 /* The gzip stream inflater for the compressed response. */ 172 * Check response is content-encoding: gzip. We need this because SPDY 173 * client is required to support gzip. 177 int gzip = 0; local 181 gzip = strcmp("gzip", nv[i+1]) == 0; 185 if(gzip) { 412 /* TODO add support gzip */
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/ |
__init__.py | 5 A caching http interface that supports ETags and gzip 34 import gzip namespace 399 if encoding in ['gzip', 'deflate']: 400 if encoding == 'gzip': 401 content = gzip.GzipFile(fileobj=StringIO.StringIO(new_content)).read() [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/python3/httplib2/ |
__init__.py | 5 A caching http interface that supports ETags and gzip 36 import gzip namespace 328 if encoding in ['gzip', 'deflate']: 329 if encoding == 'gzip': 330 content = gzip.GzipFile(fileobj=io.BytesIO(new_content)).read() [all...] |
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
GatherAPIData.java | 33 * -gzip 78 boolean gzip; field in class:GatherAPIData 93 } else if (option.equals("-gzip")) { 131 } else if (opt.equals("-gzip")) { 132 this.gzip = true; 154 } else if (gzip) {
|
GatherAPIDataOld.java | 33 * -gzip 77 boolean gzip; field in class:GatherAPIDataOld 92 } else if (option.equals("-gzip")) { 122 } else if (opt.equals("-gzip")) { 123 this.gzip = true; 145 } else if (gzip) {
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
HttpOverSpdyTest.java | 211 new MockResponse().addHeader("Content-Encoding: gzip").setBody(gzip("ABCABCABC"))); 434 public Buffer gzip(String bytes) throws IOException { method in class:HttpOverSpdyTest
|
/external/opencv3/doc/pattern_tools/ |
svgfig.py | 459 import gzip namespace 461 f = gzip.GzipFile(fileName, "w") 463 f = gzip.GzipFile(fileName, "w", compresslevel) [all...] |
/external/selinux/policycoreutils/sepolicy/sepolicy/ |
__init__.py | 857 import gzip namespace 862 fd = gzip.open(path)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_xmlrpc.py | 682 #A test case that verifies that gzip encoding works in both directions 706 #add a lone gzip header to induce decode error remotely 707 connection.putheader("Content-Encoding", "gzip") 1015 import gzip namespace [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
xmlrpclib.py | 146 import gzip namespace 148 gzip = None #python can be built without zlib/gzip support variable [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_xmlrpc.py | 682 #A test case that verifies that gzip encoding works in both directions 706 #add a lone gzip header to induce decode error remotely 707 connection.putheader("Content-Encoding", "gzip") 1015 import gzip namespace [all...] |