Home
last modified time | relevance | path

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

/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb/
Dtest_layer2.py62 self.assertEqual(table.schema, Schema.create(hash_key=('foo', 'N')))
67 schema=Schema.create(hash_key=('foo', 'N')))
69 self.assertEqual(table.schema, Schema.create(hash_key=('foo', 'N')))
90 s1 = Schema.create(hash_key=('foo', 'N'))
91 s2 = Schema.create(hash_key=('foo', 'N'))
95 s1 = Schema.create(hash_key=('foo', 'N'))
96 s2 = Schema.create(hash_key=('bar', 'N'))
97 s3 = Schema.create(hash_key=('foo', 'S'))
102 s1 = Schema.create(hash_key=('foo', 'N'), range_key=('bar', 'S'))
103 s2 = Schema.create(hash_key=('foo', 'N'), range_key=('bar', 'S'))
[all …]
/external/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_cache.c48 static unsigned hash_key(const void *key, unsigned key_size) in hash_key() function
63 static unsigned hash_key(const unsigned char *p, int n) in hash_key() function
80 return hash_key((item), item_size); in cso_construct_key()
187 unsigned hash_key, enum cso_cache_type type, in cso_insert_state() argument
193 return cso_hash_insert(hash, hash_key, state); in cso_insert_state()
198 unsigned hash_key, enum cso_cache_type type) in cso_find_state() argument
202 return cso_hash_find(hash, hash_key); in cso_find_state()
207 unsigned hash_key, in cso_hash_find_data_from_template() argument
211 struct cso_hash_iter iter = cso_hash_find(hash, hash_key); in cso_hash_find_data_from_template()
226 unsigned hash_key, enum cso_cache_type type, in cso_find_state_template() argument
[all …]
Dcso_cache.h156 unsigned hash_key, enum cso_cache_type type,
159 unsigned hash_key, enum cso_cache_type type);
161 unsigned hash_key, enum cso_cache_type type,
165 void * cso_take_state(struct cso_cache *sc, unsigned hash_key,
Dcso_context.c372 unsigned key_size, hash_key; in cso_set_blend() local
379 hash_key = cso_construct_key((void*)templ, key_size); in cso_set_blend()
380 iter = cso_find_state_template(ctx->cache, hash_key, CSO_BLEND, in cso_set_blend()
394 iter = cso_insert_state(ctx->cache, hash_key, CSO_BLEND, cso); in cso_set_blend()
435 unsigned hash_key = cso_construct_key((void*)templ, key_size); in cso_set_depth_stencil_alpha() local
437 hash_key, in cso_set_depth_stencil_alpha()
455 iter = cso_insert_state(ctx->cache, hash_key, in cso_set_depth_stencil_alpha()
498 unsigned hash_key = cso_construct_key((void*)templ, key_size); in cso_set_rasterizer() local
500 hash_key, in cso_set_rasterizer()
516 iter = cso_insert_state(ctx->cache, hash_key, CSO_RASTERIZER, cso); in cso_set_rasterizer()
[all …]
Dcso_hash.h120 unsigned hash_key,
/external/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_cache.c82 unsigned hash_key; in create_key() local
86 hash_key = cso_construct_key(key, size); in create_key()
87 return hash_key; in create_key()
93 unsigned hash_key = create_key(key); in translate_cache_find() local
96 hash_key, in translate_cache_find()
102 cso_hash_insert(cache->hash, hash_key, translate); in translate_cache_find()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/dynamodb/
Dtable.py254 def get_item(self, hash_key, range_key=None, argument
285 return self.layer2.get_item(self, hash_key, range_key,
290 def has_item(self, hash_key, range_key=None, consistent_read=False): argument
319 self.get_item(hash_key, range_key=range_key,
321 attributes_to_get=[hash_key],
328 def new_item(self, hash_key=None, range_key=None, attrs=None, argument
379 return item_class(self, hash_key, range_key, attrs)
381 def query(self, hash_key, *args, **kw): argument
448 return self.layer2.query(self, hash_key, *args, **kw)
Dlayer2.py238 hash_key = last_evaluated_key['HashKeyElement']
239 d = {'HashKeyElement': self.dynamizer.encode(hash_key)}
245 def build_key_from_values(self, schema, hash_key, range_key=None): argument
266 dynamodb_value = self.dynamizer.encode(hash_key)
444 hash_key = (hash_key_name, get_dynamodb_type(hash_key_proto_value))
450 return Schema.create(hash_key, range_key)
452 def get_item(self, table, hash_key, range_key=None, argument
486 key = self.build_key_from_values(table.schema, hash_key, range_key)
490 item = item_class(table, hash_key, range_key, response['Item'])
586 item.hash_key, item.range_key)
[all …]
Dbatch.py66 hash_key, range_key = key
68 hash_key = key
71 hash_key, range_key)
119 hash_key, range_key = key
121 hash_key = key
124 hash_key, range_key)
Ditem.py39 def __init__(self, table, hash_key=None, range_key=None, attrs=None): argument
46 if hash_key is None:
47 hash_key = attrs.get(self._hash_key_name, None)
48 self[self._hash_key_name] = hash_key
60 def hash_key(self): member in Item
Dschema.py51 def create(cls, hash_key, range_key=None): argument
69 'AttributeName': hash_key[0],
70 'AttributeType': hash_key[1],
/external/mesa3d/src/mesa/program/
Dprog_cache.c58 hash_key(const void *key, GLuint key_size) in hash_key() function
182 const GLuint hash = hash_key(key, keysize); in _mesa_search_program_cache()
203 const GLuint hash = hash_key(key, keysize); in _mesa_program_cache_insert()
231 const GLuint hash = hash_key(key, keysize); in _mesa_shader_cache_insert()
/external/mesa3d/src/glsl/
Dglsl_types.cpp516 char hash_key[128]; in record_key_hash() local
519 size = snprintf(hash_key, sizeof(hash_key), "%08x", key->length); in record_key_hash()
522 if (size >= sizeof(hash_key)) in record_key_hash()
525 size += snprintf(& hash_key[size], sizeof(hash_key) - size, in record_key_hash()
529 return hash_table_string_hash(& hash_key); in record_key_hash()
/external/vboot_reference/tests/
Dvb21_api_tests.c66 const struct vb2_private_key *hash_key; in reset_common_data() local
92 vb2_private_key_hash(&hash_key, mock_hash_alg); in reset_common_data()
106 hash_key, NULL); in reset_common_data()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/dynamodb/
Dtest_layer2.py133 assert foobar_item.hash_key == item1_key
142 assert foobar_item.hash_key == 'foo'
162 assert item1_copy.hash_key == item1.hash_key
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_state_cache.c54 hash_key(struct brw_cache_item *item) in hash_key() function
146 hash = hash_key(&lookup); in brw_search_cache()
282 hash = hash_key(item); in brw_upload_cache()
/external/dbus/bus/
Dactivation.c756 char *hash_key, *hash_value; in populate_environment() local
758 if (!_dbus_string_steal_data (&key, &hash_key)) in populate_environment()
765 hash_key, hash_value)) in populate_environment()
1632 char *hash_key; in bus_activation_set_environment_variable() local
1637 hash_key = NULL; in bus_activation_set_environment_variable()
1639 hash_key = _dbus_strdup (key); in bus_activation_set_environment_variable()
1641 if (hash_key == NULL) in bus_activation_set_environment_variable()
1650 hash_key, hash_value)) in bus_activation_set_environment_variable()
1657 dbus_free (hash_key); in bus_activation_set_environment_variable()
/external/mesa3d/src/gallium/auxiliary/util/
Du_vbuf.c200 unsigned key_size, hash_key; in u_vbuf_set_vertex_elements_internal() local
210 hash_key = cso_construct_key((void*)&velems_state, key_size); in u_vbuf_set_vertex_elements_internal()
211 iter = cso_find_state_template(mgr->cso_cache, hash_key, CSO_VELEMENTS, in u_vbuf_set_vertex_elements_internal()
221 iter = cso_insert_state(mgr->cso_cache, hash_key, CSO_VELEMENTS, cso); in u_vbuf_set_vertex_elements_internal()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb2/
Dtest_table.py22 hash_key = HashKey('hello')
23 self.assertEqual(hash_key.name, 'hello')
24 self.assertEqual(hash_key.data_type, STRING)
25 self.assertEqual(hash_key.attr_type, 'HASH')
27 self.assertEqual(hash_key.definition(), {
31 self.assertEqual(hash_key.schema(), {
/external/libvncserver/libvncserver/
Dtight.c1361 int hash_key, idx, new_idx, count; in PaletteInsert() local
1363 hash_key = (bpp == 16) ? HASH_FUNC16(rgb) : HASH_FUNC32(rgb); in PaletteInsert()
1365 pnode = palette.hash[hash_key]; in PaletteInsert()
1408 palette.hash[hash_key] = pnode; in PaletteInsert()