HomeSort by relevance Sort by last modified time
    Searched defs:gzip (Results 1 - 25 of 44) sorted by null

1 2

  /external/chromium_org/tools/android/adb_profile_chrome/
trace_packager.py 5 import gzip namespace
31 with gzip.open(output, 'wb') as out, \
  /external/qemu/distrib/ext4_utils/src/
make_ext4fs_main.c 67 int gzip = 0; local
119 gzip = 1;
170 if (wipe && gzip) {
171 fprintf(stderr, "Cannot specifiy both wipe and gzip\n");
203 exitcode = make_ext4fs_internal(fd, directory, mountpoint, fs_config_func, gzip,
ext2simg.c 53 fprintf(stderr, " -z gzip output\n");
183 int gzip = 0; local
197 gzip = 1;
250 write_ext4_image(outfd, gzip, sparse, crc);
  /system/extras/ext4_utils/
make_ext4fs_main.c 69 int gzip = 0; local
122 gzip = 1;
196 if (wipe && gzip) {
197 fprintf(stderr, "Cannot specifiy both wipe and gzip\n");
229 exitcode = make_ext4fs_internal(fd, directory, mountpoint, fs_config_func, gzip,
ext2simg.c 52 fprintf(stderr, " -z gzip output\n");
122 int gzip = 0; local
136 gzip = 1;
189 write_ext4_image(outfd, gzip, sparse, crc);
  /external/chromium_org/tools/perf/metrics/
network.py 6 import gzip namespace
81 if encoding == 'gzip':
112 with gzip.GzipFile(fileobj=bio, mode="wb", compresslevel=9) as f:
115 logging.warning('Fail to gzip response body: %s', e)
  /packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DictionaryBackupAgent.java 162 GZIPOutputStream gzip = null; local
164 gzip = new GZIPOutputStream(baos);
177 gzip.write(sizeBytes);
178 gzip.write(line);
181 gzip.finish();
186 IoUtils.closeQuietly(gzip);
198 GZIPInputStream gzip = new GZIPInputStream(new ByteArrayInputStream(dictCompressed)); local
202 while ((got = gzip.read(tempData)) > 0) {
205 gzip.close();
  /external/chromium_org/tools/telemetry/telemetry/core/
memory_cache_http_server.py 7 import gzip namespace
81 self.send_header('Content-Encoding', 'gzip')
182 gzf = gzip.GzipFile(fileobj=sio, compresslevel=9, mode='wb')
  /libcore/luni/src/test/java/libcore/java/util/zip/
GZIPOutputStreamTest.java 30 byte[] data = gzip(("Hello World").getBytes("UTF-8"));
38 assertTrue(Arrays.equals(data, GZIPInputStreamTest.gunzip(gzip(data))));
41 public static byte[] gzip(byte[] bytes) throws IOException { method in class:GZIPOutputStreamTest
69 byte[] responseBytes = "Some data to gzip".getBytes();
GZIPInputStreamTest.java 49 assertTrue(Arrays.equals(data, gunzip(GZIPOutputStreamTest.gzip(data))));
55 byte[] gzipped = GZIPOutputStreamTest.gzip(data);
92 // will throw if it sees the gzip magic sequence at the end of a member
136 File f = File.createTempFile("GZIPInputStreamTest", ".gzip");
154 GZIPInputStream gzip = null; local
156 gzip = new GZIPInputStream(fis, memberSizes[0]);
157 byte[] unzipped = Streams.readFully(gzip);
160 IoUtils.closeQuietly(gzip);
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
fileinput.py 381 import gzip namespace
382 return gzip.open(filename, mode)
xmlrpclib.py 146 import gzip namespace
148 gzip = None #python can be built without zlib/gzip support variable
    [all...]
tarfile.py 391 blockwise. Use of gzip or bzip2 compression is possible.
449 """Initialize for writing with gzip compression.
511 """Initialize for reading a gzip compressed fileobj.
516 # taken from gzip.GzipFile with some alterations
518 raise ReadError("not a gzip file")
644 class which (unlike gzip.GzipFile) has no support for
1716 import gzip namespace
    [all...]
  /prebuilts/python/darwin-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...]
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...]
test_tarfile.py 17 import gzip namespace
18 gzip.GzipFile
20 gzip = None variable
187 _open = gzip.GzipFile
241 _open = gzip.GzipFile
261 # For Gzip and Bz2 Tests: fail with a ReadError on an uncompressed file.
419 if gzip:
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
fileinput.py 381 import gzip namespace
382 return gzip.open(filename, mode)
xmlrpclib.py 146 import gzip namespace
148 gzip = None #python can be built without zlib/gzip support variable
    [all...]
tarfile.py 391 blockwise. Use of gzip or bzip2 compression is possible.
449 """Initialize for writing with gzip compression.
511 """Initialize for reading a gzip compressed fileobj.
516 # taken from gzip.GzipFile with some alterations
518 raise ReadError("not a gzip file")
644 class which (unlike gzip.GzipFile) has no support for
1716 import gzip namespace
    [all...]
  /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...]
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...]
  /external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
Benchmark.java 69 /** True to use gzip content-encoding for the response body. */
71 boolean gzip; field in class:Benchmark
145 if (gzip) modifiers.add("gzip");
188 if (gzip) {
189 body = gzip(body);
190 result.addHeader("Content-Encoding: gzip");
216 private byte[] gzip(byte[] bytes) throws IOException { method in class:Benchmark
  /external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/
__init__.py 5 A caching http interface that supports ETags and gzip
34 import gzip namespace
347 if encoding in ['gzip', 'deflate']:
348 if encoding == 'gzip':
349 content = gzip.GzipFile(fileobj=StringIO.StringIO(new_content)).read()
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
HttpOverSpdyTest.java 227 server.enqueue(new MockResponse().addHeader("Content-Encoding: gzip")
228 .setBody(gzip("ABCABCABC".getBytes(Util.UTF_8))));
456 public byte[] gzip(byte[] bytes) throws IOException { method in class:HttpOverSpdyTest
  /external/smack/src/org/jivesoftware/smack/util/
Base64.java 35 /** Specify that data should be gzip-compressed. */
36 public final static int GZIP = 2;
430 * The object is not GZip-compressed before being encoded.
450 * GZIP: gzip-compresses object before encoding it.
455 * Example: <code>encodeObject( myObj, Base64.GZIP )</code> or
457 * Example: <code>encodeObject( myObj, Base64.GZIP | Base64.DONT_BREAK_LINES )</code>
462 * @see Base64#GZIP
475 int gzip = (options & GZIP); local
604 int gzip = ( options & GZIP ); local
    [all...]

Completed in 1363 milliseconds

1 2