Home
last modified time | relevance | path

Searched refs:bucket (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/external/bison/lib/
Dhash.c57 struct hash_entry *bucket; member
176 struct hash_entry const *bucket; in hash_get_max_bucket_length() local
179 for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) in hash_get_max_bucket_length()
181 if (bucket->data) in hash_get_max_bucket_length()
183 struct hash_entry const *cursor = bucket; in hash_get_max_bucket_length()
203 struct hash_entry const *bucket; in hash_table_ok() local
207 for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) in hash_table_ok()
209 if (bucket->data) in hash_table_ok()
211 struct hash_entry const *cursor = bucket; in hash_table_ok()
254 return table->bucket + n; in safe_hasher()
[all …]
/external/libvpx/libvpx/
Drate_hist.c33 struct hist_bucket bucket[RATE_BINS]; member
57 hist->bucket[i].low = INT_MAX; in init_rate_histogram()
58 hist->bucket[i].high = 0; in init_rate_histogram()
59 hist->bucket[i].count = 0; in init_rate_histogram()
115 if (hist->bucket[idx].low > avg_bitrate) in update_rate_histogram()
116 hist->bucket[idx].low = (int)avg_bitrate; in update_rate_histogram()
117 if (hist->bucket[idx].high < avg_bitrate) in update_rate_histogram()
118 hist->bucket[idx].high = (int)avg_bitrate; in update_rate_histogram()
119 hist->bucket[idx].count++; in update_rate_histogram()
123 static int merge_hist_buckets(struct hist_bucket *bucket, in merge_hist_buckets() argument
[all …]
/external/libdrm/
Dxf86drmHash.c127 HashBucketPtr bucket; in drmHashDestroy() local
134 for (bucket = table->buckets[i]; bucket;) { in drmHashDestroy()
135 next = bucket->next; in drmHashDestroy()
136 drmFree(bucket); in drmHashDestroy()
137 bucket = next; in drmHashDestroy()
152 HashBucketPtr bucket; in HashFind() local
156 for (bucket = table->buckets[hash]; bucket; bucket = bucket->next) { in HashFind()
157 if (bucket->key == key) { in HashFind()
160 prev->next = bucket->next; in HashFind()
161 bucket->next = table->buckets[hash]; in HashFind()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/gs/
Dtest_basic.py85 bucket = self._MakeBucket()
86 bucket_name = bucket.name
88 bucket = self._GetConnection().get_bucket(bucket_name)
90 k = bucket.new_key(key_name)
104 url = self._conn.generate_url(900, 'GET', bucket=bucket.name, key=key_name)
125 bucket = self._MakeBucket()
128 k = bucket.new_key('foobar')
160 all = bucket.get_all_keys()
162 rs = bucket.get_all_keys(prefix='foo')
164 rs = bucket.get_all_keys(prefix='', delimiter='/')
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/s3/
Dtest_connection.py31 from boto.s3.bucket import Bucket
44 bucket = c.create_bucket(bucket_name)
46 bucket = c.get_bucket(bucket_name)
50 bucket.enable_logging(target_bucket=logging_bucket, target_prefix=bucket.name)
51 bucket.disable_logging()
53 k = bucket.new_key('foobar')
92 bucket.delete_key(k)
115 all = bucket.get_all_keys()
117 rs = bucket.get_all_keys(prefix='foo')
119 rs = bucket.get_all_keys(prefix='', delimiter='/')
[all …]
Dtest_multidelete.py43 self.bucket = self.conn.create_bucket(self.bucket_name)
46 for key in self.bucket:
48 self.bucket.delete()
51 result = self.bucket.delete_keys([])
56 result = self.bucket.delete_keys([{"dict":"notallowed"}])
61 result = self.bucket.delete_keys(["king",
72 result = self.bucket.delete_keys(["king"], quiet=True)
77 result = self.bucket.delete_keys([Key(name=">_<;")])
84 result = self.bucket.delete_keys([no_ver])
89 result = self.bucket.delete_keys([u"漢字", Key(name=u"日本語")])
[all …]
Dtest_key.py44 self.bucket = self.conn.create_bucket(self.bucket_name)
47 for key in self.bucket:
49 self.bucket.delete()
57 k = self.bucket.new_key("k")
67 kn = self.bucket.new_key("k")
73 k = self.bucket.new_key("k")
77 kn = self.bucket.new_key("k")
87 k = self.bucket.new_key("k")
90 kn = self.bucket.new_key("k")
97 k = self.bucket.new_key("k")
[all …]
Dtest_versioning.py40 self.bucket = self.conn.create_bucket(self.bucket_name)
43 for k in self.bucket.list_versions():
44 self.bucket.delete_key(k.name, version_id=k.version_id)
45 self.bucket.delete()
49 d = self.bucket.get_versioning_status()
53 self.bucket.configure_versioning(versioning=True)
54 d = self.bucket.get_versioning_status()
58 k = self.bucket.new_key("foobar")
77 k2 = self.bucket.new_key("foobar")
88 rs = self.bucket.get_all_versions()
[all …]
Dtest_bucket.py52 self.bucket = self.conn.create_bucket(self.bucket_name)
55 for key in self.bucket:
57 self.bucket.delete()
62 key = self.bucket.new_key(key_name)
68 rs = self.bucket.get_all_keys(max_keys=2)
78 rs = self.bucket.get_all_keys(max_keys=2, delimiter="/")
86 rs = self.bucket.list()
94 key = self.bucket.new_key(key_name)
99 orig_getall = self.bucket._get_all
101 with patch.object(self.bucket, '_get_all', getall):
[all …]
Dtest_pool.py43 def put_object(bucket, name): argument
44 bucket.new_key(name).set_contents_from_string(name)
46 def get_object(bucket, name): argument
47 assert bucket.get_key(name).get_contents_as_string().decode('utf-8') == name
72 bucket = s3.create_bucket('test-%d' % int(time.time()))
79 spawn(put_object, bucket, name)
90 spawn(get_object, bucket, name)
113 def read_big_object(s3, bucket, name, count): argument
115 key = bucket.get_key(name)
130 def __init__(self, bucket, small_names): argument
[all …]
/external/mesa3d/src/glx/
Dglxhash.c179 __glxHashBucketPtr bucket; in __glxHashDestroy() local
187 for (bucket = table->buckets[i]; bucket;) { in __glxHashDestroy()
188 next = bucket->next; in __glxHashDestroy()
189 HASH_FREE(bucket); in __glxHashDestroy()
190 bucket = next; in __glxHashDestroy()
205 __glxHashBucketPtr bucket; in HashFind() local
210 for (bucket = table->buckets[hash]; bucket; bucket = bucket->next) { in HashFind()
211 if (bucket->key == key) { in HashFind()
214 prev->next = bucket->next; in HashFind()
215 bucket->next = table->buckets[hash]; in HashFind()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/s3/
Dtest_bucket.py10 from boto.s3.bucket import Bucket
25 bucket = self.service_connection.create_bucket('mybucket_create')
26 self.assertEqual(bucket.name, 'mybucket_create')
30 bucket = Bucket(self.service_connection, 'mybucket_constructor')
31 self.assertEqual(bucket.name, 'mybucket_constructor')
35 bucket = self.service_connection.create_bucket('mybucket')
36 self.assertEqual(bucket.__repr__(), '<Bucket: mybucket>')
40 bucket = self.service_connection.create_bucket('mybucket')
41 key = bucket.new_key('mykey')
43 self.assertEqual(key.bucket, bucket)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/devpay/
Dtest_s3.py45 bucket = c.create_bucket(bucket_name, headers=DEVPAY_HEADERS)
47 bucket = c.get_bucket(bucket_name, headers=DEVPAY_HEADERS)
51bucket.enable_logging(target_bucket=logging_bucket, target_prefix=bucket.name, headers=DEVPAY_HEAD…
52 bucket.disable_logging(headers=DEVPAY_HEADERS)
55 k = bucket.new_key()
75 bucket.delete_key(k, headers=DEVPAY_HEADERS)
98 all = bucket.get_all_keys(headers=DEVPAY_HEADERS)
100 rs = bucket.get_all_keys(prefix='foo', headers=DEVPAY_HEADERS)
102 rs = bucket.get_all_keys(prefix='', delimiter='/', headers=DEVPAY_HEADERS)
104 rs = bucket.get_all_keys(maxkeys=5, headers=DEVPAY_HEADERS)
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dhash_map.hpp103 size_t bucket = calculate_hash_value(k) % num_buckets_; in find() local
104 iterator it = buckets_[bucket].first; in find()
107 iterator end_it = buckets_[bucket].last; in find()
124 size_t bucket = calculate_hash_value(k) % num_buckets_; in find() local
125 const_iterator it = buckets_[bucket].first; in find()
128 const_iterator end_it = buckets_[bucket].last; in find()
145 size_t bucket = calculate_hash_value(v.first) % num_buckets_; in insert() local
146 iterator it = buckets_[bucket].first; in insert()
149 buckets_[bucket].first = buckets_[bucket].last = in insert()
152 return std::pair<iterator, bool>(buckets_[bucket].last, true); in insert()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dlocal_iterators.pass.cpp45 C::size_type b = c.bucket(0); in main()
50 b = c.bucket(1); in main()
58 b = c.bucket(2); in main()
66 b = c.bucket(3); in main()
72 b = c.bucket(4); in main()
78 b = c.bucket(5); in main()
83 b = c.bucket(6); in main()
103 C::size_type b = c.bucket(0); in main()
108 b = c.bucket(1); in main()
116 b = c.bucket(2); in main()
[all …]
Dlocal_iterators.fail.cpp43 C::size_type b = c.bucket(0); in main()
48 b = c.bucket(1); in main()
57 b = c.bucket(2); in main()
65 b = c.bucket(3); in main()
71 b = c.bucket(4); in main()
77 b = c.bucket(5); in main()
82 b = c.bucket(6); in main()
102 C::size_type b = c.bucket(0); in main()
107 b = c.bucket(1); in main()
115 b = c.bucket(2); in main()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_defacl.py44 bucket = self.CreateBucket()
51 [suri(bucket)], return_stdout=True)
55 ['-g', self.GROUP_TEST_ADDRESS+':FC', suri(bucket)])
57 [suri(bucket)], return_stdout=True)
61 ['-g', self.GROUP_TEST_ADDRESS+':READ', suri(bucket)])
63 [suri(bucket)], return_stdout=True)
68 suri(bucket)],
75 bucket = self.CreateBucket()
78 self.RunGsUtil(self._defacl_set_prefix + ['private', suri(bucket)])
80 [suri(bucket)], return_stdout=True)
[all …]
/external/chromium-trace/catapult/telemetry/
Dcloud_storage20 BUCKETS = {bucket: easy_bucket_name for easy_bucket_name, bucket
39 for bucket in BUCKETS:
41 bucket_contents[bucket] = cloud_storage.List(bucket)
59 for bucket in BUCKETS:
60 if bucket in bucket_contents and file_hash in bucket_contents[bucket]:
61 file_buckets[file_path].append(bucket)
105 buckets = [BUCKETS[bucket] for bucket in buckets]
121 args.bucket = cloud_storage.BUCKET_ALIASES[args.bucket]
131 if args.bucket in buckets:
132 buckets.remove(args.bucket)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/s3/
Dconnection.py34 from boto.s3.bucket import Bucket
75 def get_bucket_server(self, server, bucket): argument
78 def build_url_base(self, connection, protocol, server, bucket, key=''): argument
80 url_base += self.build_host(server, bucket)
81 url_base += connection.get_path(self.build_path_base(bucket, key))
84 def build_host(self, server, bucket): argument
85 if bucket == '':
88 return self.get_bucket_server(server, bucket)
90 def build_auth_path(self, bucket, key=''): argument
93 if bucket != '':
[all …]
Dbucketlistresultset.py24 def bucket_lister(bucket, prefix='', delimiter='', marker='', headers=None, argument
32 rs = bucket.get_all_keys(prefix=prefix, marker=marker,
54 def __init__(self, bucket=None, prefix='', delimiter='', marker='', argument
56 self.bucket = bucket
64 return bucket_lister(self.bucket, prefix=self.prefix,
69 def versioned_bucket_lister(bucket, prefix='', delimiter='', argument
78 rs = bucket.get_all_versions(prefix=prefix, key_marker=key_marker,
97 def __init__(self, bucket=None, prefix='', delimiter='', key_marker='', argument
99 self.bucket = bucket
108 return versioned_bucket_lister(self.bucket, prefix=self.prefix,
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/
Dstorage_uri.py159 bucket = self.get_bucket(validate, headers)
160 return bucket.delete_key(self.object_name, headers, version_id,
166 bucket = self.get_bucket(headers=headers)
168 return (v for v in bucket.list_versions(
172 return bucket.list(prefix=prefix, delimiter=delimiter,
176 bucket = self.get_bucket(validate, headers)
177 return bucket.get_all_keys(headers)
182 bucket = conn.get_bucket(self.bucket_name, validate, headers)
183 self.check_response(bucket, 'bucket', self.uri)
184 return bucket
[all …]
/external/opencv3/3rdparty/jinja2/
Dbccache.py138 def load_bytecode(self, bucket): argument
145 def dump_bytecode(self, bucket): argument
178 bucket = Bucket(environment, key, checksum)
179 self.load_bytecode(bucket)
180 return bucket
182 def set_bucket(self, bucket): argument
184 self.dump_bytecode(bucket)
209 def _get_cache_filename(self, bucket): argument
210 return path.join(self.directory, self.pattern % bucket.key)
212 def load_bytecode(self, bucket): argument
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dlocal_iterators.pass.cpp45 C::size_type b = c.bucket(0); in main()
50 b = c.bucket(1); in main()
56 b = c.bucket(2); in main()
62 b = c.bucket(3); in main()
68 b = c.bucket(4); in main()
89 C::size_type b = c.bucket(0); in main()
94 b = c.bucket(1); in main()
100 b = c.bucket(2); in main()
106 b = c.bucket(3); in main()
112 b = c.bucket(4); in main()
[all …]
Dlocal_iterators.fail.cpp43 C::size_type b = c.bucket(0); in main()
48 b = c.bucket(1); in main()
57 b = c.bucket(2); in main()
65 b = c.bucket(3); in main()
71 b = c.bucket(4); in main()
77 b = c.bucket(5); in main()
82 b = c.bucket(6); in main()
102 C::size_type b = c.bucket(0); in main()
107 b = c.bucket(1); in main()
115 b = c.bucket(2); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/
Dlocal_iterators.pass.cpp46 C::size_type b = c.bucket(0); in main()
51 b = c.bucket(1); in main()
61 b = c.bucket(2); in main()
71 b = c.bucket(3); in main()
78 b = c.bucket(4); in main()
85 b = c.bucket(5); in main()
90 b = c.bucket(6); in main()
110 C::size_type b = c.bucket(0); in main()
115 b = c.bucket(1); in main()
125 b = c.bucket(2); in main()
[all …]

12345678910>>...13