Home
last modified time | relevance | path

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

12345678910>>...35

/external/selinux/libsepol/src/
Dwrite.c60 size_t items; in ebitmap_write() local
70 items = put_entry(buf, sizeof(uint32_t), 3, fp); in ebitmap_write()
71 if (items != 3) in ebitmap_write()
76 items = put_entry(&bit, sizeof(uint32_t), 1, fp); in ebitmap_write()
77 if (items != 1) in ebitmap_write()
80 items = put_entry(&map, sizeof(uint64_t), 1, fp); in ebitmap_write()
81 if (items != 1) in ebitmap_write()
107 size_t items, items2; in avtab_write_item() local
121 items = 1; /* item 0 is used for the item count */ in avtab_write_item()
123 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DMonitorBasedArrayBlockingQueue.java69 final E[] items; field in MonitorBasedArrayBlockingQueue
97 return (++i == items.length) ? 0 : i; in inc()
105 items[putIndex] = x; in insert()
115 final E[] items = this.items; in extract() local
116 E x = items[takeIndex]; in extract()
117 items[takeIndex] = null; in extract()
128 final E[] items = this.items; in removeAt() local
131 items[takeIndex] = null; in removeAt()
138 items[i] = items[nexti]; in removeAt()
141 items[i] = null; in removeAt()
[all …]
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DUniformListItem.java46 private final List<T> items; field in UniformListItem
55 public UniformListItem(ItemType itemType, List<T> items) { in UniformListItem() argument
56 super(getAlignment(items), writeSize(items)); in UniformListItem()
62 this.items = items; in UniformListItem()
74 private static int getAlignment(List<? extends OffsettedItem> items) { in getAlignment() argument
77 return Math.max(HEADER_SIZE, items.get(0).getAlignment()); in getAlignment()
93 private static int writeSize(List<? extends OffsettedItem> items) { in writeSize() argument
98 OffsettedItem first = items.get(0); in writeSize()
99 return (items.size() * first.writeSize()) + getAlignment(items); in writeSize()
114 sb.append(items); in toString()
[all …]
DAnnotationSetItem.java42 private final AnnotationItem[] items; field in AnnotationSetItem
53 this.items = new AnnotationItem[annotations.size()]; in AnnotationSetItem()
57 items[at] = new AnnotationItem(a); in AnnotationSetItem()
117 int size = items.length; in addContents()
120 items[i] = byteData.intern(items[i]); in addContents()
128 AnnotationItem.sortByTypeIdIndex(items); in place0()
135 int size = items.length; in writeTo0()
145 AnnotationItem item = items[i]; in writeTo0()
151 items[i].annotateTo(out, " "); in writeTo0()
DMixedItemSection.java64 private final ArrayList<OffsettedItem> items; field in MixedItemSection
92 this.items = new ArrayList<OffsettedItem>(100); in MixedItemSection()
100 public Collection<? extends Item> items() { in items() method in MixedItemSection
101 return items; in items()
124 return items.size(); in size()
182 items.add(item); in add()
241 for (OffsettedItem item : items) { in writeIndexAnnotation()
273 int sz = items.size(); in prepare0()
279 OffsettedItem one = items.get(i); in prepare0()
298 Collections.sort(items); in placeItems()
[all …]
/external/chromium-trace/trace-viewer/third_party/Paste/tests/
Dtest_multidict.py14 assert d.items() == [('a', 1)]
18 assert d.items() == [('a', 1), ('b', 2), ('c', 3)]
21 assert d.items() == [('a', 1), ('c', 3), ('b', 4)]
26 assert d.items() == [('a', 1), ('c', 3), ('b', 4), ('b', 5)]
29 assert d.items() == [('a', 1), ('c', 3)]
33 assert d.items() == [('a', 1)]
37 assert d.items() == [('a', 1), ('z', item)]
52 assert d.items() == [('a', 1), ('z', []), ('y', 6), ('x', 'x test'),
83 assert d.items() == [(k('a'), u'a test')]
89 assert d.items() == [(k('a'), u'a test'), (k('b'), u'2 test'), (k('c'), u'3 test')]
[all …]
/external/mesa3d/src/mesa/program/
Dprog_cache.c47 struct cache_item **items; member
84 struct cache_item **items; in rehash() local
91 items = (struct cache_item**) malloc(size * sizeof(*items)); in rehash()
92 memset(items, 0, size * sizeof(*items)); in rehash()
95 for (c = cache->items[i]; c; c = next) { in rehash()
97 c->next = items[c->hash % size]; in rehash()
98 items[c->hash % size] = c; in rehash()
101 free(cache->items); in rehash()
102 cache->items = items; in rehash()
117 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/icu4j/main/classes/core/src/com/ibm/icu/impl/
DRow.java17 protected Object[] items; field in Row
38 items = new Object[] {a, b}; in R2()
43 items = new Object[] {a, b, c}; in R3()
48 items = new Object[] {a, b, c, d}; in R4()
53 items = new Object[] {a, b, c, d, e}; in R5()
61 return (C0) items[0]; in get0()
67 return (C1) items[1]; in get1()
73 return (C2) items[2]; in get2()
79 return (C3) items[3]; in get3()
85 return (C4) items[4]; in get4()
[all …]
/external/icu/icu4c/source/test/perf/leperf/
Dletrperf.cpp19 long *items = 0; variable
22 long items[ITEM_COUNT]; member
30 Long items[ITEM_COUNT]; member
36 if(items[i]==2) { in time_null()
47 if(obj.items[i]==2) { in time_obj()
55 long *items2 = ((OneObject*)ref)->items; in time_obj2()
75 long *items2 = ((OneObject*)ref)->items; in time_letr1()
77 if(items[i]==2) { in time_letr1()
91 long *items2 = ((OneObject*)ref)->items; in time_letr2()
98 if(items[i]==2) { in time_letr2()
[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/lldb/source/DataFormatters/
DTypeCategory.cpp120 TypeCategoryImpl::Clear (FormatCategoryItems items) in Clear() argument
122 if ( (items & eFormatCategoryItemSummary) == eFormatCategoryItemSummary ) in Clear()
124 if ( (items & eFormatCategoryItemRegexSummary) == eFormatCategoryItemRegexSummary ) in Clear()
126 if ( (items & eFormatCategoryItemFilter) == eFormatCategoryItemFilter ) in Clear()
128 if ( (items & eFormatCategoryItemRegexFilter) == eFormatCategoryItemRegexFilter ) in Clear()
131 if ( (items & eFormatCategoryItemSynth) == eFormatCategoryItemSynth ) in Clear()
133 if ( (items & eFormatCategoryItemRegexSynth) == eFormatCategoryItemRegexSynth ) in Clear()
140 FormatCategoryItems items) in Delete() argument
143 if ( (items & eFormatCategoryItemSummary) == eFormatCategoryItemSummary ) in Delete()
145 if ( (items & eFormatCategoryItemRegexSummary) == eFormatCategoryItemRegexSummary ) in Delete()
[all …]
/external/boringssl/src/ssl/pqueue/
Dpqueue.c66 pitem *items; member
109 assert(pq->items == NULL); in pqueue_free()
113 pitem *pqueue_peek(pqueue_s *pq) { return pq->items; } in pqueue_peek()
118 for (curr = pq->items; curr; curr = curr->next) { in pqueue_find()
128 pitem *item = pq->items; in pqueue_size()
138 piterator pqueue_iterator(pqueue_s *pq) { return pq->items; } in pqueue_iterator()
156 if (pq->items == NULL) { in pqueue_insert()
157 pq->items = item; in pqueue_insert()
161 for (curr = NULL, next = pq->items; next != NULL; in pqueue_insert()
170 pq->items = item; in pqueue_insert()
[all …]
/external/linux-tools-perf/src/tools/perf/util/
Dthread_map.c26 int items; in thread_map__new_by_pid() local
31 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid()
32 if (items <= 0) in thread_map__new_by_pid()
35 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items); in thread_map__new_by_pid()
37 for (i = 0; i < items; i++) in thread_map__new_by_pid()
39 threads->nr = items; in thread_map__new_by_pid()
42 for (i=0; i<items; i++) in thread_map__new_by_pid()
64 int max_threads = 32, items, i; in thread_map__new_by_uid() local
96 items = scandir(path, &namelist, filter, NULL); in thread_map__new_by_uid()
97 if (items <= 0) in thread_map__new_by_uid()
[all …]
/external/harfbuzz_ng/src/
Dgen-arabic-table.py69 for value,short in short_value.items():
146 for value,short in short_value.items():
161 items = fields[5].split (' ')
162 shape, items = items[0][1:-1], tuple (int (x, 16) for x in items[1:])
168 if len (items) != 1:
170 if len (items) != 2 or items[0] != 0x0644 or items[1] not in [0x0622, 0x0623, 0x0625, 0x0627]:
175 if items not in ligatures:
176 ligatures[items] = {}
177 ligatures[items][shape] = c
181 if items[0] not in names:
[all …]
/external/chromium-trace/trace-viewer/tracing/third_party/vinn/third_party/parse5/lib/tree_construction/
Dopen_element_stack.js85 this.items = []; property
98 if (this.items[i] === element) {
115 this.current = this.items[this.stackTop];
123 this.items[++this.stackTop] = element;
142 this.items[idx] = newElement;
151 this.items.splice(insertionIdx, 0, newElement);
229 if (this.items[i] === element) {
230 this.items.splice(i, 1);
241 var element = this.items[1];
252 return --elementIdx >= 0 ? this.items[elementIdx] : null;
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DotTables.py169 items = list(mapping.items())
171 gidItems = [(getGlyphID(a), getGlyphID(b)) for a,b in items]
172 sortableItems = sorted(zip(gidItems, items))
205 items = sorted(self.mapping.items())
206 for inGlyph, outGlyph in items:
274 items = list(classDefs.items())
278 for i in range(len(items)):
279 glyphName, cls = items[i]
280 items[i] = getGlyphID(glyphName), glyphName, cls
281 items.sort()
[all …]
DotBase.py46 stats = sorted([(v, k) for k, v in cachingStats.items()])
195 self.items = []
243 for item in self.items:
255 items = list(self.items) # make a shallow copy
257 numItems = len(items)
259 item = items[i]
263 items[i] = packULong(item.pos - pos)
266 items[i] = packUShort(item.pos - pos)
281 for item in table.items:
292 items = items[i+1:]
[all …]
/external/icu/icu4c/source/tools/toolutil/
Dpackage.cpp396 items=NULL; in Package()
427 if(items[idx].isDataOwned) { in ~Package()
428 free(items[idx].data); in ~Package()
432 uprv_free((void*)items); in ~Package()
572 memset(items, 0, itemCount*sizeof(Item)); in readPackage()
644 items[i].name=s+prefixLength; in readPackage()
647 items[i].data=(uint8_t *)inBytes+ds->readUInt32(inEntries[i].dataOffset); in readPackage()
649 items[i-1].length=(int32_t)(items[i].data-items[i-1].data); in readPackage()
652 typeEnum=getTypeEnumForInputData(items[i-1].data, items[i-1].length, &errorCode); in readPackage()
654 …fprintf(stderr, "icupkg: not an ICU data file: item \"%s\" in \"%s\"\n", items[i-1].name, filename… in readPackage()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp518 QStringList items = in add_p2p_group_client() local
525 for (int i = 0; i < items.size(); i++) { in add_p2p_group_client()
526 QString str = items.at(i); in add_p2p_group_client()
552 item->setData(items.join(QString("\n")), peer_role_details); in add_p2p_group_client()
831 QStringList items = text.split(' '); in event_notify() local
832 QString uuid = items[1]; in event_notify()
833 QString addr = items[2]; in event_notify()
844 items = text.mid(pos + 1, pos2 - pos - 1). in event_notify()
846 name = items[0]; in event_notify()
847 items.append(addr); in event_notify()
[all …]
/external/icu/icu4c/source/test/depstest/
Ddependencies.py37 items = {} variable
97 global items, _line_number, _groups_to_be_defined
106 dep_item = items.get(dep)
112 items[dep] = {"type": "group"}
113 if library_name: items[dep]["library"] = library_name
142 global items, libraries, _line_number, _groups_to_be_defined
154 if name in items:
157 item = items[name] = {"type": "library", "name": name}
163 if name not in items:
169 item = items[name]
[all …]
/external/chromium-trace/trace-viewer/third_party/WebOb/webob/
Dmultidict.py34 items = list(args[0].iteritems())
36 items = list(args[0].items())
38 items = list(args[0])
39 self._items = items
43 self._items.extend(kw.items())
142 for key, value in self.items():
160 for key, val in self.items():
165 items = self._items
167 for i in range(len(items)-1, -1, -1):
168 if items[i][0] == key:
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_state_cache.c90 for (c = cache->items[hash % cache->size]; c; c = c->next) in search_cache()
97 for (c = cache->items[hash % cache->size]; c; c = c->next) { in search_cache()
109 struct brw_cache_item **items; in rehash() local
114 items = (struct brw_cache_item**) calloc(1, size * sizeof(*items)); in rehash()
117 for (c = cache->items[i]; c; c = next) { in rehash()
119 c->next = items[c->hash % size]; in rehash()
120 items[c->hash % size] = c; in rehash()
123 FREE(cache->items); in rehash()
124 cache->items = items; in rehash()
204 for (item = cache->items[i]; item; item = item->next) { in brw_try_upload_using_copy()
[all …]
/external/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/
Dfx_zlib_zutil.c222 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
225 ulg bsize = (ulg)items*size;
281 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size)
284 return _halloc((long)items, size);
302 extern voidp calloc OF((uInt items, uInt size));
306 voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
308 unsigned items;
311 if (opaque) items += size - size; /* make compiler happy */
312 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
313 (voidpf)calloc(items, size);
[all …]
/external/chromium-trace/trace-viewer/third_party/Paste/paste/util/
Dmultidict.py29 items = args[0].iteritems()
31 items = args[0].items()
33 items = args[0]
34 self._items = list(items)
117 items = self._items
119 for i in range(len(items)-1, -1, -1):
120 if type(items[i][0]) == type(key) and items[i][0] == key:
121 del items[i]
168 self._items.extend(other.items())
179 items = ', '.join(['(%r, %r)' % v for v in self._items])
[all …]

12345678910>>...35