Home
last modified time | relevance | path

Searched refs:pairs (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/external/python/cpython2/Lib/test/
Dtest_ordered_dict.py15 pairs = [('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5)]
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
38 pairs = [('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5)]
40 od.update(dict(pairs))
41 self.assertEqual(sorted(od.items()), pairs) # dict input
43 od.update(**dict(pairs))
44 self.assertEqual(sorted(od.items()), pairs) # kwds input
[all …]
/external/brotli/enc/
Dcluster_inc.h16 uint32_t idx2, size_t max_num_pairs, HistogramPair* pairs,
42 BROTLI_MAX(double, 0.0, pairs[0].cost_diff);
54 if (*num_pairs > 0 && HistogramPairIsLess(&pairs[0], &p)) {
57 pairs[*num_pairs] = pairs[0];
60 pairs[0] = p;
62 pairs[*num_pairs] = p;
72 HistogramPair* pairs,
89 clusters[idx2], max_num_pairs, &pairs[0], &num_pairs);
98 if (pairs[0].cost_diff >= cost_diff_threshold) {
104 best_idx1 = pairs[0].idx1;
[all …]
/external/junit-params/src/test/java/junitparams/internal/
DTestMethodTest.java99 public void testVarargsCustomClass(Pair... pairs){ in testVarargsCustomClass() argument
100 assertEquals(pairs[0].x, pairs[0].y); in testVarargsCustomClass()
101 assertEquals(pairs[1].x, pairs[1].y); in testVarargsCustomClass()
102 assertNotEquals(pairs[2].x, pairs[2].y); in testVarargsCustomClass()
113 public void testVarargsMoreArgs(int sumOfX, int sumOfY, Pair... pairs){ in testVarargsMoreArgs() argument
116 for (Pair pair : pairs) { in testVarargsMoreArgs()
131 public void testVargsMoreArgsOfTheSameType(Pair sum, Pair... pairs) { in testVargsMoreArgsOfTheSameType() argument
132 assertEquals(sum.x, pairs[0].x + pairs[1].x); in testVargsMoreArgsOfTheSameType()
133 assertEquals(sum.y, pairs[0].y + pairs[1].y); in testVargsMoreArgsOfTheSameType()
/external/r8/src/test/java/com/android/tools/r8/debuginfo/
DDebugInfoInspector.java63 public int checkLineHasExactLocals(int line, String... pairs) { in checkLineHasExactLocals() argument
64 int lines = checkLines(line, entry -> checkLocalsEqual(entry, pairs)); in checkLineHasExactLocals()
73 public int checkLineHasAtLeastLocals(int line, String... pairs) { in checkLineHasAtLeastLocals() argument
74 int lines = checkLines(line, entry -> checkLocalsDefined(entry, pairs)); in checkLineHasAtLeastLocals()
151 private static void checkLocalsDefined(DexDebugEntry entry, String... pairs) { in checkLocalsDefined() argument
152 assert pairs.length % 2 == 0; in checkLocalsDefined()
153 for (int i = 0; i < pairs.length; i += 2) { in checkLocalsDefined()
154 checkLocalDefined(entry, pairs[i], pairs[i + 1]); in checkLocalsDefined()
158 private static void checkLocalsEqual(DexDebugEntry entry, String[] pairs) { in checkLocalsEqual() argument
159 assert pairs == null || pairs.length % 2 == 0; in checkLocalsEqual()
[all …]
/external/curl/tests/unit/
Dunit1395.c47 const struct dotdot pairs[] = { variable
70 for(i=0; i < sizeof(pairs)/sizeof(pairs[0]); i++) {
71 char *out = Curl_dedotdotify((char *)pairs[i].input);
74 if(strcmp(out, pairs[i].output)) {
76 i, pairs[i].input, out, pairs[i].output);
/external/lzma/CPP/Common/
DTextConfig.cpp50 bool GetTextConfig(const AString &s, CObjectVector<CTextConfigPair> &pairs) in GetTextConfig() argument
52 pairs.Clear(); in GetTextConfig()
105 pairs.Add(pair); in GetTextConfig()
110 int FindTextConfigItem(const CObjectVector<CTextConfigPair> &pairs, const UString &id) throw() in FindTextConfigItem() argument
112 FOR_VECTOR (i, pairs) in FindTextConfigItem()
113 if (pairs[i].ID == id) in FindTextConfigItem()
118 UString GetTextConfigValue(const CObjectVector<CTextConfigPair> &pairs, const UString &id) in GetTextConfigValue() argument
120 int index = FindTextConfigItem(pairs, id); in GetTextConfigValue()
123 return pairs[index].String; in GetTextConfigValue()
DTextConfig.h14 bool GetTextConfig(const AString &text, CObjectVector<CTextConfigPair> &pairs);
16 int FindTextConfigItem(const CObjectVector<CTextConfigPair> &pairs, const UString &id) throw();
17 UString GetTextConfigValue(const CObjectVector<CTextConfigPair> &pairs, const UString &id);
/external/jcommander/src/test/java/com/beust/jcommander/
DMethodSetterTest.java17 public void setPairs(List<String> pairs) { in arityStringsSetter() argument
18 this.pairs = pairs; in arityStringsSetter()
21 return this.pairs; in arityStringsSetter()
23 public List<String> pairs; in arityStringsSetter() field in MethodSetterTest.ArgsArityStringSetter
38 Assert.assertEquals(args.pairs.size(), 2); in arityStringsSetter()
39 Assert.assertEquals(args.pairs.get(0), "pair0"); in arityStringsSetter()
40 Assert.assertEquals(args.pairs.get(1), "pair1"); in arityStringsSetter()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/
DAbstractSampleEncryptionBox.java70 e.pairs = new LinkedList<Entry.Pair>(); in _parseDetails()
72 … e.pairs.add(e.createPair(IsoTypeReader.readUInt16(content), IsoTypeReader.readUInt32(content))); in _parseDetails()
162 IsoTypeWriter.writeUInt16(byteBuffer, entry.pairs.size()); in getContent()
163 for (Entry.Pair pair : entry.pairs) { in getContent()
196 public List<Pair> pairs = new LinkedList<Pair>(); field in AbstractSampleEncryptionBox.Entry
209 for (Entry.Pair pair : pairs) { in getSize()
279 if (pairs != null ? !pairs.equals(entry.pairs) : entry.pairs != null) { in equals()
289 result = 31 * result + (pairs != null ? pairs.hashCode() : 0); in hashCode()
297 ", pairs=" + pairs + in toString()
344 size += entry.pairs.size() * 6; in getEntrySizes()
/external/python/cpython2/Lib/json/
Ddecoder.py151 pairs = []
152 pairs_append = pairs.append
164 result = object_pairs_hook(pairs)
166 pairs = {}
168 pairs = object_hook(pairs)
169 return pairs, end + 1
229 result = object_pairs_hook(pairs)
231 pairs = dict(pairs)
233 pairs = object_hook(pairs)
234 return pairs, end
/external/python/cpython2/Lib/
Dmhlib.py795 self.pairs = []
801 self.pairs = []
804 return cmp(self.pairs, other.pairs)
807 return hash(self.pairs)
813 self.pairs.sort()
815 while i < len(self.pairs):
816 alo, ahi = self.pairs[i-1]
817 blo, bhi = self.pairs[i]
819 self.pairs[i-1:i+1] = [(alo, max(ahi, bhi))]
825 for lo, hi in self.pairs:
[all …]
/external/skia/tools/lua/
Dbbh_filter.lua12 for _,_ in pairs(table) do
77 for k,v in pairs(verbCounts) do
86 for k, v in pairs(meta) do
104 for name, count in pairs(verbs) do
109 for n, info in pairs(globalInfo) do
120 for i, t in pairs(meta) do
124 for verb,count in pairs(globalInfo[t.fileName].verbs) do
/external/libmicrohttpd/src/testspdy/
Dtest_struct_namevalue.c31 char *pairs[] = {"one","1","two","2","three","3","four","4","five","5"}; variable
49 if(strcmp(name,pairs[*c]) != 0) in iterate_cb()
59 if(strcmp(value[0],pairs[(*c)+1]) != 0) in iterate_cb()
112 size = sizeof(pairs)/sizeof(pairs[0]); in main()
131 if(SPDY_YES != SPDY_name_value_add(container,pairs[i],pairs[i+1])) in main()
149 value = SPDY_name_value_lookup(container,pairs[i], &ret); in main()
150 if(NULL == value || 1 !=ret || strcmp(value[0], pairs[i+1]) != 0) in main()
153 (NULL == value) ? -1 : strcmp(value[0], pairs[i+1])); in main()
/external/svox/pico_resources/tools/LingwareBuilding/PicoLingware_tools_windows/tools/
Dpicoloaddbg.lua106 for s in pairs(propnames) do propnames[s] = 0 end
107 for s in pairs(upropnames) do upropnames[s] = 0 end
108 for s, p in pairs(st) do
109 for prop, propval in pairs(p) do
120 for prop, propval in pairs(upropnames) do
136 for s, pl in pairs(symnrs) do
163 for k, v in pairs(syms) do
Dpicoloadphones.lua104 for s in pairs(propnames) do propnames[s] = 0 end
105 for s in pairs(upropnames) do upropnames[s] = 0 end
106 for s, p in pairs(st) do
107 for prop, propval in pairs(p) do
118 for prop, propval in pairs(upropnames) do
134 for s, pl in pairs(symnrs) do
/external/nist-sip/java/gov/nist/core/
DMultiValueMapImpl.java56 Set pairs = map.entrySet(); in containsValue() local
58 if (pairs == null) in containsValue()
61 Iterator pairsIterator = pairs.iterator(); in containsValue()
72 Set pairs = map.entrySet(); in clear() local
73 Iterator pairsIterator = pairs.iterator(); in clear()
85 Set pairs = map.entrySet(); in values() local
86 Iterator pairsIterator = pairs.iterator(); in values()
/external/lzma/CPP/7zip/Bundles/SFXSetup/
DSfxSetup.cpp177 CObjectVector<CTextConfigPair> pairs; in WinMain() local
178 if (!GetTextConfig(config, pairs)) in WinMain()
184 UString friendlyName = GetTextConfigValue(pairs, L"Title"); in WinMain()
185 UString installPrompt = GetTextConfigValue(pairs, L"BeginPrompt"); in WinMain()
186 UString progress = GetTextConfigValue(pairs, L"Progress"); in WinMain()
189 int index = FindTextConfigItem(pairs, L"Directory"); in WinMain()
191 dirPrefix = pairs[index].String; in WinMain()
198 appLaunched = GetTextConfigValue(pairs, L"RunProgram"); in WinMain()
201 executeFile = GetTextConfigValue(pairs, L"ExecuteFile"); in WinMain()
202 executeParameters = GetTextConfigValue(pairs, L"ExecuteParameters"); in WinMain()
/external/libchrome/base/process/
Dprocess_metrics_linux.cc33 void TrimKeyValuePairs(StringPairs* pairs) { in TrimKeyValuePairs() argument
34 DCHECK(pairs); in TrimKeyValuePairs()
35 StringPairs& p_ref = *pairs; in TrimKeyValuePairs()
68 StringPairs pairs; in ReadProcStatusAndGetFieldAsSizeT() local
69 SplitStringIntoKeyValuePairs(status, ':', '\n', &pairs); in ReadProcStatusAndGetFieldAsSizeT()
70 TrimKeyValuePairs(&pairs); in ReadProcStatusAndGetFieldAsSizeT()
71 for (size_t i = 0; i < pairs.size(); ++i) { in ReadProcStatusAndGetFieldAsSizeT()
72 const std::string& key = pairs[i].first; in ReadProcStatusAndGetFieldAsSizeT()
73 const std::string& value_str = pairs[i].second; in ReadProcStatusAndGetFieldAsSizeT()
110 StringPairs pairs; in ReadProcSchedAndGetFieldAsUint64() local
[all …]
/external/autotest/server/site_tests/native_Benchmarks/
Doctane.py39 pairs = [line.split(': ') for line in log.splitlines()]
40 del pairs[-2]
41 pairs[-1][0] = 'Total'
45 'units': 'score'} for p in pairs]
/external/fio/
Djson.c130 json_free_pair(obj->pairs[i]); in json_free_object()
131 free(obj->pairs); in json_free_object()
186 struct json_pair **pairs = realloc(obj->pairs, in json_object_add_pair() local
188 if (!pairs) in json_object_add_pair()
190 pairs[obj->pair_cnt] = pair; in json_object_add_pair()
192 obj->pairs = pairs; in json_object_add_pair()
310 json_print_pair(obj->pairs[i], out); in json_print_object()
/external/snakeyaml/src/test/resources/pyyaml/
Dconstruct-pairs.data1 # Explicitly typed pairs.
2 Block tasks: !!pairs
7 Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]
/external/llvm/test/YAMLParser/
Dconstruct-pairs.test3 # Explicitly typed pairs.
4 Block tasks: !!pairs
9 Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]
/external/v8/tools/gcmole/
Dgcmole.lua252 for condition, files in pairs(sources) do
266 for condition, files1 in pairs(sources1) do
274 for i, file in pairs(files2) do files2_set[file] = true end
276 for i, file in pairs(files1) do
304 for k, v in pairs(self) do e[k] = v end
305 for k, v in pairs(t) do e[k] = v end
405 for caller, _ in pairs(callers) do
414 for funcname, callers in pairs(funcs) do
431 for name, value in pairs(gc) do if value then out:write (name, '\n') end end
436 for name, causes in pairs(gc_caused) do
/external/autotest/server/tests/netpipe/
Dcontrol.stress.srv53 # grab the pairs (and failures)
55 (pairs, failures) = utils.form_ntuples_from_machines(machines, 2)
56 print "pairs = %s" % pairs
63 job.parallel_simple(run, pairs, log=False)
/external/libchrome/base/
Dsys_info_chromeos.cc115 base::StringPairs pairs; in ParseLsbRelease() local
116 SplitStringIntoKeyValuePairs(lsb_release, '=', '\n', &pairs); in ParseLsbRelease()
117 for (size_t i = 0; i < pairs.size(); ++i) { in ParseLsbRelease()
119 TrimWhitespaceASCII(pairs[i].first, TRIM_ALL, &key); in ParseLsbRelease()
120 TrimWhitespaceASCII(pairs[i].second, TRIM_ALL, &value); in ParseLsbRelease()

12345678910>>...19