/external/selinux/libsepol/src/ |
D | write.c | 62 size_t items; in ebitmap_write() local 72 items = put_entry(buf, sizeof(uint32_t), 3, fp); in ebitmap_write() 73 if (items != 3) in ebitmap_write() 78 items = put_entry(&bit, sizeof(uint32_t), 1, fp); in ebitmap_write() 79 if (items != 1) in ebitmap_write() 82 items = put_entry(&map, sizeof(uint64_t), 1, fp); in ebitmap_write() 83 if (items != 1) in ebitmap_write() 109 size_t items, items2; in avtab_write_item() local 123 items = 1; /* item 0 is used for the item count */ in avtab_write_item() 125 buf32[items++] = cpu_to_le32(val); in avtab_write_item() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_dictviews.py | 12 it = type({}.items()) 41 items = d.items() 42 self.assertEqual(len(items), 2) 43 self.assertEqual(set(items), {(1, 10), ("a", "ABC")}) 44 self.assertEqual(items, {(1, 10), ("a", "ABC")}) 45 self.assertNotEqual(items, {(1, 10), ("a", "ABC"), "junk"}) 46 self.assertNotEqual(items, {(1, 10), ("a", "def")}) 47 self.assertNotEqual(items, {(1, 10)}) 48 self.assertNotEqual(items, 42) 49 self.assertIn((1, 10), items) [all …]
|
D | test_pulldom.py | 45 items = pulldom.parseString(SMALL_SAMPLE) 46 evt, node = next(items) 50 evt, node = next(items) 56 evt, node = next(items) 58 evt, node = next(items) 63 evt, node = next(items) 66 evt, node = next(items) 69 evt, node = next(items) 73 evt, node = next(items) 75 evt, node = next(items) [all …]
|
D | test_weakset.py | 21 self.items = [ustr(c) for c in ('a', 'b', 'c')] 30 self.s = WeakSet(self.items) 31 self.d = dict.fromkeys(self.items) 65 self.assertEqual(self.s, WeakSet(self.items)) 69 x = WeakSet(self.items + self.items2) 73 self.assertEqual(len(u), len(self.items) + len(self.items2)) 76 self.assertEqual(len(u), len(self.items) + len(self.items2)) 92 self.assertEqual(i.intersection(C(self.items)), x) 111 self.assertEqual(self.s, WeakSet(self.items)) 124 self.assertEqual(self.s, WeakSet(self.items)) [all …]
|
/external/oj-libjdwp/src/share/back/ |
D | bag.c | 32 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/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
D | MonitorBasedArrayBlockingQueue.java | 69 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/autotest/cli/ |
D | topic_common.py | 220 for items in add_on: 223 result.update(__get_items(items, split_spaces=False)) 227 items = getattr(options, self.inline_option) 228 result.update(__get_items(items)) 362 for (errmsg, items) in self.failed[what_failed].iteritems(): 363 if len(items) == 0: 365 elif items == set(['']): 367 elif len(items) == 1: 370 errmsg = errmsg.replace(FAIL_TAG, items.pop()) 372 errmsg = '%s (%s)' % (errmsg, items.pop()) [all …]
|
/external/llvm/utils/llvm-build/llvmbuild/ |
D | componentinfo.py | 25 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/mesa3d/src/mesa/program/ |
D | prog_cache.c | 48 struct cache_item **items; member 85 struct cache_item **items; in rehash() local 92 items = malloc(size * sizeof(*items)); in rehash() 93 memset(items, 0, size * sizeof(*items)); in rehash() 96 for (c = cache->items[i]; c; c = next) { in rehash() 98 c->next = items[c->hash % size]; in rehash() 99 items[c->hash % size] = c; in rehash() 102 free(cache->items); in rehash() 103 cache->items = items; in rehash() 118 for (c = cache->items[i]; c; c = next) { in clear_cache() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Row.java | 23 protected Object[] items; field in Row 44 items = new Object[] {a, b}; in R2() 49 items = new Object[] {a, b, c}; in R3() 54 items = new Object[] {a, b, c, d}; in R4() 59 items = new Object[] {a, b, c, d, e}; in R5() 67 return (C0) items[0]; in get0() 73 return (C1) items[1]; in get1() 79 return (C2) items[2]; in get2() 85 return (C3) items[3]; in get3() 91 return (C4) items[4]; in get4() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Row.java | 19 protected Object[] items; field in Row 40 items = new Object[] {a, b}; in R2() 45 items = new Object[] {a, b, c}; in R3() 50 items = new Object[] {a, b, c, d}; in R4() 55 items = new Object[] {a, b, c, d, e}; in R5() 63 return (C0) items[0]; in get0() 69 return (C1) items[1]; in get1() 75 return (C2) items[2]; in get2() 81 return (C3) items[3]; in get3() 87 return (C4) items[4]; in get4() [all …]
|
/external/icu/icu4c/source/test/perf/leperf/ |
D | letrperf.cpp | 25 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/deqp/framework/delibs/decpp/ |
D | deRandom.cpp | 110 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/harfbuzz_ng/src/ |
D | gen-arabic-table.py | 69 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/python/cpython2/Lib/test/ |
D | test_weakset.py | 41 self.items = [SomeClass(c) for c in ('a', 'b', 'c')] 50 self.s = WeakSet(self.items) 51 self.d = dict.fromkeys(self.items) 85 self.assertEqual(self.s, WeakSet(self.items)) 89 x = WeakSet(self.items + self.items2) 93 self.assertEqual(len(u), len(self.items) + len(self.items2)) 96 self.assertEqual(len(u), len(self.items) + len(self.items2)) 112 self.assertEqual(i.intersection(C(self.items)), x) 131 self.assertEqual(self.s, WeakSet(self.items)) 144 self.assertEqual(self.s, WeakSet(self.items)) [all …]
|
D | test_ordered_dict.py | 16 self.assertEqual(sorted(OrderedDict(dict(pairs)).items()), pairs) # dict input 17 self.assertEqual(sorted(OrderedDict(**dict(pairs)).items()), pairs) # kwds input 18 self.assertEqual(list(OrderedDict(pairs).items()), pairs) # pairs input 20 c=3, e=5).items()), pairs) # mixed input 23 self.assertEqual(list(OrderedDict(self=42).items()), [('self', 42)]) 24 self.assertEqual(list(OrderedDict(other=42).items()), [('other', 42)]) 32 self.assertEqual(list(d.items()), 41 self.assertEqual(sorted(od.items()), pairs) # dict input 44 self.assertEqual(sorted(od.items()), pairs) # kwds input 47 self.assertEqual(list(od.items()), pairs) # pairs input [all …]
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | otTables.py | 169 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 …]
|
/external/webrtc/webrtc/libjingle/xmpp/ |
D | pubsubtasks_unittest.cc | 34 const std::vector<buzz::PubSubItem>& items) { in OnReceiveUpdate() argument 35 OnItems(items); in OnReceiveUpdate() 39 const std::vector<buzz::PubSubItem>& items) { in OnRequestResult() argument 40 OnItems(items); in OnRequestResult() 43 void OnItems(const std::vector<buzz::PubSubItem>& items) { in OnItems() argument 44 for (std::vector<buzz::PubSubItem>::const_iterator item = items.begin(); in OnItems() 45 item != items.end(); ++item) { in OnItems() 51 this->items.push_back(handled_item); in OnItems() 67 std::vector<HandledPubSubItem> items; member in TestPubSubTasksListener 126 ASSERT_EQ(2U, listener->items.size()); in TEST_F() [all …]
|
D | pubsubtasks.cc | 92 std::vector<PubSubItem>* items) { in ParseItem() argument 96 items->push_back(item); in ParseItem() 103 std::vector<PubSubItem>* items) { in ParseRetract() argument 104 ParseItem(retract_elem, items); in ParseRetract() 108 std::vector<PubSubItem>* items) { in ParseEventItemsElem() argument 118 ParseItem(item_elem, items); in ParseEventItemsElem() 124 ParseRetract(retract_elem, items); in ParseEventItemsElem() 131 std::vector<PubSubItem>* items) { in ParsePubSubItemsElem() argument 139 ParseItem(item_elem, items); in ParsePubSubItemsElem() 154 std::vector<PubSubItem> items; in HandleResult() local [all …]
|
/external/icu/icu4c/source/tools/toolutil/ |
D | package.cpp | 395 items=NULL; in Package() 426 if(items[idx].isDataOwned) { in ~Package() 427 uprv_free(items[idx].data); in ~Package() 431 uprv_free((void*)items); in ~Package() 571 memset(items, 0, itemCount*sizeof(Item)); in readPackage() 643 items[i].name=s+prefixLength; in readPackage() 646 items[i].data=(uint8_t *)inBytes+ds->readUInt32(inEntries[i].dataOffset); in readPackage() 648 items[i-1].length=(int32_t)(items[i].data-items[i-1].data); in readPackage() 651 typeEnum=getTypeEnumForInputData(items[i-1].data, items[i-1].length, &errorCode); in readPackage() 653 …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/ |
D | peers.cpp | 518 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/brotli/c/enc/ |
D | entropy_encode.h | 82 static BROTLI_INLINE void SortHuffmanTreeItems(HuffmanTree* items, in SortHuffmanTreeItems() argument 89 HuffmanTree tmp = items[i]; in SortHuffmanTreeItems() 92 while (comparator(&tmp, &items[j])) { in SortHuffmanTreeItems() 93 items[k] = items[j]; in SortHuffmanTreeItems() 97 items[k] = tmp; in SortHuffmanTreeItems() 108 HuffmanTree tmp = items[i]; in SortHuffmanTreeItems() 109 for (; j >= gap && comparator(&tmp, &items[j - gap]); j -= gap) { in SortHuffmanTreeItems() 110 items[j] = items[j - gap]; in SortHuffmanTreeItems() 112 items[j] = tmp; in SortHuffmanTreeItems()
|
/external/icu/icu4c/source/test/depstest/ |
D | dependencies.py | 39 items = {} variable 99 global items, _line_number, _groups_to_be_defined 108 dep_item = items.get(dep) 114 items[dep] = {"type": "group"} 115 if library_name: items[dep]["library"] = library_name 144 global items, libraries, _line_number, _groups_to_be_defined 156 if name in items: 159 item = items[name] = {"type": "library", "name": name} 165 if name not in items: 171 item = items[name] [all …]
|
/external/tensorflow/tensorflow/contrib/eager/python/examples/spinn/ |
D | data.py | 50 def get_non_parenthesis_words(items): argument 61 return [x.lower() for x in items if x not in PARENTHESES and x] 64 def get_shift_reduce(items): argument 77 for item in items: 148 items = line.split("\t") 149 premise_words = get_non_parenthesis_words(items[1].split(" ")) 150 hypothesis_words = get_non_parenthesis_words(items[2].split(" ")) 192 items = line.split(" ") 193 word = items[0] 196 vector = np.array([float(item) for item in items[1:]]) [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | atexit.c | 32 static struct exit_data *items; variable 39 for (ed = items + nr_items - 1; ed >= items; ed--) { in handle_exit() 45 ext2fs_free_mem(&items); in handle_exit() 63 for (x = 0, ed = items; x < nr_items; x++, ed++) { in ext2fs_add_exit_fn() 83 &items); in ext2fs_add_exit_fn() 87 items[nr_items].func = func; in ext2fs_add_exit_fn() 88 items[nr_items].data = data; in ext2fs_add_exit_fn() 103 for (x = 0, ed = items; x < nr_items; x++, ed++) { in ext2fs_remove_exit_fn() 110 memset(items + nr_items - 1, 0, in ext2fs_remove_exit_fn()
|