HomeSort by relevance Sort by last modified time
    Searched full:max_bytes (Results 1 - 25 of 39) sorted by null

1 2

  /external/chromium/net/disk_cache/
mem_backend_impl.h 32 // object should be deleted when not needed anymore. max_bytes is the maximum
33 // size the cache can grow to. If zero is passed in as max_bytes, the cache
36 static Backend* CreateBackend(int max_bytes, net::NetLog* net_log);
42 bool SetMaxSize(int max_bytes);
mem_backend_impl.cc 44 Backend* MemBackendImpl::CreateBackend(int max_bytes, net::NetLog* net_log) {
46 cache->SetMaxSize(max_bytes);
80 bool MemBackendImpl::SetMaxSize(int max_bytes) {
81 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model);
82 if (max_bytes < 0)
86 if (!max_bytes)
89 max_size_ = max_bytes;
backend_impl.cc 189 CacheCreator(const FilePath& path, bool force, int max_bytes,
194 : path_(path), force_(force), retry_(false), max_bytes_(max_bytes),
292 int CreateCacheBackend(net::CacheType type, const FilePath& path, int max_bytes,
298 *backend = MemBackendImpl::CreateBackend(max_bytes, net_log);
303 return BackendImpl::CreateBackend(path, force, max_bytes, type, kNone, thread,
413 int max_bytes, net::CacheType type,
418 CacheCreator* creator = new CacheCreator(full_path, force, max_bytes, type,
802 bool BackendImpl::SetMaxSize(int max_bytes) {
803 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model);
804 if (max_bytes < 0
    [all...]
disk_cache.h 42 // files will be deleted and a new set will be created. |max_bytes| is the
43 // maximum size the cache can grow to. If zero is passed in as |max_bytes|, the
52 int CreateCacheBackend(net::CacheType type, const FilePath& path, int max_bytes,
  /external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/
CharsetEncoderTest.java 38 static final int MAX_BYTES = 3;
86 assertTrue(encoder.maxBytesPerChar() == MAX_BYTES);
110 encoder = new MockCharsetEncoder(cs, (float) AVER_BYTES, MAX_BYTES);
113 assertTrue(encoder.maxBytesPerChar() == MAX_BYTES);
124 CharsetEncoder ec = new MockCharsetEncoder(cs, 1, MAX_BYTES);
127 assertTrue(ec.maxBytesPerChar() == MAX_BYTES);
134 ec = new MockCharsetEncoder(null, 1, MAX_BYTES);
140 MAX_BYTES);
142 // Commented out since the comment is wrong since MAX_BYTES > 1
144 // ec = new MockCharsetEncoder(cs, MAX_BYTES, 1)
    [all...]
CharsetDecoderTest.java 36 protected static final int MAX_BYTES = 3;
66 // assertTrue(decoder.maxCharsPerByte() == MAX_BYTES);
93 decoder = new MockCharsetDecoder(cs, (float) AVER_BYTES, MAX_BYTES);
96 CharsetDecoder ec = new MockCharsetDecoder(cs, 1, MAX_BYTES);
99 assertTrue(ec.maxCharsPerByte() == MAX_BYTES);
105 ec = new MockCharsetDecoder(null, 1, MAX_BYTES);
108 assertTrue(ec.maxCharsPerByte() == MAX_BYTES);
111 new String[0]), 1, MAX_BYTES);
113 // Commented out since the comment is wrong since MAX_BYTES > 1
115 // ec = new MockCharsetDecoder(cs, MAX_BYTES, 1)
    [all...]
  /packages/apps/Gallery2/tests/src/com/android/gallery3d/common/
BlobCacheTest.java 79 BlobCache bc = new BlobCache(TEST_FILE_NAME, MAX_ENTRIES, MAX_BYTES, true);
108 private static final int MAX_BYTES = 1000;
125 bc = new BlobCache(name, MAX_ENTRIES, MAX_BYTES, true);
138 bc = new BlobCache(name, MAX_ENTRIES, MAX_BYTES, false);
155 bc = new BlobCache(name, MAX_ENTRIES, MAX_BYTES, false);
172 bc = new BlobCache(name, MAX_ENTRIES, MAX_BYTES, false);
200 BlobCache bc = new BlobCache(TEST_FILE_NAME, MAX_ENTRIES, MAX_BYTES, true);
211 BlobCache bc = new BlobCache(TEST_FILE_NAME, MAX_ENTRIES, MAX_BYTES, true);
221 BlobCache bc = new BlobCache(TEST_FILE_NAME, MAX_ENTRIES, MAX_BYTES, true);
274 BlobCache bc = new BlobCache(TEST_FILE_NAME, MAX_ENTRIES, MAX_BYTES, true)
    [all...]
  /external/bluetooth/glib/gio/tests/
data-input-stream.c 29 #define MAX_BYTES 0x10000
284 buffer = g_malloc0 (MAX_BYTES);
287 for (i = 0; i < MAX_BYTES; i++)
297 g_memory_input_stream_add_data (G_MEMORY_INPUT_STREAM (base_stream), buffer, MAX_BYTES, NULL);
306 test_data_array (stream, base_stream, buffer, MAX_BYTES, j, i);
  /external/chromium/chrome/browser/sessions/
base_session_service.cc 28 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|).
30 void WriteStringToPickle(Pickle& pickle, int* bytes_written, int max_bytes,
33 if (*bytes_written + num_bytes < max_bytes) {
42 void WriteString16ToPickle(Pickle& pickle, int* bytes_written, int max_bytes,
45 if (*bytes_written + num_bytes < max_bytes) {
  /external/chromium/sdch/open-vcdiff/src/
blockhash_test.cc 63 int max_bytes) {
66 max_bytes);
71 int max_bytes) {
74 max_bytes);
393 // characters -- in fact, they're the same string -- but since max_bytes is zero
452 const int max_bytes = expected_length - 1;
453 EXPECT_EQ(max_bytes, MatchingBytesToLeft(
456 max_bytes));
463 const int max_bytes = expected_length + 1;
467 max_bytes));
    [all...]
blockhash.cc 347 // Will not examine more than max_bytes bytes, which is to say that
348 // the return value will be in the range [0, max_bytes] inclusive.
351 int max_bytes) {
355 while (bytes_found < max_bytes) {
368 // Will not examine more than max_bytes bytes, which is to say that
369 // the return value will be in the range [0, max_bytes] inclusive.
372 int max_bytes) {
376 while ((bytes_found < max_bytes) && (*source_ptr == *target_ptr)) {
blockhash.h 428 // Will not examine more than max_bytes bytes, which is to say that
429 // the return value will be in the range [0, max_bytes] inclusive.
432 int max_bytes);
436 // Will not examine more than max_bytes bytes, which is to say that
437 // the return value will be in the range [0, max_bytes] inclusive.
440 int max_bytes);
  /external/wpa_supplicant_6/wpa_supplicant/src/wps/
httpread.h 72 * Pass max_bytes == 0 to not read body at all (required for e.g.
80 int max_bytes, /* maximum file size else abort it */
httpread.c 72 int max_bytes; /* maximum file size else abort it */ member in struct:httpread
363 h->max_bytes = 0;
371 h->max_bytes = 0;
482 if (h->max_bytes == 0) {
528 if (h->body_nbytes >= h->max_bytes)
735 * Pass max_bytes == 0 to not read body at all (required for e.g.
743 int max_bytes, /* maximum body size else abort it */
755 h->max_bytes = max_bytes;
  /external/wpa_supplicant_8/src/wps/
httpread.h 66 * Pass max_bytes == 0 to not read body at all (required for e.g.
74 int max_bytes, /* maximum file size else abort it */
httpread.c 66 int max_bytes; /* maximum file size else abort it */ member in struct:httpread
357 h->max_bytes = 0;
365 h->max_bytes = 0;
476 if (h->max_bytes == 0) {
522 if (h->body_nbytes >= h->max_bytes)
729 * Pass max_bytes == 0 to not read body at all (required for e.g.
737 int max_bytes, /* maximum body size else abort it */
749 h->max_bytes = max_bytes;
  /external/freetype/src/psaux/
psobjs.h 114 FT_Offset max_bytes,
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/alsa/
control_external.h 192 size_t max_bytes);
213 size_t max_bytes);
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/alsa/
control_external.h 192 size_t max_bytes);
213 size_t max_bytes);
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/alsa/
control_external.h 192 size_t max_bytes);
213 size_t max_bytes);
  /libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
SHA1PRNG_SecureRandomImpl.java 80 // MAX_BYTES - maximum # of seed bytes processing which doesn't require extra frame
96 private static final int MAX_BYTES = 48;
317 if (seed[BYTES_OFFSET] < MAX_BYTES) {
363 if (seed[BYTES_OFFSET] > MAX_BYTES) {
370 if (seed[BYTES_OFFSET] > MAX_BYTES) {
441 if (seed[BYTES_OFFSET] < MAX_BYTES) { // no extra frame
500 if (seed[BYTES_OFFSET] >= MAX_BYTES) {
  /external/freetype/src/cache/
ftcmanag.h 120 /* its `num_bytes' field is greater than its `max_bytes' field. It */
  /external/qemu/
loader.c 514 size_t max_bytes; local
518 max_bytes = UBOOT_MAX_GUNZIP_BYTES;
519 data = qemu_malloc(max_bytes);
521 bytes = gunzip(data, max_bytes, compressed_data, hdr->ih_size);
  /external/chromium/net/http/
http_cache.h 99 // |max_bytes| is zero, a default value will be calculated automatically.
100 DefaultBackend(CacheType type, const FilePath& path, int max_bytes,
105 static BackendFactory* InMemory(int max_bytes);
  /external/openssl/crypto/rand/
rand.h 106 int RAND_load_file(const char *file,long max_bytes);

Completed in 1442 milliseconds

1 2