/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | gles_extensions_autogen.cpp | 38 ExtensionInfoMap map; in GetExtensionInfoMap() 42 map["GL_KHR_blend_equation_advanced"] = esOnlyExtension(&Extensions::blendEquationAdvancedKHR); in GetExtensionInfoMap() 43 map["GL_EXT_blend_func_extended"] = enableableExtension(&Extensions::blendFuncExtendedEXT); in GetExtensionInfoMap() 44 map["GL_EXT_blend_minmax"] = enableableExtension(&Extensions::blendMinmaxEXT); in GetExtensionInfoMap() 45 map["GL_EXT_buffer_storage"] = enableableExtension(&Extensions::bufferStorageEXT); in GetExtensionInfoMap() 46 map["GL_EXT_clip_control"] = enableableExtension(&Extensions::clipControlEXT); in GetExtensionInfoMap() 47 map["GL_EXT_clip_cull_distance"] = enableableExtension(&Extensions::clipCullDistanceEXT); in GetExtensionInfoMap() 48 map["GL_APPLE_clip_distance"] = enableableExtension(&Extensions::clipDistanceAPPLE); in GetExtensionInfoMap() 49 map["GL_EXT_color_buffer_float"] = enableableExtension(&Extensions::colorBufferFloatEXT); in GetExtensionInfoMap() 50 map["GL_EXT_color_buffer_half_floa in GetExtensionInfoMap() [all...] |
/third_party/pulseaudio/src/pulse/ |
H A D | channelmap.c | 172 m->map[c] = PA_CHANNEL_POSITION_INVALID; in pa_channel_map_init() 183 m->map[0] = PA_CHANNEL_POSITION_MONO; in pa_channel_map_init_mono() 193 m->map[0] = PA_CHANNEL_POSITION_LEFT; in pa_channel_map_init_stereo() 194 m->map[1] = PA_CHANNEL_POSITION_RIGHT; in pa_channel_map_init_stereo() 214 m->map[0] = PA_CHANNEL_POSITION_MONO; in pa_channel_map_init_auto() 218 m->map[0] = PA_CHANNEL_POSITION_FRONT_LEFT; in pa_channel_map_init_auto() 219 m->map[1] = PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER; in pa_channel_map_init_auto() 220 m->map[2] = PA_CHANNEL_POSITION_FRONT_CENTER; in pa_channel_map_init_auto() 221 m->map[3] = PA_CHANNEL_POSITION_FRONT_RIGHT; in pa_channel_map_init_auto() 222 m->map[ in pa_channel_map_init_auto() 466 pa_channel_map_snprint(char *s, size_t l, const pa_channel_map *map) pa_channel_map_snprint() argument 519 pa_channel_map map; pa_channel_map_parse() local 616 pa_channel_map_valid(const pa_channel_map *map) pa_channel_map_valid() argument 631 pa_channel_map_compatible(const pa_channel_map *map, const pa_sample_spec *ss) pa_channel_map_compatible() argument 660 pa_channel_map_can_balance(const pa_channel_map *map) pa_channel_map_can_balance() argument 673 pa_channel_map_can_fade(const pa_channel_map *map) pa_channel_map_can_fade() argument 686 pa_channel_map_can_lfe_balance(const pa_channel_map *map) pa_channel_map_can_lfe_balance() argument 699 pa_channel_map_to_name(const pa_channel_map *map) pa_channel_map_to_name() argument 753 pa_channel_map_to_pretty_name(const pa_channel_map *map) pa_channel_map_to_pretty_name() argument 809 pa_channel_map_has_position(const pa_channel_map *map, pa_channel_position_t p) pa_channel_map_has_position() argument 822 pa_channel_map_mask(const pa_channel_map *map) pa_channel_map_mask() argument [all...] |
/third_party/libbpf/src/ |
H A D | hashmap.c | 4 * Generic non-thread safe hash map implementation. 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument 41 map->hash_fn = hash_fn; in hashmap__init() 42 map->equal_fn = equal_fn; in hashmap__init() 43 map->ctx = ctx; in hashmap__init() 45 map->buckets = NULL; in hashmap__init() 46 map->cap = 0; in hashmap__init() 47 map->cap_bits = 0; in hashmap__init() 48 map->sz = 0; in hashmap__init() 55 struct hashmap *map in hashmap__new() local 63 hashmap__clear(struct hashmap *map) hashmap__clear() argument 76 hashmap__free(struct hashmap *map) hashmap__free() argument 85 hashmap__size(const struct hashmap *map) hashmap__size() argument 90 hashmap__capacity(const struct hashmap *map) hashmap__capacity() argument 95 hashmap_needs_to_grow(struct hashmap *map) hashmap_needs_to_grow() argument 101 hashmap_grow(struct hashmap *map) hashmap_grow() argument 130 hashmap_find_entry(const struct hashmap *map, const long key, size_t hash, struct hashmap_entry ***pprev, struct hashmap_entry **entry) hashmap_find_entry() argument 154 hashmap_insert(struct hashmap *map, long key, long value, enum hashmap_insert_strategy strategy, long *old_key, long *old_value) hashmap_insert() argument 206 hashmap_find(const struct hashmap *map, long key, long *value) hashmap_find() argument 220 hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value) hashmap_delete() argument [all...] |
H A D | hashmap.h | 4 * Generic non-thread safe hash map implementation. 83 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 88 void hashmap__clear(struct hashmap *map); 89 void hashmap__free(struct hashmap *map); 91 size_t hashmap__size(const struct hashmap *map); 92 size_t hashmap__capacity(const struct hashmap *map); 129 int hashmap_insert(struct hashmap *map, long key, long value, 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ 134 hashmap_insert((map), (long)(key), (long)(value), (strategy), \ 138 #define hashmap__add(map, ke [all...] |
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
H A D | MapFieldTest.cs | 52 var map = new MapField<string, ForeignMessage> { { "x", message } }; in Clone_ClonesMessages() 53 var clone = map.Clone(); in Clone_ClonesMessages() 54 map["x"].C = 30; in Clone_ClonesMessages() 68 var map = new MapField<int, T>(); in TestNullValues() 70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues() 71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues() 72 map.Add(1, nonNullValue); in TestNullValues() 73 map[1] = nonNullValue; in TestNullValues() 79 var map = new MapField<string, ForeignMessage>(); in Add_ForbidsNullKeys() 80 Assert.Throws<ArgumentNullException>(() => map in Add_ForbidsNullKeys() [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_map.c | 36 void nghttp2_map_init(nghttp2_map *map, nghttp2_mem *mem) { in nghttp2_map_init() argument 37 map->mem = mem; in nghttp2_map_init() 38 map->tablelen = 0; in nghttp2_map_init() 39 map->tablelenbits = 0; in nghttp2_map_init() 40 map->table = NULL; in nghttp2_map_init() 41 map->size = 0; in nghttp2_map_init() 44 void nghttp2_map_free(nghttp2_map *map) { in nghttp2_map_free() argument 45 if (!map) { in nghttp2_map_free() 49 nghttp2_mem_free(map->mem, map in nghttp2_map_free() 52 nghttp2_map_each_free(nghttp2_map *map, int (*func)(void *data, void *ptr), void *ptr) nghttp2_map_each_free() argument 68 nghttp2_map_each(nghttp2_map *map, int (*func)(void *data, void *ptr), void *ptr) nghttp2_map_each() argument 130 nghttp2_map_print_distance(nghttp2_map *map) nghttp2_map_print_distance() argument 185 map_resize(nghttp2_map *map, uint32_t new_tablelen, uint32_t new_tablelenbits) map_resize() argument 218 nghttp2_map_insert(nghttp2_map *map, nghttp2_map_key_type key, void *data) nghttp2_map_insert() argument 248 nghttp2_map_find(nghttp2_map *map, nghttp2_map_key_type key) nghttp2_map_find() argument 278 nghttp2_map_remove(nghttp2_map *map, nghttp2_map_key_type key) nghttp2_map_remove() argument 329 nghttp2_map_clear(nghttp2_map *map) nghttp2_map_clear() argument 338 nghttp2_map_size(nghttp2_map *map) nghttp2_map_size() argument [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_map.c | 36 void ngtcp2_map_init(ngtcp2_map *map, const ngtcp2_mem *mem) { in ngtcp2_map_init() argument 37 map->mem = mem; in ngtcp2_map_init() 38 map->tablelen = 0; in ngtcp2_map_init() 39 map->tablelenbits = 0; in ngtcp2_map_init() 40 map->table = NULL; in ngtcp2_map_init() 41 map->size = 0; in ngtcp2_map_init() 44 void ngtcp2_map_free(ngtcp2_map *map) { in ngtcp2_map_free() argument 45 if (!map) { in ngtcp2_map_free() 49 ngtcp2_mem_free(map->mem, map in ngtcp2_map_free() 52 ngtcp2_map_each_free(ngtcp2_map *map, int (*func)(void *data, void *ptr), void *ptr) ngtcp2_map_each_free() argument 68 ngtcp2_map_each(ngtcp2_map *map, int (*func)(void *data, void *ptr), void *ptr) ngtcp2_map_each() argument 129 ngtcp2_map_print_distance(ngtcp2_map *map) ngtcp2_map_print_distance() argument 183 map_resize(ngtcp2_map *map, uint32_t new_tablelen, uint32_t new_tablelenbits) map_resize() argument 216 ngtcp2_map_insert(ngtcp2_map *map, ngtcp2_map_key_type key, void *data) ngtcp2_map_insert() argument 246 ngtcp2_map_find(ngtcp2_map *map, ngtcp2_map_key_type key) ngtcp2_map_find() argument 276 ngtcp2_map_remove(ngtcp2_map *map, ngtcp2_map_key_type key) ngtcp2_map_remove() argument 327 ngtcp2_map_clear(ngtcp2_map *map) ngtcp2_map_clear() argument 336 ngtcp2_map_size(ngtcp2_map *map) ngtcp2_map_size() argument [all...] |
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_map.c | 36 void nghttp2_map_init(nghttp2_map *map, nghttp2_mem *mem) { in nghttp2_map_init() argument 37 map->mem = mem; in nghttp2_map_init() 38 map->tablelen = 0; in nghttp2_map_init() 39 map->tablelenbits = 0; in nghttp2_map_init() 40 map->table = NULL; in nghttp2_map_init() 41 map->size = 0; in nghttp2_map_init() 44 void nghttp2_map_free(nghttp2_map *map) { in nghttp2_map_free() argument 45 if (!map) { in nghttp2_map_free() 49 nghttp2_mem_free(map->mem, map in nghttp2_map_free() 52 nghttp2_map_each_free(nghttp2_map *map, int (*func)(void *data, void *ptr), void *ptr) nghttp2_map_each_free() argument 68 nghttp2_map_each(nghttp2_map *map, int (*func)(void *data, void *ptr), void *ptr) nghttp2_map_each() argument 129 nghttp2_map_print_distance(nghttp2_map *map) nghttp2_map_print_distance() argument 183 map_resize(nghttp2_map *map, uint32_t new_tablelen, uint32_t new_tablelenbits) map_resize() argument 216 nghttp2_map_insert(nghttp2_map *map, nghttp2_map_key_type key, void *data) nghttp2_map_insert() argument 246 nghttp2_map_find(nghttp2_map *map, nghttp2_map_key_type key) nghttp2_map_find() argument 276 nghttp2_map_remove(nghttp2_map *map, nghttp2_map_key_type key) nghttp2_map_remove() argument 327 nghttp2_map_clear(nghttp2_map *map) nghttp2_map_clear() argument 336 nghttp2_map_size(nghttp2_map *map) nghttp2_map_size() argument [all...] |
/third_party/node/deps/ngtcp2/nghttp3/lib/ |
H A D | nghttp3_map.c | 37 void nghttp3_map_init(nghttp3_map *map, const nghttp3_mem *mem) { in nghttp3_map_init() argument 38 map->mem = mem; in nghttp3_map_init() 39 map->tablelen = 0; in nghttp3_map_init() 40 map->tablelenbits = 0; in nghttp3_map_init() 41 map->table = NULL; in nghttp3_map_init() 42 map->size = 0; in nghttp3_map_init() 45 void nghttp3_map_free(nghttp3_map *map) { in nghttp3_map_free() argument 46 if (!map) { in nghttp3_map_free() 50 nghttp3_mem_free(map->mem, map in nghttp3_map_free() 53 nghttp3_map_each_free(nghttp3_map *map, int (*func)(void *data, void *ptr), void *ptr) nghttp3_map_each_free() argument 69 nghttp3_map_each(nghttp3_map *map, int (*func)(void *data, void *ptr), void *ptr) nghttp3_map_each() argument 130 nghttp3_map_print_distance(nghttp3_map *map) nghttp3_map_print_distance() argument 184 map_resize(nghttp3_map *map, uint32_t new_tablelen, uint32_t new_tablelenbits) map_resize() argument 217 nghttp3_map_insert(nghttp3_map *map, nghttp3_map_key_type key, void *data) nghttp3_map_insert() argument 247 nghttp3_map_find(nghttp3_map *map, nghttp3_map_key_type key) nghttp3_map_find() argument 277 nghttp3_map_remove(nghttp3_map *map, nghttp3_map_key_type key) nghttp3_map_remove() argument 328 nghttp3_map_clear(nghttp3_map *map) nghttp3_map_clear() argument 337 nghttp3_map_size(nghttp3_map *map) nghttp3_map_size() argument [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
H A D | MapFieldTest.cs | 53 var map = new MapField<string, ForeignMessage> { { "x", message } }; in Clone_ClonesMessages() 54 var clone = map.Clone(); in Clone_ClonesMessages() 55 map["x"].C = 30; in Clone_ClonesMessages() 69 var map = new MapField<int, T>(); in TestNullValues() 71 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues() 72 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues() 73 map.Add(1, nonNullValue); in TestNullValues() 74 map[1] = nonNullValue; in TestNullValues() 80 var map = new MapField<string, ForeignMessage>(); in Add_ForbidsNullKeys() 81 Assert.Throws<ArgumentNullException>(() => map in Add_ForbidsNullKeys() [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
H A D | SerialMapTests.cpp | 24 TestSerialMap map; in TEST() local 27 ASSERT_TRUE(map.Empty()); in TEST() 29 // Iterating on empty map 1) works 2) doesn't produce any values in TEST() 30 for (int value : map.IterateAll()) { in TEST() 36 map.Enqueue(1, 0); in TEST() 37 map.Enqueue(2, 0); in TEST() 38 map.Enqueue(std::move(3), 1); in TEST() 40 // Iterating over a non-empty map produces the expected result in TEST() 42 for (int value : map.IterateAll()) { in TEST() 49 // Clear works and makes the map empt in TEST() 61 TestSerialMap map; TEST() local 82 TestSerialMap map; TEST() local 103 TestSerialMap map; TEST() local 124 TestSerialMap map; TEST() local 147 TestSerialMap map; TEST() local [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | SmallSortedMapTest.java | 130 for (SmallSortedMap<Integer, Integer> map : allMaps) { in runPutAndGetTest() 131 assertEquals(numElements, map.size()); in runPutAndGetTest() 133 assertEquals(Integer.valueOf(i + 1), map.get(i)); in runPutAndGetTest() 143 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testReplacingPut() 145 assertNull(map.put(i, i + 1)); in testReplacingPut() 146 assertNull(map.remove(i + 1)); in testReplacingPut() 149 assertEquals(Integer.valueOf(i + 1), map.put(i, i + 2)); in testReplacingPut() 154 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testRemove() 156 assertNull(map.put(i, i + 1)); in testRemove() 157 assertNull(map in testRemove() [all...] |
/third_party/nghttp2/tests/ |
H A D | nghttp2_map_test.c | 47 nghttp2_map map; in test_nghttp2_map() local 48 nghttp2_map_init(&map, nghttp2_mem_default()); in test_nghttp2_map() 56 CU_ASSERT(0 == nghttp2_map_insert(&map, foo.key, &foo)); in test_nghttp2_map() 57 CU_ASSERT(strcmp("foo", ((strentry *)nghttp2_map_find(&map, 1))->str) == 0); in test_nghttp2_map() 58 CU_ASSERT(1 == nghttp2_map_size(&map)); in test_nghttp2_map() 61 nghttp2_map_insert(&map, FOO.key, &FOO)); in test_nghttp2_map() 63 CU_ASSERT(1 == nghttp2_map_size(&map)); in test_nghttp2_map() 64 CU_ASSERT(strcmp("foo", ((strentry *)nghttp2_map_find(&map, 1))->str) == 0); in test_nghttp2_map() 66 CU_ASSERT(0 == nghttp2_map_insert(&map, bar.key, &bar)); in test_nghttp2_map() 67 CU_ASSERT(2 == nghttp2_map_size(&map)); in test_nghttp2_map() 119 nghttp2_map map; test_nghttp2_map_functional() local 175 nghttp2_map map; test_nghttp2_map_each_free() local 194 nghttp2_map map; test_nghttp2_map_clear() local [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | clocale_mbfuncs.c | 15 wchar_t wc, map[257], wtmp[257]; in main() local 29 if ((map[i]=btowc(i)) == WEOF) { in main() 34 if (map[j]==map[i]) in main() 35 t_error("bytes %.2x and %.2x map to same wchar_t %.4x\n", j, i, (unsigned)map[i]); in main() 40 if (map[i]==WEOF) continue; in main() 41 if (wctob(map[i]) != i) in main() 42 t_error("wctob failed to convert wchar_t %.4x back to byte %.2x\n", (unsigned)map[i], i); in main() 47 if (wcschr(map in main() [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-map.cc | 27 #include "hb-map.hh" 31 * SECTION:hb-map 32 * @title: hb-map 45 * Creates a new, initially empty map. 54 hb_map_t *map; in hb_map_create() local 56 if (!(map = hb_object_create<hb_map_t> ())) in hb_map_create() 59 map->init_shallow (); in hb_map_create() 61 return map; in hb_map_create() 81 * @map: A map 90 hb_map_reference(hb_map_t *map) hb_map_reference() argument 106 hb_map_destroy(hb_map_t *map) hb_map_destroy() argument 130 hb_map_set_user_data(hb_map_t *map, hb_user_data_key_t *key, void * data, hb_destroy_func_t destroy, hb_bool_t replace) hb_map_set_user_data() argument 152 hb_map_get_user_data(hb_map_t *map, hb_user_data_key_t *key) hb_map_get_user_data() argument 170 hb_map_allocation_successful(const hb_map_t *map) hb_map_allocation_successful() argument 187 hb_map_set(hb_map_t *map, hb_codepoint_t key, hb_codepoint_t value) hb_map_set() argument 205 hb_map_get(const hb_map_t *map, hb_codepoint_t key) hb_map_get() argument 221 hb_map_del(hb_map_t *map, hb_codepoint_t key) hb_map_del() argument 240 hb_map_has(const hb_map_t *map, hb_codepoint_t key) hb_map_has() argument 256 hb_map_clear(hb_map_t *map) hb_map_clear() argument 272 hb_map_is_empty(const hb_map_t *map) hb_map_is_empty() argument 288 hb_map_get_population(const hb_map_t *map) hb_map_get_population() argument [all...] |
/third_party/libwebsockets/lib/jose/jwe/enc/ |
H A D | aescbc.c | 42 if (jwe->jws.map.len[LJWE_ATAG] != (unsigned int)hlen / 2) { in lws_jwe_encrypt_cbc_hs() 44 hlen / 2, jwe->jws.map.len[LJWE_ATAG]); in lws_jwe_encrypt_cbc_hs() 48 if (jwe->jws.map.len[LJWE_IV] != 16) { in lws_jwe_encrypt_cbc_hs() 50 jwe->jws.map.len[LJWE_IV]); in lws_jwe_encrypt_cbc_hs() 72 lws_get_random(jwe->jws.context, (void *)jwe->jws.map.buf[LJWE_IV], 16); in lws_jwe_encrypt_cbc_hs() 96 n = lws_genaes_crypt(&aesctx, (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_encrypt_cbc_hs() 97 jwe->jws.map.len[LJWE_CTXT], in lws_jwe_encrypt_cbc_hs() 98 (uint8_t *)jwe->jws.map.buf[LJWE_CTXT], in lws_jwe_encrypt_cbc_hs() 99 (uint8_t *)jwe->jws.map.buf[LJWE_IV], in lws_jwe_encrypt_cbc_hs() 102 jwe->jws.map in lws_jwe_encrypt_cbc_hs() [all...] |
/third_party/mesa3d/src/mesa/vbo/ |
H A D | vbo_exec_eval.c | 40 exec->eval.map1[attr].map = NULL; in clear_active_eval1() 46 exec->eval.map2[attr].map = NULL; in clear_active_eval2() 50 struct gl_1d_map *map ) in set_active_eval1() 53 if (!exec->eval.map1[attr].map) { in set_active_eval1() 54 exec->eval.map1[attr].map = map; in set_active_eval1() 60 struct gl_2d_map *map ) in set_active_eval2() 63 if (!exec->eval.map2[attr].map) { in set_active_eval2() 64 exec->eval.map2[attr].map = map; in set_active_eval2() 132 struct gl_1d_map *map = exec->eval.map1[attr].map; vbo_exec_do_EvalCoord1f() local 153 struct gl_1d_map *map = exec->eval.map1[0].map; vbo_exec_do_EvalCoord1f() local 179 struct gl_2d_map *map = exec->eval.map2[attr].map; vbo_exec_do_EvalCoord2f() local 203 struct gl_2d_map *map = exec->eval.map2[0].map; vbo_exec_do_EvalCoord2f() local [all...] |
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_map/ |
H A D | main.c | 39 lws_map_t *map; in main() local 52 map = lws_map_create(&info); in main() 53 if (!map) { in main() 57 if (!lws_map_item_create_ks(map, "abc", (lws_map_value_t)"def", 3)) { in main() 61 if (!lws_map_item_create_ks(map, "123", (lws_map_value_t)"4567", 4)) { in main() 65 item = lws_map_item_lookup_ks(map, "abc"); in main() 77 item = lws_map_item_lookup_ks(map, "123"); in main() 89 item = lws_map_item_lookup_ks(map, "nope"); in main() 98 lws_map_destroy(&map); in main() 108 map in main() [all...] |
/third_party/libwebsockets/lib/misc/ |
H A D | lws-struct-lejp.c | 34 const lws_struct_map_t *map = a->map_st[ctx->pst_sp]; in lws_struct_schema_only_lejp_cb() local 36 lejp_callback cb = map->lejp_cb; in lws_struct_schema_only_lejp_cb() 54 int m, child_members = (int)map->child_map_size; in lws_struct_schema_only_lejp_cb() 57 const lws_struct_map_t *child = &map->child_map[m]; in lws_struct_schema_only_lejp_cb() 60 * We matched on him... map is pointing in lws_struct_schema_only_lejp_cb() 70 map++; in lws_struct_schema_only_lejp_cb() 81 /* If "schema", then look for a matching name in the map array */ in lws_struct_schema_only_lejp_cb() 84 if (strcmp(ctx->buf, map->colname)) { in lws_struct_schema_only_lejp_cb() 85 map++; in lws_struct_schema_only_lejp_cb() 91 a->dest = lwsac_use_zero(&a->ac, map in lws_struct_schema_only_lejp_cb() 124 lws_struct_lejp_push(struct lejp_ctx *ctx, lws_struct_args_t *args, const lws_struct_map_t *map, uint8_t *ch) lws_struct_lejp_push() argument 145 const lws_struct_map_t *map, *pmap = NULL; lws_struct_default_lejp_cb() local 495 lws_struct_json_serialize_create(const lws_struct_map_t *map, size_t map_entries, int flags, const void *ptoplevel) lws_struct_json_serialize_create() argument 547 const lws_struct_map_t *map; lws_struct_json_serialize() local [all...] |
H A D | lws-struct-sqlite.c | 40 const lws_struct_map_t *map = a->map_st[0]; in lws_struct_sq3_deser_cb() local 57 if (!cv[n] || strcmp(cn[n], map->colname)) in lws_struct_sq3_deser_cb() 60 switch (map->type) { in lws_struct_sq3_deser_cb() 62 if (map->aux == sizeof(signed char)) { in lws_struct_sq3_deser_cb() 64 pc = (signed char *)(u + map->ofs); in lws_struct_sq3_deser_cb() 68 if (map->aux == sizeof(short)) { in lws_struct_sq3_deser_cb() 70 ps = (short *)(u + map->ofs); in lws_struct_sq3_deser_cb() 74 if (map->aux == sizeof(int)) { in lws_struct_sq3_deser_cb() 76 pi = (int *)(u + map->ofs); in lws_struct_sq3_deser_cb() 80 if (map in lws_struct_sq3_deser_cb() 243 const lws_struct_map_t *map = schema->child_map; _lws_struct_sq3_ser_one() local 452 const lws_struct_map_t *map = schema->child_map; lws_struct_sq3_create_table() local [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | map-prototype-foreach.js | 16 var map = new Map(); 18 /* Test when the map object keys are strings */ 20 map.set ("foo" + i, i); 21 assert (map.size === i + 1); 26 map.forEach (function (value, key) { 34 map.clear (); 35 assert (map.size === 0); 38 /* Test when the map object keys are numbers */ 40 map.set (i + 0.5, "foo" + i); 41 assert (map [all...] |
/third_party/node/deps/v8/src/objects/ |
H A D | map.cc | 5 #include "src/objects/map.h" 20 #include "src/objects/map-updater.h" 44 return ReadOnlyRoots(isolate).null_value().map(); in GetPrototypeChainRootMap() 48 base::Optional<JSFunction> Map::GetConstructorFunction(Map map, in GetConstructorFunction() argument 51 if (map.IsPrimitiveMap()) { in GetConstructorFunction() 52 int const constructor_function_index = map.GetConstructorFunctionIndex(); in GetConstructorFunction() 61 Map map; in GetInstanceTypeMap() local 65 map = roots.name##_map(); \ in GetInstanceTypeMap() 71 map = roots.name##_map(); \ in GetInstanceTypeMap() 78 return map; in GetInstanceTypeMap() 81 GetVisitorId(Map map) GetVisitorId() argument 432 CopyWithField(Isolate* isolate, Handle<Map> map, Handle<Name> name, Handle<FieldType> type, PropertyAttributes attributes, PropertyConstness constness, Representation representation, TransitionFlag flag) CopyWithField() argument 468 CopyWithConstant(Isolate* isolate, Handle<Map> map, Handle<Name> name, Handle<Object> constant, PropertyAttributes attributes, TransitionFlag flag) CopyWithConstant() argument 875 ContainsMap(MapHandles const& maps, Map map) ContainsMap() argument 935 FindClosestElementsTransition(Isolate* isolate, Map map, ElementsKind to_kind, ConcurrencyMode cmode) FindClosestElementsTransition() argument 975 TransitionElementsTo(Isolate* isolate, Handle<Map> map, ElementsKind to_kind) TransitionElementsTo() argument 1027 AddMissingElementsTransitions(Isolate* isolate, Handle<Map> map, ElementsKind to_kind) AddMissingElementsTransitions() argument 1059 TryAsElementsKind(Isolate* isolate, Handle<Map> map, ElementsKind kind, ConcurrencyMode cmode) TryAsElementsKind() argument 1068 AsElementsKind(Isolate* isolate, Handle<Map> map, ElementsKind kind) AsElementsKind() argument 1256 CopyNormalized(Isolate* isolate, Handle<Map> map, PropertyNormalizationMode mode) CopyNormalized() argument 1291 TransitionToImmutableProto(Isolate* isolate, Handle<Map> map) TransitionToImmutableProto() argument 1298 EnsureInitialMap(Isolate* isolate, Handle<Map> map) EnsureInitialMap() argument 1323 CopyInitialMapNormalized(Isolate* isolate, Handle<Map> map, PropertyNormalizationMode mode) CopyInitialMapNormalized() argument 1330 CopyInitialMap(Isolate* isolate, Handle<Map> map, int instance_size, int inobject_properties, int unused_property_fields) CopyInitialMap() argument 1355 CopyDropDescriptors(Isolate* isolate, Handle<Map> map) CopyDropDescriptors() argument 1368 ShareDescriptor(Isolate* isolate, Handle<Map> map, Handle<DescriptorArray> descriptors, Descriptor* descriptor) ShareDescriptor() argument 1437 CopyReplaceDescriptors(Isolate* isolate, Handle<Map> map, Handle<DescriptorArray> descriptors, TransitionFlag flag, MaybeHandle<Name> maybe_name, const char* reason, SimpleTransitionFlag simple_flag) CopyReplaceDescriptors() argument 1506 Handle<Map> map = split_map; AddMissingTransitions() local 1542 CopyAsElementsKind(Isolate* isolate, Handle<Map> map, ElementsKind kind, TransitionFlag flag) CopyAsElementsKind() argument 1613 Handle<Map> map = AsLanguageMode() local 1628 CopyForElementsTransition(Isolate* isolate, Handle<Map> map) CopyForElementsTransition() argument 1651 Copy(Isolate* isolate, Handle<Map> map, const char* reason) Copy() argument 1689 CopyForPreventExtensions( Isolate* isolate, Handle<Map> map, PropertyAttributes attrs_to_add, Handle<Symbol> transition_marker, const char* reason, bool old_map_is_dictionary_elements_kind) CopyForPreventExtensions() argument 1786 UpdateDescriptorForValue(Isolate* isolate, Handle<Map> map, InternalIndex descriptor, PropertyConstness constness, Handle<Object> value) UpdateDescriptorForValue() argument 1808 PrepareForDataProperty(Isolate* isolate, Handle<Map> map, InternalIndex descriptor, PropertyConstness constness, Handle<Object> value) PrepareForDataProperty() argument 1819 TransitionToDataProperty(Isolate* isolate, Handle<Map> map, Handle<Name> name, Handle<Object> value, PropertyAttributes attributes, PropertyConstness constness, StoreOrigin store_origin) TransitionToDataProperty() argument 1904 TransitionToAccessorProperty(Isolate* isolate, Handle<Map> map, Handle<Name> name, InternalIndex descriptor, Handle<Object> getter, Handle<Object> setter, PropertyAttributes attributes) TransitionToAccessorProperty() argument 2017 CopyAddDescriptor(Isolate* isolate, Handle<Map> map, Descriptor* descriptor, TransitionFlag flag) CopyAddDescriptor() argument 2040 CopyInsertDescriptor(Isolate* isolate, Handle<Map> map, Descriptor* descriptor, TransitionFlag flag) CopyInsertDescriptor() argument 2056 CopyReplaceDescriptor(Isolate* isolate, Handle<Map> map, Handle<DescriptorArray> descriptors, Descriptor* descriptor, InternalIndex insertion_index, TransitionFlag flag) CopyReplaceDescriptor() argument 2223 SetShouldBeFastPrototypeMap(Handle<Map> map, bool value, Isolate* isolate) SetShouldBeFastPrototypeMap() argument 2233 GetOrCreatePrototypeChainValidityCell(Handle<Map> map, Isolate* isolate) GetOrCreatePrototypeChainValidityCell() argument 2270 IsPrototypeChainInvalidated(Map map) IsPrototypeChainInvalidated() argument 2281 SetPrototype(Isolate* isolate, Handle<Map> map, Handle<HeapObject> prototype, bool enable_prototype_setup_mode) SetPrototype() argument 2304 TransitionToPrototype(Isolate* isolate, Handle<Map> map, Handle<HeapObject> prototype) TransitionToPrototype() argument [all...] |
/third_party/pulseaudio/src/tests/ |
H A D | hashmap-test.c | 37 pa_hashmap* map; in START_TEST() local 49 map = pa_hashmap_new(int_trivial_hash_func, int_compare_func); in START_TEST() 51 if ((put_ret = pa_hashmap_put(map, &entry.key, &entry)) != 0) { in START_TEST() 55 if ((size_ret = pa_hashmap_size(map)) != 1) { in START_TEST() 59 if ((get_ret = pa_hashmap_get(map, &lookup_key)) != &entry) { in START_TEST() 63 if ((put_ret = pa_hashmap_put(map, &entry.key, &entry)) == 0) { in START_TEST() 67 if ((size_ret = pa_hashmap_size(map)) != 1) { in START_TEST() 71 if ((get_ret = pa_hashmap_remove(map, &lookup_key)) != &entry) { in START_TEST() 75 if ((size_ret = pa_hashmap_size(map)) != 0) { in START_TEST() 79 pa_hashmap_free(map); in START_TEST() 87 pa_hashmap* map; START_TEST() local 120 pa_hashmap* map; START_TEST() local 172 pa_hashmap* map; START_TEST() local [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | hwcontext_drm.c | 107 DRMMapping *map = hwmap->priv; in drm_unmap_frame() local 109 for (int i = 0; i < map->nb_regions; i++) { in drm_unmap_frame() 111 struct dma_buf_sync sync = { .flags = DMA_BUF_SYNC_END | map->sync_flags }; in drm_unmap_frame() 112 ioctl(map->object[i], DMA_BUF_IOCTL_SYNC, &sync); in drm_unmap_frame() 114 munmap(map->address[i], map->length[i]); in drm_unmap_frame() 117 av_free(map); in drm_unmap_frame() 127 DRMMapping *map; in drm_map_frame() local 132 map = av_mallocz(sizeof(*map)); in drm_map_frame() 225 AVFrame *map; drm_transfer_data_from() local 256 AVFrame *map; drm_transfer_data_to() local [all...] |
/third_party/ltp/lib/ |
H A D | tst_buffers.c | 12 struct map { struct 16 struct map *next; 19 static struct map *maps; 21 static void setup_canary(struct map *map) in setup_canary() argument 24 char *buf = map->addr; in setup_canary() 26 for (i = 0; i < map->buf_shift/2; i++) { in setup_canary() 28 buf[map->buf_shift - i - 1] = c; in setup_canary() 33 static void check_canary(struct map *map) in check_canary() argument 52 struct map *map = SAFE_MALLOC(sizeof(struct map)); tst_alloc() local [all...] |