Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 3219) sorted by relevance

12345678910>>...129

/external/selinux/libsepol/src/
Dwrite.c67 size_t items; in ebitmap_write() local
77 items = put_entry(buf, sizeof(uint32_t), 3, fp); in ebitmap_write()
78 if (items != 3) in ebitmap_write()
83 items = put_entry(&bit, sizeof(uint32_t), 1, fp); in ebitmap_write()
84 if (items != 1) in ebitmap_write()
87 items = put_entry(&map, sizeof(uint64_t), 1, fp); in ebitmap_write()
88 if (items != 1) in ebitmap_write()
114 size_t items, items2; in avtab_write_item() local
128 items = 1; /* item 0 is used for the item count */ in avtab_write_item()
130 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
[all …]
/external/python/cpython3/Lib/test/
Dtest_dictviews.py13 it = type({}.items())
42 items = d.items()
43 self.assertEqual(len(items), 2)
44 self.assertEqual(set(items), {(1, 10), ("a", "ABC")})
45 self.assertEqual(items, {(1, 10), ("a", "ABC")})
46 self.assertNotEqual(items, {(1, 10), ("a", "ABC"), "junk"})
47 self.assertNotEqual(items, {(1, 10), ("a", "def")})
48 self.assertNotEqual(items, {(1, 10)})
49 self.assertNotEqual(items, 42)
50 self.assertIn((1, 10), items)
[all …]
Dtest_pulldom.py46 items = pulldom.parseString(SMALL_SAMPLE)
47 evt, node = next(items)
51 evt, node = next(items)
57 evt, node = next(items)
59 evt, node = next(items)
64 evt, node = next(items)
67 evt, node = next(items)
70 evt, node = next(items)
74 evt, node = next(items)
76 evt, node = next(items)
[all …]
/external/oj-libjdwp/src/share/back/
Dbag.c32 void *items; /* hold items in bag, must align on itemSize */ member
45 theBag->items = jvmtiAllocate(initialAllocation * itemSize); in bagCreateBag()
46 if (theBag->items == NULL) { in bagCreateBag()
63 (void)memcpy(newBag->items, oldBag->items, newBag->used * newBag->itemSize); in bagDup()
72 jvmtiDeallocate(theBag->items); in bagDestroyBag()
80 char *items = theBag->items; in bagFind() local
82 char *itemsEnd = items + (itemSize * theBag->used); in bagFind()
84 for (; items < itemsEnd; items += itemSize) { in bagFind()
86 if (*((void**)items) == key) { in bagFind()
87 return items; in bagFind()
[all …]
/external/python/jinja/tests/
Dtest_asyncfilters.py44 def test_groupby(env_async, items): argument
51 assert tmpl.render(items=items).split("|") == [
60 def test_groupby_tuple_index(env_async, items): argument
67 assert tmpl.render(items=items) == "a:1:2|b:1|"
99 out = tmpl.render(items=int_items)
107 assert tmpl.render(items=string_items) == "&lt;foo&gt;<span>foo</span>"
122 def test_simple_reject(env_async, items): argument
124 assert tmpl.render(items=items) == "2|4"
128 def test_bool_reject(env_async, items): argument
130 assert tmpl.render(items=items) == "None|False|0"
[all …]
/external/pthreadpool/bench/
Dthroughput.cc12 const size_t items = static_cast<size_t>(state.range(0)); in pthreadpool_parallelize_1d() local
18 items * threads, in pthreadpool_parallelize_1d()
24 state.SetItemsProcessed(int64_t(state.iterations()) * items); in pthreadpool_parallelize_1d()
35 const size_t items = static_cast<size_t>(state.range(0)); in pthreadpool_parallelize_1d_tile_1d() local
41 items * threads, 1, in pthreadpool_parallelize_1d_tile_1d()
47 state.SetItemsProcessed(int64_t(state.iterations()) * items); in pthreadpool_parallelize_1d_tile_1d()
58 const size_t items = static_cast<size_t>(state.range(0)); in pthreadpool_parallelize_2d() local
64 threads, items, in pthreadpool_parallelize_2d()
70 state.SetItemsProcessed(int64_t(state.iterations()) * items); in pthreadpool_parallelize_2d()
81 const size_t items = static_cast<size_t>(state.range(0)); in pthreadpool_parallelize_2d_tile_1d() local
[all …]
/external/llvm-project/openmp/libomptarget/deviceRTLs/common/
Domptargeti.h22 uint8_t rc = (items.flags & TaskDescr_SchedMask) + 1; in GetRuntimeSched()
30 items.flags &= ~TaskDescr_SchedMask; in SetRuntimeSched()
32 items.flags |= val; in SetRuntimeSched()
43 items.flags = 0; in InitLevelZeroTaskDescr()
44 items.threadId = 0; // is master in InitLevelZeroTaskDescr()
45 items.runtimeChunkSize = 1; // preferred chunking statik with chunk 1 in InitLevelZeroTaskDescr()
58 items.flags = in InitLevelOneTaskDescr()
60 items.threadId = in InitLevelOneTaskDescr()
62 items.runtimeChunkSize = 1; // preferred chunking statik with chunk 1 in InitLevelOneTaskDescr()
68 items = sourceTaskDescr->items; in CopyData()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DMonitorBasedArrayBlockingQueue.java62 final E[] items; field in MonitorBasedArrayBlockingQueue
88 return (++i == items.length) ? 0 : i; in inc()
96 items[putIndex] = x; in insert()
106 final E[] items = this.items; in extract() local
107 E x = items[takeIndex]; in extract()
108 items[takeIndex] = null; in extract()
119 final E[] items = this.items; in removeAt() local
122 items[takeIndex] = null; in removeAt()
129 items[i] = items[nexti]; in removeAt()
132 items[i] = null; in removeAt()
[all …]
/external/guava/android/guava-tests/benchmark/com/google/common/util/concurrent/
DMonitorBasedArrayBlockingQueue.java62 final E[] items; field in MonitorBasedArrayBlockingQueue
88 return (++i == items.length) ? 0 : i; in inc()
96 items[putIndex] = x; in insert()
106 final E[] items = this.items; in extract() local
107 E x = items[takeIndex]; in extract()
108 items[takeIndex] = null; in extract()
119 final E[] items = this.items; in removeAt() local
122 items[takeIndex] = null; in removeAt()
129 items[i] = items[nexti]; in removeAt()
132 items[i] = null; in removeAt()
[all …]
/external/swiftshader/third_party/astc-encoder/Source/
Dastc_integer_sequence.cpp323 int items, in compute_ise_bitcount() argument
329 return items; in compute_ise_bitcount()
331 return (8 * items + 4) / 5; in compute_ise_bitcount()
333 return 2 * items; in compute_ise_bitcount()
335 return (7 * items + 2) / 3; in compute_ise_bitcount()
337 return (13 * items + 4) / 5; in compute_ise_bitcount()
339 return 3 * items; in compute_ise_bitcount()
341 return (10 * items + 2) / 3; in compute_ise_bitcount()
343 return (18 * items + 4) / 5; in compute_ise_bitcount()
345 return items * 4; in compute_ise_bitcount()
[all …]
/external/minigbm/
Dhelpers_array.c15 void **items; member
29 array->items = calloc(array->allocations, sizeof(*array->items)); in drv_array_init()
41 new_items = realloc(array->items, array->allocations * sizeof(*array->items)); in drv_array_append()
43 array->items = new_items; in drv_array_append()
48 array->items[array->size] = item; in drv_array_append()
60 free(array->items[idx]); in drv_array_remove()
61 array->items[idx] = NULL; in drv_array_remove()
64 array->items[i - 1] = array->items[i]; in drv_array_remove()
70 new_items = realloc(array->items, array->allocations * sizeof(*array->items)); in drv_array_remove()
72 array->items = new_items; in drv_array_remove()
[all …]
/external/harfbuzz_ng/src/
Dhb-map.hh71 item_t *items; member
79 items = nullptr; in init_shallow()
88 free (items); in fini_shallow()
89 items = nullptr; in fini_shallow()
125 item_t *old_items = items; in resize()
131 items = new_items; in resize()
153 if (unlikely (!items)) return vINVALID; in get()
155 return items[i].is_real () && items[i] == key ? items[i].value : vINVALID; in get()
177 if (items) in clear()
178 + hb_iter (items, mask + 1) in clear()
[all …]
Dgen-arabic-table.py70 for value,short in short_value.items():
147 for value,short in short_value.items():
162 items = fields[5].split (' ')
163 shape, items = items[0][1:-1], tuple (int (x, 16) for x in items[1:])
169 if len (items) != 1:
171 if len (items) != 2 or items[0] != 0x0644 or items[1] not in [0x0622, 0x0623, 0x0625, 0x0627]:
176 if items not in ligatures:
177 ligatures[items] = {}
178 ligatures[items][shape] = c
182 if items[0] not in names:
[all …]
Dhb-object.hh48 hb_vector_t<item_t> items; member
50 void init () { items.init (); } in init()
56 item_t *item = items.find (v); in replace_or_insert()
69 item = items.push (v); in replace_or_insert()
79 item_t *item = items.find (v); in remove()
83 *item = items[items.length - 1]; in remove()
84 items.pop (); in remove()
96 item_t *item = items.find (v); in find()
107 item_t *item = items.find (v); in find_or_insert()
109 item = items.push (v); in find_or_insert()
[all …]
/external/cldr/tools/st-prom-exporter/
Dindex.js15 const items = { variable
97 items.oks.inc({instance});
98 items.fetchErr.set({ instance }, 200);
99 items.fetchTime.set({ instance }, new Date().getTime()/1000);
100 items.ok.set({instance}, Number(res.SurveyOK));
101 items.isSetup.set({instance}, Number(res.isSetup));
106 items.pages.set({instance}, Number(pages));
107 items.users.set({instance}, Number(users));
108 items.memtotal.set({instance}, Number(memtotal));
109 items.memfree.set({instance}, Number(memfree));
[all …]
/external/mesa3d/src/mesa/program/
Dprog_cache.c49 struct cache_item **items; member
86 struct cache_item **items; in rehash() local
93 items = malloc(size * sizeof(*items)); in rehash()
94 memset(items, 0, size * sizeof(*items)); in rehash()
97 for (c = cache->items[i]; c; c = next) { in rehash()
99 c->next = items[c->hash % size]; in rehash()
100 items[c->hash % size] = c; in rehash()
103 free(cache->items); in rehash()
104 cache->items = items; in rehash()
119 for (c = cache->items[i]; c; c = next) { in clear_cache()
[all …]
/external/llvm/utils/llvm-build/llvmbuild/
Dcomponentinfo.py25 def parse_items(items, has_dependencies = True): argument
27 kwargs['name'] = items.get_string('name')
28 kwargs['parent'] = items.get_optional_string('parent')
30 kwargs['dependencies'] = items.get_list('dependencies')
98 def parse(subpath, items): argument
99 kwargs = ComponentInfo.parse_items(items, has_dependencies = False)
116 def parse_items(items): argument
117 kwargs = ComponentInfo.parse_items(items)
118 kwargs['library_name'] = items.get_optional_string('library_name')
119 kwargs['required_libraries'] = items.get_list('required_libraries')
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DRow.java25 protected Object[] items; field in Row
49 items = new Object[] {a, b}; in R2()
57 items = new Object[] {a, b, c}; in R3()
65 items = new Object[] {a, b, c, d}; in R4()
73 items = new Object[] {a, b, c, d, e}; in R5()
81 return (C0) items[0]; in get0()
87 return (C1) items[1]; in get1()
93 return (C2) items[2]; in get2()
99 return (C3) items[3]; in get3()
105 return (C4) items[4]; in get4()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DRow.java21 protected Object[] items; field in Row
42 items = new Object[] {a, b}; in R2()
47 items = new Object[] {a, b, c}; in R3()
52 items = new Object[] {a, b, c, d}; in R4()
57 items = new Object[] {a, b, c, d, e}; in R5()
65 return (C0) items[0]; in get0()
71 return (C1) items[1]; in get1()
77 return (C2) items[2]; in get2()
83 return (C3) items[3]; in get3()
89 return (C4) items[4]; in get4()
[all …]
/external/icu/icu4c/source/test/perf/leperf/
Dletrperf.cpp25 long *items = 0; variable
28 long items[ITEM_COUNT]; member
36 Long items[ITEM_COUNT]; member
42 if(items[i]==2) { in time_null()
53 if(obj.items[i]==2) { in time_obj()
61 long *items2 = ((OneObject*)ref)->items; in time_obj2()
81 long *items2 = ((OneObject*)ref)->items; in time_letr1()
83 if(items[i]==2) { in time_letr1()
97 long *items2 = ((OneObject*)ref)->items; in time_letr2()
104 if(items[i]==2) { in time_letr2()
[all …]
/external/llvm-project/lldb/source/DataFormatters/
DTypeCategory.cpp144 void TypeCategoryImpl::Clear(FormatCategoryItems items) { in Clear() argument
145 if ((items & eFormatCategoryItemValue) == eFormatCategoryItemValue) in Clear()
147 if ((items & eFormatCategoryItemRegexValue) == eFormatCategoryItemRegexValue) in Clear()
150 if ((items & eFormatCategoryItemSummary) == eFormatCategoryItemSummary) in Clear()
152 if ((items & eFormatCategoryItemRegexSummary) == in Clear()
156 if ((items & eFormatCategoryItemFilter) == eFormatCategoryItemFilter) in Clear()
158 if ((items & eFormatCategoryItemRegexFilter) == in Clear()
162 if ((items & eFormatCategoryItemSynth) == eFormatCategoryItemSynth) in Clear()
164 if ((items & eFormatCategoryItemRegexSynth) == eFormatCategoryItemRegexSynth) in Clear()
168 bool TypeCategoryImpl::Delete(ConstString name, FormatCategoryItems items) { in Delete() argument
[all …]
/external/deqp/framework/delibs/decpp/
DdeRandom.cpp110 static const int items[] = { 3, 42, 45, 123, 654, -123, -90, 0, 43 }; in Random_selfTest() local
130 rnd.choose(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), &itemsDst[0], numItemsPicked); in Random_selfTest()
139 static const int items[] = { 3, 42, 45, 123, 654, -123, -90, 0, 43 }; in Random_selfTest() local
144 DE_TEST_ASSERT(expected[i] == rnd.choose<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items))); in Random_selfTest()
150 static const int items[] = { 3, 42, 45, 123, 654, -123, -90, 0 }; in Random_selfTest() local
152 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(items) == DE_LENGTH_OF_ARRAY(weights)); in Random_selfTest()
157 …DE_TEST_ASSERT(expected[i] == rnd.chooseWeighted<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), … in Random_selfTest()
163 int items[] = { 3, 42, 45, 123, 654, -123, -90, 0, 43 }; in Random_selfTest() local
164 static const int expected[][DE_LENGTH_OF_ARRAY(items)] = in Random_selfTest()
181 rnd.shuffle(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items)); in Random_selfTest()
[all …]
/external/igt-gpu-tools/tests/i915/
Di915_query.c45 __i915_query_items(int fd, struct drm_i915_query_item *items, uint32_t n_items) in __i915_query_items() argument
49 .items_ptr = to_user_pointer(items), in __i915_query_items()
54 #define i915_query_items(fd, items, n_items) do { \ argument
55 igt_assert_eq(__i915_query_items(fd, items, n_items), 0); \
58 #define i915_query_items_err(fd, items, n_items, err) do { \ argument
59 igt_assert_eq(__i915_query_items(fd, items, n_items), -err); \
97 struct drm_i915_query_item items[2]; in test_query_garbage_items() local
105 memset(items, 0, sizeof(items)); in test_query_garbage_items()
106 items[0].query_id = DRM_I915_QUERY_TOPOLOGY_INFO; in test_query_garbage_items()
107 items[0].flags = 42; in test_query_garbage_items()
[all …]
/external/autotest/cli/
Dtopic_common.py242 for items in add_on:
245 result.update(__get_items(items, split_spaces=False))
249 items = getattr(options, self.inline_option)
250 result.update(__get_items(items))
383 for (errmsg, items) in self.failed[what_failed].iteritems():
384 if len(items) == 0:
386 elif items == set(['']):
388 elif len(items) == 1:
391 errmsg = errmsg.replace(FAIL_TAG, items.pop())
393 errmsg = '%s (%s)' % (errmsg, items.pop())
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DLocatedItems.java14 private List<T> items = null; field in LocatedItems
18 if (items == null) { in getItems()
21 return items; in getItems()
74 if (items == null) {
75 items = new ArrayList<>(1);
77 items.add(item);
86 if (items != null) {
87 for (T item : items) {
90 List<T> mergedItems = items;
92 otherLocatedItems.items = mergedItems;
[all …]

12345678910>>...129