Home
last modified time | relevance | path

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

12345678910>>...62

/external/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()
106 size_t items, items2; in avtab_write_item() local
120 items = 1; /* item 0 is used for the item count */ in avtab_write_item()
122 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
[all …]
/external/qemu/android/utils/
Dreflist.c23 return l->u.items; in _areflist_items()
30 AFREE(l->u.items); in _areflist_checkSize0()
42 void** items = _areflist_items(l); in areflist_setEmpty() local
43 AARRAY_ZERO(items, l->count); in areflist_setEmpty()
57 void** items = _areflist_items(l); in areflist_indexOf() local
58 void** end = items + l->count; in areflist_indexOf()
59 void** ii = items; in areflist_indexOf()
63 return (ii - items); in areflist_indexOf()
75 void** items; in areflist_grow() local
79 items = NULL; in areflist_grow()
[all …]
/external/chromium_org/content/browser/gamepad/
Dgamepad_provider_unittest.cc70 test_data.items[0].connected = true; in TEST_F()
71 test_data.items[0].timestamp = 0; in TEST_F()
72 test_data.items[0].buttonsLength = 1; in TEST_F()
73 test_data.items[0].axesLength = 2; in TEST_F()
74 test_data.items[0].buttons[0].value = 1.f; in TEST_F()
75 test_data.items[0].buttons[0].pressed = true; in TEST_F()
76 test_data.items[0].axes[0] = -1.f; in TEST_F()
77 test_data.items[0].axes[1] = .5f; in TEST_F()
105 EXPECT_EQ(1u, output.items[0].buttonsLength); in TEST_F()
106 EXPECT_EQ(1.f, output.items[0].buttons[0].value); in TEST_F()
[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 …]
/external/chromium_org/ui/webui/resources/js/cr/ui/
Dfocus_row.js36 function FocusRow(items, opt_boundary, opt_delegate, opt_observer) { argument
38 this.items = Array.prototype.slice.call(items);
39 assert(this.items.length > 0);
55 this.items.forEach(function(item) {
67 this.activeIndex_ = this.items.indexOf(document.activeElement);
105 var wasActive = this.items[this.activeIndex_];
109 this.items.forEach(function(item) { assert(item.tabIndex == -1); });
112 if (this.items[index])
113 this.items[index].tabIndex = 0;
118 var isActive = index >= 0 && index < this.items.length;
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/media_picker/
Ddesktop_media_picker_controller_unittest.mm19 - (NSArray*)items; method in ExposedForTesting
35 - (NSArray*)items { method in ExposedForTesting
97 NSArray* items = [controller_ items];
98 EXPECT_EQ(2U, [items count]);
99 EXPECT_NSEQ(@"0", [[items objectAtIndex:0] imageTitle]);
100 EXPECT_EQ(nil, [[items objectAtIndex:0] imageRepresentation]);
101 EXPECT_NSEQ(@"1", [[items objectAtIndex:1] imageTitle]);
102 EXPECT_TRUE([[items objectAtIndex:1] imageRepresentation] != nil);
113 EXPECT_EQ(2U, [[controller_ items] count]);
160 NSArray* items = [controller_ items];
[all …]
/external/chromium_org/third_party/WebKit/Tools/Scripts/
Dsampstat41 def sum(items): argument
42 return reduce(lambda x,y: x+y, items)
44 def arithmeticMean(items): argument
45 return sum(items) / len(items)
47 def standardDeviation(mean, items): argument
48 deltaSquares = [(item - mean) ** 2 for item in items]
49 return math.sqrt(sum(deltaSquares) / (len(items) - 1))
51 def standardError(stdDev, items): argument
52 return stdDev / math.sqrt(len(items))
64 def twoSidedConfidenceInterval(items): argument
[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/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/icu/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/chromium_org/chrome/common/
Dinstant_restricted_id_cache.h50 void AddItems(const ItemVector& items);
55 void AddItemsWithRestrictedID(const ItemIDVector& items);
59 void GetCurrentItems(ItemIDVector* items) const;
97 void InstantRestrictedIDCache<T>::AddItems(const ItemVector& items) { in AddItems() argument
98 DCHECK_LE(items.size(), cache_.max_size()); in AddItems()
100 if (items.empty()) { in AddItems()
105 for (size_t i = 0; i < items.size(); ++i) { in AddItems()
107 cache_.Put(id, items[i]); in AddItems()
115 const ItemIDVector& items) { in AddItemsWithRestrictedID() argument
116 DCHECK_LE(items.size(), cache_.max_size()); in AddItemsWithRestrictedID()
[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/chromium_org/third_party/WebKit/Source/core/html/
DHTMLSelectElement.cpp242 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& items = listItems(); in value() local
243 for (unsigned i = 0; i < items.size(); i++) { in value()
244 if (isHTMLOptionElement(items[i]) && toHTMLOptionElement(items[i])->selected()) in value()
245 return toHTMLOptionElement(items[i])->value(); in value()
258 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& items = listItems(); in setValue() local
259 for (unsigned i = 0; i < items.size(); i++) { in setValue()
260 if (isHTMLOptionElement(items[i])) { in setValue()
261 if (toHTMLOptionElement(items[i])->value() == value) in setValue()
266 if (optionIndex >= static_cast<int>(items.size())) in setValue()
284 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& items = listItems(); in suggestedValue() local
[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/chromium_org/net/third_party/nss/ssl/bodge/
Dsecitem_array.c22 SECItem *items; member
47 PORT_Assert(array->items == NULL); in SECITEM_AllocArray()
54 result->items = PORT_ArenaZNewArray(arena, SECItem, len); in SECITEM_AllocArray()
56 result->items = PORT_ZNewArray(SECItem, len); in SECITEM_AllocArray()
58 if (result->items == NULL) { in SECITEM_AllocArray()
62 result->items = NULL; in SECITEM_AllocArray()
76 array->items = NULL; in SECITEM_AllocArray()
96 if (!array || !array->len || !array->items) in secitem_FreeArray()
100 SECItem *item = &array->items[i]; in secitem_FreeArray()
110 PORT_Free(array->items); in secitem_FreeArray()
[all …]
/external/smack/src/org/jivesoftware/smackx/pubsub/
DLeafNode.java53 DiscoverItems items = new DiscoverItems(); in discoverItems() local
54 items.setTo(to); in discoverItems()
55 items.setNode(getId()); in discoverItems()
56 return (DiscoverItems)SyncPacketSend.getReply(con, items); in discoverItems()
119 …PubsubPacket(Type.GET, new ItemsExtension(ItemsExtension.ItemsElementType.items, getId(), itemList… in getItems()
203 Collection<T> items = new ArrayList<T>(1); in publish() local
204 items.add((T)(item == null ? new Item() : item)); in publish()
205 publish(items); in publish()
221 public <T extends Item> void publish(Collection<T> items) in publish() argument
223 PubSub packet = createPubsubPacket(Type.SET, new PublishItem<T>(getId(), items)); in publish()
[all …]
DItemsExtension.java36 protected List<? extends PacketExtension> items; field in ItemsExtension
41 items(PubSubElementType.ITEMS, "max_items"), enumConstant
84 …ic ItemsExtension(ItemsElementType itemsType, String nodeId, List<? extends PacketExtension> items) in ItemsExtension() argument
88 this.items = items; in ItemsExtension()
109 public ItemsExtension(String nodeId, List<? extends PacketExtension> items, boolean notify) in ItemsExtension() argument
113 this.items = items; in ItemsExtension()
139 return items; in getItems()
155 if ((items == null) || (items.size() == 0)) in toXML()
177 for (PacketExtension item : items) in toXML()
/external/openssl/crypto/pqueue/
Dpqueue.c66 pitem *items; member
115 if (pq->items == NULL) in pqueue_insert()
117 pq->items = item; in pqueue_insert()
121 for(curr = NULL, next = pq->items; in pqueue_insert()
133 pq->items = item; in pqueue_insert()
153 return pq->items; in pqueue_peek()
159 pitem *item = pq->items; in pqueue_pop()
161 if (pq->items != NULL) in pqueue_pop()
162 pq->items = pq->items->next; in pqueue_pop()
173 if ( pq->items == NULL) in pqueue_find()
[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/linux-tools-perf/perf-3.12.0/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/chromium_org/chrome/browser/ui/webui/options/
Dedit_dictionary_browsertest.js48 var addWordItem = EditDictionaryOverlay.getWordListForTesting().items[0];
61 expectEquals(3, EditDictionaryOverlay.getWordListForTesting().items.length);
73 expectEquals(2, EditDictionaryOverlay.getWordListForTesting().items.length);
76 expectEquals(3, EditDictionaryOverlay.getWordListForTesting().items.length);
96 expectEquals(1, EditDictionaryOverlay.getWordListForTesting().items.length);
100 expectEquals(2, EditDictionaryOverlay.getWordListForTesting().items.length);
106 expectEquals(2, EditDictionaryOverlay.getWordListForTesting().items.length);
111 expectEquals(4, EditDictionaryOverlay.getWordListForTesting().items.length);
121 expectEquals(5, EditDictionaryOverlay.getWordListForTesting().items.length);
125 expectEquals(4, EditDictionaryOverlay.getWordListForTesting().items.length);
[all …]
/external/chromium_org/third_party/boringssl/src/ssl/pqueue/
Dpqueue.c63 pitem *items; member
108 pitem *pqueue_peek(pqueue_s *pq) { return pq->items; } in pqueue_peek()
113 for (curr = pq->items; curr; curr = curr->next) { in pqueue_find()
123 pitem *item = pq->items; in pqueue_size()
133 piterator pqueue_iterator(pqueue_s *pq) { return pq->items; } in pqueue_iterator()
151 if (pq->items == NULL) { in pqueue_insert()
152 pq->items = item; in pqueue_insert()
156 for (curr = NULL, next = pq->items; next != NULL; in pqueue_insert()
165 pq->items = item; in pqueue_insert()
185 pitem *item = pq->items; in pqueue_pop()
[all …]
/external/chromium_org/components/renderer_context_menu/
Drender_view_context_menu_base.cc35 bool IsCustomItemEnabledInternal(const std::vector<content::MenuItem>& items, in IsCustomItemEnabledInternal() argument
38 for (size_t i = 0; i < items.size(); ++i) { in IsCustomItemEnabledInternal()
40 items[i].action); in IsCustomItemEnabledInternal()
42 return items[i].enabled; in IsCustomItemEnabledInternal()
43 if (items[i].type == content::MenuItem::SUBMENU) { in IsCustomItemEnabledInternal()
44 if (IsCustomItemEnabledInternal(items[i].submenu, id)) in IsCustomItemEnabledInternal()
51 bool IsCustomItemCheckedInternal(const std::vector<content::MenuItem>& items, in IsCustomItemCheckedInternal() argument
54 for (size_t i = 0; i < items.size(); ++i) { in IsCustomItemCheckedInternal()
56 items[i].action); in IsCustomItemCheckedInternal()
58 return items[i].checked; in IsCustomItemCheckedInternal()
[all …]

12345678910>>...62