Home
last modified time | relevance | path

Searched refs:map1 (Results 1 – 25 of 58) sorted by relevance

123

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DMapTagTest.java33 Map<String, String> map1 = (Map<String, String>) map.get("Block style"); in testMap() local
34 assertEquals(3, map1.size()); in testMap()
35 assertEquals("Evans", map1.get("Clark")); in testMap()
36 assertEquals("Ingerson", map1.get("Brian")); in testMap()
37 assertEquals("Ben-Kiki", map1.get("Oren")); in testMap()
45 assertEquals(map1, map2); in testMap()
46 assertNotSame(map1, map2); in testMap()
55 Map<String, String> map1 = (Map<String, String>) map.get("Block style"); in testMapYaml11() local
56 assertEquals(3, map1.size()); in testMapYaml11()
57 assertEquals("Evans", map1.get("Clark")); in testMapYaml11()
[all …]
DOmapTagTest.java33 Map<String, String> map1 = (Map<String, String>) map.get("Bestiary"); in testOmap() local
34 assertEquals(3, map1.size()); in testOmap()
35 assertEquals("African pig-like ant eater. Ugly.", map1.get("aardvark")); in testOmap()
36 assertEquals("South-American ant eater. Two species.", map1.get("anteater")); in testOmap()
37 assertEquals("South-American constrictor snake. Scaly.", map1.get("anaconda")); in testOmap()
DValueTagTest.java54 Map<String, String> map1 = list2.get(0); in testValue() local
55 assertEquals(2, map1.size()); in testValue()
56 assertEquals("library1.dll", map1.get("=")); in testValue()
57 assertEquals(new Double(1.2), map1.get("version")); in testValue()
/external/opencv3/modules/imgproc/perf/
Dperf_remap.cpp31 Mat src(sz, src_type), dst(sz, src_type), map1(sz, map1_type), map2; in PERF_TEST_P() local
43 for (int j = 0; j < map1.rows; ++j) in PERF_TEST_P()
44 for (int i = 0; i < map1.cols; ++i) in PERF_TEST_P()
48 map1.at<float>(j, i) = static_cast<float>(src.cols - i - 1); in PERF_TEST_P()
52 map1.at<Vec2f>(j, i)[0] = static_cast<float>(src.cols - i - 1); in PERF_TEST_P()
53 map1.at<Vec2f>(j, i)[1] = static_cast<float>(j); in PERF_TEST_P()
56 map1.at<Vec2s>(j, i)[0] = static_cast<short>(src.cols - i - 1); in PERF_TEST_P()
57 map1.at<Vec2s>(j, i)[1] = static_cast<short>(j); in PERF_TEST_P()
67 TEST_CYCLE_MULTIRUN(runs) remap(src, dst, map1, map2, inter_type); in PERF_TEST_P()
/external/dng_sdk/source/
Ddng_hue_sat_map.cpp261 dng_hue_sat_map * dng_hue_sat_map::Interpolate (const dng_hue_sat_map &map1, in Interpolate() argument
269 if (!map1.IsValid ()) in Interpolate()
278 return new dng_hue_sat_map (map1); in Interpolate()
299 if (!map1.IsValid () || !map2.IsValid ()) in Interpolate()
310 if (map1.fHueDivisions != map2.fHueDivisions || in Interpolate()
311 map1.fSatDivisions != map2.fSatDivisions || in Interpolate()
312 map1.fValDivisions != map2.fValDivisions) in Interpolate()
325 result->SetDivisions (map1.fHueDivisions, in Interpolate()
326 map1.fSatDivisions, in Interpolate()
327 map1.fValDivisions); in Interpolate()
[all …]
/external/snakeyaml/src/test/java/examples/collections/
DTypeSafeMapImplementationsTest.java124 Map<Object, Object> map1 = (Map<Object, Object>) list.get(0);// it was in testNoJavaBeanMap() local
126 assertEquals(2, map1.size()); in testNoJavaBeanMap()
127 assertEquals("one", map1.get("1")); in testNoJavaBeanMap()
128 assertEquals("two", map1.get("2")); in testNoJavaBeanMap()
149 Map<Object, Object> map1 = (Map<Object, Object>) yaml.load(Util in testRecursiveNoJavaBeanMap1() local
151 assertEquals(3, map1.size()); in testRecursiveNoJavaBeanMap1()
152 assertEquals("one", map1.get("1")); in testRecursiveNoJavaBeanMap1()
153 assertEquals("two", map1.get("2")); in testRecursiveNoJavaBeanMap1()
155 String first = (String) map1.keySet().iterator().next(); in testRecursiveNoJavaBeanMap1()
183 SortedMap<Object, Object> map1 = (SortedMap<Object, Object>) yaml.load(output); in testRecursiveNoJavaBeanMap3() local
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/biz/base64Coder/
DBase64Coder.java38 private static char[] map1 = new char[64]; field in Base64Coder
42 map1[i++] = c;
44 map1[i++] = c;
46 map1[i++] = c;
47 map1[i++] = '+';
48 map1[i++] = '/';
57 map2[map1[i]] = (byte) i;
174 out[op++] = map1[o0]; in encode()
175 out[op++] = map1[o1]; in encode()
176 out[op] = op < oDataLen ? map1[o2] : '='; in encode()
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_exec_eval.c38 assert(attr < Elements(exec->eval.map1)); in clear_active_eval1()
39 exec->eval.map1[attr].map = NULL; in clear_active_eval1()
51 assert(attr < Elements(exec->eval.map1)); in set_active_eval1()
52 if (!exec->eval.map1[attr].map) { in set_active_eval1()
53 exec->eval.map1[attr].map = map; in set_active_eval1()
54 exec->eval.map1[attr].sz = dim; in set_active_eval1()
147 struct gl_1d_map *map = exec->eval.map1[attr].map; in vbo_exec_do_EvalCoord1f()
155 exec->eval.map1[attr].sz, in vbo_exec_do_EvalCoord1f()
166 if (exec->eval.map1[0].map) { in vbo_exec_do_EvalCoord1f()
167 struct gl_1d_map *map = exec->eval.map1[0].map; in vbo_exec_do_EvalCoord1f()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DChapter2_2Test.java51 Map<String, String> map1 = (Map<String, String>) list.get(0); in testExample_2_8() local
52 assertEquals(3, map1.size()); in testExample_2_8()
53 assertEquals(new Integer(72200), map1.get("time")); in testExample_2_8()
54 assertEquals("Sammy Sosa", map1.get("player")); in testExample_2_8()
55 assertEquals("strike (miss)", map1.get("action")); in testExample_2_8()
102 Map<Object, Object> map1 = (Map<Object, Object>) list.get(0); in testExample_2_12() local
103 assertEquals(2, map1.size()); in testExample_2_12()
104 assertEquals("Super Hoop", map1.get("item")); in testExample_2_12()
DYamlStream.java66 Map<Object, Object> map1 = (Map<Object, Object>) obj1; in YamlStream() local
69 if (!map1.keySet().equals(map2.keySet())) { in YamlStream()
70 throw new AssertionFailedError("Keyset: " + map1.keySet() + "; but was: " in YamlStream()
73 for (Iterator<Object> iterator = map1.keySet().iterator(); iterator.hasNext();) { in YamlStream()
75 Object o1 = map1.get(key); in YamlStream()
DChapter2_5Test.java54 Map<String, String> map1 = list3.get(0); in testExample_2_28() local
55 assertEquals("TopClass.py", map1.get("file")); in testExample_2_28()
56 assertEquals(new Integer(23), map1.get("line")); in testExample_2_28()
57 assertEquals("x = MoreObject(\"345\\n\")\n", map1.get("code")); in testExample_2_28()
DChapter2_1Test.java77 Map<String, Object> map1 = list.get(0); in testExample_2_4() local
78 assertEquals(3, map1.size()); in testExample_2_4()
79 assertEquals("Mark McGwire", map1.get("name")); in testExample_2_4()
102 Map<String, Object> map1 = map.get("Mark McGwire"); in testExample_2_6() local
103 assertEquals(2, map1.size()); in testExample_2_6()
/external/v8/test/cctest/
Dtest-transitions.cc53 Handle<Map> map1 = in TEST() local
64 TransitionArray::Insert(map0, name1, map1, SIMPLE_PROPERTY_TRANSITION); in TEST()
66 CHECK_EQ(*map1, in TEST()
70 CHECK_EQ(*map1, TransitionArray::GetTarget(map0->raw_transitions(), 0)); in TEST()
75 CHECK_EQ(*map1, in TEST()
83 CHECK((key == *name1 && target == *map1) || in TEST()
104 Handle<Map> map1 = in TEST() local
115 TransitionArray::Insert(map0, name1, map1, PROPERTY_TRANSITION); in TEST()
117 CHECK_EQ(*map1, in TEST()
121 CHECK_EQ(*map1, TransitionArray::GetTarget(map0->raw_transitions(), 0)); in TEST()
[all …]
Dtest-field-type-tracking.cc1293 Handle<Map> map1 = map; in TestReconfigureProperty_CustomPropertyAfterTargetMap() local
1296 map1 = expectations1.AddDataField(map1, NONE, representation, any_type); in TestReconfigureProperty_CustomPropertyAfterTargetMap()
1298 map1 = config.AddPropertyAtBranch(1, expectations1, map1); in TestReconfigureProperty_CustomPropertyAfterTargetMap()
1300 map1 = expectations1.AddDataField(map1, NONE, representation, any_type); in TestReconfigureProperty_CustomPropertyAfterTargetMap()
1302 CHECK(!map1->is_deprecated()); in TestReconfigureProperty_CustomPropertyAfterTargetMap()
1303 CHECK(map1->is_stable()); in TestReconfigureProperty_CustomPropertyAfterTargetMap()
1304 CHECK(expectations1.Check(*map1)); in TestReconfigureProperty_CustomPropertyAfterTargetMap()
1336 checker.Check(map1, new_map, expectations1); in TestReconfigureProperty_CustomPropertyAfterTargetMap()
2032 void Check(Expectations& expectations2, Handle<Map> map1, Handle<Map> map2) { in Check()
2035 CHECK(map1->is_deprecated()); in Check()
[all …]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/util/
DTestUtilities.java45 UnicodeMap map1 = new UnicodeMap(); field in TestUtilities
65 map1.put(start, value); in TestUnicodeMap()
72 map1 = new UnicodeMap(); in TestUnicodeMap()
78 map1.put(cp, value); in TestUnicodeMap()
87 Set values1 = (Set) map1.getAvailableValues(new TreeSet()); in TestUnicodeMap()
96 UnicodeSet set1 = map1.keySet(value); in TestUnicodeMap()
112 UnicodeMap composed = ((UnicodeMap)scripts.cloneAsThawed()).composeWith(map1, composer); in TestUnicodeMap()
116 Object gc = map1.getValue(i); in TestUnicodeMap()
277 UnicodeMapIterator mi = new UnicodeMapIterator(map1); in checkNext()
305 Object value1 = map1.getValue(i); in check()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTestUtilities.java49 UnicodeMap map1 = new UnicodeMap(); field in TestUtilities
69 map1.put(start, value); in TestUnicodeMap()
76 map1 = new UnicodeMap(); in TestUnicodeMap()
82 map1.put(cp, value); in TestUnicodeMap()
91 Set values1 = (Set) map1.getAvailableValues(new TreeSet()); in TestUnicodeMap()
100 UnicodeSet set1 = map1.keySet(value); in TestUnicodeMap()
116 UnicodeMap composed = ((UnicodeMap)scripts.cloneAsThawed()).composeWith(map1, composer); in TestUnicodeMap()
120 Object gc = map1.getValue(i); in TestUnicodeMap()
281 UnicodeMapIterator mi = new UnicodeMapIterator(map1); in checkNext()
309 Object value1 = map1.getValue(i); in check()
[all …]
/external/google-breakpad/src/testing/gtest/test/
Dgtest-printers_test.cc802 hash_map<int, char> map1; in TEST() local
803 map1[1] = 'a'; in TEST()
804 EXPECT_EQ("{ (1, 'a' (97, 0x61)) }", Print(map1)); in TEST()
808 hash_multimap<int, bool> map1; in TEST() local
809 map1.insert(make_pair(5, true)); in TEST()
810 map1.insert(make_pair(5, false)); in TEST()
813 const string result = Print(map1); in TEST()
870 map<int, bool> map1; in TEST() local
871 map1[1] = true; in TEST()
872 map1[5] = false; in TEST()
[all …]
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/
Dgtest-printers_test.cc821 hash_map<int, char> map1; in TEST() local
822 map1[1] = 'a'; in TEST()
823 EXPECT_EQ("{ (1, 'a' (97, 0x61)) }", Print(map1)); in TEST()
827 hash_multimap<int, bool> map1; in TEST() local
828 map1.insert(make_pair(5, true)); in TEST()
829 map1.insert(make_pair(5, false)); in TEST()
832 const string result = Print(map1); in TEST()
889 map<int, bool> map1; in TEST() local
890 map1[1] = true; in TEST()
891 map1[5] = false; in TEST()
[all …]
/external/gtest/test/
Dgtest-printers_test.cc821 hash_map<int, char> map1; in TEST() local
822 map1[1] = 'a'; in TEST()
823 EXPECT_EQ("{ (1, 'a' (97, 0x61)) }", Print(map1)); in TEST()
827 hash_multimap<int, bool> map1; in TEST() local
828 map1.insert(make_pair(5, true)); in TEST()
829 map1.insert(make_pair(5, false)); in TEST()
832 const string result = Print(map1); in TEST()
889 map<int, bool> map1; in TEST() local
890 map1[1] = true; in TEST()
891 map1[5] = false; in TEST()
[all …]
/external/javassist/src/main/javassist/bytecode/analysis/
DMultiType.java189 Map map1 = getAllMultiInterfaces(type1); in mergeMultiInterfaces() local
192 return findCommonInterfaces(map1, map2); in mergeMultiInterfaces()
196 Map map1 = getAllMultiInterfaces(multi); in mergeMultiAndSingle() local
199 return findCommonInterfaces(map1, map2); in mergeMultiAndSingle()
/external/e2fsprogs/intl/
Dlocalealias.c146 static int alias_compare (const struct alias_map *map1,
387 alias_compare (const struct alias_map *map1, const struct alias_map *map2) in alias_compare() argument
390 return strcasecmp (map1->alias, map2->alias); in alias_compare()
392 const unsigned char *p1 = (const unsigned char *) map1->alias; in alias_compare()
/external/pdfium/third_party/freetype/src/psnames/
Dpsmodule.c172 PS_UniMap* map1 = (PS_UniMap*)a; in compare_uni_maps() local
174 FT_UInt32 unicode1 = BASE_GLYPH( map1->unicode ); in compare_uni_maps()
181 if ( map1->unicode > map2->unicode ) in compare_uni_maps()
183 else if ( map1->unicode < map2->unicode ) in compare_uni_maps()
/external/freetype/src/psnames/
Dpsmodule.c172 PS_UniMap* map1 = (PS_UniMap*)a; in compare_uni_maps() local
174 FT_UInt32 unicode1 = BASE_GLYPH( map1->unicode ); in compare_uni_maps()
181 if ( map1->unicode > map2->unicode ) in compare_uni_maps()
183 else if ( map1->unicode < map2->unicode ) in compare_uni_maps()
/external/protobuf/java/src/test/java/com/google/protobuf/
DSmallSortedMapTest.java102 SmallSortedMap<Integer, Integer> map1 = in runPutAndGetTest() local
113 assertNull(map1.put(i, i + 1)); in runPutAndGetTest()
122 assertEquals(Math.min(3, numElements), map1.getNumArrayEntries()); in runPutAndGetTest()
129 allMaps.add(map1); in runPutAndGetTest()
141 assertEquals(map1, map2); in runPutAndGetTest()
/external/opencv3/modules/imgproc/src/opencl/
Dremap.cl165 __global const float * map1 = (__global const float *)(map1ptr + map1_index);
169 int gx = convert_int_sat_rte(map1[0]);
291 __global const short2 * map1 = (__global const short2 *)(map1ptr + map1_index);
298 int2 gxy = convert_int2(map1[0]) + (int2)(dx, dy);
347 __global const short2 * map1 = (__global const short2 *)(map1ptr + map1_index);
351 int2 map_dataA = convert_int2(map1[0]);
411 __global const float * map1 = (__global const float *)(map1ptr + map1_index);
416 float xf = map1[0], yf = map2[0];
458 float2 map_data = (float2)(map1[0], map2[0]);

123